WindowsHelpers.h 629 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #if IL2CPP_TARGET_WINDOWS
  3. #include "WindowsHeaders.h"
  4. #include "os/WaitStatus.h"
  5. #if IL2CPP_TARGET_WINRT
  6. #include "os/WinRT/Win32ApiWinRTEmulation.h"
  7. #endif
  8. #if IL2CPP_TARGET_XBOXONE
  9. #include "os/XboxOne/Win32ApiXboxEmulation.h"
  10. #endif
  11. #if IL2CPP_TARGET_WINRT || IL2CPP_TARGET_XBOXONE
  12. #include "os/WinRT/Win32ApiSharedEmulation.h"
  13. #endif
  14. namespace il2cpp
  15. {
  16. namespace os
  17. {
  18. namespace win
  19. {
  20. // Wait for a release of the given handle in way that can be interrupted by APCs.
  21. WaitStatus WaitForSingleObjectAndAccountForAPCs(HANDLE handle, uint32_t ms, bool interruptible);
  22. }
  23. }
  24. }
  25. #endif // IL2CPP_TARGET_WINDOWS