WindowsRuntime.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "il2cpp-object-internals.h"
  3. #include "utils/StringView.h"
  4. namespace il2cpp
  5. {
  6. namespace os
  7. {
  8. class LIBIL2CPP_CODEGEN_API WindowsRuntime
  9. {
  10. public:
  11. static il2cpp_hresult_t GetActivationFactory(Il2CppHString className, Il2CppIActivationFactory** activationFactory);
  12. static il2cpp_hresult_t CreateHStringReference(const utils::StringView<Il2CppNativeChar>& str, Il2CppHStringHeader* header, Il2CppHString* hstring);
  13. static il2cpp_hresult_t CreateHString(const utils::StringView<Il2CppChar>& str, Il2CppHString* hstring);
  14. static il2cpp_hresult_t DeleteHString(Il2CppHString hstring);
  15. static const Il2CppChar* GetHStringBuffer(Il2CppHString hstring, uint32_t* length);
  16. static Il2CppString* HStringToManagedString(Il2CppHString hstring);
  17. static Il2CppIRestrictedErrorInfo* GetRestrictedErrorInfo();
  18. static void OriginateLanguageException(Il2CppException* ex, Il2CppString* exceptionString);
  19. static void EnableErrorReporting();
  20. };
  21. }
  22. }