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