MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetProcessNameByPid

Method GetProcessNameByPid

DebugView++Lib/ProcessInfo.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81std::wstring ProcessInfo::GetProcessNameByPid(DWORD processId)
82{
83 Win32::Handle hProcess(::OpenProcess(PROCESS_QUERY_INFORMATION, false, processId));
84 if (hProcess)
85 return GetProcessName(hProcess.get());
86
87 return L"";
88}
89
90DWORD ProcessInfo::GetUid(DWORD processId, const std::wstring& processName)
91{

Callers

nothing calls this directly

Calls 1

OpenProcessFunction · 0.85

Tested by

no test coverage detected