| 96 | } |
| 97 | |
| 98 | bool CProcess::Suspend() |
| 99 | { |
| 100 | typedef NTSTATUS(WINAPI*_NtSuspendProcess)(HANDLE); |
| 101 | static _NtSuspendProcess __NtSuspendProcess = reinterpret_cast<_NtSuspendProcess>(GetProcAddress(GetModuleHandleA("ntdll.dll"), "NtSuspendProcess")); |
| 102 | if (!__NtSuspendProcess) |
| 103 | return false; |
| 104 | __NtSuspendProcess(this->hProcess); |
| 105 | return true; |
| 106 | } |
| 107 | |
| 108 | bool CProcess::Resume() |
| 109 | { |
nothing calls this directly
no outgoing calls
no test coverage detected