ProcessImageFileNameWin32
来源:互联网 发布:人工智能编程入门 编辑:程序博客网 时间:2024/06/14 18:23
Result
X:\xxx.exe
Note
The calling application must free the memory call free function
Minimum supported client
Windows Vista
NTSTATUS GetProcessPath( IN HANDLE UniqueProcessId, OUT PUNICODE_STRING* ProcessPath ){ NTSTATUS Status = STATUS_SUCCESS; PVOID Buffer = NULL; HANDLE hProcess = NULL; ULONG NeedSize = 0; CLIENT_ID ci = { 0 }; OBJECT_ATTRIBUTES oa = { 0 }; ci.UniqueProcess = UniqueProcessId; oa.Length = sizeof( oa ); Status = NtOpenProcess( &hProcess, PROCESS_QUERY_LIMITED_INFORMATION, &oa, &ci ); if ( ! hProcess ) return Status; Status = NtQueryInformationProcess( hProcess, ProcessImageFileNameWin32, NULL, 0, &NeedSize ); if ( ! NeedSize ) return Status; Buffer = malloc( NeedSize ); memset( Buffer, 0, NeedSize ); Status = NtQueryInformationProcess( hProcess, ProcessImageFileNameWin32, Buffer, NeedSize, NULL ); CloseHandle( hProcess ); *ProcessPath = ( PUNICODE_STRING )Buffer; return Status;}
0 0
- ProcessImageFileNameWin32
- 字典转模型的几中方法
- java判断文件是否是utf8编码
- TCP协议1
- Attention And Memory in Deep Learning And NLP
- Delphi中的THashedStringList对象
- ProcessImageFileNameWin32
- Redis+Keepalived高可用方案详细分析
- 1JVM内存四大类型问题:Heap、Stack、Contant、DirectMemory
- TCP协议2
- 交换排序之冒泡排序
- tomcat linux环境下重启
- iOS中日期和字符串的相互转化(时间戳)
- 2016春季练习——DP水题
- 90---Hibernate使用方法-----------使用注解完成Hibernate映射