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

Function SetInformationProcess

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

GetKernelProcAddressFunction · 0.85

Tested by

no test coverage detected