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