当前位置:网站首页>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. |
边栏推荐
- 驱动与应用程序通信
- 找映射关系
- [combinatorics] permutation and combination (set permutation, step-by-step processing example)
- win32创建窗口及按钮(轻量级)
- Detailed pointer advanced 1
- The difference between RAR and zip files
- Relationship between truncated random distribution and original distribution
- Popular understanding of linear regression (I)
- [cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
- The state does not change after the assignment of El switch
猜你喜欢

Characteristics of MySQL InnoDB storage engine -- Analysis of row lock

解决pushgateway数据多次推送会覆盖的问题

How to use annotations such as @notnull to verify and handle global exceptions

mysql innodb 存储引擎的特性—行锁剖析

Jvm-06-execution engine

Final review points of human-computer interaction

使用AUR下载并安装常用程序

Popular understanding of ovo and ovr

视觉上位系统设计开发(halcon-winform)-1.流程节点设计

函数栈帧的创建和销毁
随机推荐
Halcon与Winform学习第一节
Jvm-03-runtime data area PC, stack, local method stack
Calibre LVL
win32创建窗口及按钮(轻量级)
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
leetcode_ Power of Four
Use of Tex editor
Visual upper system design and development (Halcon WinForm) -3 Image control
Relationship between truncated random distribution and original distribution
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
Detailed comments on MapReduce instance code on the official website
Detailed pointer advanced 1
do{}while()的妙用
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
What is machine reading comprehension? What are the applications? Finally someone made it clear
Kubernetes - yaml file interpretation
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
Kubernetes带你从头到尾捋一遍
使用AUR下载并安装常用程序