当前位置:网站首页>通过进程PID获取可执行文件路径(QueryFullProcessImageName)
通过进程PID获取可执行文件路径(QueryFullProcessImageName)
2022-07-03 15:20:00 【宇龍_】
需要用到如下API
BOOL WINAPI QueryFullProcessImageName(
__in HANDLE hProcess,
__in DWORD dwFlags,
__out LPTSTR lpExeName,
__inout PDWORD lpdwSize
);
32位的程序调用此API同样能获取到64位进程的可执行文件路径。
下面是微软在文档中的说明,由于该API很简单就不再复述了
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. |
边栏推荐
- Halcon and WinForm study section 1
- Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
- SQL server安装位置改不了
- Digital image processing -- popular Canny edge detection
- Using Tengine to solve the session problem of load balancing
- Digital image processing -- popular understanding of corrosion and expansion
- 视觉上位系统设计开发(halcon-winform)-5.相机
- Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
- 详解指针进阶1
- The first character of leetcode sword offer that only appears once (12)
猜你喜欢
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
Summary of concurrent full knowledge points
Visual upper system design and development (Halcon WinForm) -3 Image control
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Halcon与Winform学习第一节
Kubernetes advanced training camp pod Foundation
Final review points of human-computer interaction
[pytorch learning notes] datasets and dataloaders
Visual upper system design and development (Halcon WinForm) -1 Process node design
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
随机推荐
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
驱动与应用程序通信
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
Popular understanding of random forest
Dataframe returns the whole row according to the value
Introduction, use and principle of synchronized
Popular understanding of linear regression (I)
[probably the most complete in Chinese] pushgateway entry notes
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Chapter 04_ Logical architecture
Kubernetes带你从头到尾捋一遍
【pytorch学习笔记】Transforms
【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
Puppet automatic operation and maintenance troubleshooting cases
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
Enable multi-threaded download of chrome and edge browsers
[combinatorial mathematics] binomial theorem and combinatorial identity (binomial theorem | three combinatorial identities | recursive formula 1 | recursive formula 2 | recursive formula 3 Pascal / Ya
The state does not change after the assignment of El switch
Kubernetes - YAML文件解读
Final review points of human-computer interaction