| 179 | |
| 180 | _IRQL_requires_max_(APC_LEVEL) |
| 181 | NTSTATUS SuspendProcess(IN PEPROCESS Process) { |
| 182 | using _PsSuspendProcess = NTSTATUS (NTAPI*)( |
| 183 | IN PEPROCESS Process |
| 184 | ); |
| 185 | static auto _SuspendProcess = |
| 186 | static_cast<_PsSuspendProcess>(Importer::GetKernelProcAddress(L"PsSuspendProcess")); |
| 187 | return _SuspendProcess |
| 188 | ? _SuspendProcess(Process) |
| 189 | : STATUS_NOT_IMPLEMENTED; |
| 190 | } |
| 191 | |
| 192 | _IRQL_requires_max_(APC_LEVEL) |
| 193 | NTSTATUS ResumeProcess(IN PEPROCESS Process) { |
no test coverage detected