| 824 | } |
| 825 | |
| 826 | BOOL WINAPI KbOpenThreadByPointer( |
| 827 | WdkTypes::PETHREAD Thread, |
| 828 | OUT WdkTypes::HANDLE* hThread, |
| 829 | OPTIONAL ACCESS_MASK Access, |
| 830 | OPTIONAL ULONG Attributes, |
| 831 | OPTIONAL WdkTypes::KPROCESSOR_MODE ProcessorMode |
| 832 | ) { |
| 833 | if (!hThread) return FALSE; |
| 834 | KB_OPEN_THREAD_BY_POINTER_IN Input = {}; |
| 835 | KB_OPEN_THREAD_OUT Output = {}; |
| 836 | Input.Thread = Thread; |
| 837 | Input.Access = Access; |
| 838 | Input.Attributes = Attributes; |
| 839 | Input.ProcessorMode = ProcessorMode; |
| 840 | BOOL Status = KbSendRequest(Ctls::KbOpenThreadByPointer, &Input, sizeof(Input), &Output, sizeof(Output)); |
| 841 | *hThread = Output.hThread; |
| 842 | return Status; |
| 843 | } |
| 844 | |
| 845 | BOOL WINAPI KbDereferenceObject(WdkTypes::PVOID Object) |
| 846 | { |
nothing calls this directly
no test coverage detected