- Implement IsWow64Process (based on Wine)

svn path=/trunk/; revision=37165
This commit is contained in:
Dmitry Chapyshev 2008-11-03 11:46:02 +00:00
parent 4edc51bc5a
commit b79ada3280

View file

@ -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;
}