| 229 | { |
| 230 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 231 | NTSTATUS QueryInformationProcess(HANDLE hProcess, PROCESSINFOCLASS ProcessInformationClass, OUT PVOID ProcessInformation, ULONG ProcessInformationLength, OUT PULONG ReturnLength) |
| 232 | { |
| 233 | using _ZwQueryInformationProcess = NTSTATUS (NTAPI*)(HANDLE hProcess, PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, ULONG ProcessInformationLength, OUT PULONG ReturnLength); |
| 234 | |
| 235 | static auto _QueryInformationProcess = static_cast<_ZwQueryInformationProcess>(Importer::GetKernelProcAddress(L"ZwQueryInformationProcess")); |
| 236 | if (_QueryInformationProcess) |
| 237 | _QueryInformationProcess(hProcess, ProcessInformationClass, ProcessInformation, ProcessInformationLength, ReturnLength); |
| 238 | |
| 239 | return STATUS_NOT_IMPLEMENTED; |
| 240 | } |
| 241 | |
| 242 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 243 | NTSTATUS SetInformationProcess(HANDLE hProcess, PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, ULONG ProcessInformationLength) |
no test coverage detected