MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / QueryInformationProcess

Function QueryInformationProcess

Source/Client/NM_Sys/API/ProcessesUtils.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

Is32BitProcessFunction · 0.85

Calls 1

GetKernelProcAddressFunction · 0.85

Tested by

no test coverage detected