Add missing TerraFX API to make ComputeSharp compile

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-16 10:15:00 +01:00
1 親 1a5bf7c0e5
コミット 22a12e0e5d
15ファイル変更
+7888 -1

検索条件に一致するファイルはありません

+5 -1
ファイルの表示
@@ -1,4 +1,6 @@
using System;
#if false
using System;
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.Toolkit.Diagnostics;
@@ -67,3 +69,5 @@ internal sealed unsafe partial class ShaderCompiler
};
}
}
#endif
+322
ファイルの表示
@@ -0,0 +1,322 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from winrt/wrl/client.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using static TerraFX.Interop.Windows.S;
using static TerraFX.Interop.Windows.Windows;
namespace TerraFX.Interop.Windows
{
/// <summary>A type that allows working with pointers to COM objects more securely.</summary>
/// <typeparam name="T">The type to wrap in the current <see cref="ComPtr{T}"/> instance.</typeparam>
/// <remarks>While this type is not marked as <see langword="ref"/> so that it can also be used in fields, make sure to keep the reference counts properly tracked if you do store <see cref="ComPtr{T}"/> instances on the heap.</remarks>
public unsafe struct ComPtr<T> : IDisposable
where T : unmanaged, IUnknown.Interface
{
/// <summary>The raw pointer to a COM object, if existing.</summary>
private T* ptr_;
/// <summary>Creates a new <see cref="ComPtr{T}"/> instance from a raw pointer and increments the ref count.</summary>
/// <param name="other">The raw pointer to wrap.</param>
public ComPtr(T* other)
{
ptr_ = other;
InternalAddRef();
}
/// <summary>Creates a new <see cref="ComPtr{T}"/> instance from a second one and increments the ref count.</summary>
/// <param name="other">The other <see cref="ComPtr{T}"/> instance to copy.</param>
public ComPtr(ComPtr<T> other)
{
ptr_ = other.ptr_;
InternalAddRef();
}
/// <summary>Converts a raw pointer to a new <see cref="ComPtr{T}"/> instance and increments the ref count.</summary>
/// <param name="other">The raw pointer to wrap.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator ComPtr<T>(T* other)
=> new ComPtr<T>(other);
/// <summary>Unwraps a <see cref="ComPtr{T}"/> instance and returns the internal raw pointer.</summary>
/// <param name="other">The <see cref="ComPtr{T}"/> instance to unwrap.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator T*(ComPtr<T> other)
=> other.Get();
/// <summary>Converts the current object reference to type <typeparamref name="U"/> and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <typeparam name="U">The interface type to use to try casting the current COM object.</typeparam>
/// <param name="p">A raw pointer to the target <see cref="ComPtr{T}"/> value to write to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target type <typeparamref name="U"/>.</returns>
/// <remarks>This method will automatically release the target COM object pointed to by <paramref name="p"/>, if any.</remarks>
public readonly HRESULT As<U>(ComPtr<U>* p)
where U : unmanaged, IUnknown.Interface
{
return ptr_->QueryInterface(__uuidof<U>(), (void**)p->ReleaseAndGetAddressOf());
}
/// <summary>Converts the current object reference to type <typeparamref name="U"/> and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <typeparam name="U">The interface type to use to try casting the current COM object.</typeparam>
/// <param name="other">A reference to the target <see cref="ComPtr{T}"/> value to write to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target type <typeparamref name="U"/>.</returns>
/// <remarks>This method will automatically release the target COM object pointed to by <paramref name="other"/>, if any.</remarks>
public readonly HRESULT As<U>(ref ComPtr<U> other)
where U : unmanaged, IUnknown.Interface
{
U* ptr;
HRESULT result = ptr_->QueryInterface(__uuidof<U>(), (void**)&ptr);
other.Attach(ptr);
return result;
}
/// <summary>Converts the current object reference to a type indicated by the given IID and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <param name="riid">The IID indicating the interface type to convert the COM object reference to.</param>
/// <param name="other">A raw pointer to the target <see cref="ComPtr{T}"/> value to write to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target IID.</returns>
/// <remarks>This method will automatically release the target COM object pointed to by <paramref name="other"/>, if any.</remarks>
public readonly HRESULT AsIID(Guid* riid, ComPtr<IUnknown>* other)
{
return ptr_->QueryInterface(riid, (void**)other->ReleaseAndGetAddressOf());
}
/// <summary>Converts the current object reference to a type indicated by the given IID and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <param name="riid">The IID indicating the interface type to convert the COM object reference to.</param>
/// <param name="other">A reference to the target <see cref="ComPtr{T}"/> value to write to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target IID.</returns>
/// <remarks>This method will automatically release the target COM object pointed to by <paramref name="other"/>, if any.</remarks>
public readonly HRESULT AsIID(Guid* riid, ref ComPtr<IUnknown> other)
{
IUnknown* ptr;
HRESULT result = ptr_->QueryInterface(riid, (void**)&ptr);
other.Attach(ptr);
return result;
}
/// <summary>Releases the current COM object, if any, and replaces the internal pointer with an input raw pointer.</summary>
/// <param name="other">The input raw pointer to wrap.</param>
/// <remarks>This method will release the current raw pointer, if any, but it will not increment the references for <paramref name="other"/>.</remarks>
public void Attach(T* other)
{
if (ptr_ != null)
{
var @ref = ptr_->Release();
Debug.Assert((@ref != 0) || (ptr_ != other));
}
ptr_ = other;
}
/// <summary>Returns the raw pointer wrapped by the current instance, and resets the current <see cref="ComPtr{T}"/> value.</summary>
/// <returns>The raw pointer wrapped by the current <see cref="ComPtr{T}"/> value.</returns>
/// <remarks>This method will not change the reference count for the COM object in use.</remarks>
public T* Detach()
{
T* ptr = ptr_;
ptr_ = null;
return ptr;
}
/// <summary>Increments the reference count for the current COM object, if any, and copies its address to a target raw pointer.</summary>
/// <param name="ptr">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>This method always returns <see cref="S_OK"/>.</returns>
public readonly HRESULT CopyTo(T** ptr)
{
InternalAddRef();
*ptr = ptr_;
return S_OK;
}
/// <summary>Increments the reference count for the current COM object, if any, and copies its address to a target <see cref="ComPtr{T}"/>.</summary>
/// <param name="p">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>This method always returns <see cref="S_OK"/>.</returns>
public readonly HRESULT CopyTo(ComPtr<T>* p)
{
InternalAddRef();
*p->ReleaseAndGetAddressOf() = ptr_;
return S_OK;
}
/// <summary>Increments the reference count for the current COM object, if any, and copies its address to a target <see cref="ComPtr{T}"/>.</summary>
/// <param name="other">The target reference to copy the address of the current COM object to.</param>
/// <returns>This method always returns <see cref="S_OK"/>.</returns>
public readonly HRESULT CopyTo(ref ComPtr<T> other)
{
InternalAddRef();
other.Attach(ptr_);
return S_OK;
}
/// <summary>Converts the current COM object reference to a given interface type and assigns that to a target raw pointer.</summary>
/// <param name="ptr">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target type <typeparamref name="U"/>.</returns>
public readonly HRESULT CopyTo<U>(U** ptr)
where U : unmanaged, IUnknown.Interface
{
return ptr_->QueryInterface(__uuidof<U>(), (void**)ptr);
}
/// <summary>Converts the current COM object reference to a given interface type and assigns that to a target <see cref="ComPtr{T}"/>.</summary>
/// <param name="p">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target type <typeparamref name="U"/>.</returns>
public readonly HRESULT CopyTo<U>(ComPtr<U>* p)
where U : unmanaged, IUnknown.Interface
{
return ptr_->QueryInterface(__uuidof<U>(), (void**)p->ReleaseAndGetAddressOf());
}
/// <summary>Converts the current COM object reference to a given interface type and assigns that to a target <see cref="ComPtr{T}"/>.</summary>
/// <param name="other">The target reference to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target type <typeparamref name="U"/>.</returns>
public readonly HRESULT CopyTo<U>(ref ComPtr<U> other)
where U : unmanaged, IUnknown.Interface
{
U* ptr;
HRESULT result = ptr_->QueryInterface(__uuidof<U>(), (void**)&ptr);
other.Attach(ptr);
return result;
}
/// <summary>Converts the current object reference to a type indicated by the given IID and assigns that to a target address.</summary>
/// <param name="riid">The IID indicating the interface type to convert the COM object reference to.</param>
/// <param name="ptr">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target IID.</returns>
public readonly HRESULT CopyTo(Guid* riid, void** ptr)
{
return ptr_->QueryInterface(riid, ptr);
}
/// <summary>Converts the current object reference to a type indicated by the given IID and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <param name="riid">The IID indicating the interface type to convert the COM object reference to.</param>
/// <param name="p">The target raw pointer to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target IID.</returns>
public readonly HRESULT CopyTo(Guid* riid, ComPtr<IUnknown>* p)
{
return ptr_->QueryInterface(riid, (void**)p->ReleaseAndGetAddressOf());
}
/// <summary>Converts the current object reference to a type indicated by the given IID and assigns that to a target <see cref="ComPtr{T}"/> value.</summary>
/// <param name="riid">The IID indicating the interface type to convert the COM object reference to.</param>
/// <param name="other">The target reference to copy the address of the current COM object to.</param>
/// <returns>The result of <see cref="IUnknown.QueryInterface"/> for the target IID.</returns>
public readonly HRESULT CopyTo(Guid* riid, ref ComPtr<IUnknown> other)
{
IUnknown* ptr;
HRESULT result = ptr_->QueryInterface(riid, (void**)&ptr);
other.Attach(ptr);
return result;
}
/// <inheritdoc/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Dispose()
{
T* pointer = ptr_;
if (pointer != null)
{
ptr_ = null;
_ = pointer->Release();
}
}
/// <summary>Gets the currently wrapped raw pointer to a COM object.</summary>
/// <returns>The raw pointer wrapped by the current <see cref="ComPtr{T}"/> instance.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly T* Get()
{
return ptr_;
}
/// <summary>Gets the address of the current <see cref="ComPtr{T}"/> instance as a raw <typeparamref name="T"/> double pointer. This method is only valid when the current <see cref="ComPtr{T}"/> instance is on the stack or pinned.
/// </summary>
/// <returns>The raw pointer to the current <see cref="ComPtr{T}"/> instance.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly T** GetAddressOf()
{
return (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
}
/// <summary>Gets the address of the current <see cref="ComPtr{T}"/> instance as a raw <typeparamref name="T"/> double pointer.</summary>
/// <returns>The raw pointer to the current <see cref="ComPtr{T}"/> instance.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[EditorBrowsable(EditorBrowsableState.Never)]
public readonly ref T* GetPinnableReference()
{
fixed (T** ptr = &ptr_)
{
return ref *ptr;
}
}
/// <summary>Releases the current COM object in use and gets the address of the <see cref="ComPtr{T}"/> instance as a raw <typeparamref name="T"/> double pointer. This method is only valid when the current <see cref="ComPtr{T}"/> instance is on the stack or pinned.</summary>
/// <returns>The raw pointer to the current <see cref="ComPtr{T}"/> instance.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public T** ReleaseAndGetAddressOf()
{
_ = InternalRelease();
return GetAddressOf();
}
/// <summary>Resets the current instance by decrementing the reference count for the target COM object and setting the internal raw pointer to <see langword="null"/>.</summary>
/// <returns>The updated reference count for the COM object that was in use, if any.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public uint Reset()
{
return InternalRelease();
}
/// <summary>Swaps the current COM object reference with that of a given <see cref="ComPtr{T}"/> instance.</summary>
/// <param name="r">The target <see cref="ComPtr{T}"/> instance to swap with the current one.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Swap(ComPtr<T>* r)
{
T* tmp = ptr_;
ptr_ = r->ptr_;
r->ptr_ = tmp;
}
/// <summary>Swaps the current COM object reference with that of a given <see cref="ComPtr{T}"/> instance.</summary>
/// <param name="other">The target <see cref="ComPtr{T}"/> instance to swap with the current one.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Swap(ref ComPtr<T> other)
{
T* tmp = ptr_;
ptr_ = other.ptr_;
other.ptr_ = tmp;
}
// Increments the reference count for the current COM object, if any
private readonly void InternalAddRef()
{
T* temp = ptr_;
if (temp != null)
{
_ = temp->AddRef();
}
}
// Decrements the reference count for the current COM object, if any
private uint InternalRelease()
{
uint @ref = 0;
T* temp = ptr_;
if (temp != null)
{
ptr_ = null;
@ref = temp->Release();
}
return @ref;
}
}
}
+13
ファイルの表示
@@ -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.
// Ported from shared/dxgi1_3.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX
{
public static partial class DXGI
{
[NativeTypeName("#define DXGI_CREATE_FACTORY_DEBUG 0x1")]
public const int DXGI_CREATE_FACTORY_DEBUG = 0x1;
}
}
+23
ファイルの表示
@@ -0,0 +1,23 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from shared/dxgi1_3.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using TerraFX.Interop.Windows;
namespace TerraFX.Interop.DirectX
{
public static unsafe partial class DirectX
{
[SupportedOSPlatform("windows8.1")]
[DllImport("dxgi", ExactSpelling = true)]
public static extern HRESULT CreateDXGIFactory2(uint Flags, [NativeTypeName("const IID &")] Guid* riid, void** ppFactory);
[SupportedOSPlatform("windows8.1")]
[DllImport("dxgi", ExactSpelling = true)]
public static extern HRESULT DXGIGetDebugInterface1(uint Flags, [NativeTypeName("const IID &")] Guid* riid, void** pDebug);
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+115
ファイルの表示
@@ -0,0 +1,115 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
namespace TerraFX.Interop.DirectX
{
public static unsafe partial class DirectX
{
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12SerializeRootSignature([NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *")] D3D12_ROOT_SIGNATURE_DESC* pRootSignature, D3D_ROOT_SIGNATURE_VERSION Version, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12CreateRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12SerializeVersionedRootSignature([NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12CreateVersionedRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12CreateDevice(IUnknown* pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [NativeTypeName("const IID &")] Guid* riid, void** ppDevice);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12GetDebugInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvDebug);
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12EnableExperimentalFeatures(uint NumFeatures, [NativeTypeName("const IID *")] Guid* pIIDs, void* pConfigurationStructs, uint* pConfigurationStructSizes);
[NativeTypeName("const UUID")]
public static ref readonly Guid D3D12ExperimentalShaderModels
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x3E, 0x57, 0xF5, 0x76,
0x3A, 0xF1,
0xF5, 0x40,
0xB2,
0x97,
0x81,
0xCE,
0x9E,
0x18,
0x93,
0x3F
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const UUID")]
public static ref readonly Guid D3D12TiledResourceTier4
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x5F, 0x72, 0xC4, 0xC9,
0x1A, 0xA8,
0x56, 0x4F,
0x8C,
0x5B,
0xC5,
0x10,
0x39,
0xD6,
0x94,
0xFB
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const UUID")]
public static ref readonly Guid D3D12MetaCommand
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x7E, 0xC9, 0x34, 0xC7,
0x77, 0x80,
0xC8, 0x48,
0x9F,
0xDC,
0xD9,
0xD1,
0xDD,
0x31,
0xDD,
0x77
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[DllImport("d3d12", ExactSpelling = true)]
public static extern HRESULT D3D12GetInterface([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, void** ppvDebug);
}
}
+268
ファイルの表示
@@ -0,0 +1,268 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/dxcapi.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved. Licensed under the University of Illinois Open Source License.
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace TerraFX.Interop.Windows
{
public static partial class CLSID
{
[NativeTypeName("const CLSID")]
public static ref readonly Guid CLSID_DxcCompiler
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x93, 0x2D, 0xE2, 0x73,
0xCE, 0xE6,
0xF3, 0x47,
0xB5,
0xBF,
0xF0,
0x66,
0x4F,
0x39,
0xC1,
0xB0
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcLinker
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x87, 0x80, 0x6A, 0xEF,
0xEA, 0xB0,
0x56, 0x4D,
0x9E,
0x45,
0xD0,
0x7E,
0x1A,
0x8B,
0x78,
0x06
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const CLSID")]
public static ref readonly Guid CLSID_DxcDiaDataSource
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x73, 0x6B, 0x1F, 0xCD,
0xB0, 0x2A,
0x4D, 0x48,
0x8E,
0xDC,
0xEB,
0xE7,
0xA4,
0x3C,
0xA0,
0x9F
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const CLSID")]
public static ref readonly Guid CLSID_DxcCompilerArgs
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x82, 0xAE, 0x56, 0x3E,
0x4D, 0x22,
0x0F, 0x47,
0xA1,
0xA1,
0xFE,
0x30,
0x16,
0xEE,
0x9F,
0x9D
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcLibrary
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xAF, 0xD6, 0x45, 0x62,
0xE0, 0x66,
0xFD, 0x48,
0x80,
0xB4,
0x4D,
0x27,
0x17,
0x96,
0x74,
0x8C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcUtils => ref CLSID_DxcLibrary;
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcValidator
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x15, 0xE2, 0xA3, 0x8C,
0x28, 0xF7,
0xF3, 0x4C,
0x8C,
0xDD,
0x88,
0xAF,
0x91,
0x75,
0x87,
0xA1
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcAssembler
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x68, 0xDB, 0x28, 0xD7,
0x03, 0xF9,
0x80, 0x4F,
0x94,
0xCD,
0xDC,
0xCF,
0x76,
0xEC,
0x71,
0x51
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcContainerReflection
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x89, 0x44, 0xF5, 0xB9,
0xB8, 0x55,
0x0C, 0x40,
0xBA,
0x3A,
0x16,
0x75,
0xE4,
0x72,
0x8B,
0x91
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcOptimizer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x9F, 0xD7, 0x2C, 0xAE,
0x22, 0xCC,
0x3F, 0x45,
0x9B,
0x6B,
0xB1,
0x24,
0xE7,
0xA5,
0x20,
0x4C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_DxcContainerBuilder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x94, 0x42, 0x13, 0x94,
0x1F, 0x41,
0x74, 0x45,
0xB4,
0xD0,
0x87,
0x41,
0xE2,
0x52,
0x40,
0xD2
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
}
}
+20
ファイルの表示
@@ -0,0 +1,20 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/dxcapi.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved. Licensed under the University of Illinois Open Source License.
using System;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
namespace TerraFX.Interop.DirectX
{
public static unsafe partial class DirectX
{
[DllImport("dxcompiler", ExactSpelling = true)]
public static extern HRESULT DxcCreateInstance([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv);
[DllImport("dxcompiler", ExactSpelling = true)]
public static extern HRESULT DxcCreateInstance2(IMalloc* pMalloc, [NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv);
}
}
+19
ファイルの表示
@@ -0,0 +1,19 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from shared/minwindef.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.Windows
{
public static partial class Windows
{
[NativeTypeName("#define STRICT 1")]
public const int STRICT = 1;
[NativeTypeName("#define FALSE 0")]
public const int FALSE = 0;
[NativeTypeName("#define TRUE 1")]
public const int TRUE = 1;
}
}
+85
ファイルの表示
@@ -0,0 +1,85 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from shared/uuids.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace TerraFX.Interop.Windows
{
public static partial class Windows
{
/// <summary>Retrieves the GUID of of a specified type.</summary>
/// <param name="value">A value of type <typeparamref name="T"/>.</param>
/// <typeparam name="T">The type to retrieve the GUID for.</typeparam>
/// <returns>A <see cref="UuidOfType"/> value wrapping a pointer to the GUID data for the input type. This value can be either converted to a <see cref="Guid"/> pointer, or implicitly assigned to a <see cref="Guid"/> value.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe UuidOfType __uuidof<T>(T value) // for type inference similar to C++'s __uuidof
where T : unmanaged
{
return new UuidOfType(UUID<T>.RIID);
}
/// <summary>Retrieves the GUID of of a specified type.</summary>
/// <param name="value">A pointer to a value of type <typeparamref name="T"/>.</param>
/// <typeparam name="T">The type to retrieve the GUID for.</typeparam>
/// <returns>A <see cref="UuidOfType"/> value wrapping a pointer to the GUID data for the input type. This value can be either converted to a <see cref="Guid"/> pointer, or implicitly assigned to a <see cref="Guid"/> value.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe UuidOfType __uuidof<T>(T* value) // for type inference similar to C++'s __uuidof
where T : unmanaged
{
return new UuidOfType(UUID<T>.RIID);
}
/// <summary>Retrieves the GUID of of a specified type.</summary>
/// <typeparam name="T">The type to retrieve the GUID for.</typeparam>
/// <returns>A <see cref="UuidOfType"/> value wrapping a pointer to the GUID data for the input type. This value can be either converted to a <see cref="Guid"/> pointer, or implicitly assigned to a <see cref="Guid"/> value.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe UuidOfType __uuidof<T>()
where T : unmanaged
{
return new UuidOfType(UUID<T>.RIID);
}
/// <summary>A proxy type that wraps a pointer to GUID data. Values of this type can be implicitly converted to and assigned to <see cref="Guid"/>* or <see cref="Guid"/> parameters.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public readonly unsafe ref struct UuidOfType
{
private readonly Guid* riid;
internal UuidOfType(Guid* riid)
{
this.riid = riid;
}
/// <summary>Reads a <see cref="Guid"/> value from the GUID buffer for a given <see cref="UuidOfType"/> instance.</summary>
/// <param name="guid">The input <see cref="UuidOfType"/> instance to read data for.</param>
public static implicit operator Guid(UuidOfType guid) => *guid.riid;
/// <summary>Returns the <see cref="Guid"/>* pointer to the GUID buffer for a given <see cref="UuidOfType"/> instance.</summary>
/// <param name="guid">The input <see cref="UuidOfType"/> instance to read data for.</param>
public static implicit operator Guid*(UuidOfType guid) => guid.riid;
}
/// <summary>A helper type to provide static GUID buffers for specific types.</summary>
/// <typeparam name="T">The type to allocate a GUID buffer for.</typeparam>
private static unsafe class UUID<T>
where T : unmanaged
{
/// <summary>The pointer to the <see cref="Guid"/> value for the current type.</summary>
/// <remarks>The target memory area should never be written to.</remarks>
public static readonly Guid* RIID = CreateRIID();
/// <summary>Allocates memory for a <see cref="Guid"/> value and initializes it.</summary>
/// <returns>A pointer to memory holding the <see cref="Guid"/> value for the current type.</returns>
private static Guid* CreateRIID()
{
var p = (Guid*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(T), sizeof(Guid));
*p = typeof(T).GUID;
return p;
}
}
}
}
+147
ファイルの表示
@@ -0,0 +1,147 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using TerraFX.Interop.Windows;
namespace TerraFX.Interop.DirectX
{
public static partial class DXGI
{
[NativeTypeName("#define DXGI_STATUS_OCCLUDED _HRESULT_TYPEDEF_(0x087A0001L)")]
public const int DXGI_STATUS_OCCLUDED = ((int)(0x087A0001));
[NativeTypeName("#define DXGI_STATUS_CLIPPED _HRESULT_TYPEDEF_(0x087A0002L)")]
public const int DXGI_STATUS_CLIPPED = ((int)(0x087A0002));
[NativeTypeName("#define DXGI_STATUS_NO_REDIRECTION _HRESULT_TYPEDEF_(0x087A0004L)")]
public const int DXGI_STATUS_NO_REDIRECTION = ((int)(0x087A0004));
[NativeTypeName("#define DXGI_STATUS_NO_DESKTOP_ACCESS _HRESULT_TYPEDEF_(0x087A0005L)")]
public const int DXGI_STATUS_NO_DESKTOP_ACCESS = ((int)(0x087A0005));
[NativeTypeName("#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x087A0006L)")]
public const int DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = ((int)(0x087A0006));
[NativeTypeName("#define DXGI_STATUS_MODE_CHANGED _HRESULT_TYPEDEF_(0x087A0007L)")]
public const int DXGI_STATUS_MODE_CHANGED = ((int)(0x087A0007));
[NativeTypeName("#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x087A0008L)")]
public const int DXGI_STATUS_MODE_CHANGE_IN_PROGRESS = ((int)(0x087A0008));
[NativeTypeName("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001L)")]
public const int DXGI_ERROR_INVALID_CALL = unchecked((int)(0x887A0001));
[NativeTypeName("#define DXGI_ERROR_NOT_FOUND _HRESULT_TYPEDEF_(0x887A0002L)")]
public const int DXGI_ERROR_NOT_FOUND = unchecked((int)(0x887A0002));
[NativeTypeName("#define DXGI_ERROR_MORE_DATA _HRESULT_TYPEDEF_(0x887A0003L)")]
public const int DXGI_ERROR_MORE_DATA = unchecked((int)(0x887A0003));
[NativeTypeName("#define DXGI_ERROR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887A0004L)")]
public const int DXGI_ERROR_UNSUPPORTED = unchecked((int)(0x887A0004));
[NativeTypeName("#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005L)")]
public const int DXGI_ERROR_DEVICE_REMOVED = unchecked((int)(0x887A0005));
[NativeTypeName("#define DXGI_ERROR_DEVICE_HUNG _HRESULT_TYPEDEF_(0x887A0006L)")]
public const int DXGI_ERROR_DEVICE_HUNG = unchecked((int)(0x887A0006));
[NativeTypeName("#define DXGI_ERROR_DEVICE_RESET _HRESULT_TYPEDEF_(0x887A0007L)")]
public const int DXGI_ERROR_DEVICE_RESET = unchecked((int)(0x887A0007));
[NativeTypeName("#define DXGI_ERROR_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x887A000AL)")]
public const int DXGI_ERROR_WAS_STILL_DRAWING = unchecked((int)(0x887A000A));
[NativeTypeName("#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT _HRESULT_TYPEDEF_(0x887A000BL)")]
public const int DXGI_ERROR_FRAME_STATISTICS_DISJOINT = unchecked((int)(0x887A000B));
[NativeTypeName("#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x887A000CL)")]
public const int DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE = unchecked((int)(0x887A000C));
[NativeTypeName("#define DXGI_ERROR_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x887A0020L)")]
public const int DXGI_ERROR_DRIVER_INTERNAL_ERROR = unchecked((int)(0x887A0020));
[NativeTypeName("#define DXGI_ERROR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887A0021L)")]
public const int DXGI_ERROR_NONEXCLUSIVE = unchecked((int)(0x887A0021));
[NativeTypeName("#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE _HRESULT_TYPEDEF_(0x887A0022L)")]
public const int DXGI_ERROR_NOT_CURRENTLY_AVAILABLE = unchecked((int)(0x887A0022));
[NativeTypeName("#define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0023L)")]
public const int DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED = unchecked((int)(0x887A0023));
[NativeTypeName("#define DXGI_ERROR_REMOTE_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0024L)")]
public const int DXGI_ERROR_REMOTE_OUTOFMEMORY = unchecked((int)(0x887A0024));
[NativeTypeName("#define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L)")]
public const int DXGI_ERROR_ACCESS_LOST = unchecked((int)(0x887A0026));
[NativeTypeName("#define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L)")]
public const int DXGI_ERROR_WAIT_TIMEOUT = unchecked((int)(0x887A0027));
[NativeTypeName("#define DXGI_ERROR_SESSION_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0028L)")]
public const int DXGI_ERROR_SESSION_DISCONNECTED = unchecked((int)(0x887A0028));
[NativeTypeName("#define DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE _HRESULT_TYPEDEF_(0x887A0029L)")]
public const int DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE = unchecked((int)(0x887A0029));
[NativeTypeName("#define DXGI_ERROR_CANNOT_PROTECT_CONTENT _HRESULT_TYPEDEF_(0x887A002AL)")]
public const int DXGI_ERROR_CANNOT_PROTECT_CONTENT = unchecked((int)(0x887A002A));
[NativeTypeName("#define DXGI_ERROR_ACCESS_DENIED _HRESULT_TYPEDEF_(0x887A002BL)")]
public const int DXGI_ERROR_ACCESS_DENIED = unchecked((int)(0x887A002B));
[NativeTypeName("#define DXGI_ERROR_NAME_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A002CL)")]
public const int DXGI_ERROR_NAME_ALREADY_EXISTS = unchecked((int)(0x887A002C));
[NativeTypeName("#define DXGI_ERROR_SDK_COMPONENT_MISSING _HRESULT_TYPEDEF_(0x887A002DL)")]
public const int DXGI_ERROR_SDK_COMPONENT_MISSING = unchecked((int)(0x887A002D));
[NativeTypeName("#define DXGI_ERROR_NOT_CURRENT _HRESULT_TYPEDEF_(0x887A002EL)")]
public const int DXGI_ERROR_NOT_CURRENT = unchecked((int)(0x887A002E));
[NativeTypeName("#define DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0030L)")]
public const int DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY = unchecked((int)(0x887A0030));
[NativeTypeName("#define DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION _HRESULT_TYPEDEF_(0x887A0031L)")]
public const int DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION = unchecked((int)(0x887A0031));
[NativeTypeName("#define DXGI_ERROR_NON_COMPOSITED_UI _HRESULT_TYPEDEF_(0x887A0032L)")]
public const int DXGI_ERROR_NON_COMPOSITED_UI = unchecked((int)(0x887A0032));
[NativeTypeName("#define DXGI_STATUS_UNOCCLUDED _HRESULT_TYPEDEF_(0x087A0009L)")]
public const int DXGI_STATUS_UNOCCLUDED = ((int)(0x087A0009));
[NativeTypeName("#define DXGI_STATUS_DDA_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x087A000AL)")]
public const int DXGI_STATUS_DDA_WAS_STILL_DRAWING = ((int)(0x087A000A));
[NativeTypeName("#define DXGI_ERROR_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x887A0025L)")]
public const int DXGI_ERROR_MODE_CHANGE_IN_PROGRESS = unchecked((int)(0x887A0025));
[NativeTypeName("#define DXGI_STATUS_PRESENT_REQUIRED _HRESULT_TYPEDEF_(0x087A002FL)")]
public const int DXGI_STATUS_PRESENT_REQUIRED = ((int)(0x087A002F));
[NativeTypeName("#define DXGI_ERROR_CACHE_CORRUPT _HRESULT_TYPEDEF_(0x887A0033L)")]
public const int DXGI_ERROR_CACHE_CORRUPT = unchecked((int)(0x887A0033));
[NativeTypeName("#define DXGI_ERROR_CACHE_FULL _HRESULT_TYPEDEF_(0x887A0034L)")]
public const int DXGI_ERROR_CACHE_FULL = unchecked((int)(0x887A0034));
[NativeTypeName("#define DXGI_ERROR_CACHE_HASH_COLLISION _HRESULT_TYPEDEF_(0x887A0035L)")]
public const int DXGI_ERROR_CACHE_HASH_COLLISION = unchecked((int)(0x887A0035));
[NativeTypeName("#define DXGI_ERROR_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A0036L)")]
public const int DXGI_ERROR_ALREADY_EXISTS = unchecked((int)(0x887A0036));
[NativeTypeName("#define DXGI_DDI_ERR_WASSTILLDRAWING _HRESULT_TYPEDEF_(0x887B0001L)")]
public const int DXGI_DDI_ERR_WASSTILLDRAWING = unchecked((int)(0x887B0001));
[NativeTypeName("#define DXGI_DDI_ERR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887B0002L)")]
public const int DXGI_DDI_ERR_UNSUPPORTED = unchecked((int)(0x887B0002));
[NativeTypeName("#define DXGI_DDI_ERR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887B0003L)")]
public const int DXGI_DDI_ERR_NONEXCLUSIVE = unchecked((int)(0x887B0003));
}
}
+16
ファイルの表示
@@ -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 um/combaseapi.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Runtime.InteropServices;
namespace TerraFX.Interop.Windows
{
public static unsafe partial class Windows
{
[DllImport("ole32", ExactSpelling = true)]
public static extern HRESULT CoCreateInstance([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("LPUNKNOWN")] IUnknown* pUnkOuter, [NativeTypeName("DWORD")] uint dwClsContext, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv);
}
}
+765
ファイルの表示
@@ -0,0 +1,765 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace TerraFX.Interop.Windows
{
public static partial class CLSID
{
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICImagingFactory1
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x62, 0xF2, 0xCA, 0xCA,
0x70, 0x93,
0x15, 0x46,
0xA1,
0x3B,
0x9F,
0x55,
0x39,
0xDA,
0x4C,
0x0A
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICImagingFactory2
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xE8, 0x06, 0x7D, 0x31,
0x24, 0x5F,
0x3D, 0x43,
0xBD,
0xF7,
0x79,
0xCE,
0x68,
0xD8,
0xAB,
0xC2
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICPngDecoder1
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x7B, 0xA1, 0x9E, 0x38,
0x78, 0x50,
0xDE, 0x4C,
0xB6,
0xEF,
0x25,
0xC1,
0x51,
0x75,
0xC7,
0x51
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICPngDecoder2
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x5B, 0x94, 0x18, 0xE0,
0x86, 0xAA,
0x08, 0x40,
0x9B,
0xD4,
0x67,
0x77,
0xA1,
0xE4,
0x0C,
0x11
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICBmpDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x62, 0x20, 0x46, 0x6B,
0xBF, 0x7C,
0x0D, 0x40,
0x9F,
0xDB,
0x81,
0x3D,
0xD1,
0x0F,
0x27,
0x78
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICIcoDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xDF, 0xFC, 0x1B, 0xC6,
0x0F, 0x2E,
0xAD, 0x4A,
0xA8,
0xD7,
0xE0,
0x6B,
0xAF,
0xEB,
0xCD,
0xFE
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICJpegDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x80, 0xA4, 0x56, 0x94,
0x8B, 0xE8,
0xEA, 0x43,
0x9E,
0x73,
0x0B,
0x2D,
0x9B,
0x71,
0xB1,
0xCA
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICGifDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x3C, 0xDA, 0x1D, 0x38,
0xE9, 0x9C,
0x34, 0x48,
0xA2,
0x3E,
0x1F,
0x98,
0xF8,
0xFC,
0x52,
0xBE
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICTiffDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xD9, 0x85, 0x4E, 0xB5,
0x23, 0xFE,
0x9F, 0x49,
0x8B,
0x88,
0x6A,
0xCE,
0xA7,
0x13,
0x75,
0x2B
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICWmpDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x36, 0xEC, 0x6C, 0xA2,
0x4C, 0x23,
0x50, 0x49,
0xAE,
0x16,
0xE3,
0x4A,
0xAC,
0xE7,
0x1D,
0x0D
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICDdsDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x9F, 0x69, 0x53, 0x90,
0x41, 0xA3,
0x9D, 0x42,
0x9E,
0x90,
0xEE,
0x43,
0x7C,
0xF8,
0x0C,
0x73
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICBmpEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xB4, 0x8B, 0xBE, 0x69,
0x6D, 0xD6,
0xC8, 0x47,
0x86,
0x5A,
0xED,
0x15,
0x89,
0x43,
0x37,
0x82
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICPngEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x69, 0x99, 0x94, 0x27,
0x6A, 0x87,
0xD7, 0x41,
0x94,
0x47,
0x56,
0x8F,
0x6A,
0x35,
0xA4,
0xDC
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICJpegEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xC1, 0xF5, 0x34, 0x1A,
0x5A, 0x4A,
0xDC, 0x46,
0xB6,
0x44,
0x1F,
0x45,
0x67,
0xE7,
0xA6,
0x76
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICGifEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x98, 0x55, 0x4F, 0x11,
0x22, 0x0B,
0xA0, 0x40,
0x86,
0xA1,
0xC8,
0x3E,
0xA4,
0x95,
0xAD,
0xBD
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICTiffEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x10, 0xBE, 0x31, 0x01,
0x01, 0x20,
0x5F, 0x4C,
0xA9,
0xB0,
0xCC,
0x88,
0xFA,
0xB6,
0x4C,
0xE8
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICWmpEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xCB, 0xE3, 0x4C, 0xAC,
0xC1, 0xE1,
0xCD, 0x44,
0x82,
0x15,
0x5A,
0x16,
0x65,
0x50,
0x9E,
0xC2
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICDdsEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x94, 0xDE, 0x1D, 0xA6,
0xCE, 0x66,
0xC1, 0x4A,
0x88,
0x1B,
0x71,
0x68,
0x05,
0x88,
0x89,
0x5E
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICAdngDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x11, 0x94, 0x1D, 0x98,
0x9E, 0x90,
0xA7, 0x42,
0x8F,
0x5D,
0xA7,
0x47,
0xFF,
0x05,
0x2E,
0xDB
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICJpegQualcommPhoneEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x62, 0x5C, 0xED, 0x68,
0x34, 0xF5,
0x79, 0x49,
0xB2,
0xB3,
0x68,
0x6A,
0x12,
0xB2,
0xB3,
0x4C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICHeifDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x0A, 0xA8, 0xA4, 0xE9,
0xFE, 0x44,
0xE4, 0x4D,
0x89,
0x71,
0x71,
0x50,
0xB1,
0x0A,
0x51,
0x99
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICHeifEncoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xC1, 0xCE, 0xBE, 0x0D,
0xB3, 0x9E,
0x60, 0x48,
0x9C,
0x6F,
0xDD,
0xBE,
0x86,
0x63,
0x45,
0x75
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICWebpDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x86, 0xE8, 0x93, 0x76,
0xC9, 0x51,
0x70, 0x40,
0x84,
0x19,
0x9F,
0x70,
0x73,
0x8E,
0xC8,
0xFA
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICRAWDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x02, 0x57, 0x94, 0x41,
0x02, 0x83,
0xA6, 0x44,
0x94,
0x45,
0xAC,
0x98,
0xE8,
0xAF,
0xA0,
0x86
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICImagingCategories
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x80, 0xD3, 0xE3, 0xFA,
0xA4, 0xFE,
0x23, 0x46,
0x8C,
0x75,
0xC6,
0xB6,
0x11,
0x10,
0xB6,
0x81
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICDefaultFormatConverter
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xDC, 0x11, 0x3F, 0x1A,
0x14, 0xB5,
0x17, 0x4B,
0x8C,
0x5F,
0x21,
0x54,
0x51,
0x38,
0x52,
0xF1
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICFormatConverterHighColor
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x54, 0xD4, 0x75, 0xAC,
0x37, 0x9F,
0xF8, 0x48,
0xB9,
0x72,
0x4E,
0x19,
0xBC,
0x85,
0x60,
0x11
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICFormatConverterNChannel
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xB2, 0xAB, 0x7C, 0xC1,
0xA3, 0xD4,
0xD7, 0x47,
0xA5,
0x57,
0x33,
0x9B,
0x2E,
0xFB,
0xD4,
0xF1
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICFormatConverterWMPhoto
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x2B, 0x17, 0xB5, 0x9C,
0x00, 0xD6,
0xBA, 0x46,
0xAB,
0x77,
0x77,
0xBB,
0x7E,
0x3A,
0x00,
0xD9
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid CLSID_WICPlanarFormatConverter
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xB8, 0x32, 0x41, 0x18,
0xF8, 0x32,
0x84, 0x47,
0x91,
0x31,
0xDD,
0x72,
0x24,
0xB2,
0x34,
0x38
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+758
ファイルの表示
@@ -0,0 +1,758 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace TerraFX.Interop.Windows
{
public static partial class Windows
{
[NativeTypeName("const GUID")]
public static ref readonly Guid NO_SUBGROUP_GUID
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x3E, 0x41, 0xA3, 0xFE,
0x05, 0x7E,
0x11, 0x49,
0x9A,
0x71,
0x70,
0x03,
0x31,
0xF1,
0xC2,
0x94
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("const GUID")]
public static ref readonly Guid ALL_POWERSCHEMES_GUID
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x5E, 0xE9, 0xA1, 0x68,
0xEA, 0x13,
0xE1, 0x41,
0x80,
0x11,
0x0C,
0x49,
0x6C,
0xA4,
0x90,
0xB0
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
[NativeTypeName("#define ANYSIZE_ARRAY 1")]
public const int ANYSIZE_ARRAY = 1;
[NativeTypeName("#define PRAGMA_DEPRECATED_DDK 0")]
public const int PRAGMA_DEPRECATED_DDK = 0;
[NativeTypeName("#define UCSCHAR_INVALID_CHARACTER (0xffffffff)")]
public const uint UCSCHAR_INVALID_CHARACTER = (0xffffffff);
[NativeTypeName("#define MIN_UCSCHAR (0)")]
public const int MIN_UCSCHAR = (0);
[NativeTypeName("#define ALL_PROCESSOR_GROUPS 0xffff")]
public const int ALL_PROCESSOR_GROUPS = 0xffff;
[NativeTypeName("#define APPLICATION_ERROR_MASK 0x20000000")]
public const int APPLICATION_ERROR_MASK = 0x20000000;
[NativeTypeName("#define MAXLONGLONG (0x7fffffffffffffff)")]
public const long MAXLONGLONG = (0x7fffffffffffffff);
[NativeTypeName("#define ANSI_NULL ((CHAR)0)")]
public const sbyte ANSI_NULL = ((sbyte)(0));
[NativeTypeName("#define UNICODE_NULL ((WCHAR)0)")]
public const ushort UNICODE_NULL = ((ushort)(0));
[NativeTypeName("#define UNICODE_STRING_MAX_BYTES ((WORD ) 65534)")]
public const ushort UNICODE_STRING_MAX_BYTES = ((ushort)(65534));
[NativeTypeName("#define UNICODE_STRING_MAX_CHARS (32767)")]
public const int UNICODE_STRING_MAX_CHARS = (32767);
[NativeTypeName("#define MINCHAR 0x80")]
public const int MINCHAR = 0x80;
[NativeTypeName("#define MAXCHAR 0x7f")]
public const int MAXCHAR = 0x7f;
[NativeTypeName("#define MINSHORT 0x8000")]
public const int MINSHORT = 0x8000;
[NativeTypeName("#define MAXSHORT 0x7fff")]
public const int MAXSHORT = 0x7fff;
[NativeTypeName("#define MINLONG 0x80000000")]
public const uint MINLONG = 0x80000000;
[NativeTypeName("#define MAXLONG 0x7fffffff")]
public const int MAXLONG = 0x7fffffff;
[NativeTypeName("#define MAXBYTE 0xff")]
public const int MAXBYTE = 0xff;
[NativeTypeName("#define MAXWORD 0xffff")]
public const int MAXWORD = 0xffff;
[NativeTypeName("#define MAXDWORD 0xffffffff")]
public const uint MAXDWORD = 0xffffffff;
[NativeTypeName("#define ENCLAVE_SHORT_ID_LENGTH 16")]
public const int ENCLAVE_SHORT_ID_LENGTH = 16;
[NativeTypeName("#define ENCLAVE_LONG_ID_LENGTH 32")]
public const int ENCLAVE_LONG_ID_LENGTH = 32;
[NativeTypeName("#define NLS_VALID_LOCALE_MASK 0x000fffff")]
public const int NLS_VALID_LOCALE_MASK = 0x000fffff;
[NativeTypeName("#define _MM_HINT_T0 1")]
public const int _MM_HINT_T0 = 1;
[NativeTypeName("#define _MM_HINT_T1 2")]
public const int _MM_HINT_T1 = 2;
[NativeTypeName("#define _MM_HINT_T2 3")]
public const int _MM_HINT_T2 = 3;
[NativeTypeName("#define _MM_HINT_NTA 0")]
public const int _MM_HINT_NTA = 0;
[NativeTypeName("#define DELETE (0x00010000L)")]
public const int DELETE = (0x00010000);
[NativeTypeName("#define WRITE_DAC (0x00040000L)")]
public const int WRITE_DAC = (0x00040000);
[NativeTypeName("#define WRITE_OWNER (0x00080000L)")]
public const int WRITE_OWNER = (0x00080000);
[NativeTypeName("#define SYNCHRONIZE (0x00100000L)")]
public const int SYNCHRONIZE = (0x00100000);
[NativeTypeName("#define STANDARD_RIGHTS_REQUIRED (0x000F0000L)")]
public const int STANDARD_RIGHTS_REQUIRED = (0x000F0000);
[NativeTypeName("#define STANDARD_RIGHTS_READ (READ_CONTROL)")]
public const int STANDARD_RIGHTS_READ = ((0x00020000));
[NativeTypeName("#define STANDARD_RIGHTS_WRITE (READ_CONTROL)")]
public const int STANDARD_RIGHTS_WRITE = ((0x00020000));
[NativeTypeName("#define STANDARD_RIGHTS_EXECUTE (READ_CONTROL)")]
public const int STANDARD_RIGHTS_EXECUTE = ((0x00020000));
[NativeTypeName("#define STANDARD_RIGHTS_ALL (0x001F0000L)")]
public const int STANDARD_RIGHTS_ALL = (0x001F0000);
[NativeTypeName("#define SPECIFIC_RIGHTS_ALL (0x0000FFFFL)")]
public const int SPECIFIC_RIGHTS_ALL = (0x0000FFFF);
[NativeTypeName("#define GENERIC_READ (0x80000000L)")]
public const uint GENERIC_READ = (0x80000000);
[NativeTypeName("#define GENERIC_WRITE (0x40000000L)")]
public const int GENERIC_WRITE = (0x40000000);
[NativeTypeName("#define GENERIC_EXECUTE (0x20000000L)")]
public const int GENERIC_EXECUTE = (0x20000000);
[NativeTypeName("#define GENERIC_ALL (0x10000000L)")]
public const int GENERIC_ALL = (0x10000000);
[NativeTypeName("#define FOREST_USER_RID_MAX (0x000001F3L)")]
public const int FOREST_USER_RID_MAX = (0x000001F3);
[NativeTypeName("#define ACL_REVISION (2)")]
public const int ACL_REVISION = (2);
[NativeTypeName("#define ACL_REVISION_DS (4)")]
public const int ACL_REVISION_DS = (4);
[NativeTypeName("#define ACL_REVISION1 (1)")]
public const int ACL_REVISION1 = (1);
[NativeTypeName("#define MIN_ACL_REVISION ACL_REVISION2")]
public const int MIN_ACL_REVISION = (2);
[NativeTypeName("#define ACL_REVISION2 (2)")]
public const int ACL_REVISION2 = (2);
[NativeTypeName("#define ACL_REVISION3 (3)")]
public const int ACL_REVISION3 = (3);
[NativeTypeName("#define ACL_REVISION4 (4)")]
public const int ACL_REVISION4 = (4);
[NativeTypeName("#define OBJECT_INHERIT_ACE (0x1)")]
public const int OBJECT_INHERIT_ACE = (0x1);
[NativeTypeName("#define NO_PROPAGATE_INHERIT_ACE (0x4)")]
public const int NO_PROPAGATE_INHERIT_ACE = (0x4);
[NativeTypeName("#define INHERIT_ONLY_ACE (0x8)")]
public const int INHERIT_ONLY_ACE = (0x8);
[NativeTypeName("#define INHERITED_ACE (0x10)")]
public const int INHERITED_ACE = (0x10);
[NativeTypeName("#define VALID_INHERIT_FLAGS (0x1F)")]
public const int VALID_INHERIT_FLAGS = (0x1F);
[NativeTypeName("#define CRITICAL_ACE_FLAG (0x20)")]
public const int CRITICAL_ACE_FLAG = (0x20);
[NativeTypeName("#define SUCCESSFUL_ACCESS_ACE_FLAG (0x40)")]
public const int SUCCESSFUL_ACCESS_ACE_FLAG = (0x40);
[NativeTypeName("#define FAILED_ACCESS_ACE_FLAG (0x80)")]
public const int FAILED_ACCESS_ACE_FLAG = (0x80);
[NativeTypeName("#define ACE_OBJECT_TYPE_PRESENT 0x1")]
public const int ACE_OBJECT_TYPE_PRESENT = 0x1;
[NativeTypeName("#define ACE_INHERITED_OBJECT_TYPE_PRESENT 0x2")]
public const int ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2;
[NativeTypeName("#define AUDIT_ALLOW_NO_PRIVILEGE 0x1")]
public const int AUDIT_ALLOW_NO_PRIVILEGE = 0x1;
[NativeTypeName("#define PRIVILEGE_SET_ALL_NECESSARY (1)")]
public const int PRIVILEGE_SET_ALL_NECESSARY = (1);
[NativeTypeName("#define POLICY_AUDIT_SUBCATEGORY_COUNT (59)")]
public const int POLICY_AUDIT_SUBCATEGORY_COUNT = (59);
[NativeTypeName("#define DISABLE_MAX_PRIVILEGE 0x1")]
public const int DISABLE_MAX_PRIVILEGE = 0x1;
[NativeTypeName("#define SANDBOX_INERT 0x2")]
public const int SANDBOX_INERT = 0x2;
[NativeTypeName("#define LUA_TOKEN 0x4")]
public const int LUA_TOKEN = 0x4;
[NativeTypeName("#define WRITE_RESTRICTED 0x8")]
public const int WRITE_RESTRICTED = 0x8;
[NativeTypeName("#define OWNER_SECURITY_INFORMATION (0x00000001L)")]
public const int OWNER_SECURITY_INFORMATION = (0x00000001);
[NativeTypeName("#define GROUP_SECURITY_INFORMATION (0x00000002L)")]
public const int GROUP_SECURITY_INFORMATION = (0x00000002);
[NativeTypeName("#define DACL_SECURITY_INFORMATION (0x00000004L)")]
public const int DACL_SECURITY_INFORMATION = (0x00000004);
[NativeTypeName("#define SACL_SECURITY_INFORMATION (0x00000008L)")]
public const int SACL_SECURITY_INFORMATION = (0x00000008);
[NativeTypeName("#define LABEL_SECURITY_INFORMATION (0x00000010L)")]
public const int LABEL_SECURITY_INFORMATION = (0x00000010);
[NativeTypeName("#define ATTRIBUTE_SECURITY_INFORMATION (0x00000020L)")]
public const int ATTRIBUTE_SECURITY_INFORMATION = (0x00000020);
[NativeTypeName("#define SCOPE_SECURITY_INFORMATION (0x00000040L)")]
public const int SCOPE_SECURITY_INFORMATION = (0x00000040);
[NativeTypeName("#define PROTECTED_DACL_SECURITY_INFORMATION (0x80000000L)")]
public const uint PROTECTED_DACL_SECURITY_INFORMATION = (0x80000000);
[NativeTypeName("#define PROTECTED_SACL_SECURITY_INFORMATION (0x40000000L)")]
public const int PROTECTED_SACL_SECURITY_INFORMATION = (0x40000000);
[NativeTypeName("#define UNPROTECTED_DACL_SECURITY_INFORMATION (0x20000000L)")]
public const int UNPROTECTED_DACL_SECURITY_INFORMATION = (0x20000000);
[NativeTypeName("#define UNPROTECTED_SACL_SECURITY_INFORMATION (0x10000000L)")]
public const int UNPROTECTED_SACL_SECURITY_INFORMATION = (0x10000000);
[NativeTypeName("#define FLS_MAXIMUM_AVAILABLE 4080")]
public const int FLS_MAXIMUM_AVAILABLE = 4080;
[NativeTypeName("#define TLS_MINIMUM_AVAILABLE 64")]
public const int TLS_MINIMUM_AVAILABLE = 64;
[NativeTypeName("#define COMPONENT_KTM 0x01")]
public const int COMPONENT_KTM = 0x01;
[NativeTypeName("#define COMPONENT_VALID_FLAGS (COMPONENT_KTM)")]
public const int COMPONENT_VALID_FLAGS = (0x01);
[NativeTypeName("#define DYNAMIC_EH_CONTINUATION_TARGET_ADD (0x00000001)")]
public const int DYNAMIC_EH_CONTINUATION_TARGET_ADD = (0x00000001);
[NativeTypeName("#define DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED (0x00000002)")]
public const int DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED = (0x00000002);
[NativeTypeName("#define DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD (0x00000001)")]
public const int DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD = (0x00000001);
[NativeTypeName("#define DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED (0x00000002)")]
public const int DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED = (0x00000002);
[NativeTypeName("#define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001")]
public const int QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001;
[NativeTypeName("#define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002")]
public const int QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002;
[NativeTypeName("#define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004")]
public const int QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004;
[NativeTypeName("#define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008")]
public const int QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008;
[NativeTypeName("#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010")]
public const int QUOTA_LIMITS_USE_DEFAULT_LIMITS = 0x00000010;
[NativeTypeName("#define MUTANT_QUERY_STATE 0x0001")]
public const int MUTANT_QUERY_STATE = 0x0001;
[NativeTypeName("#define MUTANT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|\\\r\n MUTANT_QUERY_STATE)")]
public const int MUTANT_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x0001);
[NativeTypeName("#define SEMAPHORE_MODIFY_STATE 0x0002")]
public const int SEMAPHORE_MODIFY_STATE = 0x0002;
[NativeTypeName("#define SEMAPHORE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)")]
public const int SEMAPHORE_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x3);
[NativeTypeName("#define TIMER_QUERY_STATE 0x0001")]
public const int TIMER_QUERY_STATE = 0x0001;
[NativeTypeName("#define TIMER_MODIFY_STATE 0x0002")]
public const int TIMER_MODIFY_STATE = 0x0002;
[NativeTypeName("#define TIMER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|\\\r\n TIMER_QUERY_STATE|TIMER_MODIFY_STATE)")]
public const int TIMER_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x0001 | 0x0002);
[NativeTypeName("#define LTP_PC_SMT 0x1")]
public const int LTP_PC_SMT = 0x1;
[NativeTypeName("#define CACHE_FULLY_ASSOCIATIVE 0xFF")]
public const int CACHE_FULLY_ASSOCIATIVE = 0xFF;
[NativeTypeName("#define CFG_CALL_TARGET_VALID (0x00000001)")]
public const int CFG_CALL_TARGET_VALID = (0x00000001);
[NativeTypeName("#define CFG_CALL_TARGET_PROCESSED (0x00000002)")]
public const int CFG_CALL_TARGET_PROCESSED = (0x00000002);
[NativeTypeName("#define CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID (0x00000004)")]
public const int CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID = (0x00000004);
[NativeTypeName("#define CFG_CALL_TARGET_VALID_XFG (0x00000008)")]
public const int CFG_CALL_TARGET_VALID_XFG = (0x00000008);
[NativeTypeName("#define CFG_CALL_TARGET_CONVERT_XFG_TO_CFG (0x00000010)")]
public const int CFG_CALL_TARGET_CONVERT_XFG_TO_CFG = (0x00000010);
[NativeTypeName("#define SECTION_QUERY 0x0001")]
public const int SECTION_QUERY = 0x0001;
[NativeTypeName("#define SECTION_MAP_WRITE 0x0002")]
public const int SECTION_MAP_WRITE = 0x0002;
[NativeTypeName("#define SECTION_MAP_READ 0x0004")]
public const int SECTION_MAP_READ = 0x0004;
[NativeTypeName("#define SECTION_MAP_EXECUTE 0x0008")]
public const int SECTION_MAP_EXECUTE = 0x0008;
[NativeTypeName("#define SECTION_EXTEND_SIZE 0x0010")]
public const int SECTION_EXTEND_SIZE = 0x0010;
[NativeTypeName("#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020")]
public const int SECTION_MAP_EXECUTE_EXPLICIT = 0x0020;
[NativeTypeName("#define SECTION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SECTION_QUERY|\\\r\n SECTION_MAP_WRITE | \\\r\n SECTION_MAP_READ | \\\r\n SECTION_MAP_EXECUTE | \\\r\n SECTION_EXTEND_SIZE)")]
public const int SECTION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010);
[NativeTypeName("#define SESSION_QUERY_ACCESS 0x0001")]
public const int SESSION_QUERY_ACCESS = 0x0001;
[NativeTypeName("#define SESSION_MODIFY_ACCESS 0x0002")]
public const int SESSION_MODIFY_ACCESS = 0x0002;
[NativeTypeName("#define SESSION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \\\r\n SESSION_QUERY_ACCESS | \\\r\n SESSION_MODIFY_ACCESS)")]
public const int SESSION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002);
[NativeTypeName("#define WRITE_WATCH_FLAG_RESET 0x01")]
public const int WRITE_WATCH_FLAG_RESET = 0x01;
[NativeTypeName("#define ENCLAVE_TYPE_SGX 0x00000001")]
public const int ENCLAVE_TYPE_SGX = 0x00000001;
[NativeTypeName("#define ENCLAVE_TYPE_SGX2 0x00000002")]
public const int ENCLAVE_TYPE_SGX2 = 0x00000002;
[NativeTypeName("#define ENCLAVE_TYPE_VBS 0x00000010")]
public const int ENCLAVE_TYPE_VBS = 0x00000010;
[NativeTypeName("#define ENCLAVE_VBS_FLAG_DEBUG 0x00000001")]
public const int ENCLAVE_VBS_FLAG_DEBUG = 0x00000001;
[NativeTypeName("#define ENCLAVE_TYPE_VBS_BASIC 0x00000011")]
public const int ENCLAVE_TYPE_VBS_BASIC = 0x00000011;
[NativeTypeName("#define VBS_BASIC_PAGE_MEASURED_DATA 0x00000001")]
public const int VBS_BASIC_PAGE_MEASURED_DATA = 0x00000001;
[NativeTypeName("#define VBS_BASIC_PAGE_UNMEASURED_DATA 0x00000002")]
public const int VBS_BASIC_PAGE_UNMEASURED_DATA = 0x00000002;
[NativeTypeName("#define VBS_BASIC_PAGE_ZERO_FILL 0x00000003")]
public const int VBS_BASIC_PAGE_ZERO_FILL = 0x00000003;
[NativeTypeName("#define VBS_BASIC_PAGE_THREAD_DESCRIPTOR 0x00000004")]
public const int VBS_BASIC_PAGE_THREAD_DESCRIPTOR = 0x00000004;
[NativeTypeName("#define VBS_BASIC_PAGE_SYSTEM_CALL 0x00000005")]
public const int VBS_BASIC_PAGE_SYSTEM_CALL = 0x00000005;
[NativeTypeName("#define DEDICATED_MEMORY_CACHE_ELIGIBLE 0x1")]
public const int DEDICATED_MEMORY_CACHE_ELIGIBLE = 0x1;
[NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_PRIVACY 0x00004000")]
public const int TREE_CONNECT_ATTRIBUTE_PRIVACY = 0x00004000;
[NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_INTEGRITY 0x00008000")]
public const int TREE_CONNECT_ATTRIBUTE_INTEGRITY = 0x00008000;
[NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_GLOBAL 0x00000004")]
public const int TREE_CONNECT_ATTRIBUTE_GLOBAL = 0x00000004;
[NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_PINNED 0x00000002")]
public const int TREE_CONNECT_ATTRIBUTE_PINNED = 0x00000002;
[NativeTypeName("#define MAILSLOT_NO_MESSAGE ((DWORD)-1)")]
public const uint MAILSLOT_NO_MESSAGE = unchecked((uint)(-1));
[NativeTypeName("#define MAILSLOT_WAIT_FOREVER ((DWORD)-1)")]
public const uint MAILSLOT_WAIT_FOREVER = unchecked((uint)(-1));
[NativeTypeName("#define FLUSH_FLAGS_FILE_DATA_ONLY 0x00000001")]
public const int FLUSH_FLAGS_FILE_DATA_ONLY = 0x00000001;
[NativeTypeName("#define FLUSH_FLAGS_NO_SYNC 0x00000002")]
public const int FLUSH_FLAGS_NO_SYNC = 0x00000002;
[NativeTypeName("#define FLUSH_FLAGS_FILE_DATA_SYNC_ONLY 0x00000004")]
public const int FLUSH_FLAGS_FILE_DATA_SYNC_ONLY = 0x00000004;
[NativeTypeName("#define SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS (0x00000001)")]
public const int SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS = (0x00000001);
[NativeTypeName("#define SMB_CCF_APP_INSTANCE_EA_NAME \"ClusteredApplicationInstance\"")]
public static ReadOnlySpan<byte> SMB_CCF_APP_INSTANCE_EA_NAME => new byte[] { 0x43, 0x6C, 0x75, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x49, 0x6E, 0x73, 0x74, 0x61, 0x6E, 0x63, 0x65, 0x00 };
[NativeTypeName("#define NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR 0x00000001")]
public const int NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR = 0x00000001;
[NativeTypeName("#define DUPLICATE_CLOSE_SOURCE 0x00000001")]
public const int DUPLICATE_CLOSE_SOURCE = 0x00000001;
[NativeTypeName("#define DUPLICATE_SAME_ACCESS 0x00000002")]
public const int DUPLICATE_SAME_ACCESS = 0x00000002;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_IDEAL 0")]
public const int PERFSTATE_POLICY_CHANGE_IDEAL = 0;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_SINGLE 1")]
public const int PERFSTATE_POLICY_CHANGE_SINGLE = 1;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_ROCKET 2")]
public const int PERFSTATE_POLICY_CHANGE_ROCKET = 2;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE 3")]
public const int PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE = 3;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_DECREASE_MAX PERFSTATE_POLICY_CHANGE_ROCKET")]
public const int PERFSTATE_POLICY_CHANGE_DECREASE_MAX = 2;
[NativeTypeName("#define PERFSTATE_POLICY_CHANGE_INCREASE_MAX PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE")]
public const int PERFSTATE_POLICY_CHANGE_INCREASE_MAX = 3;
[NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_IDEAL 0")]
public const int CORE_PARKING_POLICY_CHANGE_IDEAL = 0;
[NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_SINGLE 1")]
public const int CORE_PARKING_POLICY_CHANGE_SINGLE = 1;
[NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_ROCKET 2")]
public const int CORE_PARKING_POLICY_CHANGE_ROCKET = 2;
[NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_MULTISTEP 3")]
public const int CORE_PARKING_POLICY_CHANGE_MULTISTEP = 3;
[NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_MAX CORE_PARKING_POLICY_CHANGE_MULTISTEP")]
public const int CORE_PARKING_POLICY_CHANGE_MAX = 3;
[NativeTypeName("#define DIAGNOSTIC_REASON_VERSION 0")]
public const int DIAGNOSTIC_REASON_VERSION = 0;
[NativeTypeName("#define DIAGNOSTIC_REASON_SIMPLE_STRING 0x00000001")]
public const int DIAGNOSTIC_REASON_SIMPLE_STRING = 0x00000001;
[NativeTypeName("#define DIAGNOSTIC_REASON_DETAILED_STRING 0x00000002")]
public const int DIAGNOSTIC_REASON_DETAILED_STRING = 0x00000002;
[NativeTypeName("#define DIAGNOSTIC_REASON_NOT_SPECIFIED 0x80000000")]
public const uint DIAGNOSTIC_REASON_NOT_SPECIFIED = 0x80000000;
[NativeTypeName("#define DIAGNOSTIC_REASON_INVALID_FLAGS (~0x80000007)")]
public const uint DIAGNOSTIC_REASON_INVALID_FLAGS = (~0x80000007);
[NativeTypeName("#define PDCAP_D0_SUPPORTED 0x00000001")]
public const int PDCAP_D0_SUPPORTED = 0x00000001;
[NativeTypeName("#define PDCAP_D1_SUPPORTED 0x00000002")]
public const int PDCAP_D1_SUPPORTED = 0x00000002;
[NativeTypeName("#define PDCAP_D2_SUPPORTED 0x00000004")]
public const int PDCAP_D2_SUPPORTED = 0x00000004;
[NativeTypeName("#define PDCAP_D3_SUPPORTED 0x00000008")]
public const int PDCAP_D3_SUPPORTED = 0x00000008;
[NativeTypeName("#define PDCAP_WAKE_FROM_D0_SUPPORTED 0x00000010")]
public const int PDCAP_WAKE_FROM_D0_SUPPORTED = 0x00000010;
[NativeTypeName("#define PDCAP_WAKE_FROM_D1_SUPPORTED 0x00000020")]
public const int PDCAP_WAKE_FROM_D1_SUPPORTED = 0x00000020;
[NativeTypeName("#define PDCAP_WAKE_FROM_D2_SUPPORTED 0x00000040")]
public const int PDCAP_WAKE_FROM_D2_SUPPORTED = 0x00000040;
[NativeTypeName("#define PDCAP_WAKE_FROM_D3_SUPPORTED 0x00000080")]
public const int PDCAP_WAKE_FROM_D3_SUPPORTED = 0x00000080;
[NativeTypeName("#define PDCAP_WARM_EJECT_SUPPORTED 0x00000100")]
public const int PDCAP_WARM_EJECT_SUPPORTED = 0x00000100;
[NativeTypeName("#define ACPI_PPM_SOFTWARE_ALL 0xFC")]
public const int ACPI_PPM_SOFTWARE_ALL = 0xFC;
[NativeTypeName("#define ACPI_PPM_SOFTWARE_ANY 0xFD")]
public const int ACPI_PPM_SOFTWARE_ANY = 0xFD;
[NativeTypeName("#define ACPI_PPM_HARDWARE_ALL 0xFE")]
public const int ACPI_PPM_HARDWARE_ALL = 0xFE;
[NativeTypeName("#define NUM_DISCHARGE_POLICIES 4")]
public const int NUM_DISCHARGE_POLICIES = 4;
[NativeTypeName("#define DISCHARGE_POLICY_CRITICAL 0")]
public const int DISCHARGE_POLICY_CRITICAL = 0;
[NativeTypeName("#define DISCHARGE_POLICY_LOW 1")]
public const int DISCHARGE_POLICY_LOW = 1;
[NativeTypeName("#define PO_THROTTLE_NONE 0")]
public const int PO_THROTTLE_NONE = 0;
[NativeTypeName("#define PO_THROTTLE_CONSTANT 1")]
public const int PO_THROTTLE_CONSTANT = 1;
[NativeTypeName("#define PO_THROTTLE_DEGRADE 2")]
public const int PO_THROTTLE_DEGRADE = 2;
[NativeTypeName("#define PO_THROTTLE_ADAPTIVE 3")]
public const int PO_THROTTLE_ADAPTIVE = 3;
[NativeTypeName("#define PO_THROTTLE_MAXIMUM 4")]
public const int PO_THROTTLE_MAXIMUM = 4;
[NativeTypeName("#define HIBERFILE_TYPE_NONE 0x00")]
public const int HIBERFILE_TYPE_NONE = 0x00;
[NativeTypeName("#define HIBERFILE_TYPE_REDUCED 0x01")]
public const int HIBERFILE_TYPE_REDUCED = 0x01;
[NativeTypeName("#define HIBERFILE_TYPE_FULL 0x02")]
public const int HIBERFILE_TYPE_FULL = 0x02;
[NativeTypeName("#define HIBERFILE_TYPE_MAX 0x03")]
public const int HIBERFILE_TYPE_MAX = 0x03;
[NativeTypeName("#define N_BTMASK 0x000F")]
public const int N_BTMASK = 0x000F;
[NativeTypeName("#define N_TMASK 0x0030")]
public const int N_TMASK = 0x0030;
[NativeTypeName("#define N_TMASK1 0x00C0")]
public const int N_TMASK1 = 0x00C0;
[NativeTypeName("#define N_TMASK2 0x00F0")]
public const int N_TMASK2 = 0x00F0;
[NativeTypeName("#define N_BTSHFT 4")]
public const int N_BTSHFT = 4;
[NativeTypeName("#define N_TSHIFT 2")]
public const int N_TSHIFT = 2;
[NativeTypeName("#define FRAME_FPO 0")]
public const int FRAME_FPO = 0;
[NativeTypeName("#define FRAME_TRAP 1")]
public const int FRAME_TRAP = 1;
[NativeTypeName("#define FRAME_TSS 2")]
public const int FRAME_TSS = 2;
[NativeTypeName("#define FRAME_NONFPO 3")]
public const int FRAME_NONFPO = 3;
[NativeTypeName("#define SIZEOF_RFPO_DATA 16")]
public const int SIZEOF_RFPO_DATA = 16;
[NativeTypeName("#define NON_PAGED_DEBUG_SIGNATURE 0x494E")]
public const int NON_PAGED_DEBUG_SIGNATURE = 0x494E;
[NativeTypeName("#define IMPORT_OBJECT_HDR_SIG2 0xffff")]
public const int IMPORT_OBJECT_HDR_SIG2 = 0xffff;
[NativeTypeName("#define UNWIND_HISTORY_TABLE_SIZE 12")]
public const int UNWIND_HISTORY_TABLE_SIZE = 12;
[NativeTypeName("#define COMPRESSION_FORMAT_NONE (0x0000)")]
public const int COMPRESSION_FORMAT_NONE = (0x0000);
[NativeTypeName("#define COMPRESSION_FORMAT_DEFAULT (0x0001)")]
public const int COMPRESSION_FORMAT_DEFAULT = (0x0001);
[NativeTypeName("#define COMPRESSION_FORMAT_LZNT1 (0x0002)")]
public const int COMPRESSION_FORMAT_LZNT1 = (0x0002);
[NativeTypeName("#define COMPRESSION_FORMAT_XPRESS (0x0003)")]
public const int COMPRESSION_FORMAT_XPRESS = (0x0003);
[NativeTypeName("#define COMPRESSION_FORMAT_XPRESS_HUFF (0x0004)")]
public const int COMPRESSION_FORMAT_XPRESS_HUFF = (0x0004);
[NativeTypeName("#define COMPRESSION_FORMAT_XP10 (0x0005)")]
public const int COMPRESSION_FORMAT_XP10 = (0x0005);
[NativeTypeName("#define COMPRESSION_ENGINE_STANDARD (0x0000)")]
public const int COMPRESSION_ENGINE_STANDARD = (0x0000);
[NativeTypeName("#define COMPRESSION_ENGINE_MAXIMUM (0x0100)")]
public const int COMPRESSION_ENGINE_MAXIMUM = (0x0100);
[NativeTypeName("#define COMPRESSION_ENGINE_HIBER (0x0200)")]
public const int COMPRESSION_ENGINE_HIBER = (0x0200);
[NativeTypeName("#define MESSAGE_RESOURCE_UNICODE 0x0001")]
public const int MESSAGE_RESOURCE_UNICODE = 0x0001;
[NativeTypeName("#define MESSAGE_RESOURCE_UTF8 0x0002")]
public const int MESSAGE_RESOURCE_UTF8 = 0x0002;
[NativeTypeName("#define VRL_PREDEFINED_CLASS_BEGIN (1 << 0)")]
public const int VRL_PREDEFINED_CLASS_BEGIN = (1 << 0);
[NativeTypeName("#define VRL_CUSTOM_CLASS_BEGIN (1 << 8)")]
public const int VRL_CUSTOM_CLASS_BEGIN = (1 << 8);
[NativeTypeName("#define VRL_CLASS_CONSISTENCY (VRL_PREDEFINED_CLASS_BEGIN << 0)")]
public const int VRL_CLASS_CONSISTENCY = ((1 << 0) << 0);
[NativeTypeName("#define VRL_ENABLE_KERNEL_BREAKS (1 << 31)")]
public const int VRL_ENABLE_KERNEL_BREAKS = (1 << 31);
[NativeTypeName("#define CTMF_INCLUDE_APPCONTAINER 0x00000001UL")]
public const uint CTMF_INCLUDE_APPCONTAINER = 0x00000001U;
[NativeTypeName("#define CTMF_INCLUDE_LPAC 0x00000002UL")]
public const uint CTMF_INCLUDE_LPAC = 0x00000002U;
[NativeTypeName("#define CTMF_VALID_FLAGS (CTMF_INCLUDE_APPCONTAINER | CTMF_INCLUDE_LPAC)")]
public const uint CTMF_VALID_FLAGS = (0x00000001U | 0x00000002U);
[NativeTypeName("#define FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN (0x00000001)")]
public const int FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN = (0x00000001);
[NativeTypeName("#define FLUSH_NV_MEMORY_DEFAULT_TOKEN (ULONG_PTR)(-1)")]
public static nuint FLUSH_NV_MEMORY_DEFAULT_TOKEN => unchecked((nuint)(-1));
[NativeTypeName("#define WRITE_NV_MEMORY_FLAG_FLUSH (0x00000001)")]
public const int WRITE_NV_MEMORY_FLAG_FLUSH = (0x00000001);
[NativeTypeName("#define WRITE_NV_MEMORY_FLAG_NON_TEMPORAL (0x00000002)")]
public const int WRITE_NV_MEMORY_FLAG_NON_TEMPORAL = (0x00000002);
[NativeTypeName("#define WRITE_NV_MEMORY_FLAG_PERSIST (WRITE_NV_MEMORY_FLAG_FLUSH \\\r\n | WRITE_NV_MEMORY_FLAG_NON_TEMPORAL)")]
public const int WRITE_NV_MEMORY_FLAG_PERSIST = ((0x00000001) | (0x00000002));
[NativeTypeName("#define WRITE_NV_MEMORY_FLAG_NO_DRAIN (0x00000100)")]
public const int WRITE_NV_MEMORY_FLAG_NO_DRAIN = (0x00000100);
[NativeTypeName("#define FILL_NV_MEMORY_FLAG_FLUSH (0x00000001)")]
public const int FILL_NV_MEMORY_FLAG_FLUSH = (0x00000001);
[NativeTypeName("#define FILL_NV_MEMORY_FLAG_NON_TEMPORAL (0x00000002)")]
public const int FILL_NV_MEMORY_FLAG_NON_TEMPORAL = (0x00000002);
[NativeTypeName("#define FILL_NV_MEMORY_FLAG_PERSIST (FILL_NV_MEMORY_FLAG_FLUSH \\\r\n | FILL_NV_MEMORY_FLAG_NON_TEMPORAL)")]
public const int FILL_NV_MEMORY_FLAG_PERSIST = ((0x00000001) | (0x00000002));
[NativeTypeName("#define FILL_NV_MEMORY_FLAG_NO_DRAIN (0x00000100)")]
public const int FILL_NV_MEMORY_FLAG_NO_DRAIN = (0x00000100);
[NativeTypeName("#define PERFORMANCE_DATA_VERSION 1")]
public const int PERFORMANCE_DATA_VERSION = 1;
[NativeTypeName("#define UNIFIEDBUILDREVISION_KEY L\"\\\\Registry\\\\Machine\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\"")]
public const string UNIFIEDBUILDREVISION_KEY = "\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion";
[NativeTypeName("#define UNIFIEDBUILDREVISION_VALUE L\"UBR\"")]
public const string UNIFIEDBUILDREVISION_VALUE = "UBR";
[NativeTypeName("#define UNIFIEDBUILDREVISION_MIN 0x00000000")]
public const int UNIFIEDBUILDREVISION_MIN = 0x00000000;
[NativeTypeName("#define DLL_PROCESS_ATTACH 1")]
public const int DLL_PROCESS_ATTACH = 1;
[NativeTypeName("#define DLL_THREAD_ATTACH 2")]
public const int DLL_THREAD_ATTACH = 2;
[NativeTypeName("#define DLL_THREAD_DETACH 3")]
public const int DLL_THREAD_DETACH = 3;
[NativeTypeName("#define DLL_PROCESS_DETACH 0")]
public const int DLL_PROCESS_DETACH = 0;
[NativeTypeName("#define MAXLOGICALLOGNAMESIZE 256")]
public const int MAXLOGICALLOGNAMESIZE = 256;
}
}