当前位置:网站首页>通过进程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. |
边栏推荐
- Visual upper system design and development (Halcon WinForm) -1 Process node design
- Dataframe returns the whole row according to the value
- Incluxdb2 buckets create database
- Jvm-03-runtime data area PC, stack, local method stack
- redis缓存穿透,缓存击穿,缓存雪崩解决方案
- SQL server安装位置改不了
- "Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
- Idea does not specify an output path for the module
- 在MapReduce中利用MultipleOutputs输出多个文件
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
猜你喜欢

Halcon and WinForm study section 2

Redis cache penetration, cache breakdown, cache avalanche solution

Basic SQL tutorial

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

Tensorflow realizes verification code recognition (I)

GCC cannot find the library file after specifying the link library path

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
![[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University](/img/83/922efb4f88843f1b7feaccf2b515b9.jpg)
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University

如何使用 @NotNull等注解校验 并全局异常处理

Dataframe returns the whole row according to the value
随机推荐
How to use annotations such as @notnull to verify and handle global exceptions
Jvm-03-runtime data area PC, stack, local method stack
Jvm-05-object, direct memory, string constant pool
Leetcode the smallest number of the rotation array of the offer of the sword (11)
Calibre LVL
Popular understanding of linear regression (I)
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
Didi off the shelf! Data security is national security
Jvm-04-runtime data area heap, method area
秒杀系统2-Redis解决分布式Session问题
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Visual upper system design and development (Halcon WinForm) -2 Global variable design
北京共有产权房出租新规实施的租赁案例
Popular understanding of linear regression (II)
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Construction of operation and maintenance system
GCC cannot find the library file after specifying the link library path
App全局异常捕获
leetcode_ Power of Four
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"