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

Function KbOpenProcessByPointer

User-Bridge/API/User-Bridge.cpp:794–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792 }
793
794 BOOL WINAPI KbOpenProcessByPointer(
795 WdkTypes::PEPROCESS Process,
796 OUT WdkTypes::HANDLE* hProcess,
797 OPTIONAL ACCESS_MASK Access,
798 OPTIONAL ULONG Attributes,
799 OPTIONAL WdkTypes::KPROCESSOR_MODE ProcessorMode
800 ) {
801 if (!hProcess) return FALSE;
802 KB_OPEN_PROCESS_BY_POINTER_IN Input = {};
803 KB_OPEN_PROCESS_OUT Output = {};
804 Input.Process = Process;
805 Input.Access = Access;
806 Input.Attributes = Attributes;
807 Input.ProcessorMode = ProcessorMode;
808 BOOL Status = KbSendRequest(Ctls::KbOpenProcessByPointer, &Input, sizeof(Input), &Output, sizeof(Output));
809 *hProcess = Output.hProcess;
810 return Status;
811 }
812
813 BOOL WINAPI KbOpenThread(ULONG ThreadId, OUT WdkTypes::HANDLE* hThread, OPTIONAL ACCESS_MASK Access, OPTIONAL ULONG Attributes)
814 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected