| 241 | |
| 242 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 243 | NTSTATUS SetInformationProcess(HANDLE hProcess, PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, ULONG ProcessInformationLength) |
| 244 | { |
| 245 | using _ZwSetInformationProcess = NTSTATUS (NTAPI*)(HANDLE hProcess, PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, ULONG ProcessInformationLength); |
| 246 | |
| 247 | static auto _SetInformationProcess = static_cast<_ZwSetInformationProcess>(Importer::GetKernelProcAddress(L"ZwSetInformationProcess")); |
| 248 | if (_SetInformationProcess) |
| 249 | return _SetInformationProcess(hProcess, ProcessInformationClass, ProcessInformation, ProcessInformationLength); |
| 250 | |
| 251 | return STATUS_NOT_IMPLEMENTED; |
| 252 | } |
| 253 | |
| 254 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 255 | BOOLEAN Is32BitProcess(HANDLE hProcess) |
nothing calls this directly
no test coverage detected