No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WindowsHelpers.h 872B

123456789101112131415161718192021222324252627282930313233343536
  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_WINDOWS_GAMES
  9. #include "os/WindowsGames/Win32ApiWindowsGamesEmulation.h"
  10. #endif
  11. #if IL2CPP_TARGET_WINRT
  12. #include "os/WinRT/Win32ApiSharedEmulation.h"
  13. #endif
  14. #include <vector>
  15. namespace il2cpp
  16. {
  17. namespace os
  18. {
  19. namespace win
  20. {
  21. // Wait for a release of the given handle in way that can be interrupted by APCs.
  22. WaitStatus WaitForSingleObjectAndAccountForAPCs(HANDLE handle, uint32_t ms, bool interruptible);
  23. int32_t WaitForAnyObjectAndAccountForAPCs(const std::vector<HANDLE>& handles, uint32_t ms, bool interruptible);
  24. bool WaitForAllObjectsAndAccountForAPCs(const std::vector<HANDLE>& handles, uint32_t ms, bool interruptible);
  25. }
  26. }
  27. }
  28. #endif // IL2CPP_TARGET_WINDOWS