42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
|
/*
|
||
|
* WoW64 private definitions
|
||
|
*
|
||
|
* Copyright 2021 Alexandre Julliard
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||
|
*/
|
||
|
|
||
|
#ifndef __WOW64_PRIVATE_H
|
||
|
#define __WOW64_PRIVATE_H
|
||
|
|
||
|
extern USHORT native_machine DECLSPEC_HIDDEN;
|
||
|
extern USHORT current_machine DECLSPEC_HIDDEN;
|
||
|
|
||
|
/* cf. GetSystemWow64Directory2 */
|
||
|
static inline const WCHAR *get_machine_wow64_dir( USHORT machine )
|
||
|
{
|
||
|
switch (machine)
|
||
|
{
|
||
|
case IMAGE_FILE_MACHINE_TARGET_HOST: return L"\\??\\C:\\windows\\system32";
|
||
|
case IMAGE_FILE_MACHINE_I386: return L"\\??\\C:\\windows\\syswow64";
|
||
|
case IMAGE_FILE_MACHINE_ARMNT: return L"\\??\\C:\\windows\\sysarm32";
|
||
|
case IMAGE_FILE_MACHINE_AMD64: return L"\\??\\C:\\windows\\sysx8664";
|
||
|
case IMAGE_FILE_MACHINE_ARM64: return L"\\??\\C:\\windows\\sysarm64";
|
||
|
default: return NULL;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif /* __WOW64_PRIVATE_H */
|