当前位置:网站首页>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. |
边栏推荐
- [probably the most complete in Chinese] pushgateway entry notes
- The state does not change after the assignment of El switch
- 秒杀系统2-Redis解决分布式Session问题
- 视觉上位系统设计开发(halcon-winform)-6.节点与宫格
- What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
- Popular understanding of linear regression (II)
- The method of parameter estimation of user-defined function in MATLAB
- 高并发下之redis锁优化实战
- Analysis of development mode process based on SVN branch
- 阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
猜你喜欢

redis缓存穿透,缓存击穿,缓存雪崩解决方案

Halcon与Winform学习第二节

Detailed pointer advanced 2

Halcon与Winform学习第一节

Construction of operation and maintenance system

Solve the problem that pushgateway data will be overwritten by multiple push

Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing

Popular understanding of linear regression (II)

Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"

基础SQL教程
随机推荐
[daily training] 395 Longest substring with at least k repeated characters
Introduction, use and principle of synchronized
Visual upper system design and development (Halcon WinForm) -3 Image control
WinDbg分析dump文件
互斥对象与临界区的区别
Visual host system design and development (Halcon WinForm)
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
【可能是全中文网最全】pushgateway入门笔记
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
Visual upper system design and development (Halcon WinForm) -4 Communication management
详解指针进阶1
Visual upper system design and development (Halcon WinForm) -5 camera
Unity功能——Unity离线文档下载及使用
秒杀系统3-商品列表和商品详情
Halcon and WinForm study section 2
do{}while()的妙用
The state does not change after the assignment of El switch
Halcon与Winform学习第二节
Kubernetes帶你從頭到尾捋一遍
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)