1个回答
展开全部
TCHAR* GetProcessName(DWORD processID )
{
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processID);
TCHAR* procName = new TCHAR[MAX_PATH];
GetModuleFileNameEx(hProcess, NULL, procName, MAX_PATH);
return procName;
}
{
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processID);
TCHAR* procName = new TCHAR[MAX_PATH];
GetModuleFileNameEx(hProcess, NULL, procName, MAX_PATH);
return procName;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询