MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / GetProcessImageName

Function GetProcessImageName

Explorer++/Helper/ProcessHelper.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10DWORD GetProcessImageName(DWORD dwProcessId, TCHAR *szImageName, DWORD nSize)
11{
12 DWORD dwRet = 0;
13
14 HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, dwProcessId);
15
16 if(hProcess != NULL)
17 {
18 dwRet = GetModuleFileNameEx(hProcess, NULL, szImageName, nSize);
19 CloseHandle(hProcess);
20 }
21
22 return dwRet;
23}
24
25BOOL GetProcessOwner(DWORD dwProcessId, TCHAR *szOwner, size_t cchMax)
26{

Callers 15

TestConfigFileInternalFunction · 0.85
InitializePluginsMethod · 0.85
SetupJumplistTasksMethod · 0.85
SetLanguageModuleMethod · 0.85
VerifyLanguageVersionMethod · 0.85
AddLanguagesMethod · 0.85
OnShowHelpMethod · 0.85
InitializeLoggingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConfigFileInternalFunction · 0.68