当前位置:网站首页>Get the executable path through the process PID (queryfullprocessimagename)
Get the executable path through the process PID (queryfullprocessimagename)
2022-07-03 15:26:00 【Yulong_】
You need to use the following API
BOOL WINAPI QueryFullProcessImageName(
__in HANDLE hProcess,
__in DWORD dwFlags,
__out LPTSTR lpExeName,
__inout PDWORD lpdwSize
);
32 Bit program calls this API Also available 64 Executable path of bit process .
The following is Microsoft's description in the document , Because of the API It's easy to stop repeating
hProcess [in]
A handle to the process. This handle must be created with the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights
.
dwFlags [in]
This parameter can be one of the following values.
Value | Meaning |
---|---|
0 | The name should use the Win32 path format. |
PROCESS_NAME_NATIVE 0x00000001 | The name should use the native system path format. |
边栏推荐
- VS2017通过IP调试驱动(双机调试)
- Backtracking method to solve batch job scheduling problem
- 通过进程PID获取可执行文件路径(QueryFullProcessImageName)
- 开启 Chrome 和 Edge 浏览器多线程下载
- Visual upper system design and development (Halcon WinForm) -3 Image control
- Kubernetes vous emmène du début à la fin
- 使用AUR下载并安装常用程序
- The state does not change after the assignment of El switch
- Summary of concurrent full knowledge points
- 详解指针进阶2
猜你喜欢
Jvm-05-object, direct memory, string constant pool
视觉上位系统设计开发(halcon-winform)
mysql innodb 存储引擎的特性—行锁剖析
Jvm-02-class loading subsystem
Tensorflow realizes verification code recognition (I)
《微服务设计》读书笔记(下)
Unity功能——Unity离线文档下载及使用
Seckill system 2 redis solves the problem of distributed session
Visual upper system design and development (Halcon WinForm) -4 Communication management
How to use annotations such as @notnull to verify and handle global exceptions
随机推荐
Kubernetes will show you from beginning to end
【可能是全中文网最全】pushgateway入门笔记
开启 Chrome 和 Edge 浏览器多线程下载
Tensorflow realizes verification code recognition (III)
Popular understanding of gradient descent
驱动与应用程序通信
基础SQL教程
子类隐藏父类的同名函数
Kubernetes advanced training camp pod Foundation
[set theory] inclusion exclusion principle (complex example)
CString在多线程中的问题
Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
Visual upper system design and development (Halcon WinForm) -4 Communication management
详解指针进阶2
Solve the problem that pushgateway data will be overwritten by multiple push
Enable multi-threaded download of chrome and edge browsers
使用JMeter对WebService进行压力测试
Kubernetes vous emmène du début à la fin
WinDbg分析dump文件
Kubernetes帶你從頭到尾捋一遍