mirror of
https://github.com/reactos/reactos
synced 2025-10-06 08:22:58 +02:00
- Implement IsWow64Process (based on Wine)
svn path=/trunk/; revision=37165
This commit is contained in:
@@ -532,7 +532,7 @@ IsSystemResumeAutomatic(
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
@@ -541,8 +541,22 @@ IsWow64Process(
|
||||
PBOOL Wow64Process
|
||||
)
|
||||
{
|
||||
STUB;
|
||||
*Wow64Process = FALSE;
|
||||
ULONG pbi;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtQueryInformationProcess(hProcess,
|
||||
ProcessWow64Information,
|
||||
&pbi,
|
||||
sizeof(pbi),
|
||||
NULL);
|
||||
|
||||
if (Status != STATUS_SUCCESS)
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
*Wow64Process = (pbi != 0);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user