Add missing WinRT bindings
このコミットが含まれているのは:
1 親
6f42a3039f
コミット
2611e9b1d1
5ファイル変更
+65
検索条件に一致するファイルはありません
@@ -57,6 +57,7 @@
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\TerraFX.Interop.Windows\DirectX\um\d3dcommon\D3D_TESSELLATOR_DOMAIN.cs" Link="DirectX\um\d3dcommon\D3D_TESSELLATOR_DOMAIN.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d3d11shader\ID3D11ShaderReflection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\dcommon\D2D_VECTOR_2F.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\other\helper-types\HSTRING.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\shared\uuids\Windows.Manual.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)WinRT\um\windows.graphics.directx.direct3d11.interop\IDirect3DDxgiInterfaceAccess.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\TerraFX.Interop.Windows\ComPtr`1.cs" Link="ComPtr`1.cs" />
|
||||
@@ -73,5 +74,8 @@
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\shared\winerror\E.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\shared\winerror\RO.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\shared\winerror\Windows.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)WinRT\winrt\hstring\HSTRING_HEADER.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)WinRT\winrt\roapi\WinRT.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)WinRT\winrt\winstring\WinRT.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
|
||||
|
||||
// Ported from winrt/hstring.h in the Windows SDK for Windows 10.0.22621.0
|
||||
// Original source is Copyright © Microsoft. All rights reserved.
|
||||
|
||||
namespace TerraFX.Interop.WinRT;
|
||||
|
||||
internal partial struct HSTRING_HEADER
|
||||
{
|
||||
[NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/winrt/hstring.h:80:5)")]
|
||||
public _Reserved_e__Union Reserved;
|
||||
|
||||
public unsafe partial struct _Reserved_e__Union
|
||||
{
|
||||
internal fixed byte Reserved1[24];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
|
||||
|
||||
// Ported from winrt/roapi.h in the Windows SDK for Windows 10.0.22621.0
|
||||
// Original source is Copyright © Microsoft. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace TerraFX.Interop.WinRT;
|
||||
|
||||
internal static unsafe partial class WinRT
|
||||
{
|
||||
[DllImport("combase", ExactSpelling = true)]
|
||||
public static extern HRESULT RoGetActivationFactory(HSTRING activatableClassId, [NativeTypeName("const IID &")] Guid* iid, void** factory);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
|
||||
|
||||
// Ported from winrt/winstring.h in the Windows SDK for Windows 10.0.22621.0
|
||||
// Original source is Copyright © Microsoft. All rights reserved.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace TerraFX.Interop.WinRT;
|
||||
|
||||
internal static unsafe partial class WinRT
|
||||
{
|
||||
[DllImport("combase", ExactSpelling = true)]
|
||||
public static extern HRESULT WindowsCreateStringReference([NativeTypeName("PCWSTR")] ushort* sourceString, [NativeTypeName("UINT32")] uint length, HSTRING_HEADER* hstringHeader, HSTRING* @string);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
|
||||
|
||||
namespace TerraFX.Interop.WinRT;
|
||||
|
||||
internal readonly unsafe partial struct HSTRING
|
||||
{
|
||||
public readonly void* Value;
|
||||
|
||||
public HSTRING(void* value)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする