MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / OpenProcess

Function OpenProcess

Source/Client/NM_Sys/API/ProcessesUtils.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 _IRQL_requires_max_(PASSIVE_LEVEL)
25 NTSTATUS OpenProcess(HANDLE ProcessId, OUT PHANDLE hProcess, ACCESS_MASK AccessMask, ULONG Attributes)
26 {
27 CLIENT_ID ClientId;
28 ClientId.UniqueProcess = ProcessId;
29 ClientId.UniqueThread = 0;
30
31 OBJECT_ATTRIBUTES ObjectAttributes;
32 InitializeObjectAttributes(&ObjectAttributes, NULL, Attributes, NULL, NULL);
33
34 return ZwOpenProcess(hProcess, AccessMask, &ObjectAttributes, &ClientId);
35 }
36
37 _IRQL_requires_max_(PASSIVE_LEVEL)
38 NTSTATUS OpenProcessByPointer(PEPROCESS Process, OUT PHANDLE hProcess, ACCESS_MASK AccessMask, ULONG Attributes, KPROCESSOR_MODE ProcessorMode)

Callers 8

ShowWSChangesFunction · 0.85
OnScanHandleMethod · 0.85
TerminateProcessByPidFunction · 0.85
KbOpenProcessFunction · 0.85
KbAllocUserMemoryFunction · 0.85
KbFreeUserMemoryFunction · 0.85
KbCreateUserThreadFunction · 0.85
KbCreateSystemThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected