wow64apiset.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _WOW64APISET_H_
  6. #define _WOW64APISET_H_
  7. #include <apiset.h>
  8. #include <apisetcconv.h>
  9. #include <minwindef.h>
  10. #include <minwinbase.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  15. WINBASEAPI WINBOOL WINAPI Wow64DisableWow64FsRedirection (PVOID *OldValue);
  16. WINBASEAPI WINBOOL WINAPI Wow64RevertWow64FsRedirection (PVOID OlValue);
  17. WINBASEAPI UINT WINAPI GetSystemWow64DirectoryA (LPSTR lpBuffer, UINT uSize);
  18. WINBASEAPI UINT WINAPI GetSystemWow64DirectoryW (LPWSTR lpBuffer, UINT uSize);
  19. #define GetSystemWow64Directory __MINGW_NAME_AW(GetSystemWow64Directory)
  20. #if _WIN32_WINNT >= 0x0600
  21. WINBASEAPI WINBOOL WINAPI Wow64GetThreadContext (HANDLE hThread, PWOW64_CONTEXT lpContext);
  22. WINBASEAPI WINBOOL WINAPI Wow64SetThreadContext (HANDLE hThread, CONST WOW64_CONTEXT *lpContext);
  23. WINBASEAPI DWORD WINAPI Wow64SuspendThread (HANDLE hThread);
  24. #endif
  25. #if _WIN32_WINNT >= 0x0A00
  26. WINBASEAPI USHORT WINAPI Wow64SetThreadDefaultGuestMachine (USHORT Machine);
  27. WINBASEAPI UINT WINAPI GetSystemWow64Directory2A (LPSTR lpBuffer, UINT uSize, WORD ImageFileMachineType);
  28. WINBASEAPI UINT WINAPI GetSystemWow64Directory2W (LPWSTR lpBuffer, UINT uSize, WORD ImageFileMachineType);
  29. #define GetSystemWow64Directory2 __MINGW_NAME_AW(GetSystemWow64Directory2)
  30. WINBASEAPI HRESULT WINAPI IsWow64GuestMachineSupported (USHORT WowGuestMachine, WINBOOL *MachineIsSupported);
  31. #endif
  32. #endif /* WINAPI_PARTITION_DESKTOP */
  33. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
  34. WINBASEAPI WINBOOL WINAPI IsWow64Process (HANDLE hProcess, PBOOL Wow64Process);
  35. #if _WIN32_WINNT >= 0x0A00
  36. WINBASEAPI WINBOOL WINAPI IsWow64Process2 (HANDLE hProcess, USHORT *pProcessMachine, USHORT *pNativeMachine);
  37. #endif
  38. #endif /* WINAPI_PARTITION_APP */
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif