| 862 | namespace Information |
| 863 | { |
| 864 | BOOL WINAPI KbQueryInformationProcess( |
| 865 | WdkTypes::HANDLE hProcess, |
| 866 | NtTypes::PROCESSINFOCLASS ProcessInfoClass, |
| 867 | OUT PVOID Buffer, |
| 868 | ULONG Size, |
| 869 | OPTIONAL OUT PULONG ReturnLength |
| 870 | ) { |
| 871 | ULONG RetLength = 0; |
| 872 | KB_QUERY_INFORMATION_PROCESS_THREAD_IN Input = {}; |
| 873 | Input.Handle = hProcess; |
| 874 | Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(Buffer); |
| 875 | Input.ReturnLength = reinterpret_cast<WdkTypes::PVOID>(&RetLength); |
| 876 | Input.InfoClass = static_cast<ULONG>(ProcessInfoClass); |
| 877 | Input.Size = Size; |
| 878 | BOOL Status = KbSendRequest(Ctls::KbQueryInformationProcess, &Input, sizeof(Input)); |
| 879 | if (ReturnLength) *ReturnLength = RetLength; |
| 880 | return Status; |
| 881 | } |
| 882 | |
| 883 | BOOL WINAPI KbSetInformationProcess( |
| 884 | WdkTypes::HANDLE hProcess, |
nothing calls this directly
no test coverage detected