mirror of
https://github.com/reactos/reactos.git
synced 2025-07-07 12:17:55 +00:00
- Implement IsWow64Process (based on Wine)
svn path=/trunk/; revision=37165
This commit is contained in:
parent
4edc51bc5a
commit
b79ada3280
1 changed files with 17 additions and 3 deletions
|
@ -532,7 +532,7 @@ IsSystemResumeAutomatic(
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -541,8 +541,22 @@ IsWow64Process(
|
||||||
PBOOL Wow64Process
|
PBOOL Wow64Process
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
STUB;
|
ULONG pbi;
|
||||||
*Wow64Process = FALSE;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
Status = NtQueryInformationProcess(hProcess,
|
||||||
|
ProcessWow64Information,
|
||||||
|
&pbi,
|
||||||
|
sizeof(pbi),
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
if (Status != STATUS_SUCCESS)
|
||||||
|
{
|
||||||
|
SetLastError(RtlNtStatusToDosError(Status));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
*Wow64Process = (pbi != 0);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue