mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
- Implement IsWow64Process (based on Wine)
svn path=/trunk/; revision=37165
This commit is contained in:
parent
4edc51bc5a
commit
b79ada3280
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue