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

Function KbQueryInformationThread

User-Bridge/API/User-Bridge.cpp:897–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895 }
896
897 BOOL WINAPI KbQueryInformationThread(
898 WdkTypes::HANDLE hThread,
899 NtTypes::THREADINFOCLASS ThreadInfoClass,
900 OUT PVOID Buffer,
901 ULONG Size,
902 OPTIONAL OUT PULONG ReturnLength
903 ) {
904 ULONG RetLength = 0;
905 KB_QUERY_INFORMATION_PROCESS_THREAD_IN Input = {};
906 Input.Handle = hThread;
907 Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(Buffer);
908 Input.ReturnLength = reinterpret_cast<WdkTypes::PVOID>(&RetLength);
909 Input.InfoClass = static_cast<ULONG>(ThreadInfoClass);
910 Input.Size = Size;
911 BOOL Status = KbSendRequest(Ctls::KbQueryInformationThread, &Input, sizeof(Input));
912 if (ReturnLength) *ReturnLength = RetLength;
913 return Status;
914 }
915
916 BOOL WINAPI KbSetInformationThread(
917 WdkTypes::HANDLE hThread,

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected