| 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, |
nothing calls this directly
no test coverage detected