| 1220 | namespace KernelShells |
| 1221 | { |
| 1222 | BOOL WINAPI KbExecuteShellCode(_ShellCode ShellCode, PVOID Argument, OUT OPTIONAL PULONG Result) |
| 1223 | { |
| 1224 | KB_EXECUTE_SHELL_CODE_IN Input = {}; |
| 1225 | KB_EXECUTE_SHELL_CODE_OUT Output = {}; |
| 1226 | Input.Address = reinterpret_cast<WdkTypes::PVOID>(ShellCode); |
| 1227 | Input.Argument = reinterpret_cast<WdkTypes::PVOID>(Argument); |
| 1228 | BOOL Status = KbSendRequest(Ctls::KbExecuteShellCode, &Input, sizeof(Input), &Output, sizeof(Output)); |
| 1229 | if (Result) *Result = Output.Result; |
| 1230 | return Status; |
| 1231 | } |
| 1232 | } |
| 1233 | |
| 1234 | namespace LoadableModules |
nothing calls this directly
no test coverage detected