当前位置:网站首页>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. |
边栏推荐
- Popular understanding of ovo and ovr
- Popular understanding of gradient descent
- WinDbg分析dump文件
- mysql innodb 存储引擎的特性—行锁剖析
- Kubernetes vous emmène du début à la fin
- Custom annotation
- 官网MapReduce实例代码详细批注
- [transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
- [probably the most complete in Chinese] pushgateway entry notes
- Puppet自动化运维排错案例
猜你喜欢

Reentrantlock usage and source code analysis
![[set theory] inclusion exclusion principle (complex example)](/img/9a/db5a75e27516378c31531773a8a221.jpg)
[set theory] inclusion exclusion principle (complex example)

Visual host system design and development (Halcon WinForm)

软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口

WinDbg分析dump文件

Kubernetes vous emmène du début à la fin

Unity功能——Unity离线文档下载及使用

Kubernetes will show you from beginning to end

Chapter 04_ Logical architecture

Construction of operation and maintenance system
随机推荐
Functional modules and application scenarios covered by the productization of user portraits
do{}while()的妙用
秒杀系统1-登录功能
Kubernetes帶你從頭到尾捋一遍
Kubernetes 进阶训练营 Pod基础
Analysis of development mode process based on SVN branch
Halcon与Winform学习第一节
开启 Chrome 和 Edge 浏览器多线程下载
子类隐藏父类的同名函数
[combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide
详解指针进阶1
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
函数栈帧的创建和销毁
运维体系的构建
redis单线程问题强制梳理门外汉扫盲
使用Tengine解决负载均衡的Session问题
整形和浮点型是如何在内存中的存储
Redis single thread problem forced sorting layman literacy
Jvm-03-runtime data area PC, stack, local method stack
CString中使用百分号