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

Function KbOpenThread

User-Bridge/API/User-Bridge.cpp:813–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 }
812
813 BOOL WINAPI KbOpenThread(ULONG ThreadId, OUT WdkTypes::HANDLE* hThread, OPTIONAL ACCESS_MASK Access, OPTIONAL ULONG Attributes)
814 {
815 if (!hThread) return FALSE;
816 KB_OPEN_THREAD_IN Input = {};
817 KB_OPEN_THREAD_OUT Output = {};
818 Input.ThreadId = ThreadId;
819 Input.Access = Access;
820 Input.Attributes = Attributes;
821 BOOL Status = KbSendRequest(Ctls::KbOpenThread, &Input, sizeof(Input), &Output, sizeof(Output));
822 *hThread = Output.hThread;
823 return Status;
824 }
825
826 BOOL WINAPI KbOpenThreadByPointer(
827 WdkTypes::PETHREAD Thread,

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected