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

Function Is32BitProcess

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

Source from the content-addressed store, hash-verified

253
254 _IRQL_requires_max_(PASSIVE_LEVEL)
255 BOOLEAN Is32BitProcess(HANDLE hProcess)
256 {
257#ifdef _AMD64_
258 UINT64 IsWow64Process = 0;
259 ULONG ReturnLength = 0;
260
261 NTSTATUS Status = QueryInformationProcess(hProcess, ProcessWow64Information, &IsWow64Process, sizeof(IsWow64Process), &ReturnLength);
262 if (!NT_SUCCESS(Status) || !ReturnLength)
263 return FALSE;
264
265 return IsWow64Process != 0;
266#else
267 UNREFERENCED_PARAMETER(hProcess);
268 return TRUE;
269#endif
270 }
271 }
272
273 namespace MemoryManagement

Callers

nothing calls this directly

Calls 1

QueryInformationProcessFunction · 0.85

Tested by

no test coverage detected