| 339 | |
| 340 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 341 | NTSTATUS SetInformationProcess( |
| 342 | HANDLE hProcess, |
| 343 | PROCESSINFOCLASS ProcessInformationClass, |
| 344 | IN PVOID ProcessInformation, |
| 345 | ULONG ProcessInformationLength |
| 346 | ) { |
| 347 | using _ZwSetInformationProcess = NTSTATUS (NTAPI*)( |
| 348 | HANDLE hProcess, |
| 349 | PROCESSINFOCLASS ProcessInformationClass, |
| 350 | IN PVOID ProcessInformation, |
| 351 | ULONG ProcessInformationLength |
| 352 | ); |
| 353 | static auto _SetInformationProcess = |
| 354 | static_cast<_ZwSetInformationProcess>(Importer::GetKernelProcAddress(L"ZwSetInformationProcess")); |
| 355 | return _SetInformationProcess |
| 356 | ? _SetInformationProcess( |
| 357 | hProcess, |
| 358 | ProcessInformationClass, |
| 359 | ProcessInformation, |
| 360 | ProcessInformationLength |
| 361 | ) |
| 362 | : STATUS_NOT_IMPLEMENTED; |
| 363 | } |
| 364 | |
| 365 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 366 | BOOLEAN Is32BitProcess(HANDLE hProcess) { |
no test coverage detected