// FileName: FindProcessPid.cpp // Function: Find Pid by ProcessName #include <string.h> #include <stdio.h> #include <Windows.h> #include <tlhelp32.h> //CreateToolhelp32Snapshot #define ArraySize(ptr) (sizeof(ptr) / sizeof(ptr[0])) BOOL FindProcessPid(LPCSTR ProcessName, DWORD& dwPid); int main() {
C++ 根据进程名找到对应Pid
最新推荐文章于 2023-10-04 20:42:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)