kernel32: Implement IsWow64Process.

This commit is contained in:
Anatoly Lyutin 2008-03-21 18:36:01 +03:00 committed by Alexandre Julliard
parent 549f7c91b4
commit f773e148b0
1 changed files with 11 additions and 2 deletions

View File

@ -2928,8 +2928,17 @@ DWORD WINAPI RegisterServiceProcess(DWORD dwProcessId, DWORD dwType)
*/
BOOL WINAPI IsWow64Process(HANDLE hProcess, PBOOL Wow64Process)
{
FIXME("(%p %p) stub!\n", hProcess, Wow64Process);
*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;
}