少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
 
#include "il2cpp-windowsruntime-types.h"
#include "utils/StringView.h"
 
namespace il2cpp
{
namespace os
{
    class LIBIL2CPP_CODEGEN_API WindowsRuntime
    {
    public:
        static il2cpp_hresult_t GetActivationFactory(Il2CppHString className, Il2CppIActivationFactory** activationFactory);
 
        static il2cpp_hresult_t CreateHStringReference(const utils::StringView<Il2CppNativeChar>& str, Il2CppHStringHeader* header, Il2CppHString* hstring);
        static il2cpp_hresult_t CreateHString(const utils::StringView<Il2CppChar>& str, Il2CppHString* hstring);
#if !IL2CPP_TARGET_WINDOWS // Il2CppChar and Il2CppNativeChar are the same on Windows
        static il2cpp_hresult_t CreateHString(const utils::StringView<Il2CppNativeChar>& str, Il2CppHString* hstring);
#endif
        static il2cpp_hresult_t DuplicateHString(Il2CppHString hstring, Il2CppHString* duplicated);
        static il2cpp_hresult_t DeleteHString(Il2CppHString hstring);
 
        static const Il2CppChar* GetHStringBuffer(Il2CppHString hstring, uint32_t* length);
        static const Il2CppNativeChar* GetNativeHStringBuffer(Il2CppHString hstring, uint32_t* length);
        static Il2CppString* HStringToManagedString(Il2CppHString hstring);
 
        static il2cpp_hresult_t PreallocateHStringBuffer(uint32_t length, Il2CppNativeChar** mutableBuffer, void** bufferHandle);
        static il2cpp_hresult_t PromoteHStringBuffer(void* bufferHandle, Il2CppHString* hstring);
        static il2cpp_hresult_t DeleteHStringBuffer(void* bufferHandle);
 
        static Il2CppIRestrictedErrorInfo* GetRestrictedErrorInfo();
        static void OriginateLanguageException(Il2CppException* ex, Il2CppString* exceptionString);
 
        static void EnableErrorReporting();
    };
}
}