当前位置:网站首页>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. |
边栏推荐
- Win10 enterprise 2016 long term service activation tutorial
- 【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
- 【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
- QT use qzxing to generate QR code
- Matlab r2011b neural network toolbox precautions
- Kubernetes 进阶训练营 Pod基础
- Visual upper system design and development (Halcon WinForm) -5 camera
- Using multipleoutputs to output multiple files in MapReduce
- 视觉上位系统设计开发(halcon-winform)
- How are integer and floating-point types stored in memory
猜你喜欢

String functions that you need to know

redis缓存穿透,缓存击穿,缓存雪崩解决方案
![[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention](/img/94/a9c7010fe9f14454469609ac4dd871.png)
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention

Jvm-05-object, direct memory, string constant pool

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

Basic SQL tutorial

C语言刷题~Leetcode与牛客网简单题
![[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer](/img/9b/6ca8375ef8689a80d437665909ae30.png)
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer

Popular understanding of linear regression (I)

Digital image processing -- popular understanding of corrosion and expansion
随机推荐
[set theory] inclusion exclusion principle (complex example)
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
[probably the most complete in Chinese] pushgateway entry notes
Digital image processing -- popular Canny edge detection
Detailed comments on MapReduce instance code on the official website
Redis主从、哨兵、集群模式介绍
使用AUR下载并安装常用程序
CString在多线程中的问题
Matplotlib drawing label cannot display Chinese problems
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
Introduction to redis master-slave, sentinel and cluster mode
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
Seckill system 3- product list and product details
socket. IO build distributed web push server
Popular understanding of linear regression (II)
解决pushgateway数据多次推送会覆盖的问题
leetcode_ Power of Four
Jvm-02-class loading subsystem
GCC cannot find the library file after specifying the link library path
视觉上位系统设计开发(halcon-winform)-2.全局变量设计