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

Function Is32BitProcess

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

Source from the content-addressed store, hash-verified

364
365 _IRQL_requires_max_(PASSIVE_LEVEL)
366 BOOLEAN Is32BitProcess(HANDLE hProcess) {
367#ifdef _AMD64_
368 UINT64 IsWow64Process = 0;
369 ULONG ReturnLength = 0;
370 NTSTATUS Status = QueryInformationProcess(hProcess, ProcessWow64Information, &IsWow64Process, sizeof(IsWow64Process), &ReturnLength);
371 if (!NT_SUCCESS(Status) || !ReturnLength) return FALSE;
372 return IsWow64Process != 0;
373#else
374 UNREFERENCED_PARAMETER(hProcess);
375 return TRUE;
376#endif
377 }
378 }
379
380 namespace MemoryManagement {

Callers

nothing calls this directly

Calls 1

QueryInformationProcessFunction · 0.85

Tested by

no test coverage detected