![]() |
|
#3
|
||||
|
||||
|
Perhaps try this.. might prove more accurate:
Code:
/*
* PsIsProcess32bit
*
* Purpose:
*
* Return TRUE if process is wow64.
*
*/
BOOL PsIsProcess32bit(
_In_ HANDLE hProcess
)
{
NTSTATUS Status;
PROCESS_EXTENDED_BASIC_INFORMATION pebi{};
if (hProcess == NULL) {
return FALSE;
}
RtlSecureZeroMemory(&pebi, sizeof(pebi));
pebi.Size = sizeof(PROCESS_EXTENDED_BASIC_INFORMATION);
Status = NtQueryInformationProcess(hProcess, ProcessBasicInformation, &pebi, sizeof(pebi), NULL);
if (NT_SUCCESS(Status)) {
return (pebi.IsWow64Process == 1);
}
return FALSE;
}
Quote:
__________________
Pax in vultu, bellum in corde. -- https://github.com/Fyyre |
| The Following User Gave Reputation+1 to Fyyre For This Useful Post: | ||
user1 (10-30-2022) | ||
| The Following 4 Users Say Thank You to Fyyre For This Useful Post: | ||
MarcElBichon (10-29-2022), Teerayoot (02-15-2025), tonyweb (10-29-2022), user1 (10-30-2022) | ||
| Tags |
| .net, c++, cli, x64 |
| Thread Tools | |
| Display Modes | |
|
|