MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / SetInformationProcess

Function SetInformationProcess

Kernel-Bridge/API/ProcessesUtils.cpp:341–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

KbSetInformationProcessFunction · 0.85

Calls 1

GetKernelProcAddressFunction · 0.70

Tested by

no test coverage detected