CreateToolHelp32Snapshot + <br>Process32First +<br>Process32Next<br><br>比较如下结构的结果即可,可以得到句柄,可以得到路径<br><br>typedef struct tagPROCESSENTRY32 { <br> DWORD dwSize; <br> DWORD cntUsage; <br> DWORD th32ProcessID; <br> DWORD th32DefaultHeapID; <br> DWORD th32ModuleID; <br> DWORD cntThreads; <br> DWORD th32ParentProcessID; <br> LONG pcPriClassBase; <br> DWORD dwFlags; <br> char szExeFile[MAX_PATH]; <br>} PROCESSENTRY32; <br>typedef PROCESSENTRY32 * PPROCESSENTRY32; <br>typedef PROCESSENTRY32 * LPPROCESSENTRY32;