MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / AttachToProcessByPid

Function AttachToProcessByPid

Kernel-Bridge/API/ProcessesUtils.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 namespace AddressSpace {
110 _IRQL_requires_max_(APC_LEVEL)
111 BOOLEAN AttachToProcessByPid(HANDLE ProcessId, OUT PKAPC_STATE ApcState) {
112 if (!ApcState) return FALSE;
113 PEPROCESS Process = Descriptors::GetEPROCESS(ProcessId);
114 if (!Process) return FALSE;
115 BOOLEAN Status = AttachToProcess(Process, ApcState);
116 ObDereferenceObject(Process);
117 return Status;
118 }
119
120 _IRQL_requires_max_(APC_LEVEL)
121 BOOLEAN AttachToProcess(PEPROCESS Process, OUT PKAPC_STATE ApcState) {

Callers

nothing calls this directly

Calls 2

GetEPROCESSFunction · 0.85
AttachToProcessFunction · 0.85

Tested by

no test coverage detected