当前位置:网站首页>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. |
边栏推荐
- 《微服务设计》读书笔记(下)
- 秒杀系统3-商品列表和商品详情
- Popular understanding of linear regression (I)
- Matlab r2011b neural network toolbox precautions
- Second kill system 3 - list of items and item details
- 秒杀系统1-登录功能
- WinDbg分析dump文件
- PyTorch crop images differentiablly
- Final review points of human-computer interaction
- 官网MapReduce实例代码详细批注
猜你喜欢
Visual upper system design and development (Halcon WinForm) -5 camera
Summary of JVM knowledge points
视觉上位系统设计开发(halcon-winform)
How are integer and floating-point types stored in memory
Kubernetes带你从头到尾捋一遍
Introduction to redis master-slave, sentinel and cluster mode
redis缓存穿透,缓存击穿,缓存雪崩解决方案
[set theory] inclusion exclusion principle (complex example)
找映射关系
Popular understanding of linear regression (II)
随机推荐
Creation and destruction of function stack frames
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
PyTorch crop images differentiablly
Finally, someone explained the financial risk management clearly
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
Detailed comments on MapReduce instance code on the official website
Halcon and WinForm study section 1
Markdown file titles are all reduced by one level
Jvm-09 byte code introduction
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
Popular understanding of linear regression (II)
Kubernetes帶你從頭到尾捋一遍
Popular understanding of random forest
Jvm-06-execution engine
Popular understanding of ovo and ovr
QT use qzxing to generate QR code
Introduction, use and principle of synchronized
[combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide
Relationship between truncated random distribution and original distribution
Atlas atlas torque gun USB communication tutorial based on mtcom