diff --git a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems index 884dff14..0a1d313a 100644 --- a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems +++ b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems @@ -58,7 +58,7 @@ - + @@ -70,8 +70,8 @@ - + - + \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs b/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs deleted file mode 100644 index bf27777e..00000000 --- a/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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 ComputeSharp.Win32; - -internal static partial class Windows -{ - /// Retrieves the GUID of of a specified type. - /// A value of type . - /// The type to retrieve the GUID for. - /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe UuidOfType __uuidof(T value) // for type inference similar to C++'s __uuidof - where T : unmanaged - { - return new UuidOfType(UUID.RIID); - } - - /// Retrieves the GUID of of a specified type. - /// A pointer to a value of type . - /// The type to retrieve the GUID for. - /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe UuidOfType __uuidof(T* value) // for type inference similar to C++'s __uuidof - where T : unmanaged - { - return new UuidOfType(UUID.RIID); - } - - /// Retrieves the GUID of of a specified type. - /// The type to retrieve the GUID for. - /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe UuidOfType __uuidof() - where T : unmanaged - { - return new UuidOfType(UUID.RIID); - } - - /// A proxy type that wraps a pointer to GUID data. Values of this type can be implicitly converted to and assigned to * or parameters. - [EditorBrowsable(EditorBrowsableState.Never)] - public readonly unsafe ref struct UuidOfType - { - private readonly Guid* riid; - - internal UuidOfType(Guid* riid) - { - this.riid = riid; - } - - /// Reads a value from the GUID buffer for a given instance. - /// The input instance to read data for. - public static implicit operator Guid(UuidOfType guid) => *guid.riid; - - /// Returns the * pointer to the GUID buffer for a given instance. - /// The input instance to read data for. - public static implicit operator Guid*(UuidOfType guid) => guid.riid; - } - - /// A helper type to provide static GUID buffers for specific types. - /// The type to allocate a GUID buffer for. - private static unsafe class UUID - where T : unmanaged - { - /// The pointer to the value for the current type. - /// The target memory area should never be written to. - public static readonly Guid* RIID = CreateRIID(); - - /// Allocates memory for a value and initializes it. - /// A pointer to memory holding the value for the current type. - private static Guid* CreateRIID() - { - var p = (Guid*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(T), sizeof(Guid)); - *p = typeof(T).GUID; - return p; - } - } -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/E.cs b/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/E.cs deleted file mode 100644 index 41df1bee..00000000 --- a/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/E.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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.22000.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace ComputeSharp.Win32; - -internal static class E -{ - [NativeTypeName("#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)")] - public const int E_NOTFOUND = -2147023728; - - [NativeTypeName("#define E_NOT_VALID_STATE HRESULT_FROM_WIN32(ERROR_INVALID_STATE)")] - public const int E_NOT_VALID_STATE = -2147019873; - - [NativeTypeName("#define E_NOT_SUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)")] - public const int E_NOT_SUFFICIENT_BUFFER = -2147024774; - - [NativeTypeName("#define E_NOTIMPL _HRESULT_TYPEDEF_(0x80004001L)")] - public const int E_NOTIMPL = unchecked((int)(0x80004001)); - - [NativeTypeName("#define E_OUTOFMEMORY _HRESULT_TYPEDEF_(0x8007000EL)")] - public const int E_OUTOFMEMORY = unchecked((int)(0x8007000E)); - - [NativeTypeName("#define E_INVALIDARG _HRESULT_TYPEDEF_(0x80070057L)")] - public const int E_INVALIDARG = unchecked((int)(0x80070057)); - - [NativeTypeName("#define E_NOINTERFACE _HRESULT_TYPEDEF_(0x80004002L)")] - public const int E_NOINTERFACE = unchecked((int)(0x80004002)); - - [NativeTypeName("#define E_POINTER _HRESULT_TYPEDEF_(0x80004003L)")] - public const int E_POINTER = unchecked((int)(0x80004003)); - - [NativeTypeName("#define E_FAIL _HRESULT_TYPEDEF_(0x80004005L)")] - public const int E_FAIL = unchecked((int)(0x80004005)); -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/Windows.cs b/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/Windows.cs deleted file mode 100644 index 9882754c..00000000 --- a/src/ComputeSharp.Win32.D2D1/Windows/shared/winerror/Windows.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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.22000.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace ComputeSharp.Win32; - -internal static partial class Windows -{ - public static bool SUCCEEDED(HRESULT hr) - { - return hr >= 0; - } -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/ComputeSharp.Win32.D3D12.projitems b/src/ComputeSharp.Win32.D3D12/ComputeSharp.Win32.D3D12.projitems index 69456bce..193d17bc 100644 --- a/src/ComputeSharp.Win32.D3D12/ComputeSharp.Win32.D3D12.projitems +++ b/src/ComputeSharp.Win32.D3D12/ComputeSharp.Win32.D3D12.projitems @@ -215,13 +215,9 @@ - - - - diff --git a/src/ComputeSharp.Win32.D3D12/DirectX/shared/dxgi1_4/IDXGIFactory4.cs b/src/ComputeSharp.Win32.D3D12/DirectX/shared/dxgi1_4/IDXGIFactory4.cs index 5d0ef5a8..05c8980c 100644 --- a/src/ComputeSharp.Win32.D3D12/DirectX/shared/dxgi1_4/IDXGIFactory4.cs +++ b/src/ComputeSharp.Win32.D3D12/DirectX/shared/dxgi1_4/IDXGIFactory4.cs @@ -39,34 +39,6 @@ internal unsafe partial struct IDXGIFactory4 return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetPrivateData([NativeTypeName("const GUID &")] Guid* Name, uint DataSize, [NativeTypeName("const void *")] void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateDataInterface([NativeTypeName("const GUID &")] Guid* Name, [NativeTypeName("const IUnknown *")] IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetPrivateData([NativeTypeName("const GUID &")] Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetParent([NativeTypeName("const IID &")] Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public HRESULT EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) @@ -74,20 +46,6 @@ internal unsafe partial struct IDXGIFactory4 return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT MakeWindowAssociation(HWND WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetWindowAssociation(HWND* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pWindowHandle); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(12)] public HRESULT EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) @@ -95,97 +53,6 @@ internal unsafe partial struct IDXGIFactory4 return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public BOOL IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public BOOL IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, [NativeTypeName("const DXGI_SWAP_CHAIN_DESC1 *")] DXGI_SWAP_CHAIN_DESC1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HRESULT GetSharedResourceAdapterLuid(HANDLE hResource, LUID* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HRESULT RegisterStereoStatusWindow(HWND WindowHandle, uint wMsg, [NativeTypeName("DWORD *")] uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HRESULT RegisterStereoStatusEvent(HANDLE hEvent, [NativeTypeName("DWORD *")] uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void UnregisterStereoStatus([NativeTypeName("DWORD")] uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HRESULT RegisterOcclusionStatusWindow(HWND WindowHandle, uint wMsg, [NativeTypeName("DWORD *")] uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HRESULT RegisterOcclusionStatusEvent(HANDLE hEvent, [NativeTypeName("DWORD *")] uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void UnregisterOcclusionStatus([NativeTypeName("DWORD")] uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HRESULT CreateSwapChainForComposition(IUnknown* pDevice, [NativeTypeName("const DXGI_SWAP_CHAIN_DESC1 *")] DXGI_SWAP_CHAIN_DESC1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HRESULT EnumAdapterByLuid(LUID AdapterLuid, [NativeTypeName("const IID &")] Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] public HRESULT EnumWarpAdapter([NativeTypeName("const IID &")] Guid* riid, void** ppvAdapter) diff --git a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/HWND.cs b/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/HWND.cs deleted file mode 100644 index fc536b74..00000000 --- a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/HWND.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -using System; - -namespace ComputeSharp.Win32; - -internal readonly unsafe partial struct HWND : IComparable, IComparable, IEquatable, IFormattable -{ - public readonly void* Value; - - public HWND(void* value) - { - Value = value; - } - - public static HWND INVALID_VALUE => new HWND((void*)(-1)); - - public static HWND NULL => new HWND(null); - - public static bool operator ==(HWND left, HWND right) => left.Value == right.Value; - - public static bool operator !=(HWND left, HWND right) => left.Value != right.Value; - - public static bool operator <(HWND left, HWND right) => left.Value < right.Value; - - public static bool operator <=(HWND left, HWND right) => left.Value <= right.Value; - - public static bool operator >(HWND left, HWND right) => left.Value > right.Value; - - public static bool operator >=(HWND left, HWND right) => left.Value >= right.Value; - - public static explicit operator HWND(void* value) => new HWND(value); - - public static implicit operator void*(HWND value) => value.Value; - - public static explicit operator HWND(HANDLE value) => new HWND(value); - - public static implicit operator HANDLE(HWND value) => new HANDLE(value.Value); - - public static explicit operator HWND(byte value) => new HWND((void*)(value)); - - public static explicit operator byte(HWND value) => (byte)(value.Value); - - public static explicit operator HWND(short value) => new HWND((void*)(value)); - - public static explicit operator short(HWND value) => (short)(value.Value); - - public static explicit operator HWND(int value) => new HWND((void*)(value)); - - public static explicit operator int(HWND value) => (int)(value.Value); - - public static explicit operator HWND(long value) => new HWND((void*)(value)); - - public static explicit operator long(HWND value) => (long)(value.Value); - - public static explicit operator HWND(nint value) => new HWND((void*)(value)); - - public static implicit operator nint(HWND value) => (nint)(value.Value); - - public static explicit operator HWND(sbyte value) => new HWND((void*)(value)); - - public static explicit operator sbyte(HWND value) => (sbyte)(value.Value); - - public static explicit operator HWND(ushort value) => new HWND((void*)(value)); - - public static explicit operator ushort(HWND value) => (ushort)(value.Value); - - public static explicit operator HWND(uint value) => new HWND((void*)(value)); - - public static explicit operator uint(HWND value) => (uint)(value.Value); - - public static explicit operator HWND(ulong value) => new HWND((void*)(value)); - - public static explicit operator ulong(HWND value) => (ulong)(value.Value); - - public static explicit operator HWND(nuint value) => new HWND((void*)(value)); - - public static implicit operator nuint(HWND value) => (nuint)(value.Value); - - public int CompareTo(object? obj) - { - if (obj is HWND other) - { - return CompareTo(other); - } - - return (obj is null) ? 1 : throw new ArgumentException("obj is not an instance of HWND."); - } - - public int CompareTo(HWND other) => ((nuint)(Value)).CompareTo((nuint)(other.Value)); - - public override bool Equals(object? obj) => (obj is HWND other) && Equals(other); - - public bool Equals(HWND other) => ((nuint)(Value)).Equals((nuint)(other.Value)); - - public override int GetHashCode() => ((nuint)(Value)).GetHashCode(); - - public override string ToString() => ((nuint)(Value)).ToString((sizeof(nint) == 4) ? "X8" : "X16"); - - public string ToString(string? format, IFormatProvider? formatProvider) => ((nuint)(Value)).ToString(format, formatProvider); -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LPARAM.cs b/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LPARAM.cs deleted file mode 100644 index a0ff8e3a..00000000 --- a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LPARAM.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -using System; - -namespace ComputeSharp.Win32; - -internal readonly unsafe partial struct LPARAM : IComparable, IComparable, IEquatable, IFormattable -{ - public readonly nint Value; - - public LPARAM(nint value) - { - Value = value; - } - - public static bool operator ==(LPARAM left, LPARAM right) => left.Value == right.Value; - - public static bool operator !=(LPARAM left, LPARAM right) => left.Value != right.Value; - - public static bool operator <(LPARAM left, LPARAM right) => left.Value < right.Value; - - public static bool operator <=(LPARAM left, LPARAM right) => left.Value <= right.Value; - - public static bool operator >(LPARAM left, LPARAM right) => left.Value > right.Value; - - public static bool operator >=(LPARAM left, LPARAM right) => left.Value >= right.Value; - - public static implicit operator LPARAM(byte value) => new LPARAM(value); - - public static explicit operator byte(LPARAM value) => (byte)(value.Value); - - public static implicit operator LPARAM(short value) => new LPARAM(value); - - public static explicit operator short(LPARAM value) => (short)(value.Value); - - public static implicit operator LPARAM(int value) => new LPARAM(value); - - public static explicit operator int(LPARAM value) => (int)(value.Value); - - public static explicit operator LPARAM(long value) => new LPARAM((nint)(value)); - - public static implicit operator long(LPARAM value) => value.Value; - - public static implicit operator LPARAM(nint value) => new LPARAM(value); - - public static implicit operator nint(LPARAM value) => value.Value; - - public static implicit operator LPARAM(sbyte value) => new LPARAM(value); - - public static explicit operator sbyte(LPARAM value) => (sbyte)(value.Value); - - public static implicit operator LPARAM(ushort value) => new LPARAM(value); - - public static explicit operator ushort(LPARAM value) => (ushort)(value.Value); - - public static explicit operator LPARAM(uint value) => new LPARAM((nint)(value)); - - public static explicit operator uint(LPARAM value) => (uint)(value.Value); - - public static explicit operator LPARAM(ulong value) => new LPARAM((nint)(value)); - - public static explicit operator ulong(LPARAM value) => (ulong)(value.Value); - - public static explicit operator LPARAM(nuint value) => new LPARAM((nint)(value)); - - public static explicit operator nuint(LPARAM value) => (nuint)(value.Value); - - public int CompareTo(object? obj) - { - if (obj is LPARAM other) - { - return CompareTo(other); - } - - return (obj is null) ? 1 : throw new ArgumentException("obj is not an instance of LPARAM."); - } - - public int CompareTo(LPARAM other) => Value.CompareTo(other.Value); - - public override bool Equals(object? obj) => (obj is LPARAM other) && Equals(other); - - public bool Equals(LPARAM other) => Value.Equals(other.Value); - - public override int GetHashCode() => Value.GetHashCode(); - - public override string ToString() => Value.ToString((sizeof(nint) == 4) ? "X8" : "X16"); - - public string ToString(string? format, IFormatProvider? formatProvider) => Value.ToString(format, formatProvider); -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LRESULT.cs b/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LRESULT.cs deleted file mode 100644 index 0483721d..00000000 --- a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/LRESULT.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -using System; - -namespace ComputeSharp.Win32; - -internal readonly partial struct LRESULT : IComparable, IComparable, IEquatable, IFormattable -{ - public readonly nint Value; - - public LRESULT(nint value) - { - Value = value; - } - - public static bool operator ==(LRESULT left, LRESULT right) => left.Value == right.Value; - - public static bool operator !=(LRESULT left, LRESULT right) => left.Value != right.Value; - - public static bool operator <(LRESULT left, LRESULT right) => left.Value < right.Value; - - public static bool operator <=(LRESULT left, LRESULT right) => left.Value <= right.Value; - - public static bool operator >(LRESULT left, LRESULT right) => left.Value > right.Value; - - public static bool operator >=(LRESULT left, LRESULT right) => left.Value >= right.Value; - - public static implicit operator LRESULT(byte value) => new LRESULT(value); - - public static explicit operator byte(LRESULT value) => (byte)(value.Value); - - public static implicit operator LRESULT(short value) => new LRESULT(value); - - public static explicit operator short(LRESULT value) => (short)(value.Value); - - public static implicit operator LRESULT(int value) => new LRESULT(value); - - public static explicit operator int(LRESULT value) => (int)(value.Value); - - public static explicit operator LRESULT(long value) => new LRESULT((nint)(value)); - - public static implicit operator long(LRESULT value) => value.Value; - - public static implicit operator LRESULT(nint value) => new LRESULT(value); - - public static implicit operator nint(LRESULT value) => value.Value; - - public static implicit operator LRESULT(sbyte value) => new LRESULT(value); - - public static explicit operator sbyte(LRESULT value) => (sbyte)(value.Value); - - public static implicit operator LRESULT(ushort value) => new LRESULT(value); - - public static explicit operator ushort(LRESULT value) => (ushort)(value.Value); - - public static explicit operator LRESULT(uint value) => new LRESULT((nint)(value)); - - public static explicit operator uint(LRESULT value) => (uint)(value.Value); - - public static explicit operator LRESULT(ulong value) => new LRESULT((nint)(value)); - - public static explicit operator ulong(LRESULT value) => (ulong)(value.Value); - - public static explicit operator LRESULT(nuint value) => new LRESULT((nint)(value)); - - public static explicit operator nuint(LRESULT value) => (nuint)(value.Value); - - public int CompareTo(object? obj) - { - if (obj is LRESULT other) - { - return CompareTo(other); - } - - return (obj is null) ? 1 : throw new ArgumentException("obj is not an instance of LRESULT."); - } - - public int CompareTo(LRESULT other) => Value.CompareTo(other.Value); - - public override bool Equals(object? obj) => (obj is LRESULT other) && Equals(other); - - public bool Equals(LRESULT other) => Value.Equals(other.Value); - - public override int GetHashCode() => Value.GetHashCode(); - - public override string ToString() => Value.ToString(); - - public string ToString(string? format, IFormatProvider? formatProvider) => Value.ToString(format, formatProvider); -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/WPARAM.cs b/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/WPARAM.cs deleted file mode 100644 index bd8377c8..00000000 --- a/src/ComputeSharp.Win32.D3D12/Windows/other/helper-types/WPARAM.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -using System; - -namespace ComputeSharp.Win32; - -internal readonly unsafe partial struct WPARAM : IComparable, IComparable, IEquatable, IFormattable -{ - public readonly nuint Value; - - public WPARAM(nuint value) - { - Value = value; - } - - public static bool operator ==(WPARAM left, WPARAM right) => left.Value == right.Value; - - public static bool operator !=(WPARAM left, WPARAM right) => left.Value != right.Value; - - public static bool operator <(WPARAM left, WPARAM right) => left.Value < right.Value; - - public static bool operator <=(WPARAM left, WPARAM right) => left.Value <= right.Value; - - public static bool operator >(WPARAM left, WPARAM right) => left.Value > right.Value; - - public static bool operator >=(WPARAM left, WPARAM right) => left.Value >= right.Value; - - public static implicit operator WPARAM(byte value) => new WPARAM(value); - - public static explicit operator byte(WPARAM value) => (byte)(value.Value); - - public static explicit operator WPARAM(short value) => new WPARAM((nuint)(value)); - - public static explicit operator short(WPARAM value) => (short)(value.Value); - - public static explicit operator WPARAM(int value) => new WPARAM((nuint)(value)); - - public static explicit operator int(WPARAM value) => (int)(value.Value); - - public static explicit operator WPARAM(long value) => new WPARAM((nuint)(value)); - - public static explicit operator long(WPARAM value) => (long)(value.Value); - - public static explicit operator WPARAM(nint value) => new WPARAM((nuint)(value)); - - public static explicit operator nint(WPARAM value) => (nint)(value.Value); - - public static explicit operator WPARAM(sbyte value) => new WPARAM((nuint)(value)); - - public static explicit operator sbyte(WPARAM value) => (sbyte)(value.Value); - - public static implicit operator WPARAM(ushort value) => new WPARAM(value); - - public static explicit operator ushort(WPARAM value) => (ushort)(value.Value); - - public static implicit operator WPARAM(uint value) => new WPARAM(value); - - public static explicit operator uint(WPARAM value) => (uint)(value.Value); - - public static explicit operator WPARAM(ulong value) => new WPARAM((nuint)(value)); - - public static implicit operator ulong(WPARAM value) => value.Value; - - public static implicit operator WPARAM(nuint value) => new WPARAM(value); - - public static implicit operator nuint(WPARAM value) => value.Value; - - public int CompareTo(object? obj) - { - if (obj is WPARAM other) - { - return CompareTo(other); - } - - return (obj is null) ? 1 : throw new ArgumentException("obj is not an instance of WPARAM."); - } - - public int CompareTo(WPARAM other) => Value.CompareTo(other.Value); - - public override bool Equals(object? obj) => (obj is WPARAM other) && Equals(other); - - public bool Equals(WPARAM other) => Value.Equals(other.Value); - - public override int GetHashCode() => Value.GetHashCode(); - - public override string ToString() => Value.ToString((sizeof(nint) == 4) ? "X8" : "X16"); - - public string ToString(string? format, IFormatProvider? formatProvider) => Value.ToString(format, formatProvider); -} \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/Windows/shared/winerror/E.cs b/src/ComputeSharp.Win32.D3D12/Windows/shared/winerror/E.cs index e046515c..54a43b1e 100644 --- a/src/ComputeSharp.Win32.D3D12/Windows/shared/winerror/E.cs +++ b/src/ComputeSharp.Win32.D3D12/Windows/shared/winerror/E.cs @@ -7,8 +7,14 @@ namespace ComputeSharp.Win32; internal static partial class E { - [NativeTypeName("#define E_UNEXPECTED _HRESULT_TYPEDEF_(0x8000FFFFL)")] - public const int E_UNEXPECTED = unchecked((int)(0x8000FFFF)); + [NativeTypeName("#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)")] + public const int E_NOTFOUND = -2147023728; + + [NativeTypeName("#define E_NOT_VALID_STATE HRESULT_FROM_WIN32(ERROR_INVALID_STATE)")] + public const int E_NOT_VALID_STATE = -2147019873; + + [NativeTypeName("#define E_NOT_SUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)")] + public const int E_NOT_SUFFICIENT_BUFFER = -2147024774; [NativeTypeName("#define E_NOTIMPL _HRESULT_TYPEDEF_(0x80004001L)")] public const int E_NOTIMPL = unchecked((int)(0x80004001)); @@ -25,342 +31,6 @@ internal static partial class E [NativeTypeName("#define E_POINTER _HRESULT_TYPEDEF_(0x80004003L)")] public const int E_POINTER = unchecked((int)(0x80004003)); - [NativeTypeName("#define E_HANDLE _HRESULT_TYPEDEF_(0x80070006L)")] - public const int E_HANDLE = unchecked((int)(0x80070006)); - - [NativeTypeName("#define E_ABORT _HRESULT_TYPEDEF_(0x80004004L)")] - public const int E_ABORT = unchecked((int)(0x80004004)); - [NativeTypeName("#define E_FAIL _HRESULT_TYPEDEF_(0x80004005L)")] public const int E_FAIL = unchecked((int)(0x80004005)); - - [NativeTypeName("#define E_ACCESSDENIED _HRESULT_TYPEDEF_(0x80070005L)")] - public const int E_ACCESSDENIED = unchecked((int)(0x80070005)); - - [NativeTypeName("#define E_PENDING _HRESULT_TYPEDEF_(0x8000000AL)")] - public const int E_PENDING = unchecked((int)(0x8000000A)); - - [NativeTypeName("#define E_BOUNDS _HRESULT_TYPEDEF_(0x8000000BL)")] - public const int E_BOUNDS = unchecked((int)(0x8000000B)); - - [NativeTypeName("#define E_CHANGED_STATE _HRESULT_TYPEDEF_(0x8000000CL)")] - public const int E_CHANGED_STATE = unchecked((int)(0x8000000C)); - - [NativeTypeName("#define E_ILLEGAL_STATE_CHANGE _HRESULT_TYPEDEF_(0x8000000DL)")] - public const int E_ILLEGAL_STATE_CHANGE = unchecked((int)(0x8000000D)); - - [NativeTypeName("#define E_ILLEGAL_METHOD_CALL _HRESULT_TYPEDEF_(0x8000000EL)")] - public const int E_ILLEGAL_METHOD_CALL = unchecked((int)(0x8000000E)); - - [NativeTypeName("#define E_STRING_NOT_NULL_TERMINATED _HRESULT_TYPEDEF_(0x80000017L)")] - public const int E_STRING_NOT_NULL_TERMINATED = unchecked((int)(0x80000017)); - - [NativeTypeName("#define E_ILLEGAL_DELEGATE_ASSIGNMENT _HRESULT_TYPEDEF_(0x80000018L)")] - public const int E_ILLEGAL_DELEGATE_ASSIGNMENT = unchecked((int)(0x80000018)); - - [NativeTypeName("#define E_ASYNC_OPERATION_NOT_STARTED _HRESULT_TYPEDEF_(0x80000019L)")] - public const int E_ASYNC_OPERATION_NOT_STARTED = unchecked((int)(0x80000019)); - - [NativeTypeName("#define E_APPLICATION_EXITING _HRESULT_TYPEDEF_(0x8000001AL)")] - public const int E_APPLICATION_EXITING = unchecked((int)(0x8000001A)); - - [NativeTypeName("#define E_APPLICATION_VIEW_EXITING _HRESULT_TYPEDEF_(0x8000001BL)")] - public const int E_APPLICATION_VIEW_EXITING = unchecked((int)(0x8000001B)); - - [NativeTypeName("#define E_MBN_CONTEXT_NOT_ACTIVATED _HRESULT_TYPEDEF_(0x80548201L)")] - public const int E_MBN_CONTEXT_NOT_ACTIVATED = unchecked((int)(0x80548201)); - - [NativeTypeName("#define E_MBN_BAD_SIM _HRESULT_TYPEDEF_(0x80548202L)")] - public const int E_MBN_BAD_SIM = unchecked((int)(0x80548202)); - - [NativeTypeName("#define E_MBN_DATA_CLASS_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80548203L)")] - public const int E_MBN_DATA_CLASS_NOT_AVAILABLE = unchecked((int)(0x80548203)); - - [NativeTypeName("#define E_MBN_INVALID_ACCESS_STRING _HRESULT_TYPEDEF_(0x80548204L)")] - public const int E_MBN_INVALID_ACCESS_STRING = unchecked((int)(0x80548204)); - - [NativeTypeName("#define E_MBN_MAX_ACTIVATED_CONTEXTS _HRESULT_TYPEDEF_(0x80548205L)")] - public const int E_MBN_MAX_ACTIVATED_CONTEXTS = unchecked((int)(0x80548205)); - - [NativeTypeName("#define E_MBN_PACKET_SVC_DETACHED _HRESULT_TYPEDEF_(0x80548206L)")] - public const int E_MBN_PACKET_SVC_DETACHED = unchecked((int)(0x80548206)); - - [NativeTypeName("#define E_MBN_PROVIDER_NOT_VISIBLE _HRESULT_TYPEDEF_(0x80548207L)")] - public const int E_MBN_PROVIDER_NOT_VISIBLE = unchecked((int)(0x80548207)); - - [NativeTypeName("#define E_MBN_RADIO_POWER_OFF _HRESULT_TYPEDEF_(0x80548208L)")] - public const int E_MBN_RADIO_POWER_OFF = unchecked((int)(0x80548208)); - - [NativeTypeName("#define E_MBN_SERVICE_NOT_ACTIVATED _HRESULT_TYPEDEF_(0x80548209L)")] - public const int E_MBN_SERVICE_NOT_ACTIVATED = unchecked((int)(0x80548209)); - - [NativeTypeName("#define E_MBN_SIM_NOT_INSERTED _HRESULT_TYPEDEF_(0x8054820AL)")] - public const int E_MBN_SIM_NOT_INSERTED = unchecked((int)(0x8054820A)); - - [NativeTypeName("#define E_MBN_VOICE_CALL_IN_PROGRESS _HRESULT_TYPEDEF_(0x8054820BL)")] - public const int E_MBN_VOICE_CALL_IN_PROGRESS = unchecked((int)(0x8054820B)); - - [NativeTypeName("#define E_MBN_INVALID_CACHE _HRESULT_TYPEDEF_(0x8054820CL)")] - public const int E_MBN_INVALID_CACHE = unchecked((int)(0x8054820C)); - - [NativeTypeName("#define E_MBN_NOT_REGISTERED _HRESULT_TYPEDEF_(0x8054820DL)")] - public const int E_MBN_NOT_REGISTERED = unchecked((int)(0x8054820D)); - - [NativeTypeName("#define E_MBN_PROVIDERS_NOT_FOUND _HRESULT_TYPEDEF_(0x8054820EL)")] - public const int E_MBN_PROVIDERS_NOT_FOUND = unchecked((int)(0x8054820E)); - - [NativeTypeName("#define E_MBN_PIN_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8054820FL)")] - public const int E_MBN_PIN_NOT_SUPPORTED = unchecked((int)(0x8054820F)); - - [NativeTypeName("#define E_MBN_PIN_REQUIRED _HRESULT_TYPEDEF_(0x80548210L)")] - public const int E_MBN_PIN_REQUIRED = unchecked((int)(0x80548210)); - - [NativeTypeName("#define E_MBN_PIN_DISABLED _HRESULT_TYPEDEF_(0x80548211L)")] - public const int E_MBN_PIN_DISABLED = unchecked((int)(0x80548211)); - - [NativeTypeName("#define E_MBN_FAILURE _HRESULT_TYPEDEF_(0x80548212L)")] - public const int E_MBN_FAILURE = unchecked((int)(0x80548212)); - - [NativeTypeName("#define E_MBN_INVALID_PROFILE _HRESULT_TYPEDEF_(0x80548218L)")] - public const int E_MBN_INVALID_PROFILE = unchecked((int)(0x80548218)); - - [NativeTypeName("#define E_MBN_DEFAULT_PROFILE_EXIST _HRESULT_TYPEDEF_(0x80548219L)")] - public const int E_MBN_DEFAULT_PROFILE_EXIST = unchecked((int)(0x80548219)); - - [NativeTypeName("#define E_MBN_SMS_ENCODING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548220L)")] - public const int E_MBN_SMS_ENCODING_NOT_SUPPORTED = unchecked((int)(0x80548220)); - - [NativeTypeName("#define E_MBN_SMS_FILTER_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548221L)")] - public const int E_MBN_SMS_FILTER_NOT_SUPPORTED = unchecked((int)(0x80548221)); - - [NativeTypeName("#define E_MBN_SMS_INVALID_MEMORY_INDEX _HRESULT_TYPEDEF_(0x80548222L)")] - public const int E_MBN_SMS_INVALID_MEMORY_INDEX = unchecked((int)(0x80548222)); - - [NativeTypeName("#define E_MBN_SMS_LANG_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548223L)")] - public const int E_MBN_SMS_LANG_NOT_SUPPORTED = unchecked((int)(0x80548223)); - - [NativeTypeName("#define E_MBN_SMS_MEMORY_FAILURE _HRESULT_TYPEDEF_(0x80548224L)")] - public const int E_MBN_SMS_MEMORY_FAILURE = unchecked((int)(0x80548224)); - - [NativeTypeName("#define E_MBN_SMS_NETWORK_TIMEOUT _HRESULT_TYPEDEF_(0x80548225L)")] - public const int E_MBN_SMS_NETWORK_TIMEOUT = unchecked((int)(0x80548225)); - - [NativeTypeName("#define E_MBN_SMS_UNKNOWN_SMSC_ADDRESS _HRESULT_TYPEDEF_(0x80548226L)")] - public const int E_MBN_SMS_UNKNOWN_SMSC_ADDRESS = unchecked((int)(0x80548226)); - - [NativeTypeName("#define E_MBN_SMS_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548227L)")] - public const int E_MBN_SMS_FORMAT_NOT_SUPPORTED = unchecked((int)(0x80548227)); - - [NativeTypeName("#define E_MBN_SMS_OPERATION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80548228L)")] - public const int E_MBN_SMS_OPERATION_NOT_ALLOWED = unchecked((int)(0x80548228)); - - [NativeTypeName("#define E_MBN_SMS_MEMORY_FULL _HRESULT_TYPEDEF_(0x80548229L)")] - public const int E_MBN_SMS_MEMORY_FULL = unchecked((int)(0x80548229)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80650001L)")] - public const int E_BLUETOOTH_ATT_INVALID_HANDLE = unchecked((int)(0x80650001)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_READ_NOT_PERMITTED _HRESULT_TYPEDEF_(0x80650002L)")] - public const int E_BLUETOOTH_ATT_READ_NOT_PERMITTED = unchecked((int)(0x80650002)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED _HRESULT_TYPEDEF_(0x80650003L)")] - public const int E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED = unchecked((int)(0x80650003)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INVALID_PDU _HRESULT_TYPEDEF_(0x80650004L)")] - public const int E_BLUETOOTH_ATT_INVALID_PDU = unchecked((int)(0x80650004)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION _HRESULT_TYPEDEF_(0x80650005L)")] - public const int E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION = unchecked((int)(0x80650005)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80650006L)")] - public const int E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED = unchecked((int)(0x80650006)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INVALID_OFFSET _HRESULT_TYPEDEF_(0x80650007L)")] - public const int E_BLUETOOTH_ATT_INVALID_OFFSET = unchecked((int)(0x80650007)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION _HRESULT_TYPEDEF_(0x80650008L)")] - public const int E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION = unchecked((int)(0x80650008)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL _HRESULT_TYPEDEF_(0x80650009L)")] - public const int E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL = unchecked((int)(0x80650009)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND _HRESULT_TYPEDEF_(0x8065000AL)")] - public const int E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND = unchecked((int)(0x8065000A)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG _HRESULT_TYPEDEF_(0x8065000BL)")] - public const int E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG = unchecked((int)(0x8065000B)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE _HRESULT_TYPEDEF_(0x8065000CL)")] - public const int E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE = unchecked((int)(0x8065000C)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH _HRESULT_TYPEDEF_(0x8065000DL)")] - public const int E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH = unchecked((int)(0x8065000D)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_UNLIKELY _HRESULT_TYPEDEF_(0x8065000EL)")] - public const int E_BLUETOOTH_ATT_UNLIKELY = unchecked((int)(0x8065000E)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION _HRESULT_TYPEDEF_(0x8065000FL)")] - public const int E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION = unchecked((int)(0x8065000F)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE _HRESULT_TYPEDEF_(0x80650010L)")] - public const int E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE = unchecked((int)(0x80650010)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES _HRESULT_TYPEDEF_(0x80650011L)")] - public const int E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES = unchecked((int)(0x80650011)); - - [NativeTypeName("#define E_BLUETOOTH_ATT_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80651000L)")] - public const int E_BLUETOOTH_ATT_UNKNOWN_ERROR = unchecked((int)(0x80651000)); - - [NativeTypeName("#define E_AUDIO_ENGINE_NODE_NOT_FOUND _HRESULT_TYPEDEF_(0x80660001L)")] - public const int E_AUDIO_ENGINE_NODE_NOT_FOUND = unchecked((int)(0x80660001)); - - [NativeTypeName("#define E_HDAUDIO_EMPTY_CONNECTION_LIST _HRESULT_TYPEDEF_(0x80660002L)")] - public const int E_HDAUDIO_EMPTY_CONNECTION_LIST = unchecked((int)(0x80660002)); - - [NativeTypeName("#define E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80660003L)")] - public const int E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED = unchecked((int)(0x80660003)); - - [NativeTypeName("#define E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED _HRESULT_TYPEDEF_(0x80660004L)")] - public const int E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED = unchecked((int)(0x80660004)); - - [NativeTypeName("#define E_HDAUDIO_NULL_LINKED_LIST_ENTRY _HRESULT_TYPEDEF_(0x80660005L)")] - public const int E_HDAUDIO_NULL_LINKED_LIST_ENTRY = unchecked((int)(0x80660005)); - - [NativeTypeName("#define E_MONITOR_RESOLUTION_TOO_LOW _HRESULT_TYPEDEF_(0x80270250L)")] - public const int E_MONITOR_RESOLUTION_TOO_LOW = unchecked((int)(0x80270250)); - - [NativeTypeName("#define E_ELEVATED_ACTIVATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270251L)")] - public const int E_ELEVATED_ACTIVATION_NOT_SUPPORTED = unchecked((int)(0x80270251)); - - [NativeTypeName("#define E_UAC_DISABLED _HRESULT_TYPEDEF_(0x80270252L)")] - public const int E_UAC_DISABLED = unchecked((int)(0x80270252)); - - [NativeTypeName("#define E_FULL_ADMIN_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270253L)")] - public const int E_FULL_ADMIN_NOT_SUPPORTED = unchecked((int)(0x80270253)); - - [NativeTypeName("#define E_APPLICATION_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80270254L)")] - public const int E_APPLICATION_NOT_REGISTERED = unchecked((int)(0x80270254)); - - [NativeTypeName("#define E_MULTIPLE_EXTENSIONS_FOR_APPLICATION _HRESULT_TYPEDEF_(0x80270255L)")] - public const int E_MULTIPLE_EXTENSIONS_FOR_APPLICATION = unchecked((int)(0x80270255)); - - [NativeTypeName("#define E_MULTIPLE_PACKAGES_FOR_FAMILY _HRESULT_TYPEDEF_(0x80270256L)")] - public const int E_MULTIPLE_PACKAGES_FOR_FAMILY = unchecked((int)(0x80270256)); - - [NativeTypeName("#define E_APPLICATION_MANAGER_NOT_RUNNING _HRESULT_TYPEDEF_(0x80270257L)")] - public const int E_APPLICATION_MANAGER_NOT_RUNNING = unchecked((int)(0x80270257)); - - [NativeTypeName("#define E_APPLICATION_ACTIVATION_TIMED_OUT _HRESULT_TYPEDEF_(0x8027025AL)")] - public const int E_APPLICATION_ACTIVATION_TIMED_OUT = unchecked((int)(0x8027025A)); - - [NativeTypeName("#define E_APPLICATION_ACTIVATION_EXEC_FAILURE _HRESULT_TYPEDEF_(0x8027025BL)")] - public const int E_APPLICATION_ACTIVATION_EXEC_FAILURE = unchecked((int)(0x8027025B)); - - [NativeTypeName("#define E_APPLICATION_TEMPORARY_LICENSE_ERROR _HRESULT_TYPEDEF_(0x8027025CL)")] - public const int E_APPLICATION_TEMPORARY_LICENSE_ERROR = unchecked((int)(0x8027025C)); - - [NativeTypeName("#define E_APPLICATION_TRIAL_LICENSE_EXPIRED _HRESULT_TYPEDEF_(0x8027025DL)")] - public const int E_APPLICATION_TRIAL_LICENSE_EXPIRED = unchecked((int)(0x8027025D)); - - [NativeTypeName("#define E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270260L)")] - public const int E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED = unchecked((int)(0x80270260)); - - [NativeTypeName("#define E_SKYDRIVE_ROOT_TARGET_OVERLAP _HRESULT_TYPEDEF_(0x80270261L)")] - public const int E_SKYDRIVE_ROOT_TARGET_OVERLAP = unchecked((int)(0x80270261)); - - [NativeTypeName("#define E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX _HRESULT_TYPEDEF_(0x80270262L)")] - public const int E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX = unchecked((int)(0x80270262)); - - [NativeTypeName("#define E_SKYDRIVE_FILE_NOT_UPLOADED _HRESULT_TYPEDEF_(0x80270263L)")] - public const int E_SKYDRIVE_FILE_NOT_UPLOADED = unchecked((int)(0x80270263)); - - [NativeTypeName("#define E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL _HRESULT_TYPEDEF_(0x80270264L)")] - public const int E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL = unchecked((int)(0x80270264)); - - [NativeTypeName("#define E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270265L)")] - public const int E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED = unchecked((int)(0x80270265)); - - [NativeTypeName("#define E_SYNCENGINE_FILE_SIZE_OVER_LIMIT _HRESULT_TYPEDEF_(0x8802B001L)")] - public const int E_SYNCENGINE_FILE_SIZE_OVER_LIMIT = unchecked((int)(0x8802B001)); - - [NativeTypeName("#define E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA _HRESULT_TYPEDEF_(0x8802B002L)")] - public const int E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA = unchecked((int)(0x8802B002)); - - [NativeTypeName("#define E_SYNCENGINE_UNSUPPORTED_FILE_NAME _HRESULT_TYPEDEF_(0x8802B003L)")] - public const int E_SYNCENGINE_UNSUPPORTED_FILE_NAME = unchecked((int)(0x8802B003)); - - [NativeTypeName("#define E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802B004L)")] - public const int E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED = unchecked((int)(0x8802B004)); - - [NativeTypeName("#define E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR _HRESULT_TYPEDEF_(0x8802B005L)")] - public const int E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR = unchecked((int)(0x8802B005)); - - [NativeTypeName("#define E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE _HRESULT_TYPEDEF_(0x8802B006L)")] - public const int E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE = unchecked((int)(0x8802B006)); - - [NativeTypeName("#define E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN _HRESULT_TYPEDEF_(0x8802C002L)")] - public const int E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN = unchecked((int)(0x8802C002)); - - [NativeTypeName("#define E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED _HRESULT_TYPEDEF_(0x8802C003L)")] - public const int E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED = unchecked((int)(0x8802C003)); - - [NativeTypeName("#define E_SYNCENGINE_UNKNOWN_SERVICE_ERROR _HRESULT_TYPEDEF_(0x8802C004L)")] - public const int E_SYNCENGINE_UNKNOWN_SERVICE_ERROR = unchecked((int)(0x8802C004)); - - [NativeTypeName("#define E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE _HRESULT_TYPEDEF_(0x8802C005L)")] - public const int E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE = unchecked((int)(0x8802C005)); - - [NativeTypeName("#define E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE _HRESULT_TYPEDEF_(0x8802C006L)")] - public const int E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE = unchecked((int)(0x8802C006)); - - [NativeTypeName("#define E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR _HRESULT_TYPEDEF_(0x8802C007L)")] - public const int E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR = unchecked((int)(0x8802C007)); - - [NativeTypeName("#define E_SYNCENGINE_FOLDER_INACCESSIBLE _HRESULT_TYPEDEF_(0x8802D001L)")] - public const int E_SYNCENGINE_FOLDER_INACCESSIBLE = unchecked((int)(0x8802D001)); - - [NativeTypeName("#define E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME _HRESULT_TYPEDEF_(0x8802D002L)")] - public const int E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME = unchecked((int)(0x8802D002)); - - [NativeTypeName("#define E_SYNCENGINE_UNSUPPORTED_MARKET _HRESULT_TYPEDEF_(0x8802D003L)")] - public const int E_SYNCENGINE_UNSUPPORTED_MARKET = unchecked((int)(0x8802D003)); - - [NativeTypeName("#define E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802D004L)")] - public const int E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED = unchecked((int)(0x8802D004)); - - [NativeTypeName("#define E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802D005L)")] - public const int E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED = unchecked((int)(0x8802D005)); - - [NativeTypeName("#define E_SYNCENGINE_CLIENT_UPDATE_NEEDED _HRESULT_TYPEDEF_(0x8802D006L)")] - public const int E_SYNCENGINE_CLIENT_UPDATE_NEEDED = unchecked((int)(0x8802D006)); - - [NativeTypeName("#define E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x8802D007L)")] - public const int E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED = unchecked((int)(0x8802D007)); - - [NativeTypeName("#define E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED _HRESULT_TYPEDEF_(0x8802D008L)")] - public const int E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED = unchecked((int)(0x8802D008)); - - [NativeTypeName("#define E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT _HRESULT_TYPEDEF_(0x8802D009L)")] - public const int E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT = unchecked((int)(0x8802D009)); - - [NativeTypeName("#define E_SYNCENGINE_STORAGE_SERVICE_BLOCKED _HRESULT_TYPEDEF_(0x8802D00AL)")] - public const int E_SYNCENGINE_STORAGE_SERVICE_BLOCKED = unchecked((int)(0x8802D00A)); - - [NativeTypeName("#define E_SYNCENGINE_FOLDER_IN_REDIRECTION _HRESULT_TYPEDEF_(0x8802D00BL)")] - public const int E_SYNCENGINE_FOLDER_IN_REDIRECTION = unchecked((int)(0x8802D00B)); - - [NativeTypeName("#define E_INVALID_PROTOCOL_OPERATION _HRESULT_TYPEDEF_(0x83760001L)")] - public const int E_INVALID_PROTOCOL_OPERATION = unchecked((int)(0x83760001)); - - [NativeTypeName("#define E_INVALID_PROTOCOL_FORMAT _HRESULT_TYPEDEF_(0x83760002L)")] - public const int E_INVALID_PROTOCOL_FORMAT = unchecked((int)(0x83760002)); - - [NativeTypeName("#define E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760003L)")] - public const int E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED = unchecked((int)(0x83760003)); - - [NativeTypeName("#define E_SUBPROTOCOL_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760004L)")] - public const int E_SUBPROTOCOL_NOT_SUPPORTED = unchecked((int)(0x83760004)); - - [NativeTypeName("#define E_PROTOCOL_VERSION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760005L)")] - public const int E_PROTOCOL_VERSION_NOT_SUPPORTED = unchecked((int)(0x83760005)); } \ No newline at end of file