| 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 { |
nothing calls this directly
no test coverage detected