当前位置:网站首页>通过进程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. |
边栏推荐
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- Calibre LVL
- 视觉上位系统设计开发(halcon-winform)-2.全局变量设计
- The method of parameter estimation of user-defined function in MATLAB
- mysql innodb 存储引擎的特性—行锁剖析
- What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
- Visual upper system design and development (Halcon WinForm) -3 Image control
- Analysis of development mode process based on SVN branch
- [transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
- Popular understanding of linear regression (I)
猜你喜欢

【可能是全中文网最全】pushgateway入门笔记

Halcon and WinForm study section 2

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

Chapter 04_ Logical architecture

Popular understanding of linear regression (I)

Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock

【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现

Introduction, use and principle of synchronized

Can‘t connect to MySQL server on ‘localhost‘

Solve the problem that pushgateway data will be overwritten by multiple push
随机推荐
Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
Halcon与Winform学习第二节
The method of parameter estimation of user-defined function in MATLAB
Popular understanding of ovo and ovr
Final review points of human-computer interaction
Relationship between truncated random distribution and original distribution
Search in the two-dimensional array of leetcode sword offer (10)
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
Visual upper system design and development (Halcon WinForm) -1 Process node design
The state does not change after the assignment of El switch
Tensorflow realizes verification code recognition (II)
Win10 enterprise 2016 long term service activation tutorial
【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
Redis cache penetration, cache breakdown, cache avalanche solution
Calibre LVL
redis单线程问题强制梳理门外汉扫盲
Analysis of development mode process based on SVN branch
第04章_逻辑架构
Use of Tex editor