当前位置:网站首页>通过进程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. |
边栏推荐
- Jvm-05-object, direct memory, string constant pool
- What is label encoding? How to distinguish and use one hot encoding and label encoding?
- Global and Chinese markets for indoor HDTV antennas 2022-2028: Research Report on technology, participants, trends, market size and share
- 官网MapReduce实例代码详细批注
- Incluxdb2 buckets create database
- Tensorflow realizes verification code recognition (II)
- 视觉上位系统设计开发(halcon-winform)-6.节点与宫格
- Popular understanding of gradient descent
- 互斥对象与临界区的区别
- Visual upper system design and development (Halcon WinForm) -1 Process node design
猜你喜欢

Jvm-09 byte code introduction

北京共有产权房出租新规实施的租赁案例

Influxdb2 sources add data sources

Introduction to redis master-slave, sentinel and cluster mode

Halcon and WinForm study section 2

Tensorflow realizes verification code recognition (III)

Dataframe returns the whole row according to the value

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

Jvm-03-runtime data area PC, stack, local method stack

Jvm-08-garbage collector
随机推荐
详解指针进阶1
Halcon and WinForm study section 1
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
【可能是全中文网最全】pushgateway入门笔记
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
详解指针进阶2
Visual upper system design and development (Halcon WinForm) -2 Global variable design
Jvm-03-runtime data area PC, stack, local method stack
What is label encoding? How to distinguish and use one hot encoding and label encoding?
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Can‘t connect to MySQL server on ‘localhost‘
[combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide
Markdown file titles are all reduced by one level
Relationship between truncated random distribution and original distribution
Functional modules and application scenarios covered by the productization of user portraits
Qt常用语句备忘
Nppexec get process return code
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
Solve the problem that pushgateway data will be overwritten by multiple push
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock