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

Function KbOpenThreadByPointer

User-Bridge/API/User-Bridge.cpp:826–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824 }
825
826 BOOL WINAPI KbOpenThreadByPointer(
827 WdkTypes::PETHREAD Thread,
828 OUT WdkTypes::HANDLE* hThread,
829 OPTIONAL ACCESS_MASK Access,
830 OPTIONAL ULONG Attributes,
831 OPTIONAL WdkTypes::KPROCESSOR_MODE ProcessorMode
832 ) {
833 if (!hThread) return FALSE;
834 KB_OPEN_THREAD_BY_POINTER_IN Input = {};
835 KB_OPEN_THREAD_OUT Output = {};
836 Input.Thread = Thread;
837 Input.Access = Access;
838 Input.Attributes = Attributes;
839 Input.ProcessorMode = ProcessorMode;
840 BOOL Status = KbSendRequest(Ctls::KbOpenThreadByPointer, &Input, sizeof(Input), &Output, sizeof(Output));
841 *hThread = Output.hThread;
842 return Status;
843 }
844
845 BOOL WINAPI KbDereferenceObject(WdkTypes::PVOID Object)
846 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected