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

Function KbGetEthread

User-Bridge/API/User-Bridge.cpp:770–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768 }
769
770 BOOL WINAPI KbGetEthread(ULONG ThreadId, OUT WdkTypes::PETHREAD* Thread)
771 {
772 if (!Thread) return FALSE;
773 KB_GET_ETHREAD_IN Input = {};
774 KB_GET_ETHREAD_OUT Output = {};
775 Input.ThreadId = ThreadId;
776 BOOL Status = KbSendRequest(Ctls::KbGetEthread, &Input, sizeof(Input), &Output, sizeof(Output));
777 *Thread = Output.Thread;
778 return Status;
779 }
780
781 BOOL WINAPI KbOpenProcess(ULONG ProcessId, OUT WdkTypes::HANDLE* hProcess, OPTIONAL ACCESS_MASK Access, OPTIONAL ULONG Attributes)
782 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected