MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / OpenProcess

Function OpenProcess

IntelPresentMon/CommonUtilities/win/Utilities.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 win::Handle OpenProcess(uint32_t pid, UINT permissions)
140 {
141 auto hProc = (Handle)::OpenProcess(permissions, FALSE, pid);
142 if (!hProc) {
143 throw Except<HrError>("failed to open process");
144 }
145 return hProc;
146 }
147
148 std::filesystem::path GetExecutableModulePath()
149 {

Callers 10

QueryProcessNameFunction · 0.85
mainFunction · 0.85
GetProcessNamesFunction · 0.85
WinMainFunction · 0.85
RegisterTargetMethod · 0.85
Execute_Method · 0.85
OverlayMethod · 0.85
UpdateInjectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected