diff --git a/Directory.Build.props b/Directory.Build.props index 13253ee7ac..3a7331f35d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -45,7 +45,7 @@ $(BaseArtifactsPath)pkg/$(Configuration)/ TerraFX.Interop.Windows TerraFX.Interop - 10.0.20348.3 + 10.0.20348.4 rc1 pr diff --git a/generation/remap-types.rsp b/generation/remap-types.rsp index c789656cf4..f3e99eb441 100644 --- a/generation/remap-types.rsp +++ b/generation/remap-types.rsp @@ -5558,4 +5558,4 @@ __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT=NCRYPT_PCP_TPM_WEB_AUTHN_ATTEST __NCRYPT_SUPPORTED_LENGTHS=NCRYPT_SUPPORTED_LENGTHS __NCRYPT_UI_POLICY=NCRYPT_UI_POLICY __NSConstantString_tag=__NSConstantString -__PUBLIC_OBJECT_TYPE_INFORMATION=PUBLIC_OBJECT_TYPE_INFORMATIO +__PUBLIC_OBJECT_TYPE_INFORMATION=PUBLIC_OBJECT_TYPE_INFORMATION diff --git a/generation/settings.rsp b/generation/settings.rsp index 170b5a20bc..9f7662dba7 100644 --- a/generation/settings.rsp +++ b/generation/settings.rsp @@ -18,6 +18,7 @@ generate-aggressive-inlining generate-cpp-attributes generate-doc-includes generate-file-scoped-namespaces +generate-guid-member generate-macro-bindings generate-marker-interfaces generate-native-inheritance-attribute @@ -27,6 +28,7 @@ generate-unmanaged-constants generate-vtbl-index-attribute log-potential-typedef-remappings multi-file +preview-codegen trimmable-vtbls --define-macro GDIPVER=0x0110 diff --git a/samples/DirectX/TerraFX.Samples.DirectX.csproj b/samples/DirectX/TerraFX.Samples.DirectX.csproj index a935649084..2585ad8a66 100644 --- a/samples/DirectX/TerraFX.Samples.DirectX.csproj +++ b/samples/DirectX/TerraFX.Samples.DirectX.csproj @@ -3,7 +3,7 @@ - net6.0 + net6.0;net7.0 diff --git a/samples/WinForms/TerraFX.Samples.WinForms.csproj b/samples/WinForms/TerraFX.Samples.WinForms.csproj index cac7b234eb..624d488d17 100644 --- a/samples/WinForms/TerraFX.Samples.WinForms.csproj +++ b/samples/WinForms/TerraFX.Samples.WinForms.csproj @@ -3,7 +3,7 @@ - net6.0-windows + net6.0-windows;net7.0-windows WinExe true diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 9adb35bf0e..b995678be0 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -134,6 +134,7 @@ try { Create-Directory -Path $DotNetInstallDirectory & $DotNetInstallScript -Channel 6.0 -Version latest -InstallDir $DotNetInstallDirectory -Architecture $architecture + & $DotNetInstallScript -Channel 7.0 -Version latest -InstallDir $DotNetInstallDirectory -Architecture $architecture -Quality preview $env:PATH="$DotNetInstallDirectory;$env:PATH" } diff --git a/sources/Interop/Windows/DirectX/other/D3D11On12On7/ID3D11On12On7.cs b/sources/Interop/Windows/DirectX/other/D3D11On12On7/ID3D11On12On7.cs index 0c8226b51f..b00c83bfc6 100644 --- a/sources/Interop/Windows/DirectX/other/D3D11On12On7/ID3D11On12On7.cs +++ b/sources/Interop/Windows/DirectX/other/D3D11On12On7/ID3D11On12On7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("00000000-0000-0000-0000-000000000000")] [NativeTypeName("struct ID3D11On12On7 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11On12On7 : ID3D11On12On7.Interface +public unsafe partial struct ID3D11On12On7 : ID3D11On12On7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11On12On7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.cs b/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.cs index c355f6c3bb..aafa053ff6 100644 --- a/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.cs +++ b/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("38A8C5EF-7CCB-4E81-914F-A6E9D072C494")] [NativeTypeName("struct ID3D12CommandQueueDownlevel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12CommandQueueDownlevel : ID3D12CommandQueueDownlevel.Interface +public unsafe partial struct ID3D12CommandQueueDownlevel : ID3D12CommandQueueDownlevel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueueDownlevel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.cs b/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.cs index 353b5eb6cf..c6139449df 100644 --- a/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.cs +++ b/sources/Interop/Windows/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("74EAEE3F-2F4B-476D-82BA-2B85CB49E310")] [NativeTypeName("struct ID3D12DeviceDownlevel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceDownlevel : ID3D12DeviceDownlevel.Interface +public unsafe partial struct ID3D12DeviceDownlevel : ID3D12DeviceDownlevel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceDownlevel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs index e90979d003..4a7d3d8c5b 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -74,6 +75,7 @@ public partial struct _RTVFormats_e__FixedBuffer public DXGI_FORMAT e6; public DXGI_FORMAT e7; + [UnscopedRef] public ref DXGI_FORMAT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -84,6 +86,7 @@ public ref DXGI_FORMAT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter.cs index 712d83fb63..b16a46e12b 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2411E7E1-12AC-4CCF-BD14-9798E8534DC0")] [NativeTypeName("struct IDXGIAdapter : IDXGIObject")] [NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIAdapter : IDXGIAdapter.Interface +public unsafe partial struct IDXGIAdapter : IDXGIAdapter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter1.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter1.cs index 0d77532081..dab366a137 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIAdapter1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("29038F61-3839-4626-91FD-086879011A05")] [NativeTypeName("struct IDXGIAdapter1 : IDXGIAdapter")] [NativeInheritance("IDXGIAdapter")] -public unsafe partial struct IDXGIAdapter1 : IDXGIAdapter1.Interface +public unsafe partial struct IDXGIAdapter1 : IDXGIAdapter1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice.cs index 89c7a6612d..42418bba56 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("54EC77FA-1377-44E6-8C32-88FD5F44C84C")] [NativeTypeName("struct IDXGIDevice : IDXGIObject")] [NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIDevice : IDXGIDevice.Interface +public unsafe partial struct IDXGIDevice : IDXGIDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice1.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice1.cs index cecdd92d3e..59919490ab 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDevice1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("77DB970F-6276-48BA-BA28-070143B4392C")] [NativeTypeName("struct IDXGIDevice1 : IDXGIDevice")] [NativeInheritance("IDXGIDevice")] -public unsafe partial struct IDXGIDevice1 : IDXGIDevice1.Interface +public unsafe partial struct IDXGIDevice1 : IDXGIDevice1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDeviceSubObject.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDeviceSubObject.cs index bde0df0b13..75db28b672 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDeviceSubObject.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIDeviceSubObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3D3E0379-F9DE-4D58-BB6C-18D62992F1A6")] [NativeTypeName("struct IDXGIDeviceSubObject : IDXGIObject")] [NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIDeviceSubObject : IDXGIDeviceSubObject.Interface +public unsafe partial struct IDXGIDeviceSubObject : IDXGIDeviceSubObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDeviceSubObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory.cs index b7ddd7f535..f064c359e5 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7B7166EC-21C7-44AE-B21A-C9AE321AE369")] [NativeTypeName("struct IDXGIFactory : IDXGIObject")] [NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface +public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory1.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory1.cs index e0e9ef1150..6e47226a45 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIFactory1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("770AAE78-F26F-4DBA-A829-253C83D1B387")] [NativeTypeName("struct IDXGIFactory1 : IDXGIFactory")] [NativeInheritance("IDXGIFactory")] -public unsafe partial struct IDXGIFactory1 : IDXGIFactory1.Interface +public unsafe partial struct IDXGIFactory1 : IDXGIFactory1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIKeyedMutex.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIKeyedMutex.cs index 175596e65a..4da2ed3531 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIKeyedMutex.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIKeyedMutex.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9D8E1289-D7B3-465F-8126-250E349AF85D")] [NativeTypeName("struct IDXGIKeyedMutex : IDXGIDeviceSubObject")] [NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGIKeyedMutex : IDXGIKeyedMutex.Interface +public unsafe partial struct IDXGIKeyedMutex : IDXGIKeyedMutex.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIKeyedMutex)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIObject.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIObject.cs index 7c4130225e..af41b03cb1 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIObject.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AEC22FB8-76F3-4639-9BE0-28EB43A67A2E")] [NativeTypeName("struct IDXGIObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIObject : IDXGIObject.Interface +public unsafe partial struct IDXGIObject : IDXGIObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIOutput.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIOutput.cs index 62b2ab821e..b587260e44 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIOutput.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIOutput.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AE02EEDB-C735-4690-8D52-5A8DC20213AA")] [NativeTypeName("struct IDXGIOutput : IDXGIObject")] [NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIOutput : IDXGIOutput.Interface +public unsafe partial struct IDXGIOutput : IDXGIOutput.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIResource.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIResource.cs index ed4205ed38..6bdddd128e 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIResource.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGIResource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("035F3AB4-482E-4E50-B41F-8A7F8BD8960B")] [NativeTypeName("struct IDXGIResource : IDXGIDeviceSubObject")] [NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGIResource : IDXGIResource.Interface +public unsafe partial struct IDXGIResource : IDXGIResource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface.cs index f8a6b240c9..8a7c3cd511 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CAFCB56C-6AC3-4889-BF47-9E23BBD260EC")] [NativeTypeName("struct IDXGISurface : IDXGIDeviceSubObject")] [NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGISurface : IDXGISurface.Interface +public unsafe partial struct IDXGISurface : IDXGISurface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface1.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface1.cs index 94abeb74f6..424db8520e 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISurface1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4AE63092-6327-4C1B-80AE-BFE12EA32B86")] [NativeTypeName("struct IDXGISurface1 : IDXGISurface")] [NativeInheritance("IDXGISurface")] -public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface +public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISwapChain.cs b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISwapChain.cs index 9287a3a090..922974f10f 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISwapChain.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/IDXGISwapChain.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("310D36A0-D2E7-4C0A-AA04-6A9D23B8886A")] [NativeTypeName("struct IDXGISwapChain : IDXGIDeviceSubObject")] [NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGISwapChain : IDXGISwapChain.Interface +public unsafe partial struct IDXGISwapChain : IDXGISwapChain.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIAdapter2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIAdapter2.cs index 09331730e3..b0e8c6a39b 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIAdapter2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIAdapter2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0AA1AE0A-FA0E-4B84-8644-E05FF8E5ACB5")] [NativeTypeName("struct IDXGIAdapter2 : IDXGIAdapter1")] [NativeInheritance("IDXGIAdapter1")] -public unsafe partial struct IDXGIAdapter2 : IDXGIAdapter2.Interface +public unsafe partial struct IDXGIAdapter2 : IDXGIAdapter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDevice2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDevice2.cs index 4959610ab9..b7e04f5fb9 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDevice2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDevice2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("05008617-FBFD-4051-A790-144884B4F6A9")] [NativeTypeName("struct IDXGIDevice2 : IDXGIDevice1")] [NativeInheritance("IDXGIDevice1")] -public unsafe partial struct IDXGIDevice2 : IDXGIDevice2.Interface +public unsafe partial struct IDXGIDevice2 : IDXGIDevice2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDisplayControl.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDisplayControl.cs index f1107cbec7..37f61cb995 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDisplayControl.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIDisplayControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EA9DBF1A-C88E-4486-854A-98AA0138F30C")] [NativeTypeName("struct IDXGIDisplayControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIDisplayControl : IDXGIDisplayControl.Interface +public unsafe partial struct IDXGIDisplayControl : IDXGIDisplayControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDisplayControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIFactory2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIFactory2.cs index 5e08ed44dd..bdb959ae73 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIFactory2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIFactory2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("50C83A1C-E072-4C48-87B0-3630FA36A6D0")] [NativeTypeName("struct IDXGIFactory2 : IDXGIFactory1")] [NativeInheritance("IDXGIFactory1")] -public unsafe partial struct IDXGIFactory2 : IDXGIFactory2.Interface +public unsafe partial struct IDXGIFactory2 : IDXGIFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutput1.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutput1.cs index b9f0c482d1..d1a89dd394 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutput1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutput1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("00CDDEA8-939B-4B83-A340-A685226666CC")] [NativeTypeName("struct IDXGIOutput1 : IDXGIOutput")] [NativeInheritance("IDXGIOutput")] -public unsafe partial struct IDXGIOutput1 : IDXGIOutput1.Interface +public unsafe partial struct IDXGIOutput1 : IDXGIOutput1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutputDuplication.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutputDuplication.cs index 1ec62c22fc..14b1336c79 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutputDuplication.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIOutputDuplication.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutputDuplication : IDXGIObject")] [NativeInheritance("IDXGIObject")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDXGIOutputDuplication : IDXGIOutputDuplication.Interface +public unsafe partial struct IDXGIOutputDuplication : IDXGIOutputDuplication.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutputDuplication)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIResource1.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIResource1.cs index 729160d9b8..6e6102f8b3 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIResource1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGIResource1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("30961379-4609-4A41-998E-54FE567EE0C1")] [NativeTypeName("struct IDXGIResource1 : IDXGIResource")] [NativeInheritance("IDXGIResource")] -public unsafe partial struct IDXGIResource1 : IDXGIResource1.Interface +public unsafe partial struct IDXGIResource1 : IDXGIResource1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISurface2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISurface2.cs index 2e0b7fc125..6a4cf98f10 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISurface2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISurface2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("ABA496DD-B617-4CB8-A866-BC44D7EB1FA2")] [NativeTypeName("struct IDXGISurface2 : IDXGISurface1")] [NativeInheritance("IDXGISurface1")] -public unsafe partial struct IDXGISurface2 : IDXGISurface2.Interface +public unsafe partial struct IDXGISurface2 : IDXGISurface2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISwapChain1.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISwapChain1.cs index ddace6d783..433f80116a 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISwapChain1.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/IDXGISwapChain1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("790A45F7-0D42-4876-983A-0A55CFE6F4AA")] [NativeTypeName("struct IDXGISwapChain1 : IDXGISwapChain")] [NativeInheritance("IDXGISwapChain")] -public unsafe partial struct IDXGISwapChain1 : IDXGISwapChain1.Interface +public unsafe partial struct IDXGISwapChain1 : IDXGISwapChain1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDecodeSwapChain.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDecodeSwapChain.cs index cde849a1ab..9026297acd 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDecodeSwapChain.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDecodeSwapChain.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIDecodeSwapChain : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interface +public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDecodeSwapChain)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDevice3.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDevice3.cs index 202b672872..d1f53440b7 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDevice3.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIDevice3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIDevice3 : IDXGIDevice2")] [NativeInheritance("IDXGIDevice2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIDevice3 : IDXGIDevice3.Interface +public unsafe partial struct IDXGIDevice3 : IDXGIDevice3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactory3.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactory3.cs index 85a79ae241..0c0badab1b 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactory3.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactory3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIFactory3 : IDXGIFactory2")] [NativeInheritance("IDXGIFactory2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIFactory3 : IDXGIFactory3.Interface +public unsafe partial struct IDXGIFactory3 : IDXGIFactory3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactoryMedia.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactoryMedia.cs index aee47bae94..74e14fde58 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactoryMedia.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIFactoryMedia.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIFactoryMedia : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIFactoryMedia : IDXGIFactoryMedia.Interface +public unsafe partial struct IDXGIFactoryMedia : IDXGIFactoryMedia.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactoryMedia)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput2.cs index cc70d04991..0b935c16db 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutput2 : IDXGIOutput1")] [NativeInheritance("IDXGIOutput1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIOutput2 : IDXGIOutput2.Interface +public unsafe partial struct IDXGIOutput2 : IDXGIOutput2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput3.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput3.cs index fbe8023366..848e1d2bcb 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput3.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGIOutput3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutput3 : IDXGIOutput2")] [NativeInheritance("IDXGIOutput2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIOutput3 : IDXGIOutput3.Interface +public unsafe partial struct IDXGIOutput3 : IDXGIOutput3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChain2.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChain2.cs index ddeab7d5cc..c055636b51 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChain2.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChain2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGISwapChain2 : IDXGISwapChain1")] [NativeInheritance("IDXGISwapChain1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGISwapChain2 : IDXGISwapChain2.Interface +public unsafe partial struct IDXGISwapChain2 : IDXGISwapChain2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChainMedia.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChainMedia.cs index 82b6be36dd..bb4a356686 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChainMedia.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/IDXGISwapChainMedia.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGISwapChainMedia : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGISwapChainMedia : IDXGISwapChainMedia.Interface +public unsafe partial struct IDXGISwapChainMedia : IDXGISwapChainMedia.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChainMedia)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIAdapter3.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIAdapter3.cs index 6827a3c9a6..98b9f17d13 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIAdapter3.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIAdapter3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("645967A4-1392-4310-A798-8053CE3E93FD")] [NativeTypeName("struct IDXGIAdapter3 : IDXGIAdapter2")] [NativeInheritance("IDXGIAdapter2")] -public unsafe partial struct IDXGIAdapter3 : IDXGIAdapter3.Interface +public unsafe partial struct IDXGIAdapter3 : IDXGIAdapter3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIFactory4.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIFactory4.cs index 33bfaf9a87..83262fd1af 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIFactory4.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIFactory4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1BC6EA02-EF36-464F-BF0C-21CA39E5168A")] [NativeTypeName("struct IDXGIFactory4 : IDXGIFactory3")] [NativeInheritance("IDXGIFactory3")] -public unsafe partial struct IDXGIFactory4 : IDXGIFactory4.Interface +public unsafe partial struct IDXGIFactory4 : IDXGIFactory4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIOutput4.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIOutput4.cs index 55db7f013d..e97fa862cb 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIOutput4.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGIOutput4.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutput4 : IDXGIOutput3")] [NativeInheritance("IDXGIOutput3")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDXGIOutput4 : IDXGIOutput4.Interface +public unsafe partial struct IDXGIOutput4 : IDXGIOutput4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGISwapChain3.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGISwapChain3.cs index 80cb80469d..afd7175837 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGISwapChain3.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_4/IDXGISwapChain3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGISwapChain3 : IDXGISwapChain2")] [NativeInheritance("IDXGISwapChain2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDXGISwapChain3 : IDXGISwapChain3.Interface +public unsafe partial struct IDXGISwapChain3 : IDXGISwapChain3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIDevice4.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIDevice4.cs index 1ded832e83..8731f44656 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIDevice4.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIDevice4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("95B4F95F-D8DA-4CA4-9EE6-3B76D5968A10")] [NativeTypeName("struct IDXGIDevice4 : IDXGIDevice3")] [NativeInheritance("IDXGIDevice3")] -public unsafe partial struct IDXGIDevice4 : IDXGIDevice4.Interface +public unsafe partial struct IDXGIDevice4 : IDXGIDevice4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIFactory5.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIFactory5.cs index c339f5c293..bc5b27dbde 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIFactory5.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIFactory5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7632E1F5-EE65-4DCA-87FD-84CD75F8838D")] [NativeTypeName("struct IDXGIFactory5 : IDXGIFactory4")] [NativeInheritance("IDXGIFactory4")] -public unsafe partial struct IDXGIFactory5 : IDXGIFactory5.Interface +public unsafe partial struct IDXGIFactory5 : IDXGIFactory5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIOutput5.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIOutput5.cs index 66742575b2..857494d4fe 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIOutput5.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGIOutput5.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutput5 : IDXGIOutput4")] [NativeInheritance("IDXGIOutput4")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDXGIOutput5 : IDXGIOutput5.Interface +public unsafe partial struct IDXGIOutput5 : IDXGIOutput5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGISwapChain4.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGISwapChain4.cs index 043a26030b..dc8700fc74 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGISwapChain4.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_5/IDXGISwapChain4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3D585D5A-BD4A-489E-B1F4-3DBCB6452FFB")] [NativeTypeName("struct IDXGISwapChain4 : IDXGISwapChain3")] [NativeInheritance("IDXGISwapChain3")] -public unsafe partial struct IDXGISwapChain4 : IDXGISwapChain4.Interface +public unsafe partial struct IDXGISwapChain4 : IDXGISwapChain4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIAdapter4.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIAdapter4.cs index 1022b21c81..bd3a5bb7d3 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIAdapter4.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIAdapter4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3C8D99D1-4FBF-4181-A82C-AF66BF7BD24E")] [NativeTypeName("struct IDXGIAdapter4 : IDXGIAdapter3")] [NativeInheritance("IDXGIAdapter3")] -public unsafe partial struct IDXGIAdapter4 : IDXGIAdapter4.Interface +public unsafe partial struct IDXGIAdapter4 : IDXGIAdapter4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs index 82b1c72c33..e8588ce280 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIFactory6 : IDXGIFactory5")] [NativeInheritance("IDXGIFactory5")] [SupportedOSPlatform("windows10.0.17134.0")] -public unsafe partial struct IDXGIFactory6 : IDXGIFactory6.Interface +public unsafe partial struct IDXGIFactory6 : IDXGIFactory6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory7.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory7.cs index ce0ce98673..a83179189e 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory7.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIFactory7.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIFactory7 : IDXGIFactory6")] [NativeInheritance("IDXGIFactory6")] [SupportedOSPlatform("windows10.0.17763.0")] -public unsafe partial struct IDXGIFactory7 : IDXGIFactory7.Interface +public unsafe partial struct IDXGIFactory7 : IDXGIFactory7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIOutput6.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIOutput6.cs index ef6be17997..648d68bbb3 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIOutput6.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_6/IDXGIOutput6.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIOutput6 : IDXGIOutput5")] [NativeInheritance("IDXGIOutput5")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDXGIOutput6 : IDXGIOutput6.Interface +public unsafe partial struct IDXGIOutput6 : IDXGIOutput6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI_GAMMA_CONTROL.cs b/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI_GAMMA_CONTROL.cs index f25a5cff01..5b7677f8cb 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI_GAMMA_CONTROL.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI_GAMMA_CONTROL.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -1051,6 +1052,7 @@ public partial struct _GammaCurve_e__FixedBuffer public DXGI_RGB e1023; public DXGI_RGB e1024; + [UnscopedRef] public ref DXGI_RGB this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1061,6 +1063,7 @@ public ref DXGI_RGB this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 1025); } } diff --git a/sources/Interop/Windows/DirectX/um/DXProgrammableCapture/IDXGraphicsAnalysis.cs b/sources/Interop/Windows/DirectX/um/DXProgrammableCapture/IDXGraphicsAnalysis.cs index 878e2158e6..189a76935a 100644 --- a/sources/Interop/Windows/DirectX/um/DXProgrammableCapture/IDXGraphicsAnalysis.cs +++ b/sources/Interop/Windows/DirectX/um/DXProgrammableCapture/IDXGraphicsAnalysis.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9F251514-9D4D-4902-9D60-18988AB7D4B5")] [NativeTypeName("struct IDXGraphicsAnalysis : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDXGraphicsAnalysis : IDXGraphicsAnalysis.Interface +public unsafe partial struct IDXGraphicsAnalysis : IDXGraphicsAnalysis.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGraphicsAnalysis)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLBindingTable.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLBindingTable.cs index 6a07d34687..7edfe26f37 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLBindingTable.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLBindingTable.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("29C687DC-DE74-4E3B-AB00-1168F2FC3CFC")] [NativeTypeName("struct IDMLBindingTable : IDMLDeviceChild")] [NativeInheritance("IDMLDeviceChild")] -public unsafe partial struct IDMLBindingTable : IDMLBindingTable.Interface +public unsafe partial struct IDMLBindingTable : IDMLBindingTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLBindingTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLCommandRecorder.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLCommandRecorder.cs index a0044e7bc8..02eea91eaa 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLCommandRecorder.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLCommandRecorder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E6857A76-2E3E-4FDD-BFF4-5D2BA10FB453")] [NativeTypeName("struct IDMLCommandRecorder : IDMLDeviceChild")] [NativeInheritance("IDMLDeviceChild")] -public unsafe partial struct IDMLCommandRecorder : IDMLCommandRecorder.Interface +public unsafe partial struct IDMLCommandRecorder : IDMLCommandRecorder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLCommandRecorder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLCompiledOperator.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLCompiledOperator.cs index 5771d216d1..32aba054d3 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLCompiledOperator.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLCompiledOperator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6B15E56A-BF5C-4902-92D8-DA3A650AFEA4")] [NativeTypeName("struct IDMLCompiledOperator : IDMLDispatchable")] [NativeInheritance("IDMLDispatchable")] -public unsafe partial struct IDMLCompiledOperator : IDMLCompiledOperator.Interface +public unsafe partial struct IDMLCompiledOperator : IDMLCompiledOperator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLCompiledOperator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDebugDevice.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDebugDevice.cs index 9ad902f03f..4e1815a853 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDebugDevice.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDebugDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7D6F3AC9-394A-4AC3-92A7-390CC57A8217")] [NativeTypeName("struct IDMLDebugDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDMLDebugDevice : IDMLDebugDevice.Interface +public unsafe partial struct IDMLDebugDevice : IDMLDebugDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLDebugDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice.cs index 2ea5b030a2..a794b3e9a0 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6DBD6437-96FD-423F-A98C-AE5E7C2A573F")] [NativeTypeName("struct IDMLDevice : IDMLObject")] [NativeInheritance("IDMLObject")] -public unsafe partial struct IDMLDevice : IDMLDevice.Interface +public unsafe partial struct IDMLDevice : IDMLDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice1.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice1.cs index 73dc2fe3c1..b63a95a5f9 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice1.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDevice1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A0884F9A-D2BE-4355-AA5D-5901281AD1D2")] [NativeTypeName("struct IDMLDevice1 : IDMLDevice")] [NativeInheritance("IDMLDevice")] -public unsafe partial struct IDMLDevice1 : IDMLDevice1.Interface +public unsafe partial struct IDMLDevice1 : IDMLDevice1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLDevice1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDeviceChild.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDeviceChild.cs index cd67de561a..f484d8d91e 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDeviceChild.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDeviceChild.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("27E83142-8165-49E3-974E-2FD66E4CB69D")] [NativeTypeName("struct IDMLDeviceChild : IDMLObject")] [NativeInheritance("IDMLObject")] -public unsafe partial struct IDMLDeviceChild : IDMLDeviceChild.Interface +public unsafe partial struct IDMLDeviceChild : IDMLDeviceChild.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLDeviceChild)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDispatchable.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDispatchable.cs index eb9741a701..dbf6b01f27 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLDispatchable.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLDispatchable.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DCB821A8-1039-441E-9F1C-B1759C2F3CEC")] [NativeTypeName("struct IDMLDispatchable : IDMLPageable")] [NativeInheritance("IDMLPageable")] -public unsafe partial struct IDMLDispatchable : IDMLDispatchable.Interface +public unsafe partial struct IDMLDispatchable : IDMLDispatchable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLDispatchable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLObject.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLObject.cs index 474e28f712..bba7e4336a 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLObject.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C8263AAC-9E0C-4A2D-9B8E-007521A3317C")] [NativeTypeName("struct IDMLObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDMLObject : IDMLObject.Interface +public unsafe partial struct IDMLObject : IDMLObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperator.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperator.cs index 54a8c7d8cf..1c170d89df 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperator.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("26CAAE7A-3081-4633-9581-226FBE57695D")] [NativeTypeName("struct IDMLOperator : IDMLDeviceChild")] [NativeInheritance("IDMLDeviceChild")] -public unsafe partial struct IDMLOperator : IDMLOperator.Interface +public unsafe partial struct IDMLOperator : IDMLOperator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLOperator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperatorInitializer.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperatorInitializer.cs index f9559d6dd7..327fe7ad1e 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperatorInitializer.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLOperatorInitializer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("427C1113-435C-469C-8676-4D5DD072F813")] [NativeTypeName("struct IDMLOperatorInitializer : IDMLDispatchable")] [NativeInheritance("IDMLDispatchable")] -public unsafe partial struct IDMLOperatorInitializer : IDMLOperatorInitializer.Interface +public unsafe partial struct IDMLOperatorInitializer : IDMLOperatorInitializer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLOperatorInitializer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/DirectML/IDMLPageable.cs b/sources/Interop/Windows/DirectX/um/DirectML/IDMLPageable.cs index 4028aaa05c..60e00858d7 100644 --- a/sources/Interop/Windows/DirectX/um/DirectML/IDMLPageable.cs +++ b/sources/Interop/Windows/DirectX/um/DirectML/IDMLPageable.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B1AB0825-4542-4A4B-8617-6DDE6E8F6201")] [NativeTypeName("struct IDMLPageable : IDMLDeviceChild")] [NativeInheritance("IDMLDeviceChild")] -public unsafe partial struct IDMLPageable : IDMLPageable.Interface +public unsafe partial struct IDMLPageable : IDMLPageable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMLPageable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/Xinput/XINPUT.cs b/sources/Interop/Windows/DirectX/um/Xinput/XINPUT.cs index 8493e87632..f9f5b5938a 100644 --- a/sources/Interop/Windows/DirectX/um/Xinput/XINPUT.cs +++ b/sources/Interop/Windows/DirectX/um/Xinput/XINPUT.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.DirectX; public static partial class XINPUT { [NativeTypeName("#define XINPUT_DLL_A \"xinput1_4.dll\"")] - public static ReadOnlySpan XINPUT_DLL_A => new byte[] { 0x78, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x31, 0x5F, 0x34, 0x2E, 0x64, 0x6C, 0x6C, 0x00 }; + public static ReadOnlySpan XINPUT_DLL_A => "xinput1_4.dll"u8; [NativeTypeName("#define XINPUT_DLL_W L\"xinput1_4.dll\"")] public const string XINPUT_DLL_W = "xinput1_4.dll"; diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Bitmap.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Bitmap.cs index 292835c767..7adcd9fa35 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Bitmap.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Bitmap.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A2296057-EA42-4099-983B-539FB6505426")] [NativeTypeName("struct ID2D1Bitmap : ID2D1Image")] [NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1Bitmap : ID2D1Bitmap.Interface +public unsafe partial struct ID2D1Bitmap : ID2D1Bitmap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapBrush.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapBrush.cs index ef6e018dd4..75996cc211 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapBrush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapBrush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906AA-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1BitmapBrush : ID2D1Brush")] [NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1BitmapBrush : ID2D1BitmapBrush.Interface +public unsafe partial struct ID2D1BitmapBrush : ID2D1BitmapBrush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapRenderTarget.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapRenderTarget.cs index ed06ac1f40..0fc22eb17d 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapRenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1BitmapRenderTarget.cs @@ -13,6 +13,7 @@ using static TerraFX.Interop.DirectX.D2D1_EXTEND_MODE; using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -20,8 +21,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD90695-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1BitmapRenderTarget : ID2D1RenderTarget")] [NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1BitmapRenderTarget : ID2D1BitmapRenderTarget.Interface +public unsafe partial struct ID2D1BitmapRenderTarget : ID2D1BitmapRenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapRenderTarget)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Brush.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Brush.cs index 1ea08b6f04..7da0425df3 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Brush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Brush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A8-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1Brush : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Brush : ID2D1Brush.Interface +public unsafe partial struct ID2D1Brush : ID2D1Brush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Brush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DCRenderTarget.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DCRenderTarget.cs index 107f42d1f0..c15d05ead4 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DCRenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DCRenderTarget.cs @@ -13,6 +13,7 @@ using static TerraFX.Interop.DirectX.D2D1_EXTEND_MODE; using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -20,8 +21,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1C51BC64-DE61-46FD-9899-63A5D8F03950")] [NativeTypeName("struct ID2D1DCRenderTarget : ID2D1RenderTarget")] [NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1DCRenderTarget : ID2D1DCRenderTarget.Interface +public unsafe partial struct ID2D1DCRenderTarget : ID2D1DCRenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DCRenderTarget)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DrawingStateBlock.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DrawingStateBlock.cs index 1f26d87f80..57bd672142 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DrawingStateBlock.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1DrawingStateBlock.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("28506E39-EBF6-46A1-BB47-FD85565AB957")] [NativeTypeName("struct ID2D1DrawingStateBlock : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1DrawingStateBlock : ID2D1DrawingStateBlock.Interface +public unsafe partial struct ID2D1DrawingStateBlock : ID2D1DrawingStateBlock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1EllipseGeometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1EllipseGeometry.cs index 2e48a05669..3ecdad6162 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1EllipseGeometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1EllipseGeometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A4-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1EllipseGeometry : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1EllipseGeometry : ID2D1EllipseGeometry.Interface +public unsafe partial struct ID2D1EllipseGeometry : ID2D1EllipseGeometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EllipseGeometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Factory.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Factory.cs index 83e7fb47a3..b883c08936 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Factory.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Factory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("06152247-6F50-465A-9245-118BFD3B6007")] [NativeTypeName("struct ID2D1Factory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Factory : ID2D1Factory.Interface +public unsafe partial struct ID2D1Factory : ID2D1Factory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GdiInteropRenderTarget.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GdiInteropRenderTarget.cs index de4957f3f8..edcb3888c6 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GdiInteropRenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GdiInteropRenderTarget.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E0DB51C3-6F77-4BAE-B3D5-E47509B35838")] [NativeTypeName("struct ID2D1GdiInteropRenderTarget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1GdiInteropRenderTarget : ID2D1GdiInteropRenderTarget.Interface +public unsafe partial struct ID2D1GdiInteropRenderTarget : ID2D1GdiInteropRenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiInteropRenderTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Geometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Geometry.cs index 908ac0a6ec..2342e979cf 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Geometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Geometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A1-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1Geometry : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Geometry : ID2D1Geometry.Interface +public unsafe partial struct ID2D1Geometry : ID2D1Geometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Geometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometryGroup.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometryGroup.cs index 356e8e072b..5c27018bc0 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometryGroup.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometryGroup.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A6-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1GeometryGroup : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1GeometryGroup : ID2D1GeometryGroup.Interface +public unsafe partial struct ID2D1GeometryGroup : ID2D1GeometryGroup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryGroup)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometrySink.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometrySink.cs index 9a947117da..c1ac7754f4 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometrySink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GeometrySink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD9069F-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1GeometrySink : ID2D1SimplifiedGeometrySink")] [NativeInheritance("ID2D1SimplifiedGeometrySink")] -public unsafe partial struct ID2D1GeometrySink : ID2D1GeometrySink.Interface +public unsafe partial struct ID2D1GeometrySink : ID2D1GeometrySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometrySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GradientStopCollection.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GradientStopCollection.cs index cf0a518322..29f4d9a750 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GradientStopCollection.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1GradientStopCollection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A7-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1GradientStopCollection : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1GradientStopCollection : ID2D1GradientStopCollection.Interface +public unsafe partial struct ID2D1GradientStopCollection : ID2D1GradientStopCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1HwndRenderTarget.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1HwndRenderTarget.cs index 25f009e647..433df4da24 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1HwndRenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1HwndRenderTarget.cs @@ -13,6 +13,7 @@ using static TerraFX.Interop.DirectX.D2D1_EXTEND_MODE; using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -20,8 +21,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD90698-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1HwndRenderTarget : ID2D1RenderTarget")] [NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1HwndRenderTarget : ID2D1HwndRenderTarget.Interface +public unsafe partial struct ID2D1HwndRenderTarget : ID2D1HwndRenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1HwndRenderTarget)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Image.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Image.cs index 48315c99b4..a442e64f0c 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Image.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Image.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("65019F75-8DA2-497C-B32C-DFA34E48EDE6")] [NativeTypeName("struct ID2D1Image : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Image : ID2D1Image.Interface +public unsafe partial struct ID2D1Image : ID2D1Image.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Image)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Layer.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Layer.cs index 958bac53a5..10f8329844 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Layer.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Layer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD9069B-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1Layer : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Layer : ID2D1Layer.Interface +public unsafe partial struct ID2D1Layer : ID2D1Layer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Layer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1LinearGradientBrush.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1LinearGradientBrush.cs index 0204774e78..e5a36c0d26 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1LinearGradientBrush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1LinearGradientBrush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906AB-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1LinearGradientBrush : ID2D1Brush")] [NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1LinearGradientBrush : ID2D1LinearGradientBrush.Interface +public unsafe partial struct ID2D1LinearGradientBrush : ID2D1LinearGradientBrush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LinearGradientBrush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Mesh.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Mesh.cs index b4f459269f..580cf3e499 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Mesh.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Mesh.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906C2-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1Mesh : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Mesh : ID2D1Mesh.Interface +public unsafe partial struct ID2D1Mesh : ID2D1Mesh.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Mesh)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1PathGeometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1PathGeometry.cs index a74d3abd01..1f5727b484 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1PathGeometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1PathGeometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A5-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1PathGeometry : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1PathGeometry : ID2D1PathGeometry.Interface +public unsafe partial struct ID2D1PathGeometry : ID2D1PathGeometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RadialGradientBrush.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RadialGradientBrush.cs index 6251130c93..2e5372d002 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RadialGradientBrush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RadialGradientBrush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906AC-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1RadialGradientBrush : ID2D1Brush")] [NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1RadialGradientBrush : ID2D1RadialGradientBrush.Interface +public unsafe partial struct ID2D1RadialGradientBrush : ID2D1RadialGradientBrush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RadialGradientBrush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RectangleGeometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RectangleGeometry.cs index 71a14e5dce..3d2cbdcd46 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RectangleGeometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RectangleGeometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A2-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1RectangleGeometry : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1RectangleGeometry : ID2D1RectangleGeometry.Interface +public unsafe partial struct ID2D1RectangleGeometry : ID2D1RectangleGeometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RectangleGeometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RenderTarget.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RenderTarget.cs index d1b898988c..3299c32e4b 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RenderTarget.cs @@ -13,6 +13,7 @@ using static TerraFX.Interop.DirectX.D2D1_EXTEND_MODE; using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -20,8 +21,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD90694-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1RenderTarget : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface +public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderTarget)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Resource.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Resource.cs index 7ff56f48d6..f0aaae6441 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Resource.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1Resource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD90691-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1Resource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Resource : ID2D1Resource.Interface +public unsafe partial struct ID2D1Resource : ID2D1Resource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Resource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RoundedRectangleGeometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RoundedRectangleGeometry.cs index 752a61cc88..e67595b040 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RoundedRectangleGeometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1RoundedRectangleGeometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A3-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1RoundedRectangleGeometry : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1RoundedRectangleGeometry : ID2D1RoundedRectangleGeometry.Interface +public unsafe partial struct ID2D1RoundedRectangleGeometry : ID2D1RoundedRectangleGeometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RoundedRectangleGeometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SimplifiedGeometrySink.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SimplifiedGeometrySink.cs index a69749186a..6269c511e8 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SimplifiedGeometrySink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SimplifiedGeometrySink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD9069E-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1SimplifiedGeometrySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1SimplifiedGeometrySink : ID2D1SimplifiedGeometrySink.Interface +public unsafe partial struct ID2D1SimplifiedGeometrySink : ID2D1SimplifiedGeometrySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SimplifiedGeometrySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SolidColorBrush.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SolidColorBrush.cs index 2a2ad9a739..a1e2a3b113 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SolidColorBrush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1SolidColorBrush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906A9-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1SolidColorBrush : ID2D1Brush")] [NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1SolidColorBrush : ID2D1SolidColorBrush.Interface +public unsafe partial struct ID2D1SolidColorBrush : ID2D1SolidColorBrush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SolidColorBrush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1StrokeStyle.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1StrokeStyle.cs index 32e927797a..270fa13bd3 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1StrokeStyle.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1StrokeStyle.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD9069D-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1StrokeStyle : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1StrokeStyle : ID2D1StrokeStyle.Interface +public unsafe partial struct ID2D1StrokeStyle : ID2D1StrokeStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TessellationSink.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TessellationSink.cs index 891967ecdb..65dd2726bb 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TessellationSink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TessellationSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906C1-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1TessellationSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TessellationSink : ID2D1TessellationSink.Interface +public unsafe partial struct ID2D1TessellationSink : ID2D1TessellationSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TessellationSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TransformedGeometry.cs b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TransformedGeometry.cs index f4f2233f4e..ade22d5705 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TransformedGeometry.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/ID2D1TransformedGeometry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2CD906BB-12E2-11DC-9FED-001143A055F9")] [NativeTypeName("struct ID2D1TransformedGeometry : ID2D1Geometry")] [NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1TransformedGeometry : ID2D1TransformedGeometry.Interface +public unsafe partial struct ID2D1TransformedGeometry : ID2D1TransformedGeometry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedGeometry)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Bitmap1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Bitmap1.cs index a7348da7b0..9cbb01479e 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Bitmap1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Bitmap1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A898A84C-3873-4588-B08B-EBBF978DF041")] [NativeTypeName("struct ID2D1Bitmap1 : ID2D1Bitmap")] [NativeInheritance("ID2D1Bitmap")] -public unsafe partial struct ID2D1Bitmap1 : ID2D1Bitmap1.Interface +public unsafe partial struct ID2D1Bitmap1 : ID2D1Bitmap1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1BitmapBrush1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1BitmapBrush1.cs index 0e703756b7..324a737b58 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1BitmapBrush1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1BitmapBrush1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("41343A53-E41A-49A2-91CD-21793BBB62E5")] [NativeTypeName("struct ID2D1BitmapBrush1 : ID2D1BitmapBrush")] [NativeInheritance("ID2D1BitmapBrush")] -public unsafe partial struct ID2D1BitmapBrush1 : ID2D1BitmapBrush1.Interface +public unsafe partial struct ID2D1BitmapBrush1 : ID2D1BitmapBrush1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ColorContext.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ColorContext.cs index 5d18967363..35fe9b62b6 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ColorContext.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ColorContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1C4820BB-5771-4518-A581-2FE4DD0EC657")] [NativeTypeName("struct ID2D1ColorContext : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1ColorContext : ID2D1ColorContext.Interface +public unsafe partial struct ID2D1ColorContext : ID2D1ColorContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandList.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandList.cs index 9d124a7c0a..422a9e4ac6 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B4F34A19-2383-4D76-94F6-EC343657C3DC")] [NativeTypeName("struct ID2D1CommandList : ID2D1Image")] [NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1CommandList : ID2D1CommandList.Interface +public unsafe partial struct ID2D1CommandList : ID2D1CommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandSink.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandSink.cs index 084f773a92..3c09e0dfef 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandSink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1CommandSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("54D7898A-A061-40A7-BEC7-E465BCBA2C4F")] [NativeTypeName("struct ID2D1CommandSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1CommandSink : ID2D1CommandSink.Interface +public unsafe partial struct ID2D1CommandSink : ID2D1CommandSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Device.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Device.cs index e4c12715f2..778de6fa44 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Device.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Device.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("47DD575D-AC05-4CDD-8049-9B02CD16F44C")] [NativeTypeName("struct ID2D1Device : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Device : ID2D1Device.Interface +public unsafe partial struct ID2D1Device : ID2D1Device.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DeviceContext.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DeviceContext.cs index f6367bc6a3..bf8814ef40 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DeviceContext.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DeviceContext.cs @@ -15,6 +15,7 @@ using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -22,8 +23,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E8F7FE7A-191C-466D-AD95-975678BDA998")] [NativeTypeName("struct ID2D1DeviceContext : ID2D1RenderTarget")] [NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface +public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DrawingStateBlock1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DrawingStateBlock1.cs index 0a502e6229..668f40ddf7 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DrawingStateBlock1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1DrawingStateBlock1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("689F1F85-C72E-4E33-8F19-85754EFD5ACE")] [NativeTypeName("struct ID2D1DrawingStateBlock1 : ID2D1DrawingStateBlock")] [NativeInheritance("ID2D1DrawingStateBlock")] -public unsafe partial struct ID2D1DrawingStateBlock1 : ID2D1DrawingStateBlock1.Interface +public unsafe partial struct ID2D1DrawingStateBlock1 : ID2D1DrawingStateBlock1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Effect.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Effect.cs index cff09ae46f..a17af0c90a 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Effect.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Effect.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D2D1_PROPERTY_TYPE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.DirectX; [Guid("28211A43-7D89-476F-8181-2D6159B220AD")] [NativeTypeName("struct ID2D1Effect : ID2D1Properties")] [NativeInheritance("ID2D1Properties")] -public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface +public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Effect)); + public void** lpVtbl; public HRESULT SetValueByName([NativeTypeName("PCWSTR")] ushort* name, [NativeTypeName("const BYTE *")] byte* data, [NativeTypeName("UINT32")] uint dataSize) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Factory1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Factory1.cs index d52582821d..589dbb1e17 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Factory1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Factory1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1Factory1 : ID2D1Factory")] [NativeInheritance("ID2D1Factory")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID2D1Factory1 : ID2D1Factory1.Interface +public unsafe partial struct ID2D1Factory1 : ID2D1Factory1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory1)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafile.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafile.cs index 86839bcd30..b4fb9a9b58 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafile.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafile.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GdiMetafile : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID2D1GdiMetafile : ID2D1GdiMetafile.Interface +public unsafe partial struct ID2D1GdiMetafile : ID2D1GdiMetafile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafileSink.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafileSink.cs index 8ce249b833..dbce490aaa 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafileSink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GdiMetafileSink.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GdiMetafileSink : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID2D1GdiMetafileSink : ID2D1GdiMetafileSink.Interface +public unsafe partial struct ID2D1GdiMetafileSink : ID2D1GdiMetafileSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GradientStopCollection1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GradientStopCollection1.cs index ecd9c4bc9f..74cb063057 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GradientStopCollection1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1GradientStopCollection1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AE1572F4-5DD0-4777-998B-9279472AE63B")] [NativeTypeName("struct ID2D1GradientStopCollection1 : ID2D1GradientStopCollection")] [NativeInheritance("ID2D1GradientStopCollection")] -public unsafe partial struct ID2D1GradientStopCollection1 : ID2D1GradientStopCollection1.Interface +public unsafe partial struct ID2D1GradientStopCollection1 : ID2D1GradientStopCollection1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ImageBrush.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ImageBrush.cs index 9d4ef39076..e08cdcd667 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ImageBrush.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1ImageBrush.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("FE9E984D-3F95-407C-B5DB-CB94D4E8F87C")] [NativeTypeName("struct ID2D1ImageBrush : ID2D1Brush")] [NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1ImageBrush : ID2D1ImageBrush.Interface +public unsafe partial struct ID2D1ImageBrush : ID2D1ImageBrush.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageBrush)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Multithread.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Multithread.cs index 827434e95d..db43887e28 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Multithread.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Multithread.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("31E6E7BC-E0FF-4D46-8C64-A0A8C41C15D3")] [NativeTypeName("struct ID2D1Multithread : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Multithread : ID2D1Multithread.Interface +public unsafe partial struct ID2D1Multithread : ID2D1Multithread.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Multithread)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PathGeometry1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PathGeometry1.cs index 442007beef..ff6fd6c7fd 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PathGeometry1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PathGeometry1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("62BAA2D2-AB54-41B7-B872-787E0106A421")] [NativeTypeName("struct ID2D1PathGeometry1 : ID2D1PathGeometry")] [NativeInheritance("ID2D1PathGeometry")] -public unsafe partial struct ID2D1PathGeometry1 : ID2D1PathGeometry1.Interface +public unsafe partial struct ID2D1PathGeometry1 : ID2D1PathGeometry1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry1)); + public void** lpVtbl; public HRESULT GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F* bounds) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PrintControl.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PrintControl.cs index 80195f8aba..d0903dd696 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PrintControl.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1PrintControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2C1D867D-C290-41C8-AE7E-34A98702E9A5")] [NativeTypeName("struct ID2D1PrintControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1PrintControl : ID2D1PrintControl.Interface +public unsafe partial struct ID2D1PrintControl : ID2D1PrintControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PrintControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Properties.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Properties.cs index 5773f2eb10..767fa7be12 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Properties.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1Properties.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D2D1_PROPERTY_TYPE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.DirectX; [Guid("483473D7-CD46-4F9D-9D3A-3112AA80159D")] [NativeTypeName("struct ID2D1Properties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface +public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Properties)); + public void** lpVtbl; public HRESULT SetValueByName([NativeTypeName("PCWSTR")] ushort* name, [NativeTypeName("const BYTE *")] byte* data, [NativeTypeName("UINT32")] uint dataSize) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1StrokeStyle1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1StrokeStyle1.cs index d306e30815..096a035ad5 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1StrokeStyle1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/ID2D1StrokeStyle1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("10A72A66-E91C-43F4-993F-DDF4B82B0B4A")] [NativeTypeName("struct ID2D1StrokeStyle1 : ID2D1StrokeStyle")] [NativeInheritance("ID2D1StrokeStyle")] -public unsafe partial struct ID2D1StrokeStyle1 : ID2D1StrokeStyle1.Interface +public unsafe partial struct ID2D1StrokeStyle1 : ID2D1StrokeStyle1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1CommandSink1.cs b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1CommandSink1.cs index efbd567a33..bae83ab782 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1CommandSink1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1CommandSink1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1CommandSink1 : ID2D1CommandSink")] [NativeInheritance("ID2D1CommandSink")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1CommandSink1 : ID2D1CommandSink1.Interface +public unsafe partial struct ID2D1CommandSink1 : ID2D1CommandSink1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Device1.cs b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Device1.cs index 0386812cc1..2eb2588ea1 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Device1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Device1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1Device1 : ID2D1Device")] [NativeInheritance("ID2D1Device")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1Device1 : ID2D1Device1.Interface +public unsafe partial struct ID2D1Device1 : ID2D1Device1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1DeviceContext1.cs b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1DeviceContext1.cs index c88da51dba..c0a437adea 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1DeviceContext1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1DeviceContext1.cs @@ -16,6 +16,7 @@ using static TerraFX.Interop.DirectX.D2D1_GAMMA; using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -24,8 +25,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext1 : ID2D1DeviceContext")] [NativeInheritance("ID2D1DeviceContext")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface +public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext1)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Factory2.cs b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Factory2.cs index b6477ff40d..f0b628e42e 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Factory2.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1Factory2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1Factory2 : ID2D1Factory1")] [NativeInheritance("ID2D1Factory1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1Factory2 : ID2D1Factory2.Interface +public unsafe partial struct ID2D1Factory2 : ID2D1Factory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory2)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1GeometryRealization.cs b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1GeometryRealization.cs index ada5a57a45..2a28d02701 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1GeometryRealization.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2/ID2D1GeometryRealization.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GeometryRealization : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1GeometryRealization : ID2D1GeometryRealization.Interface +public unsafe partial struct ID2D1GeometryRealization : ID2D1GeometryRealization.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryRealization)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ColorContext1.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ColorContext1.cs index d53e857df4..cac8e98316 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ColorContext1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ColorContext1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1AB42875-C57F-4BE9-BD85-9CD78D6F55EE")] [NativeTypeName("struct ID2D1ColorContext1 : ID2D1ColorContext")] [NativeInheritance("ID2D1ColorContext")] -public unsafe partial struct ID2D1ColorContext1 : ID2D1ColorContext1.Interface +public unsafe partial struct ID2D1ColorContext1 : ID2D1ColorContext1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink2.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink2.cs index 91f67e4b4f..a067a40a84 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink2.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1CommandSink2 : ID2D1CommandSink1")] [NativeInheritance("ID2D1CommandSink1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1CommandSink2 : ID2D1CommandSink2.Interface +public unsafe partial struct ID2D1CommandSink2 : ID2D1CommandSink2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink3.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink3.cs index e95288353f..f7966bd2b7 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink3.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("18079135-4CF3-4868-BC8E-06067E6D242D")] [NativeTypeName("struct ID2D1CommandSink3 : ID2D1CommandSink2")] [NativeInheritance("ID2D1CommandSink2")] -public unsafe partial struct ID2D1CommandSink3 : ID2D1CommandSink3.Interface +public unsafe partial struct ID2D1CommandSink3 : ID2D1CommandSink3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink4.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink4.cs index ed8a11f695..c4f1ad9f15 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink4.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C78A6519-40D6-4218-B2DE-BEEEB744BB3E")] [NativeTypeName("struct ID2D1CommandSink4 : ID2D1CommandSink3")] [NativeInheritance("ID2D1CommandSink3")] -public unsafe partial struct ID2D1CommandSink4 : ID2D1CommandSink4.Interface +public unsafe partial struct ID2D1CommandSink4 : ID2D1CommandSink4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink5.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink5.cs index c49397d710..ca82856cba 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink5.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1CommandSink5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7047DD26-B1E7-44A7-959A-8349E2144FA8")] [NativeTypeName("struct ID2D1CommandSink5 : ID2D1CommandSink4")] [NativeInheritance("ID2D1CommandSink4")] -public unsafe partial struct ID2D1CommandSink5 : ID2D1CommandSink5.Interface +public unsafe partial struct ID2D1CommandSink5 : ID2D1CommandSink5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device2.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device2.cs index 20e9254336..7b7e02ec2a 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device2.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A44472E1-8DFB-4E60-8492-6E2861C9CA8B")] [NativeTypeName("struct ID2D1Device2 : ID2D1Device1")] [NativeInheritance("ID2D1Device1")] -public unsafe partial struct ID2D1Device2 : ID2D1Device2.Interface +public unsafe partial struct ID2D1Device2 : ID2D1Device2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device3.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device3.cs index 941af7e6d8..83e5062fcb 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device3.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("852F2087-802C-4037-AB60-FF2E7EE6FC01")] [NativeTypeName("struct ID2D1Device3 : ID2D1Device2")] [NativeInheritance("ID2D1Device2")] -public unsafe partial struct ID2D1Device3 : ID2D1Device3.Interface +public unsafe partial struct ID2D1Device3 : ID2D1Device3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device4.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device4.cs index 47bdd650cb..6a132a8d38 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device4.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D7BDB159-5683-4A46-BC9C-72DC720B858B")] [NativeTypeName("struct ID2D1Device4 : ID2D1Device3")] [NativeInheritance("ID2D1Device3")] -public unsafe partial struct ID2D1Device4 : ID2D1Device4.Interface +public unsafe partial struct ID2D1Device4 : ID2D1Device4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device5.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device5.cs index a435171317..5724831b2c 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device5.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D55BA0A4-6405-4694-AEF5-08EE1A4358B4")] [NativeTypeName("struct ID2D1Device5 : ID2D1Device4")] [NativeInheritance("ID2D1Device4")] -public unsafe partial struct ID2D1Device5 : ID2D1Device5.Interface +public unsafe partial struct ID2D1Device5 : ID2D1Device5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device6.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device6.cs index 495bb19e0b..776e52aa61 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device6.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Device6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7BFEF914-2D75-4BAD-BE87-E18DDB077B6D")] [NativeTypeName("struct ID2D1Device6 : ID2D1Device5")] [NativeInheritance("ID2D1Device5")] -public unsafe partial struct ID2D1Device6 : ID2D1Device6.Interface +public unsafe partial struct ID2D1Device6 : ID2D1Device6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext2.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext2.cs index 9ad3df590c..06494f708a 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext2.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext2.cs @@ -18,6 +18,7 @@ using static TerraFX.Interop.DirectX.D2D1_IMAGE_SOURCE_LOADING_OPTIONS; using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -26,8 +27,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext2 : ID2D1DeviceContext1")] [NativeInheritance("ID2D1DeviceContext1")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface +public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext2)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext3.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext3.cs index 444c57c296..a3c0fc7173 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext3.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext3.cs @@ -19,6 +19,7 @@ using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.D2D1_SPRITE_OPTIONS; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -27,8 +28,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext3 : ID2D1DeviceContext2")] [NativeInheritance("ID2D1DeviceContext2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface +public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext3)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext4.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext4.cs index 40f9ba043a..85816a019c 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext4.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext4.cs @@ -20,6 +20,7 @@ using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.D2D1_SPRITE_OPTIONS; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -28,8 +29,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext4 : ID2D1DeviceContext3")] [NativeInheritance("ID2D1DeviceContext3")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface +public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext4)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext5.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext5.cs index f0edc1f360..5c43e024ae 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext5.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext5.cs @@ -20,6 +20,7 @@ using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.D2D1_SPRITE_OPTIONS; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -28,8 +29,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext5 : ID2D1DeviceContext4")] [NativeInheritance("ID2D1DeviceContext4")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface +public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext5)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext6.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext6.cs index 209feb7209..f0e1dbcc51 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext6.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1DeviceContext6.cs @@ -20,6 +20,7 @@ using static TerraFX.Interop.DirectX.D2D1_INTERPOLATION_MODE; using static TerraFX.Interop.DirectX.D2D1_SPRITE_OPTIONS; using static TerraFX.Interop.DirectX.DWRITE_MEASURING_MODE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -28,8 +29,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1DeviceContext6 : ID2D1DeviceContext5")] [NativeInheritance("ID2D1DeviceContext5")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface +public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext6)); + public void** lpVtbl; public HRESULT CreateBitmap([NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U size, [NativeTypeName("const D2D1_BITMAP_PROPERTIES &")] D2D1_BITMAP_PROPERTIES* bitmapProperties, ID2D1Bitmap** bitmap) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory3.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory3.cs index f7bca822b3..c5d4093f90 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory3.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0869759F-4F00-413F-B03E-2BDA45404D0F")] [NativeTypeName("struct ID2D1Factory3 : ID2D1Factory2")] [NativeInheritance("ID2D1Factory2")] -public unsafe partial struct ID2D1Factory3 : ID2D1Factory3.Interface +public unsafe partial struct ID2D1Factory3 : ID2D1Factory3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory3)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory4.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory4.cs index 72ff0f0708..703ecaae79 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory4.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("BD4EC2D2-0662-4BEE-BA8E-6F29F032E096")] [NativeTypeName("struct ID2D1Factory4 : ID2D1Factory3")] [NativeInheritance("ID2D1Factory3")] -public unsafe partial struct ID2D1Factory4 : ID2D1Factory4.Interface +public unsafe partial struct ID2D1Factory4 : ID2D1Factory4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory4)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory5.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory5.cs index 2acc521660..e5b0de7a52 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory5.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C4349994-838E-4B0F-8CAB-44997D9EEACC")] [NativeTypeName("struct ID2D1Factory5 : ID2D1Factory4")] [NativeInheritance("ID2D1Factory4")] -public unsafe partial struct ID2D1Factory5 : ID2D1Factory5.Interface +public unsafe partial struct ID2D1Factory5 : ID2D1Factory5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory5)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory6.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory6.cs index 30e6710517..cad9077ecd 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory6.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F9976F46-F642-44C1-97CA-DA32EA2A2635")] [NativeTypeName("struct ID2D1Factory6 : ID2D1Factory5")] [NativeInheritance("ID2D1Factory5")] -public unsafe partial struct ID2D1Factory6 : ID2D1Factory6.Interface +public unsafe partial struct ID2D1Factory6 : ID2D1Factory6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory6)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory7.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory7.cs index 8a719b4065..fe19ca6c2f 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory7.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Factory7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("BDC2BDD3-B96C-4DE6-BDF7-99D4745454DE")] [NativeTypeName("struct ID2D1Factory7 : ID2D1Factory6")] [NativeInheritance("ID2D1Factory6")] -public unsafe partial struct ID2D1Factory7 : ID2D1Factory7.Interface +public unsafe partial struct ID2D1Factory7 : ID2D1Factory7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory7)); + public void** lpVtbl; public HRESULT CreateDrawingStateBlock([NativeTypeName("const D2D1_DRAWING_STATE_DESCRIPTION &")] D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription, ID2D1DrawingStateBlock** drawingStateBlock) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafile1.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafile1.cs index 557be2caea..84087800ac 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafile1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafile1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GdiMetafile1 : ID2D1GdiMetafile")] [NativeInheritance("ID2D1GdiMetafile")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1GdiMetafile1 : ID2D1GdiMetafile1.Interface +public unsafe partial struct ID2D1GdiMetafile1 : ID2D1GdiMetafile1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafileSink1.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafileSink1.cs index 7576d878ba..18d0507650 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafileSink1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GdiMetafileSink1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GdiMetafileSink1 : ID2D1GdiMetafileSink")] [NativeInheritance("ID2D1GdiMetafileSink")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1GdiMetafileSink1 : ID2D1GdiMetafileSink1.Interface +public unsafe partial struct ID2D1GdiMetafileSink1 : ID2D1GdiMetafileSink1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GradientMesh.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GradientMesh.cs index 0dbbb49a02..59dc0385b0 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GradientMesh.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1GradientMesh.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1GradientMesh : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID2D1GradientMesh : ID2D1GradientMesh.Interface +public unsafe partial struct ID2D1GradientMesh : ID2D1GradientMesh.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientMesh)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSource.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSource.cs index a86b1d3949..f3b7dbb1db 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSource.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSource.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID2D1ImageSource : ID2D1Image")] [NativeInheritance("ID2D1Image")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID2D1ImageSource : ID2D1ImageSource.Interface +public unsafe partial struct ID2D1ImageSource : ID2D1ImageSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSourceFromWic.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSourceFromWic.cs index 2df3992468..4899e4f46c 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSourceFromWic.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1ImageSourceFromWic.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("77395441-1C8F-4555-8683-F50DAB0FE792")] [NativeTypeName("struct ID2D1ImageSourceFromWic : ID2D1ImageSource")] [NativeInheritance("ID2D1ImageSource")] -public unsafe partial struct ID2D1ImageSourceFromWic : ID2D1ImageSourceFromWic.Interface +public unsafe partial struct ID2D1ImageSourceFromWic : ID2D1ImageSourceFromWic.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSourceFromWic)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Ink.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Ink.cs index a6f13486b5..9ddc691c08 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Ink.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1Ink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B499923B-7029-478F-A8B3-432C7C5F5312")] [NativeTypeName("struct ID2D1Ink : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Ink : ID2D1Ink.Interface +public unsafe partial struct ID2D1Ink : ID2D1Ink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Ink)); + public void** lpVtbl; public HRESULT StreamAsGeometry(ID2D1InkStyle* inkStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F* worldTransform, ID2D1SimplifiedGeometrySink* geometrySink) diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1InkStyle.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1InkStyle.cs index ef383a75c2..be3ea0e2a8 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1InkStyle.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1InkStyle.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("BAE8B344-23FC-4071-8CB5-D05D6F073848")] [NativeTypeName("struct ID2D1InkStyle : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1InkStyle : ID2D1InkStyle.Interface +public unsafe partial struct ID2D1InkStyle : ID2D1InkStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1InkStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1LookupTable3D.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1LookupTable3D.cs index 73d43820c1..d071eb767a 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1LookupTable3D.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1LookupTable3D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("53DD9855-A3B0-4D5B-82E1-26E25C5E5797")] [NativeTypeName("struct ID2D1LookupTable3D : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1LookupTable3D : ID2D1LookupTable3D.Interface +public unsafe partial struct ID2D1LookupTable3D : ID2D1LookupTable3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LookupTable3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SpriteBatch.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SpriteBatch.cs index 7c98127a4e..770bf50116 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SpriteBatch.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SpriteBatch.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4DC583BF-3A10-438A-8722-E9765224F1F1")] [NativeTypeName("struct ID2D1SpriteBatch : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SpriteBatch : ID2D1SpriteBatch.Interface +public unsafe partial struct ID2D1SpriteBatch : ID2D1SpriteBatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SpriteBatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SvgGlyphStyle.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SvgGlyphStyle.cs index e32ce52346..a73a3d1484 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SvgGlyphStyle.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1SvgGlyphStyle.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AF671749-D241-4DB8-8E41-DCC2E5C1A438")] [NativeTypeName("struct ID2D1SvgGlyphStyle : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgGlyphStyle : ID2D1SvgGlyphStyle.Interface +public unsafe partial struct ID2D1SvgGlyphStyle : ID2D1SvgGlyphStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgGlyphStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1TransformedImageSource.cs b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1TransformedImageSource.cs index edec4c23ac..667e1ef768 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1TransformedImageSource.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_3/ID2D1TransformedImageSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7F1F79E5-2796-416C-8F55-700F911445E5")] [NativeTypeName("struct ID2D1TransformedImageSource : ID2D1Image")] [NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1TransformedImageSource : ID2D1TransformedImageSource.Interface +public unsafe partial struct ID2D1TransformedImageSource : ID2D1TransformedImageSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedImageSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1AnalysisTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1AnalysisTransform.cs index ae28f33915..88afd2bb3d 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1AnalysisTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1AnalysisTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0359DC30-95E6-4568-9055-27720D130E93")] [NativeTypeName("struct ID2D1AnalysisTransform : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1AnalysisTransform : ID2D1AnalysisTransform.Interface +public unsafe partial struct ID2D1AnalysisTransform : ID2D1AnalysisTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1AnalysisTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BlendTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BlendTransform.cs index 84ffc7be97..99416693c7 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BlendTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BlendTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("63AC0B32-BA44-450F-8806-7F4CA1FF2F1B")] [NativeTypeName("struct ID2D1BlendTransform : ID2D1ConcreteTransform")] [NativeInheritance("ID2D1ConcreteTransform")] -public unsafe partial struct ID2D1BlendTransform : ID2D1BlendTransform.Interface +public unsafe partial struct ID2D1BlendTransform : ID2D1BlendTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BlendTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BorderTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BorderTransform.cs index e03c39c90a..2dd25011de 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BorderTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BorderTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4998735C-3A19-473C-9781-656847E3A347")] [NativeTypeName("struct ID2D1BorderTransform : ID2D1ConcreteTransform")] [NativeInheritance("ID2D1ConcreteTransform")] -public unsafe partial struct ID2D1BorderTransform : ID2D1BorderTransform.Interface +public unsafe partial struct ID2D1BorderTransform : ID2D1BorderTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BorderTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BoundsAdjustmentTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BoundsAdjustmentTransform.cs index 935b1d4309..83d9d9a3a5 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BoundsAdjustmentTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1BoundsAdjustmentTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("90F732E2-5092-4606-A819-8651970BACCD")] [NativeTypeName("struct ID2D1BoundsAdjustmentTransform : ID2D1TransformNode")] [NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1BoundsAdjustmentTransform : ID2D1BoundsAdjustmentTransform.Interface +public unsafe partial struct ID2D1BoundsAdjustmentTransform : ID2D1BoundsAdjustmentTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BoundsAdjustmentTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeInfo.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeInfo.cs index 2722edbe63..89b5f4eced 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeInfo.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5598B14B-9FD7-48B7-9BDB-8F0964EB38BC")] [NativeTypeName("struct ID2D1ComputeInfo : ID2D1RenderInfo")] [NativeInheritance("ID2D1RenderInfo")] -public unsafe partial struct ID2D1ComputeInfo : ID2D1ComputeInfo.Interface +public unsafe partial struct ID2D1ComputeInfo : ID2D1ComputeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeTransform.cs index 9e60fdb039..8d2b7d690a 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ComputeTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0D85573C-01E3-4F7D-BFD9-0D60608BF3C3")] [NativeTypeName("struct ID2D1ComputeTransform : ID2D1Transform")] [NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1ComputeTransform : ID2D1ComputeTransform.Interface +public unsafe partial struct ID2D1ComputeTransform : ID2D1ComputeTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ConcreteTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ConcreteTransform.cs index 3311d63b3b..645c20d77e 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ConcreteTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ConcreteTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1A799D8A-69F7-4E4C-9FED-437CCC6684CC")] [NativeTypeName("struct ID2D1ConcreteTransform : ID2D1TransformNode")] [NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1ConcreteTransform : ID2D1ConcreteTransform.Interface +public unsafe partial struct ID2D1ConcreteTransform : ID2D1ConcreteTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ConcreteTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs index f3366f6f4c..74f47bdc3f 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D2D1_PIXEL_OPTIONS; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.DirectX; [Guid("693CE632-7F2F-45DE-93FE-18D88B37AA21")] [NativeTypeName("struct ID2D1DrawInfo : ID2D1RenderInfo")] [NativeInheritance("ID2D1RenderInfo")] -public unsafe partial struct ID2D1DrawInfo : ID2D1DrawInfo.Interface +public unsafe partial struct ID2D1DrawInfo : ID2D1DrawInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs index 9ea8f781a1..aae4c0380c 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("36BFDCB6-9739-435D-A30D-A653BEFF6A6F")] [NativeTypeName("struct ID2D1DrawTransform : ID2D1Transform")] [NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1DrawTransform : ID2D1DrawTransform.Interface +public unsafe partial struct ID2D1DrawTransform : ID2D1DrawTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs index f09551c655..84f49e5b86 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3D9F916B-27DC-4AD7-B4F1-64945340F563")] [NativeTypeName("struct ID2D1EffectContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1EffectContext : ID2D1EffectContext.Interface +public unsafe partial struct ID2D1EffectContext : ID2D1EffectContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs index 940f97f5e5..12b5ba1a15 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A248FD3F-3E6C-4E63-9F03-7F68ECC91DB9")] [NativeTypeName("struct ID2D1EffectImpl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1EffectImpl : ID2D1EffectImpl.Interface +public unsafe partial struct ID2D1EffectImpl : ID2D1EffectImpl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectImpl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1OffsetTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1OffsetTransform.cs index f8591b96f8..62aec2e009 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1OffsetTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1OffsetTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3FE6ADEA-7643-4F53-BD14-A0CE63F24042")] [NativeTypeName("struct ID2D1OffsetTransform : ID2D1TransformNode")] [NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1OffsetTransform : ID2D1OffsetTransform.Interface +public unsafe partial struct ID2D1OffsetTransform : ID2D1OffsetTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1OffsetTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1RenderInfo.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1RenderInfo.cs index 173ed26b10..f015d9c710 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1RenderInfo.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1RenderInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("519AE1BD-D19A-420D-B849-364F594776B7")] [NativeTypeName("struct ID2D1RenderInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1RenderInfo : ID2D1RenderInfo.Interface +public unsafe partial struct ID2D1RenderInfo : ID2D1RenderInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ResourceTexture.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ResourceTexture.cs index f3ae343af6..1ecc3969e5 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ResourceTexture.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1ResourceTexture.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("688D15C3-02B0-438D-B13A-D1B44C32C39A")] [NativeTypeName("struct ID2D1ResourceTexture : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1ResourceTexture : ID2D1ResourceTexture.Interface +public unsafe partial struct ID2D1ResourceTexture : ID2D1ResourceTexture.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ResourceTexture)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1SourceTransform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1SourceTransform.cs index a926a8d869..fec348b421 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1SourceTransform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1SourceTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DB1800DD-0C34-4CF9-BE90-31CC0A5653E1")] [NativeTypeName("struct ID2D1SourceTransform : ID2D1Transform")] [NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1SourceTransform : ID2D1SourceTransform.Interface +public unsafe partial struct ID2D1SourceTransform : ID2D1SourceTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SourceTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1Transform.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1Transform.cs index 386ea97064..6f0c9afb66 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1Transform.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1Transform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EF1A287D-342A-4F76-8FDB-DA0D6EA9F92B")] [NativeTypeName("struct ID2D1Transform : ID2D1TransformNode")] [NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1Transform : ID2D1Transform.Interface +public unsafe partial struct ID2D1Transform : ID2D1Transform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Transform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs index eaae493719..7d0c40b157 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("13D29038-C3E6-4034-9081-13B53A417992")] [NativeTypeName("struct ID2D1TransformGraph : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TransformGraph : ID2D1TransformGraph.Interface +public unsafe partial struct ID2D1TransformGraph : ID2D1TransformGraph.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformGraph)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs index 780c74ed77..f4a48981bc 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B2EFE1E7-729F-4102-949F-505FA21BF666")] [NativeTypeName("struct ID2D1TransformNode : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TransformNode : ID2D1TransformNode.Interface +public unsafe partial struct ID2D1TransformNode : ID2D1TransformNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1VertexBuffer.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1VertexBuffer.cs index 5c18df49da..31194189e9 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1VertexBuffer.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/ID2D1VertexBuffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B8B1336-00A5-4668-92B7-CED5D8BF9B7B")] [NativeTypeName("struct ID2D1VertexBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1VertexBuffer : ID2D1VertexBuffer.Interface +public unsafe partial struct ID2D1VertexBuffer : ID2D1VertexBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1VertexBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext1.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext1.cs index db81597856..d5af5a755f 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext1.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("84AB595A-FC81-4546-BACD-E8EF4D8ABE7A")] [NativeTypeName("struct ID2D1EffectContext1 : ID2D1EffectContext")] [NativeInheritance("ID2D1EffectContext")] -public unsafe partial struct ID2D1EffectContext1 : ID2D1EffectContext1.Interface +public unsafe partial struct ID2D1EffectContext1 : ID2D1EffectContext1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext2.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext2.cs index 571446ca44..72b3c9e63e 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext2.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor_1/ID2D1EffectContext2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("577AD2A0-9FC7-4DDA-8B18-DAB810140052")] [NativeTypeName("struct ID2D1EffectContext2 : ID2D1EffectContext1")] [NativeInheritance("ID2D1EffectContext1")] -public unsafe partial struct ID2D1EffectContext2 : ID2D1EffectContext2.Interface +public unsafe partial struct ID2D1EffectContext2 : ID2D1EffectContext2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgAttribute.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgAttribute.cs index 97bad1f9b4..b902c98568 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgAttribute.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgAttribute.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C9CDB0DD-F8C9-4E70-B7C2-301C80292C5E")] [NativeTypeName("struct ID2D1SvgAttribute : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgAttribute : ID2D1SvgAttribute.Interface +public unsafe partial struct ID2D1SvgAttribute : ID2D1SvgAttribute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgAttribute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgDocument.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgDocument.cs index 9260aa508d..906b423784 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgDocument.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgDocument.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("86B88E4D-AFA4-4D7B-88E4-68A51C4A0AEC")] [NativeTypeName("struct ID2D1SvgDocument : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface +public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgElement.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgElement.cs index d9f1769fb5..0b6103fbea 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgElement.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgElement.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D2D1_SVG_ATTRIBUTE_POD_TYPE; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AC7B67A6-183E-49C1-A823-0EBE40B0DB29")] [NativeTypeName("struct ID2D1SvgElement : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface +public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgElement)); + public void** lpVtbl; public HRESULT SetAttributeValue([NativeTypeName("PCWSTR")] ushort* name, float value) diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPaint.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPaint.cs index 2cc87ca876..78b57913ff 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPaint.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPaint.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D59BAB0A-68A2-455B-A5DC-9EB2854E2490")] [NativeTypeName("struct ID2D1SvgPaint : ID2D1SvgAttribute")] [NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface +public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPaint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPathData.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPathData.cs index faab20753b..450c15648d 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPathData.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPathData.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C095E4F4-BB98-43D6-9745-4D1B84EC9888")] [NativeTypeName("struct ID2D1SvgPathData : ID2D1SvgAttribute")] [NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPathData : ID2D1SvgPathData.Interface +public unsafe partial struct ID2D1SvgPathData : ID2D1SvgPathData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPathData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPointCollection.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPointCollection.cs index 5aff496712..80288ab2be 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPointCollection.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgPointCollection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9DBE4C0D-3572-4DD9-9825-5530813BB712")] [NativeTypeName("struct ID2D1SvgPointCollection : ID2D1SvgAttribute")] [NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPointCollection : ID2D1SvgPointCollection.Interface +public unsafe partial struct ID2D1SvgPointCollection : ID2D1SvgPointCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPointCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgStrokeDashArray.cs b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgStrokeDashArray.cs index f404eedf25..789b644726 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgStrokeDashArray.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1svg/ID2D1SvgStrokeDashArray.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F1C0CA52-92A3-4F00-B4CE-F35691EFD9D9")] [NativeTypeName("struct ID2D1SvgStrokeDashArray : ID2D1SvgAttribute")] [NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgStrokeDashArray : ID2D1SvgStrokeDashArray.Interface +public unsafe partial struct ID2D1SvgStrokeDashArray : ID2D1SvgStrokeDashArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgStrokeDashArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BLEND_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BLEND_DESC.cs index 1e29216861..b6e555dc7b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BLEND_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BLEND_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -54,6 +55,7 @@ public partial struct _BlendEnable_e__FixedBuffer public BOOL e6; public BOOL e7; + [UnscopedRef] public ref BOOL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -64,6 +66,7 @@ public ref BOOL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_RTV.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_RTV.cs index 3221f4334d..df27ed47bb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_RTV.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_RTV.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,42 +21,46 @@ public partial struct D3D10_BUFFER_RTV public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref uint FirstElement { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.FirstElement, 1)); + return ref Anonymous1.FirstElement; } } /// + [UnscopedRef] public ref uint ElementOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.ElementOffset, 1)); + return ref Anonymous1.ElementOffset; } } /// + [UnscopedRef] public ref uint NumElements { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.NumElements, 1)); + return ref Anonymous2.NumElements; } } /// + [UnscopedRef] public ref uint ElementWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ElementWidth, 1)); + return ref Anonymous2.ElementWidth; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_SRV.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_SRV.cs index ca3f22be37..33f41b0cea 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_SRV.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_BUFFER_SRV.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,42 +21,46 @@ public partial struct D3D10_BUFFER_SRV public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref uint FirstElement { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.FirstElement, 1)); + return ref Anonymous1.FirstElement; } } /// + [UnscopedRef] public ref uint ElementOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.ElementOffset, 1)); + return ref Anonymous1.ElementOffset; } } /// + [UnscopedRef] public ref uint NumElements { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.NumElements, 1)); + return ref Anonymous2.NumElements; } } /// + [UnscopedRef] public ref uint ElementWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ElementWidth, 1)); + return ref Anonymous2.ElementWidth; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_DEPTH_STENCIL_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_DEPTH_STENCIL_VIEW_DESC.cs index ca081f522a..c3839ee6b6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_DEPTH_STENCIL_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_DEPTH_STENCIL_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,62 +23,68 @@ public partial struct D3D10_DEPTH_STENCIL_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D10_TEX1D_DSV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D10_TEX1D_ARRAY_DSV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2D_DSV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D10_TEX2D_ARRAY_DSV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_DSV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_ARRAY_DSV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_RENDER_TARGET_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_RENDER_TARGET_VIEW_DESC.cs index 39f3732b40..51f5c931c2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_RENDER_TARGET_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_RENDER_TARGET_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,82 +23,90 @@ public partial struct D3D10_RENDER_TARGET_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D10_BUFFER_RTV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D10_TEX1D_RTV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D10_TEX1D_ARRAY_RTV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2D_RTV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D10_TEX2D_ARRAY_RTV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_RTV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_ARRAY_RTV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D10_TEX3D_RTV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_SHADER_RESOURCE_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_SHADER_RESOURCE_VIEW_DESC.cs index d8b2315b0b..b70c4e8aba 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/D3D10_SHADER_RESOURCE_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10_SHADER_RESOURCE_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,92 +24,101 @@ public partial struct D3D10_SHADER_RESOURCE_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D10_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D10_TEX1D_SRV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D10_TEX1D_ARRAY_SRV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2D_SRV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D10_TEX2D_ARRAY_SRV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_SRV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D10_TEX3D_SRV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } /// + [UnscopedRef] public ref D3D10_TEXCUBE_SRV TextureCube { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); + return ref Anonymous.TextureCube; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Asynchronous.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Asynchronous.cs index ecd51e281b..20532d93fa 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Asynchronous.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Asynchronous.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0D-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Asynchronous : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10Asynchronous : ID3D10Asynchronous.Interface +public unsafe partial struct ID3D10Asynchronous : ID3D10Asynchronous.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Asynchronous)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10BlendState.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10BlendState.cs index b61cc89dc6..79d325a715 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10BlendState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10BlendState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EDAD8D19-8A35-4D6D-8566-2EA276CDE161")] [NativeTypeName("struct ID3D10BlendState : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10BlendState : ID3D10BlendState.Interface +public unsafe partial struct ID3D10BlendState : ID3D10BlendState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10BlendState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Buffer.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Buffer.cs index ae15b983f1..22c12419f8 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Buffer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Buffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C02-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Buffer : ID3D10Resource")] [NativeInheritance("ID3D10Resource")] -public unsafe partial struct ID3D10Buffer : ID3D10Buffer.Interface +public unsafe partial struct ID3D10Buffer : ID3D10Buffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Buffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Counter.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Counter.cs index 97615173b2..93e4478647 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Counter.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Counter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C11-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Counter : ID3D10Asynchronous")] [NativeInheritance("ID3D10Asynchronous")] -public unsafe partial struct ID3D10Counter : ID3D10Counter.Interface +public unsafe partial struct ID3D10Counter : ID3D10Counter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Counter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilState.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilState.cs index ad3feeeae1..b93e84c83a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2B4B1CC8-A4AD-41F8-8322-CA86FC3EC675")] [NativeTypeName("struct ID3D10DepthStencilState : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10DepthStencilState : ID3D10DepthStencilState.Interface +public unsafe partial struct ID3D10DepthStencilState : ID3D10DepthStencilState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10DepthStencilState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilView.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilView.cs index 8f8a8d9c29..a9d7f2b317 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DepthStencilView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C09-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10DepthStencilView : ID3D10View")] [NativeInheritance("ID3D10View")] -public unsafe partial struct ID3D10DepthStencilView : ID3D10DepthStencilView.Interface +public unsafe partial struct ID3D10DepthStencilView : ID3D10DepthStencilView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10DepthStencilView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Device.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Device.cs index eb54321b8c..2c375fe8de 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Device.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Device.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0F-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Device : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10Device : ID3D10Device.Interface +public unsafe partial struct ID3D10Device : ID3D10Device.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Device)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DeviceChild.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DeviceChild.cs index cbcee5208c..cd02562b4a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DeviceChild.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10DeviceChild.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C00-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10DeviceChild : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10DeviceChild : ID3D10DeviceChild.Interface +public unsafe partial struct ID3D10DeviceChild : ID3D10DeviceChild.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10DeviceChild)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10GeometryShader.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10GeometryShader.cs index a139692774..6a65ac646e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10GeometryShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10GeometryShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6316BE88-54CD-4040-AB44-20461BC81F68")] [NativeTypeName("struct ID3D10GeometryShader : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10GeometryShader : ID3D10GeometryShader.Interface +public unsafe partial struct ID3D10GeometryShader : ID3D10GeometryShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10GeometryShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10InputLayout.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10InputLayout.cs index db7a1dbc82..31a3bebeb1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10InputLayout.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10InputLayout.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0B-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10InputLayout : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10InputLayout : ID3D10InputLayout.Interface +public unsafe partial struct ID3D10InputLayout : ID3D10InputLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10InputLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Multithread.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Multithread.cs index 9dec9dd729..f47f38b940 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Multithread.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Multithread.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4E00-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Multithread : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10Multithread : ID3D10Multithread.Interface +public unsafe partial struct ID3D10Multithread : ID3D10Multithread.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Multithread)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10PixelShader.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10PixelShader.cs index b97d04e4a3..41d16e4b58 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10PixelShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10PixelShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4968B601-9D00-4CDE-8346-8E7F675819B6")] [NativeTypeName("struct ID3D10PixelShader : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10PixelShader : ID3D10PixelShader.Interface +public unsafe partial struct ID3D10PixelShader : ID3D10PixelShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10PixelShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Predicate.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Predicate.cs index eaaa3f0525..2df787c15d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Predicate.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Predicate.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C10-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Predicate : ID3D10Query")] [NativeInheritance("ID3D10Query")] -public unsafe partial struct ID3D10Predicate : ID3D10Predicate.Interface +public unsafe partial struct ID3D10Predicate : ID3D10Predicate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Predicate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Query.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Query.cs index 1ca436b64c..bac9cc9c90 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Query.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Query.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0E-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Query : ID3D10Asynchronous")] [NativeInheritance("ID3D10Asynchronous")] -public unsafe partial struct ID3D10Query : ID3D10Query.Interface +public unsafe partial struct ID3D10Query : ID3D10Query.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Query)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RasterizerState.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RasterizerState.cs index 96a360e50c..74c780fc12 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RasterizerState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RasterizerState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A2A07292-89AF-4345-BE2E-C53D9FBB6E9F")] [NativeTypeName("struct ID3D10RasterizerState : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10RasterizerState : ID3D10RasterizerState.Interface +public unsafe partial struct ID3D10RasterizerState : ID3D10RasterizerState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10RasterizerState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RenderTargetView.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RenderTargetView.cs index 94de6cdd11..acd2b8c62c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RenderTargetView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10RenderTargetView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C08-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10RenderTargetView : ID3D10View")] [NativeInheritance("ID3D10View")] -public unsafe partial struct ID3D10RenderTargetView : ID3D10RenderTargetView.Interface +public unsafe partial struct ID3D10RenderTargetView : ID3D10RenderTargetView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10RenderTargetView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Resource.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Resource.cs index 617fff4e00..89c78b185b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Resource.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Resource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C01-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Resource : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10Resource : ID3D10Resource.Interface +public unsafe partial struct ID3D10Resource : ID3D10Resource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Resource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10SamplerState.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10SamplerState.cs index 9092294bce..acb639d834 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10SamplerState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10SamplerState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0C-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10SamplerState : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10SamplerState : ID3D10SamplerState.Interface +public unsafe partial struct ID3D10SamplerState : ID3D10SamplerState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10SamplerState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10ShaderResourceView.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10ShaderResourceView.cs index 5a29391a1b..d233d45733 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10ShaderResourceView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10ShaderResourceView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C07-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10ShaderResourceView : ID3D10View")] [NativeInheritance("ID3D10View")] -public unsafe partial struct ID3D10ShaderResourceView : ID3D10ShaderResourceView.Interface +public unsafe partial struct ID3D10ShaderResourceView : ID3D10ShaderResourceView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderResourceView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture1D.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture1D.cs index 94d8ae11fe..87fbd01ed7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture1D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture1D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C03-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Texture1D : ID3D10Resource")] [NativeInheritance("ID3D10Resource")] -public unsafe partial struct ID3D10Texture1D : ID3D10Texture1D.Interface +public unsafe partial struct ID3D10Texture1D : ID3D10Texture1D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Texture1D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture2D.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture2D.cs index 2c86bc89e2..22e294875d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture2D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture2D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C04-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Texture2D : ID3D10Resource")] [NativeInheritance("ID3D10Resource")] -public unsafe partial struct ID3D10Texture2D : ID3D10Texture2D.Interface +public unsafe partial struct ID3D10Texture2D : ID3D10Texture2D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Texture2D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture3D.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture3D.cs index 6208c87d3e..c16b6e6ecc 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture3D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10Texture3D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C05-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Texture3D : ID3D10Resource")] [NativeInheritance("ID3D10Resource")] -public unsafe partial struct ID3D10Texture3D : ID3D10Texture3D.Interface +public unsafe partial struct ID3D10Texture3D : ID3D10Texture3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Texture3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10VertexShader.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10VertexShader.cs index f030e103c4..23900c1d5a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10VertexShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10VertexShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C0A-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10VertexShader : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10VertexShader : ID3D10VertexShader.Interface +public unsafe partial struct ID3D10VertexShader : ID3D10VertexShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10VertexShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10View.cs b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10View.cs index f1c3c20345..69ffc0ab58 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/ID3D10View.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/ID3D10View.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C902B03F-60A7-49BA-9936-2A3AB37A7E33")] [NativeTypeName("struct ID3D10View : ID3D10DeviceChild")] [NativeInheritance("ID3D10DeviceChild")] -public unsafe partial struct ID3D10View : ID3D10View.Interface +public unsafe partial struct ID3D10View : ID3D10View.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10View)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_BLEND_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_BLEND_DESC1.cs index bcd3cd85b2..047291c9eb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_BLEND_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_BLEND_DESC1.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -35,6 +36,7 @@ public partial struct _RenderTarget_e__FixedBuffer public D3D10_RENDER_TARGET_BLEND_DESC1 e6; public D3D10_RENDER_TARGET_BLEND_DESC1 e7; + [UnscopedRef] public ref D3D10_RENDER_TARGET_BLEND_DESC1 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref D3D10_RENDER_TARGET_BLEND_DESC1 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_SHADER_RESOURCE_VIEW_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_SHADER_RESOURCE_VIEW_DESC1.cs index fecbd42b98..e4d3d43d09 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_SHADER_RESOURCE_VIEW_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10_SHADER_RESOURCE_VIEW_DESC1.cs @@ -3,6 +3,7 @@ // Ported from um/d3d10_1.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,102 +24,112 @@ public partial struct D3D10_SHADER_RESOURCE_VIEW_DESC1 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D10_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D10_TEX1D_SRV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D10_TEX1D_ARRAY_SRV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2D_SRV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D10_TEX2D_ARRAY_SRV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_SRV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D10_TEX3D_SRV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } /// + [UnscopedRef] public ref D3D10_TEXCUBE_SRV TextureCube { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); + return ref Anonymous.TextureCube; } } /// + [UnscopedRef] public ref D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1)); + return ref Anonymous.TextureCubeArray; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10BlendState1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10BlendState1.cs index 6c8a451478..0842680012 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10BlendState1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10BlendState1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EDAD8D99-8A35-4D6D-8566-2EA276CDE161")] [NativeTypeName("struct ID3D10BlendState1 : ID3D10BlendState")] [NativeInheritance("ID3D10BlendState")] -public unsafe partial struct ID3D10BlendState1 : ID3D10BlendState1.Interface +public unsafe partial struct ID3D10BlendState1 : ID3D10BlendState1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10BlendState1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10Device1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10Device1.cs index 868b663d4f..247e749a86 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10Device1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10Device1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C8F-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Device1 : ID3D10Device")] [NativeInheritance("ID3D10Device")] -public unsafe partial struct ID3D10Device1 : ID3D10Device1.Interface +public unsafe partial struct ID3D10Device1 : ID3D10Device1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Device1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10ShaderResourceView1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10ShaderResourceView1.cs index f8e8e1f40a..b9e734d608 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10ShaderResourceView1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/ID3D10ShaderResourceView1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4C87-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10ShaderResourceView1 : ID3D10ShaderResourceView")] [NativeInheritance("ID3D10ShaderResourceView")] -public unsafe partial struct ID3D10ShaderResourceView1 : ID3D10ShaderResourceView1.Interface +public unsafe partial struct ID3D10ShaderResourceView1 : ID3D10ShaderResourceView1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderResourceView1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_INST_INFO.cs b/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_INST_INFO.cs index 4c8d44a2a4..3739d3b18e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_INST_INFO.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_INST_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,6 +50,7 @@ public partial struct _pOutputs_e__FixedBuffer public D3D10_SHADER_DEBUG_OUTPUTREG_INFO e0; public D3D10_SHADER_DEBUG_OUTPUTREG_INFO e1; + [UnscopedRef] public ref D3D10_SHADER_DEBUG_OUTPUTREG_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref D3D10_SHADER_DEBUG_OUTPUTREG_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_OUTPUTREG_INFO.cs b/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_OUTPUTREG_INFO.cs index afa1dcf6bf..b2ae6b58b7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_OUTPUTREG_INFO.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_OUTPUTREG_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -43,6 +44,7 @@ public partial struct _OutputVars_e__FixedBuffer public D3D10_SHADER_DEBUG_OUTPUTVAR e2; public D3D10_SHADER_DEBUG_OUTPUTVAR e3; + [UnscopedRef] public ref D3D10_SHADER_DEBUG_OUTPUTVAR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -53,6 +55,7 @@ public ref D3D10_SHADER_DEBUG_OUTPUTVAR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 4); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1shader/ID3D10ShaderReflection1.cs b/sources/Interop/Windows/DirectX/um/d3d10_1shader/ID3D10ShaderReflection1.cs index 9c346c6aba..453ba371da 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1shader/ID3D10ShaderReflection1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1shader/ID3D10ShaderReflection1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C3457783-A846-47CE-9520-CEA6F66E7447")] [NativeTypeName("struct ID3D10ShaderReflection1 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10ShaderReflection1 : ID3D10ShaderReflection1.Interface +public unsafe partial struct ID3D10ShaderReflection1 : ID3D10ShaderReflection1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderReflection1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10Effect.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10Effect.cs index 78dd039cc9..61351f554f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10Effect.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10Effect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("51B0CA8B-EC0B-4519-870D-8EE1CB5017C7")] [NativeTypeName("struct ID3D10Effect : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10Effect : ID3D10Effect.Interface +public unsafe partial struct ID3D10Effect : ID3D10Effect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Effect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10EffectPool.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10EffectPool.cs index fa79aa9fb7..431d578eb7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10EffectPool.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10EffectPool.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9537AB04-3250-412E-8213-FCD2F8677933")] [NativeTypeName("struct ID3D10EffectPool : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10EffectPool : ID3D10EffectPool.Interface +public unsafe partial struct ID3D10EffectPool : ID3D10EffectPool.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10EffectPool)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10StateBlock.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10StateBlock.cs index 66f6d98811..0436a3bf41 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10StateBlock.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/ID3D10StateBlock.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0803425A-57F5-4DD6-9465-A87570834A08")] [NativeTypeName("struct ID3D10StateBlock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10StateBlock : ID3D10StateBlock.Interface +public unsafe partial struct ID3D10StateBlock : ID3D10StateBlock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10StateBlock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10Debug.cs b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10Debug.cs index 7f2444b71c..14dee1bafe 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10Debug.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10Debug.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4E01-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10Debug : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10Debug : ID3D10Debug.Interface +public unsafe partial struct ID3D10Debug : ID3D10Debug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Debug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10InfoQueue.cs b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10InfoQueue.cs index bd6d1aabdb..4ece1b6014 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10InfoQueue.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10InfoQueue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1B940B17-2642-4D1F-AB1F-B99BAD0C395F")] [NativeTypeName("struct ID3D10InfoQueue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10InfoQueue : ID3D10InfoQueue.Interface +public unsafe partial struct ID3D10InfoQueue : ID3D10InfoQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10InfoQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10SwitchToRef.cs b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10SwitchToRef.cs index 4bd85895d4..7f3ab84444 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10SwitchToRef.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/ID3D10SwitchToRef.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4E02-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D10SwitchToRef : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10SwitchToRef : ID3D10SwitchToRef.Interface +public unsafe partial struct ID3D10SwitchToRef : ID3D10SwitchToRef.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10SwitchToRef)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflection.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflection.cs index 687419e15d..bd4c6f521d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D40E20B6-F8F7-42AD-AB20-4BAF8F15DFAA")] [NativeTypeName("struct ID3D10ShaderReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D10ShaderReflection : ID3D10ShaderReflection.Interface +public unsafe partial struct ID3D10ShaderReflection : ID3D10ShaderReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionConstantBuffer.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionConstantBuffer.cs index f6bee247fa..095635262c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionConstantBuffer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionConstantBuffer.cs @@ -3,16 +3,20 @@ // Ported from um/d3d10shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("66C66A94-DDDD-4B62-A66A-F0DA33C2B4D0")] -public unsafe partial struct ID3D10ShaderReflectionConstantBuffer : ID3D10ShaderReflectionConstantBuffer.Interface +public unsafe partial struct ID3D10ShaderReflectionConstantBuffer : ID3D10ShaderReflectionConstantBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderReflectionConstantBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionType.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionType.cs index 0321a20d7b..0a178d7488 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionType.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionType.cs @@ -3,16 +3,20 @@ // Ported from um/d3d10shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("C530AD7D-9B16-4395-A979-BA2ECFF83ADD")] -public unsafe partial struct ID3D10ShaderReflectionType : ID3D10ShaderReflectionType.Interface +public unsafe partial struct ID3D10ShaderReflectionType : ID3D10ShaderReflectionType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderReflectionType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionVariable.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionVariable.cs index 466b3e0621..fd969121b7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionVariable.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/ID3D10ShaderReflectionVariable.cs @@ -3,16 +3,20 @@ // Ported from um/d3d10shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("1BF63C95-2650-405D-99C1-3636BD1DA0A1")] -public unsafe partial struct ID3D10ShaderReflectionVariable : ID3D10ShaderReflectionVariable.Interface +public unsafe partial struct ID3D10ShaderReflectionVariable : ID3D10ShaderReflectionVariable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10ShaderReflectionVariable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BLEND_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BLEND_DESC.cs index 17f4519ae6..6677202aed 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BLEND_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BLEND_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -35,6 +36,7 @@ public partial struct _RenderTarget_e__FixedBuffer public D3D11_RENDER_TARGET_BLEND_DESC e6; public D3D11_RENDER_TARGET_BLEND_DESC e7; + [UnscopedRef] public ref D3D11_RENDER_TARGET_BLEND_DESC this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref D3D11_RENDER_TARGET_BLEND_DESC this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_RTV.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_RTV.cs index 5d7bbab205..ecbdeb882b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_RTV.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_RTV.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,42 +21,46 @@ public partial struct D3D11_BUFFER_RTV public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref uint FirstElement { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.FirstElement, 1)); + return ref Anonymous1.FirstElement; } } /// + [UnscopedRef] public ref uint ElementOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.ElementOffset, 1)); + return ref Anonymous1.ElementOffset; } } /// + [UnscopedRef] public ref uint NumElements { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.NumElements, 1)); + return ref Anonymous2.NumElements; } } /// + [UnscopedRef] public ref uint ElementWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ElementWidth, 1)); + return ref Anonymous2.ElementWidth; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_SRV.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_SRV.cs index 0224d5d60f..06402dd0b3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_SRV.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_BUFFER_SRV.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,42 +21,46 @@ public partial struct D3D11_BUFFER_SRV public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref uint FirstElement { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.FirstElement, 1)); + return ref Anonymous1.FirstElement; } } /// + [UnscopedRef] public ref uint ElementOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.ElementOffset, 1)); + return ref Anonymous1.ElementOffset; } } /// + [UnscopedRef] public ref uint NumElements { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.NumElements, 1)); + return ref Anonymous2.NumElements; } } /// + [UnscopedRef] public ref uint ElementWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ElementWidth, 1)); + return ref Anonymous2.ElementWidth; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.cs index 3a29a292d2..c8ccb692fb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,62 +26,68 @@ public partial struct D3D11_DEPTH_STENCIL_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_TEX1D_DSV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_DSV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_DSV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_DSV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_DSV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.cs index 59bf95594e..29a8db21c3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,82 +23,90 @@ public partial struct D3D11_RENDER_TARGET_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_RTV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_RTV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_RTV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_RTV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_RTV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_RTV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_RTV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.cs index f55192a98c..3075fe27dc 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,112 +24,123 @@ public partial struct D3D11_SHADER_RESOURCE_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_SRV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_SRV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_SRV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_SRV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_SRV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_SRV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } /// + [UnscopedRef] public ref D3D11_TEXCUBE_SRV TextureCube { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); + return ref Anonymous.TextureCube; } } /// + [UnscopedRef] public ref D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1)); + return ref Anonymous.TextureCubeArray; } } /// + [UnscopedRef] public ref D3D11_BUFFEREX_SRV BufferEx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.BufferEx, 1)); + return ref Anonymous.BufferEx; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.cs index 34d919ddd6..81c9261477 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,62 +23,68 @@ public partial struct D3D11_UNORDERED_ACCESS_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_UAV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_UAV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_UAV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_UAV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_UAV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_UAV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_COLOR.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_COLOR.cs index 1f7c51d0c3..13f008456f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_COLOR.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_COLOR.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,22 +19,24 @@ public partial struct D3D11_VIDEO_COLOR public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_VIDEO_COLOR_YCbCrA YCbCr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.YCbCr, 1)); + return ref Anonymous.YCbCr; } } /// + [UnscopedRef] public ref D3D11_VIDEO_COLOR_RGBA RGBA { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RGBA, 1)); + return ref Anonymous.RGBA; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC.cs index c683ba65f7..ffcc5bc587 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -25,12 +26,13 @@ public partial struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_TEX2D_VDOV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC.cs index d0e8c64aae..99aaffce07 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -24,12 +25,13 @@ public partial struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_TEX2D_VPIV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC.cs index 3a05a7b328..14ea72127a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -21,22 +22,24 @@ public partial struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_TEX2D_VPOV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_VPOV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Asynchronous.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Asynchronous.cs index 92f4da92bf..ab2fa3a8e6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Asynchronous.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Asynchronous.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4B35D0CD-1E15-4258-9C98-1B1333F6DD3B")] [NativeTypeName("struct ID3D11Asynchronous : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Asynchronous : ID3D11Asynchronous.Interface +public unsafe partial struct ID3D11Asynchronous : ID3D11Asynchronous.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Asynchronous)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11AuthenticatedChannel.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11AuthenticatedChannel.cs index f3c8c33578..8a4fc29759 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11AuthenticatedChannel.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11AuthenticatedChannel.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11AuthenticatedChannel : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11AuthenticatedChannel : ID3D11AuthenticatedChannel.Interface +public unsafe partial struct ID3D11AuthenticatedChannel : ID3D11AuthenticatedChannel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11AuthenticatedChannel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11BlendState.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11BlendState.cs index 14482a3b53..8ed56c2d26 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11BlendState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11BlendState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("75B68FAA-347D-4159-8F45-A0640F01CD9A")] [NativeTypeName("struct ID3D11BlendState : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface +public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Buffer.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Buffer.cs index d252ff6383..9150e36cb9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Buffer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Buffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("48570B85-D1EE-4FCD-A250-EB350722B037")] [NativeTypeName("struct ID3D11Buffer : ID3D11Resource")] [NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface +public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Buffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassInstance.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassInstance.cs index 1d9f7f4cbf..a5094770cf 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassInstance.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassInstance.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A6CD7FAA-B0B7-4A2F-9436-8662A65797CB")] [NativeTypeName("struct ID3D11ClassInstance : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ClassInstance : ID3D11ClassInstance.Interface +public unsafe partial struct ID3D11ClassInstance : ID3D11ClassInstance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassInstance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassLinkage.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassLinkage.cs index d76af60d72..d81e963181 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassLinkage.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ClassLinkage.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DDF57CBA-9543-46E4-A12B-F207A0FE7FED")] [NativeTypeName("struct ID3D11ClassLinkage : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ClassLinkage : ID3D11ClassLinkage.Interface +public unsafe partial struct ID3D11ClassLinkage : ID3D11ClassLinkage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassLinkage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CommandList.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CommandList.cs index 943b2b8d94..b87d0e6487 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A24BC4D1-769E-43F7-8013-98FF566C18E2")] [NativeTypeName("struct ID3D11CommandList : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11CommandList : ID3D11CommandList.Interface +public unsafe partial struct ID3D11CommandList : ID3D11CommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ComputeShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ComputeShader.cs index 160aa13b1c..53ecff0b31 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ComputeShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ComputeShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4F5B196E-C2BD-495E-BD01-1FDED38E4969")] [NativeTypeName("struct ID3D11ComputeShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ComputeShader : ID3D11ComputeShader.Interface +public unsafe partial struct ID3D11ComputeShader : ID3D11ComputeShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ComputeShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Counter.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Counter.cs index 7d2acc3ee7..d7675e5468 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Counter.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Counter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6E8C49FB-A371-4770-B440-29086022B741")] [NativeTypeName("struct ID3D11Counter : ID3D11Asynchronous")] [NativeInheritance("ID3D11Asynchronous")] -public unsafe partial struct ID3D11Counter : ID3D11Counter.Interface +public unsafe partial struct ID3D11Counter : ID3D11Counter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Counter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CryptoSession.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CryptoSession.cs index f000f8e053..938384521e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CryptoSession.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11CryptoSession.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11CryptoSession : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11CryptoSession : ID3D11CryptoSession.Interface +public unsafe partial struct ID3D11CryptoSession : ID3D11CryptoSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CryptoSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilState.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilState.cs index 611dd1b762..a880f90be3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("03823EFB-8D8F-4E1C-9AA2-F64BB2CBFDF1")] [NativeTypeName("struct ID3D11DepthStencilState : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.Interface +public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilView.cs index 11d6d67968..cce6e09f8d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DepthStencilView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9FDAC92A-1876-48C3-AFAD-25B94F84A9B6")] [NativeTypeName("struct ID3D11DepthStencilView : ID3D11View")] [NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Interface +public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Device.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Device.cs index fc62491ccc..978f748046 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Device.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Device.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DB6F6DDB-AC77-4E88-8253-819DF9BBF140")] [NativeTypeName("struct ID3D11Device : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Device : ID3D11Device.Interface +public unsafe partial struct ID3D11Device : ID3D11Device.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceChild.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceChild.cs index d28d8468b0..d3b46565e9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceChild.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceChild.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1841E5C8-16B0-489B-BCC8-44CFB0D5DEAE")] [NativeTypeName("struct ID3D11DeviceChild : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface +public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceChild)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceContext.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceContext.cs index af8f7f5e20..8fd4ef256a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceContext.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DeviceContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C0BFA96C-E089-44FB-8EAF-26F8796190DA")] [NativeTypeName("struct ID3D11DeviceContext : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DeviceContext : ID3D11DeviceContext.Interface +public unsafe partial struct ID3D11DeviceContext : ID3D11DeviceContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DomainShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DomainShader.cs index c11f6016bf..6aed343c20 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DomainShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11DomainShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F582C508-0F36-490C-9977-31EECE268CFA")] [NativeTypeName("struct ID3D11DomainShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface +public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DomainShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11GeometryShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11GeometryShader.cs index 7131b46f40..c891432943 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11GeometryShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11GeometryShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("38325B96-EFFB-4022-BA02-2E795B70275C")] [NativeTypeName("struct ID3D11GeometryShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interface +public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11GeometryShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11HullShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11HullShader.cs index b7ebd1435f..84caf8bfe1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11HullShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11HullShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8E5C6061-628A-4C8E-8264-BBE45CB3D5DD")] [NativeTypeName("struct ID3D11HullShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface +public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11HullShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11InputLayout.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11InputLayout.cs index 0639f9a95c..05023fc09e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11InputLayout.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11InputLayout.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E4819DDC-4CF0-4025-BD26-5DE82A3E07B7")] [NativeTypeName("struct ID3D11InputLayout : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11InputLayout : ID3D11InputLayout.Interface +public unsafe partial struct ID3D11InputLayout : ID3D11InputLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InputLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11PixelShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11PixelShader.cs index ddb89a8644..61dd9e50c3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11PixelShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11PixelShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EA82E40D-51DC-4F33-93D4-DB7C9125AE8C")] [NativeTypeName("struct ID3D11PixelShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11PixelShader : ID3D11PixelShader.Interface +public unsafe partial struct ID3D11PixelShader : ID3D11PixelShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11PixelShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Predicate.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Predicate.cs index 95757ddd24..061a1ce4f9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Predicate.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Predicate.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9EB576DD-9F77-4D86-81AA-8BAB5FE490E2")] [NativeTypeName("struct ID3D11Predicate : ID3D11Query")] [NativeInheritance("ID3D11Query")] -public unsafe partial struct ID3D11Predicate : ID3D11Predicate.Interface +public unsafe partial struct ID3D11Predicate : ID3D11Predicate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Predicate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Query.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Query.cs index 1eae5f2be6..0b71f88d57 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Query.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Query.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D6C00747-87B7-425E-B84D-44D108560AFD")] [NativeTypeName("struct ID3D11Query : ID3D11Asynchronous")] [NativeInheritance("ID3D11Asynchronous")] -public unsafe partial struct ID3D11Query : ID3D11Query.Interface +public unsafe partial struct ID3D11Query : ID3D11Query.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RasterizerState.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RasterizerState.cs index 515803047b..3c50d811a4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RasterizerState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RasterizerState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9BB4AB81-AB1A-4D8F-B506-FC04200B6EE7")] [NativeTypeName("struct ID3D11RasterizerState : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Interface +public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RenderTargetView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RenderTargetView.cs index 6e9d2c6073..ac13aea23e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RenderTargetView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11RenderTargetView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DFDBA067-0B8D-4865-875B-D7B4516CC164")] [NativeTypeName("struct ID3D11RenderTargetView : ID3D11View")] [NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Interface +public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Resource.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Resource.cs index f4a91f9297..39b8622c57 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Resource.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Resource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DC8E63F3-D12B-4952-B47B-5E45026A862D")] [NativeTypeName("struct ID3D11Resource : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface +public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Resource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11SamplerState.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11SamplerState.cs index 416ba9b63d..a67368db59 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11SamplerState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11SamplerState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DA6FEA51-564C-4487-9810-F0D0F9B4E3A5")] [NativeTypeName("struct ID3D11SamplerState : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11SamplerState : ID3D11SamplerState.Interface +public unsafe partial struct ID3D11SamplerState : ID3D11SamplerState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SamplerState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ShaderResourceView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ShaderResourceView.cs index 1910b1936f..708e2eb06b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ShaderResourceView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11ShaderResourceView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B0E06FE0-8192-4E1A-B1CA-36D7414710B2")] [NativeTypeName("struct ID3D11ShaderResourceView : ID3D11View")] [NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView.Interface +public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture1D.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture1D.cs index 815d8b6e4b..76b77cab89 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture1D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture1D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F8FB5C27-C6B3-4F75-A4C8-439AF2EF564C")] [NativeTypeName("struct ID3D11Texture1D : ID3D11Resource")] [NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface +public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture1D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture2D.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture2D.cs index 9eee2a5f4f..47c3c90d12 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture2D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture2D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6F15AAF2-D208-4E89-9AB4-489535D34F9C")] [NativeTypeName("struct ID3D11Texture2D : ID3D11Resource")] [NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface +public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture3D.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture3D.cs index 6c53ee2e9e..a0d143fd0c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture3D.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11Texture3D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("037E866E-F56D-4357-A8AF-9DABBE6E250E")] [NativeTypeName("struct ID3D11Texture3D : ID3D11Resource")] [NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface +public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11UnorderedAccessView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11UnorderedAccessView.cs index 8813915f48..7bb1b70519 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11UnorderedAccessView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11UnorderedAccessView.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("28ACF509-7F5C-48F6-8611-F316010A6380")] [NativeTypeName("struct ID3D11UnorderedAccessView : ID3D11View")] [NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessView.Interface +public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VertexShader.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VertexShader.cs index b00e831df9..edb42fd8ed 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VertexShader.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VertexShader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3B301D64-D678-4289-8897-22F8928B72F3")] [NativeTypeName("struct ID3D11VertexShader : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface +public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VertexShader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoContext.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoContext.cs index 7b27299f17..5f6c2831e0 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoContext.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoContext.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoContext : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoContext : ID3D11VideoContext.Interface +public unsafe partial struct ID3D11VideoContext : ID3D11VideoContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoder.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoder.cs index 6199b7a472..044b6c6dc2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoder.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoder.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoDecoder : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoDecoder : ID3D11VideoDecoder.Interface +public unsafe partial struct ID3D11VideoDecoder : ID3D11VideoDecoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoderOutputView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoderOutputView.cs index 292ca8403c..69565f7721 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoderOutputView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDecoderOutputView.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoDecoderOutputView : ID3D11View")] [NativeInheritance("ID3D11View")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoDecoderOutputView : ID3D11VideoDecoderOutputView.Interface +public unsafe partial struct ID3D11VideoDecoderOutputView : ID3D11VideoDecoderOutputView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoderOutputView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDevice.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDevice.cs index 45d9b17d63..72d9f1fdb1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDevice.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoDevice.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoDevice : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoDevice : ID3D11VideoDevice.Interface +public unsafe partial struct ID3D11VideoDevice : ID3D11VideoDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessor.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessor.cs index c9c635f1b2..6108de22f6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessor.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessor.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoProcessor : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoProcessor : ID3D11VideoProcessor.Interface +public unsafe partial struct ID3D11VideoProcessor : ID3D11VideoProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorEnumerator.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorEnumerator.cs index dd8d613842..fe3f26c90e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorEnumerator.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorEnumerator.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoProcessorEnumerator : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoProcessorEnumerator : ID3D11VideoProcessorEnumerator.Interface +public unsafe partial struct ID3D11VideoProcessorEnumerator : ID3D11VideoProcessorEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorInputView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorInputView.cs index 42633db9a4..1febb19aba 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorInputView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorInputView.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoProcessorInputView : ID3D11View")] [NativeInheritance("ID3D11View")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoProcessorInputView : ID3D11VideoProcessorInputView.Interface +public unsafe partial struct ID3D11VideoProcessorInputView : ID3D11VideoProcessorInputView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorInputView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorOutputView.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorOutputView.cs index fd13d8cf97..7724f662ae 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorOutputView.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11VideoProcessorOutputView.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoProcessorOutputView : ID3D11View")] [NativeInheritance("ID3D11View")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11VideoProcessorOutputView : ID3D11VideoProcessorOutputView.Interface +public unsafe partial struct ID3D11VideoProcessorOutputView : ID3D11VideoProcessorOutputView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorOutputView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11View.cs b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11View.cs index 1909b3f8c9..ba3921c742 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/ID3D11View.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/ID3D11View.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("839D1216-BB2E-412B-B7F4-A9DBEBE08ED1")] [NativeTypeName("struct ID3D11View : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11View : ID3D11View.Interface +public unsafe partial struct ID3D11View : ID3D11View.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11View)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.cs index 5186c6acc0..dacfb0f0b5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -35,6 +36,7 @@ public partial struct _RenderTarget_e__FixedBuffer public D3D11_RENDER_TARGET_BLEND_DESC1 e6; public D3D11_RENDER_TARGET_BLEND_DESC1 e7; + [UnscopedRef] public ref D3D11_RENDER_TARGET_BLEND_DESC1 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref D3D11_RENDER_TARGET_BLEND_DESC1 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11BlendState1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11BlendState1.cs index 872e4998f0..64ee6ca3aa 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11BlendState1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11BlendState1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CC86FABE-DA55-401D-85E7-E3C9DE2877E9")] [NativeTypeName("struct ID3D11BlendState1 : ID3D11BlendState")] [NativeInheritance("ID3D11BlendState")] -public unsafe partial struct ID3D11BlendState1 : ID3D11BlendState1.Interface +public unsafe partial struct ID3D11BlendState1 : ID3D11BlendState1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11Device1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11Device1.cs index 9623661811..41c8bce47e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11Device1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11Device1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A04BFB29-08EF-43D6-A49C-A9BDBDCBE686")] [NativeTypeName("struct ID3D11Device1 : ID3D11Device")] [NativeInheritance("ID3D11Device")] -public unsafe partial struct ID3D11Device1 : ID3D11Device1.Interface +public unsafe partial struct ID3D11Device1 : ID3D11Device1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11DeviceContext1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11DeviceContext1.cs index c333d83eec..65bcabbf4d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11DeviceContext1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11DeviceContext1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("BB2C6FAA-B5FB-4082-8E6B-388B8CFA90E1")] [NativeTypeName("struct ID3D11DeviceContext1 : ID3D11DeviceContext")] [NativeInheritance("ID3D11DeviceContext")] -public unsafe partial struct ID3D11DeviceContext1 : ID3D11DeviceContext1.Interface +public unsafe partial struct ID3D11DeviceContext1 : ID3D11DeviceContext1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11RasterizerState1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11RasterizerState1.cs index 5cec98ba91..a874b9fa7d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11RasterizerState1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11RasterizerState1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1217D7A6-5039-418C-B042-9CBE256AFD6E")] [NativeTypeName("struct ID3D11RasterizerState1 : ID3D11RasterizerState")] [NativeInheritance("ID3D11RasterizerState")] -public unsafe partial struct ID3D11RasterizerState1 : ID3D11RasterizerState1.Interface +public unsafe partial struct ID3D11RasterizerState1 : ID3D11RasterizerState1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoContext1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoContext1.cs index fe97600c61..1861b378f3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoContext1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoContext1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoContext1 : ID3D11VideoContext")] [NativeInheritance("ID3D11VideoContext")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11VideoContext1 : ID3D11VideoContext1.Interface +public unsafe partial struct ID3D11VideoContext1 : ID3D11VideoContext1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoDevice1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoDevice1.cs index 26180d9530..776370eeaf 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoDevice1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoDevice1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoDevice1 : ID3D11VideoDevice")] [NativeInheritance("ID3D11VideoDevice")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11VideoDevice1 : ID3D11VideoDevice1.Interface +public unsafe partial struct ID3D11VideoDevice1 : ID3D11VideoDevice1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoProcessorEnumerator1.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoProcessorEnumerator1.cs index aba7309e00..8565fae41b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoProcessorEnumerator1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3D11VideoProcessorEnumerator1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator")] [NativeInheritance("ID3D11VideoProcessorEnumerator")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator1.Interface +public unsafe partial struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DDeviceContextState.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DDeviceContextState.cs index 6b1ff13a17..3f0e3c45eb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DDeviceContextState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DDeviceContextState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5C1E0D8A-7C23-48F9-8C59-A92958CEFF11")] [NativeTypeName("struct ID3DDeviceContextState : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3DDeviceContextState : ID3DDeviceContextState.Interface +public unsafe partial struct ID3DDeviceContextState : ID3DDeviceContextState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDeviceContextState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DUserDefinedAnnotation.cs b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DUserDefinedAnnotation.cs index 8d401a85cf..63625f9f01 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DUserDefinedAnnotation.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_1/ID3DUserDefinedAnnotation.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B2DAAD8B-03D4-4DBF-95EB-32AB4B63D0AB")] [NativeTypeName("struct ID3DUserDefinedAnnotation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotation.Interface +public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DUserDefinedAnnotation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11Device2.cs b/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11Device2.cs index 64ffe46c33..49f8d981ab 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11Device2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11Device2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11Device2 : ID3D11Device1")] [NativeInheritance("ID3D11Device1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID3D11Device2 : ID3D11Device2.Interface +public unsafe partial struct ID3D11Device2 : ID3D11Device2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11DeviceContext2.cs b/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11DeviceContext2.cs index 9dbc3795e5..b21cb547e2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11DeviceContext2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_2/ID3D11DeviceContext2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11DeviceContext2 : ID3D11DeviceContext1")] [NativeInheritance("ID3D11DeviceContext1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ID3D11DeviceContext2 : ID3D11DeviceContext2.Interface +public unsafe partial struct ID3D11DeviceContext2 : ID3D11DeviceContext2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.cs index 245ddf5650..fa62af49f8 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,82 +23,90 @@ public partial struct D3D11_RENDER_TARGET_VIEW_DESC1 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_RTV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_RTV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_RTV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_RTV1 Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_RTV1 Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_RTV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_RTV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.cs index ce5199cc37..4fb0985e20 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,112 +24,123 @@ public partial struct D3D11_SHADER_RESOURCE_VIEW_DESC1 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_SRV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_SRV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_SRV1 Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_SRV1 Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_SRV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_SRV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } /// + [UnscopedRef] public ref D3D11_TEXCUBE_SRV TextureCube { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); + return ref Anonymous.TextureCube; } } /// + [UnscopedRef] public ref D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1)); + return ref Anonymous.TextureCubeArray; } } /// + [UnscopedRef] public ref D3D11_BUFFEREX_SRV BufferEx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.BufferEx, 1)); + return ref Anonymous.BufferEx; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.cs index 934fdfe7a9..b74b1fed43 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,62 +23,68 @@ public partial struct D3D11_UNORDERED_ACCESS_VIEW_DESC1 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_BUFFER_UAV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D11_TEX1D_UAV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D11_TEX1D_ARRAY_UAV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D11_TEX2D_UAV1 Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D11_TEX2D_ARRAY_UAV1 Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D11_TEX3D_UAV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Device3.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Device3.cs index 4dd04e99e5..991bd41b19 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Device3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Device3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11Device3 : ID3D11Device2")] [NativeInheritance("ID3D11Device2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11Device3 : ID3D11Device3.Interface +public unsafe partial struct ID3D11Device3 : ID3D11Device3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext3.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext3.cs index 03cdd869b1..084827f443 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B4E3C01D-E79E-4637-91B2-510E9F4C9B8F")] [NativeTypeName("struct ID3D11DeviceContext3 : ID3D11DeviceContext2")] [NativeInheritance("ID3D11DeviceContext2")] -public unsafe partial struct ID3D11DeviceContext3 : ID3D11DeviceContext3.Interface +public unsafe partial struct ID3D11DeviceContext3 : ID3D11DeviceContext3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext4.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext4.cs index 6c68514233..ef16bc25c3 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext4.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11DeviceContext4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("917600DA-F58C-4C33-98D8-3E15B390FA24")] [NativeTypeName("struct ID3D11DeviceContext4 : ID3D11DeviceContext3")] [NativeInheritance("ID3D11DeviceContext3")] -public unsafe partial struct ID3D11DeviceContext4 : ID3D11DeviceContext4.Interface +public unsafe partial struct ID3D11DeviceContext4 : ID3D11DeviceContext4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Fence.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Fence.cs index 0d1fbd3af4..0393b0fd5d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Fence.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Fence.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AFFDE9D1-1DF7-4BB7-8A34-0F46251DAB80")] [NativeTypeName("struct ID3D11Fence : ID3D11DeviceChild")] [NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Fence : ID3D11Fence.Interface +public unsafe partial struct ID3D11Fence : ID3D11Fence.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Fence)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Query1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Query1.cs index 374a2430ff..d6fb200fd9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Query1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Query1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11Query1 : ID3D11Query")] [NativeInheritance("ID3D11Query")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11Query1 : ID3D11Query1.Interface +public unsafe partial struct ID3D11Query1 : ID3D11Query1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RasterizerState2.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RasterizerState2.cs index 7bfa6cf7f7..784af67e33 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RasterizerState2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RasterizerState2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11RasterizerState2 : ID3D11RasterizerState1")] [NativeInheritance("ID3D11RasterizerState1")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11RasterizerState2 : ID3D11RasterizerState2.Interface +public unsafe partial struct ID3D11RasterizerState2 : ID3D11RasterizerState2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RenderTargetView1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RenderTargetView1.cs index 576670344b..0c359c4eff 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RenderTargetView1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11RenderTargetView1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11RenderTargetView1 : ID3D11RenderTargetView")] [NativeInheritance("ID3D11RenderTargetView")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11RenderTargetView1 : ID3D11RenderTargetView1.Interface +public unsafe partial struct ID3D11RenderTargetView1 : ID3D11RenderTargetView1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11ShaderResourceView1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11ShaderResourceView1.cs index 6c22a034f3..0e86b0a738 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11ShaderResourceView1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11ShaderResourceView1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView")] [NativeInheritance("ID3D11ShaderResourceView")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView1.Interface +public unsafe partial struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture2D1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture2D1.cs index 11ad61cd9d..69cb56a237 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture2D1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture2D1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11Texture2D1 : ID3D11Texture2D")] [NativeInheritance("ID3D11Texture2D")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11Texture2D1 : ID3D11Texture2D1.Interface +public unsafe partial struct ID3D11Texture2D1 : ID3D11Texture2D1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture3D1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture3D1.cs index 77edb8c92b..fb0dd85bed 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture3D1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11Texture3D1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11Texture3D1 : ID3D11Texture3D")] [NativeInheritance("ID3D11Texture3D")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11Texture3D1 : ID3D11Texture3D1.Interface +public unsafe partial struct ID3D11Texture3D1 : ID3D11Texture3D1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11UnorderedAccessView1.cs b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11UnorderedAccessView1.cs index 2d5fa26c45..38b9239b75 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11UnorderedAccessView1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_3/ID3D11UnorderedAccessView1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView")] [NativeInheritance("ID3D11UnorderedAccessView")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView1.Interface +public unsafe partial struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device4.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device4.cs index 0d981bbaf7..adbc962ae9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device4.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8992AB71-02E6-4B8D-BA48-B056DCDA42C4")] [NativeTypeName("struct ID3D11Device4 : ID3D11Device3")] [NativeInheritance("ID3D11Device3")] -public unsafe partial struct ID3D11Device4 : ID3D11Device4.Interface +public unsafe partial struct ID3D11Device4 : ID3D11Device4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device5.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device5.cs index edaef46d39..f382b4aadd 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device5.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Device5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8FFDE202-A0E7-45DF-9E01-E837801B5EA0")] [NativeTypeName("struct ID3D11Device5 : ID3D11Device4")] [NativeInheritance("ID3D11Device4")] -public unsafe partial struct ID3D11Device5 : ID3D11Device5.Interface +public unsafe partial struct ID3D11Device5 : ID3D11Device5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Multithread.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Multithread.cs index e43e18e3fb..1ba634f8b0 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Multithread.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11Multithread.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E4E00-342C-4106-A19F-4F2704F689F0")] [NativeTypeName("struct ID3D11Multithread : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Multithread : ID3D11Multithread.Interface +public unsafe partial struct ID3D11Multithread : ID3D11Multithread.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Multithread)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext2.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext2.cs index 75f82c6c78..f85fb69277 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11VideoContext2 : ID3D11VideoContext1")] [NativeInheritance("ID3D11VideoContext1")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D11VideoContext2 : ID3D11VideoContext2.Interface +public unsafe partial struct ID3D11VideoContext2 : ID3D11VideoContext2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext3.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext3.cs index 366ef68537..877354c392 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoContext3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A9E2FAA0-CB39-418F-A0B7-D8AAD4DE672E")] [NativeTypeName("struct ID3D11VideoContext3 : ID3D11VideoContext2")] [NativeInheritance("ID3D11VideoContext2")] -public unsafe partial struct ID3D11VideoContext3 : ID3D11VideoContext3.Interface +public unsafe partial struct ID3D11VideoContext3 : ID3D11VideoContext3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoDevice2.cs b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoDevice2.cs index 2c4c8cc410..09b45e19c9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoDevice2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_4/ID3D11VideoDevice2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("59C0CB01-35F0-4A70-8F67-87905C906A53")] [NativeTypeName("struct ID3D11VideoDevice2 : ID3D11VideoDevice1")] [NativeInheritance("ID3D11VideoDevice1")] -public unsafe partial struct ID3D11VideoDevice2 : ID3D11VideoDevice2.Interface +public unsafe partial struct ID3D11VideoDevice2 : ID3D11VideoDevice2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device.cs b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device.cs index 05a2442003..bce905b52d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("85611E73-70A9-490E-9614-A9E302777904")] [NativeTypeName("struct ID3D11On12Device : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11On12Device : ID3D11On12Device.Interface +public unsafe partial struct ID3D11On12Device : ID3D11On12Device.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11On12Device)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device1.cs b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device1.cs index 3b6554ddbe..4507d9205e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11On12Device1 : ID3D11On12Device")] [NativeInheritance("ID3D11On12Device")] [SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct ID3D11On12Device1 : ID3D11On12Device1.Interface +public unsafe partial struct ID3D11On12Device1 : ID3D11On12Device1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11On12Device1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device2.cs b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device2.cs index c867b7f445..cc23d467a9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11on12/ID3D11On12Device2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11On12Device2 : ID3D11On12Device1")] [NativeInheritance("ID3D11On12Device1")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D11On12Device2 : ID3D11On12Device2.Interface +public unsafe partial struct ID3D11On12Device2 : ID3D11On12Device2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11On12Device2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11Debug.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11Debug.cs index 6833308212..1c38c947fc 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11Debug.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11Debug.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("79CF2233-7536-4948-9D36-1E4692DC5760")] [NativeTypeName("struct ID3D11Debug : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Debug : ID3D11Debug.Interface +public unsafe partial struct ID3D11Debug : ID3D11Debug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Debug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11InfoQueue.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11InfoQueue.cs index 96c4974b71..3fbeeebac6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11InfoQueue.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11InfoQueue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6543DBB6-1B48-42F5-AB82-E97EC74326F6")] [NativeTypeName("struct ID3D11InfoQueue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11InfoQueue : ID3D11InfoQueue.Interface +public unsafe partial struct ID3D11InfoQueue : ID3D11InfoQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InfoQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefDefaultTrackingOptions.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefDefaultTrackingOptions.cs index dbd26cd29e..f0dd4abd7e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefDefaultTrackingOptions.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefDefaultTrackingOptions.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11RefDefaultTrackingOptions : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11RefDefaultTrackingOptions : ID3D11RefDefaultTrackingOptions.Interface +public unsafe partial struct ID3D11RefDefaultTrackingOptions : ID3D11RefDefaultTrackingOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefDefaultTrackingOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefTrackingOptions.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefTrackingOptions.cs index 9f6285d647..cb233ab515 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefTrackingOptions.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11RefTrackingOptions.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11RefTrackingOptions : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11RefTrackingOptions : ID3D11RefTrackingOptions.Interface +public unsafe partial struct ID3D11RefTrackingOptions : ID3D11RefTrackingOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefTrackingOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11SwitchToRef.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11SwitchToRef.cs index 347a30fdee..7b02503551 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11SwitchToRef.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11SwitchToRef.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1EF337E3-58E7-4F83-A692-DB221F5ED47E")] [NativeTypeName("struct ID3D11SwitchToRef : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11SwitchToRef : ID3D11SwitchToRef.Interface +public unsafe partial struct ID3D11SwitchToRef : ID3D11SwitchToRef.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SwitchToRef)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11TracingDevice.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11TracingDevice.cs index 45e0e5eb3f..b2488e8510 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11TracingDevice.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/ID3D11TracingDevice.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11TracingDevice : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11TracingDevice : ID3D11TracingDevice.Interface +public unsafe partial struct ID3D11TracingDevice : ID3D11TracingDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11TracingDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionLinkingGraph.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionLinkingGraph.cs index 4480c1ac4a..82cc04444f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionLinkingGraph.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionLinkingGraph.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("54133220-1CE8-43D3-8236-9855C5CEECFF")] [NativeTypeName("struct ID3D11FunctionLinkingGraph : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11FunctionLinkingGraph : ID3D11FunctionLinkingGraph.Interface +public unsafe partial struct ID3D11FunctionLinkingGraph : ID3D11FunctionLinkingGraph.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionLinkingGraph)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionParameterReflection.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionParameterReflection.cs index 2e75a2498b..66a1b17008 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionParameterReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionParameterReflection.cs @@ -3,16 +3,20 @@ // Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("42757488-334F-47FE-982E-1A65D08CC462")] -public unsafe partial struct ID3D11FunctionParameterReflection : ID3D11FunctionParameterReflection.Interface +public unsafe partial struct ID3D11FunctionParameterReflection : ID3D11FunctionParameterReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionParameterReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionReflection.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionReflection.cs index 41c9e850b8..0bf6ac901b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11FunctionReflection.cs @@ -3,16 +3,20 @@ // Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("207BCECB-D683-4A06-A8A3-9B149B9F73A4")] -public unsafe partial struct ID3D11FunctionReflection : ID3D11FunctionReflection.Interface +public unsafe partial struct ID3D11FunctionReflection : ID3D11FunctionReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LibraryReflection.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LibraryReflection.cs index 1c14a118c1..0e6574cf44 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LibraryReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LibraryReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("54384F1B-5B3E-4BB7-AE01-60BA3097CBB6")] [NativeTypeName("struct ID3D11LibraryReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11LibraryReflection : ID3D11LibraryReflection.Interface +public unsafe partial struct ID3D11LibraryReflection : ID3D11LibraryReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LibraryReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Linker.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Linker.cs index d18171a713..b99e3e0dee 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Linker.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Linker.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("59A6CD0E-E10D-4C1F-88C0-63ABA1DAF30E")] [NativeTypeName("struct ID3D11Linker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Linker : ID3D11Linker.Interface +public unsafe partial struct ID3D11Linker : ID3D11Linker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Linker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LinkingNode.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LinkingNode.cs index e5c212b9ea..39d6ba9d89 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LinkingNode.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11LinkingNode.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D80DD70C-8D2F-4751-94A1-03C79B3556DB")] [NativeTypeName("struct ID3D11LinkingNode : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11LinkingNode : ID3D11LinkingNode.Interface +public unsafe partial struct ID3D11LinkingNode : ID3D11LinkingNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LinkingNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Module.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Module.cs index 7f74a3ba90..3e4de0fc89 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Module.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11Module.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CAC701EE-80FC-4122-8242-10B39C8CEC34")] [NativeTypeName("struct ID3D11Module : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Module : ID3D11Module.Interface +public unsafe partial struct ID3D11Module : ID3D11Module.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Module)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ModuleInstance.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ModuleInstance.cs index 76ed79d46a..392c42b012 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ModuleInstance.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ModuleInstance.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("469E07F7-045A-48D5-AA12-68A478CDF75D")] [NativeTypeName("struct ID3D11ModuleInstance : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ModuleInstance : ID3D11ModuleInstance.Interface +public unsafe partial struct ID3D11ModuleInstance : ID3D11ModuleInstance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ModuleInstance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflection.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflection.cs index e791d6f32e..6a0d9369fb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8D536CA1-0CCA-4956-A837-786963755584")] [NativeTypeName("struct ID3D11ShaderReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ShaderReflection : ID3D11ShaderReflection.Interface +public unsafe partial struct ID3D11ShaderReflection : ID3D11ShaderReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionConstantBuffer.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionConstantBuffer.cs index 568a2c3dc3..3b77494440 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionConstantBuffer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionConstantBuffer.cs @@ -3,16 +3,20 @@ // Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("EB62D63D-93DD-4318-8AE8-C6F83AD371B8")] -public unsafe partial struct ID3D11ShaderReflectionConstantBuffer : ID3D11ShaderReflectionConstantBuffer.Interface +public unsafe partial struct ID3D11ShaderReflectionConstantBuffer : ID3D11ShaderReflectionConstantBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionConstantBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionType.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionType.cs index 2caf62aafa..ff6edd78ca 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionType.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionType.cs @@ -3,16 +3,20 @@ // Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("6E6FFA6A-9BAE-4613-A51E-91652D508C21")] -public unsafe partial struct ID3D11ShaderReflectionType : ID3D11ShaderReflectionType.Interface +public unsafe partial struct ID3D11ShaderReflectionType : ID3D11ShaderReflectionType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionVariable.cs b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionVariable.cs index 91602a0c88..7a3108004e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionVariable.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shader/ID3D11ShaderReflectionVariable.cs @@ -3,16 +3,20 @@ // Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("51F23923-F3E5-4BD1-91CB-606177D8DB4C")] -public unsafe partial struct ID3D11ShaderReflectionVariable : ID3D11ShaderReflectionVariable.Interface +public unsafe partial struct ID3D11ShaderReflectionVariable : ID3D11ShaderReflectionVariable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionVariable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_SHADER_TRACE_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_SHADER_TRACE_DESC.cs index 5f0cab9791..fa77669aed 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_SHADER_TRACE_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_SHADER_TRACE_DESC.cs @@ -3,6 +3,7 @@ // Ported from um/d3d11shadertracing.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -24,62 +25,68 @@ public partial struct D3D11_SHADER_TRACE_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D11_VERTEX_SHADER_TRACE_DESC VertexShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.VertexShaderTraceDesc, 1)); + return ref Anonymous.VertexShaderTraceDesc; } } /// + [UnscopedRef] public ref D3D11_HULL_SHADER_TRACE_DESC HullShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HullShaderTraceDesc, 1)); + return ref Anonymous.HullShaderTraceDesc; } } /// + [UnscopedRef] public ref D3D11_DOMAIN_SHADER_TRACE_DESC DomainShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DomainShaderTraceDesc, 1)); + return ref Anonymous.DomainShaderTraceDesc; } } /// + [UnscopedRef] public ref D3D11_GEOMETRY_SHADER_TRACE_DESC GeometryShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.GeometryShaderTraceDesc, 1)); + return ref Anonymous.GeometryShaderTraceDesc; } } /// + [UnscopedRef] public ref D3D11_PIXEL_SHADER_TRACE_DESC PixelShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PixelShaderTraceDesc, 1)); + return ref Anonymous.PixelShaderTraceDesc; } } /// + [UnscopedRef] public ref D3D11_COMPUTE_SHADER_TRACE_DESC ComputeShaderTraceDesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ComputeShaderTraceDesc, 1)); + return ref Anonymous.ComputeShaderTraceDesc; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_TRACE_REGISTER.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_TRACE_REGISTER.cs index d01c5b9f67..12ef633872 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_TRACE_REGISTER.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11_TRACE_REGISTER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -30,16 +31,18 @@ public unsafe partial struct D3D11_TRACE_REGISTER public byte Flags; /// + [UnscopedRef] public ref ushort Index1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Index1D, 1)); + return ref Anonymous.Index1D; } } /// + [UnscopedRef] public Span Index2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTrace.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTrace.cs index 177c0a51ec..ca646f888c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTrace.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTrace.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11ShaderTrace : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11ShaderTrace : ID3D11ShaderTrace.Interface +public unsafe partial struct ID3D11ShaderTrace : ID3D11ShaderTrace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTrace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTraceFactory.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTraceFactory.cs index 23091120b8..4a125b474c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTraceFactory.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/ID3D11ShaderTraceFactory.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D11ShaderTraceFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ID3D11ShaderTraceFactory : ID3D11ShaderTraceFactory.Interface +public unsafe partial struct ID3D11ShaderTraceFactory : ID3D11ShaderTraceFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTraceFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BLEND_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BLEND_DESC.cs index 85a3eb5812..b3fca49cd1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BLEND_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BLEND_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -35,6 +36,7 @@ public partial struct _RenderTarget_e__FixedBuffer public D3D12_RENDER_TARGET_BLEND_DESC e6; public D3D12_RENDER_TARGET_BLEND_DESC e7; + [UnscopedRef] public ref D3D12_RENDER_TARGET_BLEND_DESC this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref D3D12_RENDER_TARGET_BLEND_DESC this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.cs index bca4f7b36d..146a0e9dd9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,32 +29,35 @@ public unsafe partial struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ulong InstanceDescs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.InstanceDescs, 1)); + return ref Anonymous.InstanceDescs; } } /// + [UnscopedRef] public ref D3D12_RAYTRACING_GEOMETRY_DESC* pGeometryDescs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pGeometryDescs; + return ref Anonymous.pGeometryDescs; } } /// + [UnscopedRef] public ref D3D12_RAYTRACING_GEOMETRY_DESC** ppGeometryDescs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.ppGeometryDescs; + return ref Anonymous.ppGeometryDescs; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs index be9e58e119..ef2b6b15bf 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,6 +21,7 @@ public unsafe partial struct D3D12_CLEAR_VALUE public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public Span Color { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -30,12 +32,13 @@ public Span Color } /// + [UnscopedRef] public ref D3D12_DEPTH_STENCIL_VALUE DepthStencil { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DepthStencil, 1)); + return ref Anonymous.DepthStencil; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.cs index 563f478c54..0c7eb0b60e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,62 +26,68 @@ public partial struct D3D12_DEPTH_STENCIL_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_TEX1D_DSV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D12_TEX1D_ARRAY_DSV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2D_DSV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D12_TEX2D_ARRAY_DSV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_DSV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs index 6845e8d5bf..ad9742b95b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -89,6 +90,7 @@ public partial struct _RTVFormats_e__FixedBuffer public DXGI_FORMAT e6; public DXGI_FORMAT e7; + [UnscopedRef] public ref DXGI_FORMAT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -99,6 +101,7 @@ public ref DXGI_FORMAT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.cs index eabbe3ee8d..56120d24c8 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,52 +20,57 @@ public partial struct D3D12_INDIRECT_ARGUMENT_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._VertexBuffer_e__Struct VertexBuffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.VertexBuffer, 1)); + return ref Anonymous.VertexBuffer; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._Constant_e__Struct Constant { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constant, 1)); + return ref Anonymous.Constant; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._ConstantBufferView_e__Struct ConstantBufferView { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ConstantBufferView, 1)); + return ref Anonymous.ConstantBufferView; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._ShaderResourceView_e__Struct ShaderResourceView { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ShaderResourceView, 1)); + return ref Anonymous.ShaderResourceView; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._UnorderedAccessView_e__Struct UnorderedAccessView { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnorderedAccessView, 1)); + return ref Anonymous.UnorderedAccessView; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.cs index 26f3764cc8..f8d86abb90 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,22 +23,24 @@ public partial struct D3D12_RAYTRACING_GEOMETRY_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Triangles, 1)); + return ref Anonymous.Triangles; } } /// + [UnscopedRef] public ref D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.AABBs, 1)); + return ref Anonymous.AABBs; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.cs index 03a3b46179..ac2614e7d6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,12 +20,13 @@ public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Clear, 1)); + return ref Anonymous.Clear; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.cs index f617a1db75..67ba986d87 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,12 +20,13 @@ public partial struct D3D12_RENDER_PASS_ENDING_ACCESS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Resolve, 1)); + return ref Anonymous.Resolve; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.cs index dbd4d2eef8..9e961fc152 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,82 +23,90 @@ public partial struct D3D12_RENDER_TARGET_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_BUFFER_RTV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D12_TEX1D_RTV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D12_TEX1D_ARRAY_RTV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2D_RTV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D12_TEX2D_ARRAY_RTV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_RTV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D12_TEX3D_RTV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs index 5aa6cf7e09..ebe6cf951e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,32 +23,35 @@ public partial struct D3D12_RESOURCE_BARRIER public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_RESOURCE_TRANSITION_BARRIER Transition { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Transition, 1)); + return ref Anonymous.Transition; } } /// + [UnscopedRef] public ref D3D12_RESOURCE_ALIASING_BARRIER Aliasing { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Aliasing, 1)); + return ref Anonymous.Aliasing; } } /// + [UnscopedRef] public ref D3D12_RESOURCE_UAV_BARRIER UAV { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UAV, 1)); + return ref Anonymous.UAV; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs index 8b4cc4b879..fba2412d10 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,32 +23,35 @@ public partial struct D3D12_ROOT_PARAMETER public D3D12_SHADER_VISIBILITY ShaderVisibility; /// + [UnscopedRef] public ref D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1)); + return ref Anonymous.DescriptorTable; } } /// + [UnscopedRef] public ref D3D12_ROOT_CONSTANTS Constants { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1)); + return ref Anonymous.Constants; } } /// + [UnscopedRef] public ref D3D12_ROOT_DESCRIPTOR Descriptor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1)); + return ref Anonymous.Descriptor; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs index a2e9c1e5b5..71c498e93f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,32 +23,35 @@ public partial struct D3D12_ROOT_PARAMETER1 public D3D12_SHADER_VISIBILITY ShaderVisibility; /// + [UnscopedRef] public ref D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1)); + return ref Anonymous.DescriptorTable; } } /// + [UnscopedRef] public ref D3D12_ROOT_CONSTANTS Constants { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1)); + return ref Anonymous.Constants; } } /// + [UnscopedRef] public ref D3D12_ROOT_DESCRIPTOR1 Descriptor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1)); + return ref Anonymous.Descriptor; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RT_FORMAT_ARRAY.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RT_FORMAT_ARRAY.cs index dbb6f42f21..040d65a79b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RT_FORMAT_ARRAY.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_RT_FORMAT_ARRAY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,6 +32,7 @@ public partial struct _RTFormats_e__FixedBuffer public DXGI_FORMAT e6; public DXGI_FORMAT e7; + [UnscopedRef] public ref DXGI_FORMAT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +43,7 @@ public ref DXGI_FORMAT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs index 553c89bca2..53427d3d97 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,112 +26,123 @@ public partial struct D3D12_SHADER_RESOURCE_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D12_TEX1D_SRV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D12_TEX1D_ARRAY_SRV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2D_SRV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D12_TEX2D_ARRAY_SRV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_SRV Texture2DMS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); + return ref Anonymous.Texture2DMS; } } /// + [UnscopedRef] public ref D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); + return ref Anonymous.Texture2DMSArray; } } /// + [UnscopedRef] public ref D3D12_TEX3D_SRV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } /// + [UnscopedRef] public ref D3D12_TEXCUBE_SRV TextureCube { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); + return ref Anonymous.TextureCube; } } /// + [UnscopedRef] public ref D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1)); + return ref Anonymous.TextureCubeArray; } } /// + [UnscopedRef] public ref D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RaytracingAccelerationStructure, 1)); + return ref Anonymous.RaytracingAccelerationStructure; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs index 546c39897a..9a410d84c9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,22 +23,24 @@ public unsafe partial struct D3D12_TEXTURE_COPY_LOCATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PlacedFootprint, 1)); + return ref Anonymous.PlacedFootprint; } } /// + [UnscopedRef] public ref uint SubresourceIndex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SubresourceIndex, 1)); + return ref Anonymous.SubresourceIndex; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs index 157cf93f37..634662a5bb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,62 +23,68 @@ public partial struct D3D12_UNORDERED_ACCESS_VIEW_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_BUFFER_UAV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); + return ref Anonymous.Buffer; } } /// + [UnscopedRef] public ref D3D12_TEX1D_UAV Texture1D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); + return ref Anonymous.Texture1D; } } /// + [UnscopedRef] public ref D3D12_TEX1D_ARRAY_UAV Texture1DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Texture1DArray; } } /// + [UnscopedRef] public ref D3D12_TEX2D_UAV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); + return ref Anonymous.Texture2D; } } /// + [UnscopedRef] public ref D3D12_TEX2D_ARRAY_UAV Texture2DArray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Texture2DArray; } } /// + [UnscopedRef] public ref D3D12_TEX3D_UAV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.cs index 939290aaf9..400e3ffbe9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,42 +20,46 @@ public partial struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Dred_1_0, 1)); + return ref Anonymous.Dred_1_0; } } /// + [UnscopedRef] public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Dred_1_1, 1)); + return ref Anonymous.Dred_1_1; } } /// + [UnscopedRef] public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Dred_1_2, 1)); + return ref Anonymous.Dred_1_2; } } /// + [UnscopedRef] public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Dred_1_3, 1)); + return ref Anonymous.Dred_1_3; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs index 67500a4898..eec20981df 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref D3D12_ROOT_SIGNATURE_DESC Desc_1_0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_0, 1)); + return ref Anonymous.Desc_1_0; } } /// + [UnscopedRef] public ref D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_1, 1)); + return ref Anonymous.Desc_1_1; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandAllocator.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandAllocator.cs index d30d2fee95..c3446cef9d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandAllocator.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandAllocator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6102DEE4-AF59-4B09-B999-B44D73F09B24")] [NativeTypeName("struct ID3D12CommandAllocator : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandAllocator : ID3D12CommandAllocator.Interface +public unsafe partial struct ID3D12CommandAllocator : ID3D12CommandAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandList.cs index 051a59f39c..db37127f9a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7116D91C-E7E4-47CE-B8C6-EC8168F437E5")] [NativeTypeName("struct ID3D12CommandList : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12CommandList : ID3D12CommandList.Interface +public unsafe partial struct ID3D12CommandList : ID3D12CommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandQueue.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandQueue.cs index 89d1bb92c2..ca1d323dd0 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandQueue.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandQueue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0EC870A6-5D7E-4C22-8CFC-5BAAE07616ED")] [NativeTypeName("struct ID3D12CommandQueue : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandQueue : ID3D12CommandQueue.Interface +public unsafe partial struct ID3D12CommandQueue : ID3D12CommandQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandSignature.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandSignature.cs index 31a6355623..e4027b481d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandSignature.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12CommandSignature.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C36A797C-EC80-4F0A-8985-A7B2475082D1")] [NativeTypeName("struct ID3D12CommandSignature : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandSignature : ID3D12CommandSignature.Interface +public unsafe partial struct ID3D12CommandSignature : ID3D12CommandSignature.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandSignature)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DescriptorHeap.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DescriptorHeap.cs index d7d64aa0d4..c25e451059 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DescriptorHeap.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DescriptorHeap.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8EFB471D-616C-4F49-90F7-127BB763FA51")] [NativeTypeName("struct ID3D12DescriptorHeap : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12DescriptorHeap : ID3D12DescriptorHeap.Interface +public unsafe partial struct ID3D12DescriptorHeap : ID3D12DescriptorHeap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DescriptorHeap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device.cs index 7a0dce28b5..4cc68ab23a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("189819F1-1DB6-4B57-BE54-1821339B85F7")] [NativeTypeName("struct ID3D12Device : ID3D12Object")] [NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12Device : ID3D12Device.Interface +public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device1.cs index b43f5bca04..3a786e9d8e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("77ACCE80-638E-4E65-8895-C1F23386863E")] [NativeTypeName("struct ID3D12Device1 : ID3D12Device")] [NativeInheritance("ID3D12Device")] -public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface +public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device2.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device2.cs index 32ee8b6c12..973f3760f5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("30BAA41E-B15B-475C-A0BB-1AF5C5B64328")] [NativeTypeName("struct ID3D12Device2 : ID3D12Device1")] [NativeInheritance("ID3D12Device1")] -public unsafe partial struct ID3D12Device2 : ID3D12Device2.Interface +public unsafe partial struct ID3D12Device2 : ID3D12Device2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device3.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device3.cs index f6310640e7..6cd3e18b7b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("81DADC15-2BAD-4392-93C5-101345C4AA98")] [NativeTypeName("struct ID3D12Device3 : ID3D12Device2")] [NativeInheritance("ID3D12Device2")] -public unsafe partial struct ID3D12Device3 : ID3D12Device3.Interface +public unsafe partial struct ID3D12Device3 : ID3D12Device3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device4.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device4.cs index 9cdadfa69c..dc046e35b2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device4.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E865DF17-A9EE-46F9-A463-3098315AA2E5")] [NativeTypeName("struct ID3D12Device4 : ID3D12Device3")] [NativeInheritance("ID3D12Device3")] -public unsafe partial struct ID3D12Device4 : ID3D12Device4.Interface +public unsafe partial struct ID3D12Device4 : ID3D12Device4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device5.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device5.cs index e793455e6e..55d4c6d1de 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device5.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device5.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12Device5 : ID3D12Device4")] [NativeInheritance("ID3D12Device4")] [SupportedOSPlatform("windows10.0.17763.0")] -public unsafe partial struct ID3D12Device5 : ID3D12Device5.Interface +public unsafe partial struct ID3D12Device5 : ID3D12Device5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device6.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device6.cs index 0e91e0cd34..caa354e4f9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device6.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C70B221B-40E4-4A17-89AF-025A0727A6DC")] [NativeTypeName("struct ID3D12Device6 : ID3D12Device5")] [NativeInheritance("ID3D12Device5")] -public unsafe partial struct ID3D12Device6 : ID3D12Device6.Interface +public unsafe partial struct ID3D12Device6 : ID3D12Device6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device7.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device7.cs index fb35ba0b40..21623384ed 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device7.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5C014B53-68A1-4B9B-8BD1-DD6046B9358B")] [NativeTypeName("struct ID3D12Device7 : ID3D12Device6")] [NativeInheritance("ID3D12Device6")] -public unsafe partial struct ID3D12Device7 : ID3D12Device7.Interface +public unsafe partial struct ID3D12Device7 : ID3D12Device7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device8.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device8.cs index 094ed632af..5bfc73ec79 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device8.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device8.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3")] [NativeTypeName("struct ID3D12Device8 : ID3D12Device7")] [NativeInheritance("ID3D12Device7")] -public unsafe partial struct ID3D12Device8 : ID3D12Device8.Interface +public unsafe partial struct ID3D12Device8 : ID3D12Device8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device9.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device9.cs index f4e56c0f62..f3d89d4136 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device9.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Device9.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4C80E962-F032-4F60-BC9E-EBC2CFA1D83C")] [NativeTypeName("struct ID3D12Device9 : ID3D12Device8")] [NativeInheritance("ID3D12Device8")] -public unsafe partial struct ID3D12Device9 : ID3D12Device9.Interface +public unsafe partial struct ID3D12Device9 : ID3D12Device9.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device9)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceChild.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceChild.cs index 19d2aab01c..6709ee38e4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceChild.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceChild.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("905DB94B-A00C-4140-9DF5-2B64CA9EA357")] [NativeTypeName("struct ID3D12DeviceChild : ID3D12Object")] [NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12DeviceChild : ID3D12DeviceChild.Interface +public unsafe partial struct ID3D12DeviceChild : ID3D12DeviceChild.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceChild)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData.cs index dfccea94ef..364b712073 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12DeviceRemovedExtendedData : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData : ID3D12DeviceRemovedExtendedData.Interface +public unsafe partial struct ID3D12DeviceRemovedExtendedData : ID3D12DeviceRemovedExtendedData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs index bf6f17ca19..dba5b1a860 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")] [NativeTypeName("struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData")] [NativeInheritance("ID3D12DeviceRemovedExtendedData")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData1.Interface +public unsafe partial struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData2.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData2.cs index 2d680b37c9..531450005d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("67FC5816-E4CA-4915-BF18-42541272DA54")] [NativeTypeName("struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData1")] [NativeInheritance("ID3D12DeviceRemovedExtendedData1")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData2.Interface +public unsafe partial struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs index 63b8526348..30d31b8524 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings : ID3D12DeviceRemovedExtendedDataSettings.Interface +public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings : ID3D12DeviceRemovedExtendedDataSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs index b5de01c3f8..c98c9e3d43 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")] [NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings")] [NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings1.Interface +public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence.cs index fddf3700a5..3a1f0061d2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0A753DCF-C4D8-4B91-ADF6-BE5A60D95A76")] [NativeTypeName("struct ID3D12Fence : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Fence : ID3D12Fence.Interface +public unsafe partial struct ID3D12Fence : ID3D12Fence.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence1.cs index c13305e582..0285869821 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Fence1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("433685FE-E22B-4CA0-A8DB-B5B4F4DD0E4A")] [NativeTypeName("struct ID3D12Fence1 : ID3D12Fence")] [NativeInheritance("ID3D12Fence")] -public unsafe partial struct ID3D12Fence1 : ID3D12Fence1.Interface +public unsafe partial struct ID3D12Fence1 : ID3D12Fence1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList.cs index 9ff02a3ab1..55dd2082b2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5B160D0F-AC1B-4185-8BA8-B3AE42A5A455")] [NativeTypeName("struct ID3D12GraphicsCommandList : ID3D12CommandList")] [NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12GraphicsCommandList : ID3D12GraphicsCommandList.Interface +public unsafe partial struct ID3D12GraphicsCommandList : ID3D12GraphicsCommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList1.cs index afc3592ce7..96051967a4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("553103FB-1FE7-4557-BB38-946D7D0E7CA7")] [NativeTypeName("struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList")] [NativeInheritance("ID3D12GraphicsCommandList")] -public unsafe partial struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList1.Interface +public unsafe partial struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList2.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList2.cs index 7cff7df91b..02d34a2468 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList1")] [NativeInheritance("ID3D12GraphicsCommandList1")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList2.Interface +public unsafe partial struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList3.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList3.cs index 1707f118af..2cb3d96841 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList2")] [NativeInheritance("ID3D12GraphicsCommandList2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList3.Interface +public unsafe partial struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList4.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList4.cs index 89d09535de..5633353bc4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList4.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList4.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList3")] [NativeInheritance("ID3D12GraphicsCommandList3")] [SupportedOSPlatform("windows10.0.17763.0")] -public unsafe partial struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList4.Interface +public unsafe partial struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList5.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList5.cs index 299b36ea34..2fb6cc8e91 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList5.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("55050859-4024-474C-87F5-6472EAEE44EA")] [NativeTypeName("struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList4")] [NativeInheritance("ID3D12GraphicsCommandList4")] -public unsafe partial struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList5.Interface +public unsafe partial struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList6.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList6.cs index af65dfa796..1758709b61 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList6.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12GraphicsCommandList6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C3827890-E548-4CFA-96CF-5689A9370F80")] [NativeTypeName("struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList5")] [NativeInheritance("ID3D12GraphicsCommandList5")] -public unsafe partial struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList6.Interface +public unsafe partial struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap.cs index daa4335de2..ea370dd2ce 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6B3B2502-6E51-45B3-90EE-9884265E8DF3")] [NativeTypeName("struct ID3D12Heap : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Heap : ID3D12Heap.Interface +public unsafe partial struct ID3D12Heap : ID3D12Heap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap1.cs index fa93ae42b9..38a0a5b174 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Heap1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("572F7389-2168-49E3-9693-D6DF5871BF6D")] [NativeTypeName("struct ID3D12Heap1 : ID3D12Heap")] [NativeInheritance("ID3D12Heap")] -public unsafe partial struct ID3D12Heap1 : ID3D12Heap1.Interface +public unsafe partial struct ID3D12Heap1 : ID3D12Heap1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeOwner.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeOwner.cs index e0eb1d0f67..8ca2077e7b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeOwner.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeOwner.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E667AF9F-CD56-4F46-83CE-032E595D70A8")] [NativeTypeName("struct ID3D12LifetimeOwner : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LifetimeOwner : ID3D12LifetimeOwner.Interface +public unsafe partial struct ID3D12LifetimeOwner : ID3D12LifetimeOwner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeOwner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeTracker.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeTracker.cs index 088f74402d..7e8543d6da 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeTracker.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12LifetimeTracker.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3FD03D36-4EB1-424A-A582-494ECB8BA813")] [NativeTypeName("struct ID3D12LifetimeTracker : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12LifetimeTracker : ID3D12LifetimeTracker.Interface +public unsafe partial struct ID3D12LifetimeTracker : ID3D12LifetimeTracker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeTracker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12MetaCommand.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12MetaCommand.cs index 66c5078080..8c0245f666 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12MetaCommand.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12MetaCommand.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DBB84C27-36CE-4FC9-B801-F048C46AC570")] [NativeTypeName("struct ID3D12MetaCommand : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12MetaCommand : ID3D12MetaCommand.Interface +public unsafe partial struct ID3D12MetaCommand : ID3D12MetaCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12MetaCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Object.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Object.cs index d4c374b01d..e7b9814070 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Object.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Object.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C4FEC28F-7966-4E95-9F94-F431CB56C3B8")] [NativeTypeName("struct ID3D12Object : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Object : ID3D12Object.Interface +public unsafe partial struct ID3D12Object : ID3D12Object.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Object)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Pageable.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Pageable.cs index 17f06293c2..9e444f8591 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Pageable.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Pageable.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("63EE58FB-1268-4835-86DA-F008CE62F0D6")] [NativeTypeName("struct ID3D12Pageable : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12Pageable : ID3D12Pageable.Interface +public unsafe partial struct ID3D12Pageable : ID3D12Pageable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Pageable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary.cs index aa0b1faa9c..811ab51d7c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C64226A8-9201-46AF-B4CC-53FB9FF7414F")] [NativeTypeName("struct ID3D12PipelineLibrary : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12PipelineLibrary : ID3D12PipelineLibrary.Interface +public unsafe partial struct ID3D12PipelineLibrary : ID3D12PipelineLibrary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary1.cs index 4859dd3f6f..18dee3f921 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineLibrary1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("80EABF42-2568-4E5E-BD82-C37F86961DC3")] [NativeTypeName("struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary")] [NativeInheritance("ID3D12PipelineLibrary")] -public unsafe partial struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary1.Interface +public unsafe partial struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineState.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineState.cs index d43680bf09..26aaebac01 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineState.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12PipelineState.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("765A30F3-F624-4C6F-A828-ACE948622445")] [NativeTypeName("struct ID3D12PipelineState : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12PipelineState : ID3D12PipelineState.Interface +public unsafe partial struct ID3D12PipelineState : ID3D12PipelineState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession.cs index 26656c9064..10116280e7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12ProtectedResourceSession : ID3D12ProtectedSession")] [NativeInheritance("ID3D12ProtectedSession")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12ProtectedResourceSession : ID3D12ProtectedResourceSession.Interface +public unsafe partial struct ID3D12ProtectedResourceSession : ID3D12ProtectedResourceSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession1.cs index 6dff37eb77..06c07c86b9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedResourceSession1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D6F12DD6-76FB-406E-8961-4296EEFC0409")] [NativeTypeName("struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession")] [NativeInheritance("ID3D12ProtectedResourceSession")] -public unsafe partial struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession1.Interface +public unsafe partial struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedSession.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedSession.cs index cb7a2c40a9..8b06d84fa1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedSession.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ProtectedSession.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12ProtectedSession : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12ProtectedSession : ID3D12ProtectedSession.Interface +public unsafe partial struct ID3D12ProtectedSession : ID3D12ProtectedSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12QueryHeap.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12QueryHeap.cs index 8e7eb1edaf..059f0db7d7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12QueryHeap.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12QueryHeap.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0D9658AE-ED45-469E-A61D-970EC583CAB4")] [NativeTypeName("struct ID3D12QueryHeap : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12QueryHeap : ID3D12QueryHeap.Interface +public unsafe partial struct ID3D12QueryHeap : ID3D12QueryHeap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12QueryHeap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource.cs index 4698f3f59f..fad444c4a2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("696442BE-A72E-4059-BC79-5B5C98040FAD")] [NativeTypeName("struct ID3D12Resource : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Resource : ID3D12Resource.Interface +public unsafe partial struct ID3D12Resource : ID3D12Resource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource1.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource1.cs index 5880a9c05a..2dff2f4bc6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9D5E227A-4430-4161-88B3-3ECA6BB16E19")] [NativeTypeName("struct ID3D12Resource1 : ID3D12Resource")] [NativeInheritance("ID3D12Resource")] -public unsafe partial struct ID3D12Resource1 : ID3D12Resource1.Interface +public unsafe partial struct ID3D12Resource1 : ID3D12Resource1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource2.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource2.cs index d85a35faf5..f915015202 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Resource2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("BE36EC3B-EA85-4AEB-A45A-E9D76404A495")] [NativeTypeName("struct ID3D12Resource2 : ID3D12Resource1")] [NativeInheritance("ID3D12Resource1")] -public unsafe partial struct ID3D12Resource2 : ID3D12Resource2.Interface +public unsafe partial struct ID3D12Resource2 : ID3D12Resource2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignature.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignature.cs index 532d0a8024..332655c8c9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignature.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignature.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C54A6B66-72DF-4EE8-8BE5-A946A1429214")] [NativeTypeName("struct ID3D12RootSignature : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12RootSignature : ID3D12RootSignature.Interface +public unsafe partial struct ID3D12RootSignature : ID3D12RootSignature.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignature)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignatureDeserializer.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignatureDeserializer.cs index 8c6c271284..d84236ec04 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignatureDeserializer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12RootSignatureDeserializer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("34AB647B-3CC8-46AC-841B-C0965645C046")] [NativeTypeName("struct ID3D12RootSignatureDeserializer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12RootSignatureDeserializer : ID3D12RootSignatureDeserializer.Interface +public unsafe partial struct ID3D12RootSignatureDeserializer : ID3D12RootSignatureDeserializer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignatureDeserializer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SDKConfiguration.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SDKConfiguration.cs index a68ae77807..10ad1b285f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SDKConfiguration.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SDKConfiguration.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E9EB5314-33AA-42B2-A718-D77F58B1F1C7")] [NativeTypeName("struct ID3D12SDKConfiguration : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SDKConfiguration : ID3D12SDKConfiguration.Interface +public unsafe partial struct ID3D12SDKConfiguration : ID3D12SDKConfiguration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SDKConfiguration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ShaderCacheSession.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ShaderCacheSession.cs index e6179831f3..0ea6d183b9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ShaderCacheSession.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12ShaderCacheSession.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("28E2495D-0F64-4AE4-A6EC-129255DC49A8")] [NativeTypeName("struct ID3D12ShaderCacheSession : ID3D12DeviceChild")] [NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12ShaderCacheSession : ID3D12ShaderCacheSession.Interface +public unsafe partial struct ID3D12ShaderCacheSession : ID3D12ShaderCacheSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderCacheSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObject.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObject.cs index 867655d935..5024d41ca8 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObject.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("47016943-FCA8-4594-93EA-AF258B55346D")] [NativeTypeName("struct ID3D12StateObject : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12StateObject : ID3D12StateObject.Interface +public unsafe partial struct ID3D12StateObject : ID3D12StateObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObjectProperties.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObjectProperties.cs index c248b26d04..adebd1096d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObjectProperties.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12StateObjectProperties.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DE5FA827-9BF9-4F26-89FF-D7F56FDE3860")] [NativeTypeName("struct ID3D12StateObjectProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12StateObjectProperties : ID3D12StateObjectProperties.Interface +public unsafe partial struct ID3D12StateObjectProperties : ID3D12StateObjectProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObjectProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SwapChainAssistant.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SwapChainAssistant.cs index 46d9523da8..8fcfaeba02 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SwapChainAssistant.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12SwapChainAssistant.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F1DF64B6-57FD-49CD-8807-C0EB88B45C8F")] [NativeTypeName("struct ID3D12SwapChainAssistant : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SwapChainAssistant : ID3D12SwapChainAssistant.Interface +public unsafe partial struct ID3D12SwapChainAssistant : ID3D12SwapChainAssistant.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SwapChainAssistant)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Tools.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Tools.cs index 87e936ecec..a319c0c19e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Tools.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12Tools.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7071E1F0-E84B-4B33-974F-12FA49DE65C5")] [NativeTypeName("struct ID3D12Tools : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Tools : ID3D12Tools.Interface +public unsafe partial struct ID3D12Tools : ID3D12Tools.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Tools)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12VersionedRootSignatureDeserializer.cs b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12VersionedRootSignatureDeserializer.cs index 9690b9956f..a52dfe78e2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/ID3D12VersionedRootSignatureDeserializer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/ID3D12VersionedRootSignatureDeserializer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0")] [NativeTypeName("struct ID3D12VersionedRootSignatureDeserializer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VersionedRootSignatureDeserializer : ID3D12VersionedRootSignatureDeserializer.Interface +public unsafe partial struct ID3D12VersionedRootSignatureDeserializer : ID3D12VersionedRootSignatureDeserializer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VersionedRootSignatureDeserializer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug.cs index c5379576f2..839b98361c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("344488B7-6846-474B-B989-F027448245E0")] [NativeTypeName("struct ID3D12Debug : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug : ID3D12Debug.Interface +public unsafe partial struct ID3D12Debug : ID3D12Debug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug1.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug1.cs index 24e5c59f49..a0d3c2394f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AFFAA4CA-63FE-4D8E-B8AD-159000AF4304")] [NativeTypeName("struct ID3D12Debug1 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug1 : ID3D12Debug1.Interface +public unsafe partial struct ID3D12Debug1 : ID3D12Debug1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug2.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug2.cs index 6c86b06dff..a1ceb27f77 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("93A665C4-A3B2-4E5D-B692-A26AE14E3374")] [NativeTypeName("struct ID3D12Debug2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug2 : ID3D12Debug2.Interface +public unsafe partial struct ID3D12Debug2 : ID3D12Debug2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug3.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug3.cs index 77116a9d30..9202418195 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug3.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5CF4E58F-F671-4FF1-A542-3686E3D153D1")] [NativeTypeName("struct ID3D12Debug3 : ID3D12Debug")] [NativeInheritance("ID3D12Debug")] -public unsafe partial struct ID3D12Debug3 : ID3D12Debug3.Interface +public unsafe partial struct ID3D12Debug3 : ID3D12Debug3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug4.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug4.cs index e716d20f35..87023ad408 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug4.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("014B816E-9EC5-4A2F-A845-FFBE441CE13A")] [NativeTypeName("struct ID3D12Debug4 : ID3D12Debug3")] [NativeInheritance("ID3D12Debug3")] -public unsafe partial struct ID3D12Debug4 : ID3D12Debug4.Interface +public unsafe partial struct ID3D12Debug4 : ID3D12Debug4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug5.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug5.cs index b97f5106fd..1cc565b135 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug5.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12Debug5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("548D6B12-09FA-40E0-9069-5DCD589A52C9")] [NativeTypeName("struct ID3D12Debug5 : ID3D12Debug4")] [NativeInheritance("ID3D12Debug4")] -public unsafe partial struct ID3D12Debug5 : ID3D12Debug5.Interface +public unsafe partial struct ID3D12Debug5 : ID3D12Debug5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList.cs index 1c0a2dd04b..07a5344405 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("09E0BF36-54AC-484F-8847-4BAEEAB6053F")] [NativeTypeName("struct ID3D12DebugCommandList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList : ID3D12DebugCommandList.Interface +public unsafe partial struct ID3D12DebugCommandList : ID3D12DebugCommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList1.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList1.cs index d2f2ca7f7b..4b7ff9f30f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("102CA951-311B-4B01-B11F-ECB83E061B37")] [NativeTypeName("struct ID3D12DebugCommandList1 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList1 : ID3D12DebugCommandList1.Interface +public unsafe partial struct ID3D12DebugCommandList1 : ID3D12DebugCommandList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList2.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList2.cs index 818097a1b0..fe2221b217 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandList2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AEB575CF-4E06-48BE-BA3B-C450FC96652E")] [NativeTypeName("struct ID3D12DebugCommandList2 : ID3D12DebugCommandList")] [NativeInheritance("ID3D12DebugCommandList")] -public unsafe partial struct ID3D12DebugCommandList2 : ID3D12DebugCommandList2.Interface +public unsafe partial struct ID3D12DebugCommandList2 : ID3D12DebugCommandList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandQueue.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandQueue.cs index c1960fece0..69de9b23d7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandQueue.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugCommandQueue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("09E0BF36-54AC-484F-8847-4BAEEAB6053A")] [NativeTypeName("struct ID3D12DebugCommandQueue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandQueue : ID3D12DebugCommandQueue.Interface +public unsafe partial struct ID3D12DebugCommandQueue : ID3D12DebugCommandQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice.cs index a125e53323..66845a989e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3FEBD6DD-4973-4787-8194-E45F9E28923E")] [NativeTypeName("struct ID3D12DebugDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice : ID3D12DebugDevice.Interface +public unsafe partial struct ID3D12DebugDevice : ID3D12DebugDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice1.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice1.cs index 1633f8ed63..9d6a30b715 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A9B71770-D099-4A65-A698-3DEE10020F88")] [NativeTypeName("struct ID3D12DebugDevice1 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice1 : ID3D12DebugDevice1.Interface +public unsafe partial struct ID3D12DebugDevice1 : ID3D12DebugDevice1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice2.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice2.cs index 2aee260302..f1b3f2c967 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12DebugDevice2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("60ECCBC1-378D-4DF1-894C-F8AC5CE4D7DD")] [NativeTypeName("struct ID3D12DebugDevice2 : ID3D12DebugDevice")] [NativeInheritance("ID3D12DebugDevice")] -public unsafe partial struct ID3D12DebugDevice2 : ID3D12DebugDevice2.Interface +public unsafe partial struct ID3D12DebugDevice2 : ID3D12DebugDevice2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue.cs index bf79eb31e2..8df3c7bec5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0742A90B-C387-483F-B946-30A7E4E61458")] [NativeTypeName("struct ID3D12InfoQueue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12InfoQueue : ID3D12InfoQueue.Interface +public unsafe partial struct ID3D12InfoQueue : ID3D12InfoQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue1.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue1.cs index 9f433f5883..f7bde35b21 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12InfoQueue1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2852DD88-B484-4C0C-B6B1-67168500E600")] [NativeTypeName("struct ID3D12InfoQueue1 : ID3D12InfoQueue")] [NativeInheritance("ID3D12InfoQueue")] -public unsafe partial struct ID3D12InfoQueue1 : ID3D12InfoQueue1.Interface +public unsafe partial struct ID3D12InfoQueue1 : ID3D12InfoQueue1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12SharingContract.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12SharingContract.cs index 4eb904f990..36be916c9e 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12SharingContract.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/ID3D12SharingContract.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0ADF7D52-929C-4E61-ADDB-FFED30DE66EF")] [NativeTypeName("struct ID3D12SharingContract : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SharingContract : ID3D12SharingContract.Interface +public unsafe partial struct ID3D12SharingContract : ID3D12SharingContract.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SharingContract)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionParameterReflection.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionParameterReflection.cs index de5a84fe03..9e39cf5be5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionParameterReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionParameterReflection.cs @@ -3,16 +3,20 @@ // Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("EC25F42D-7006-4F2B-B33E-02CC3375733F")] -public unsafe partial struct ID3D12FunctionParameterReflection : ID3D12FunctionParameterReflection.Interface +public unsafe partial struct ID3D12FunctionParameterReflection : ID3D12FunctionParameterReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionParameterReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionReflection.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionReflection.cs index 74a29ab3ce..aa60864a63 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12FunctionReflection.cs @@ -3,16 +3,20 @@ // Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("1108795C-2772-4BA9-B2A8-D464DC7E2799")] -public unsafe partial struct ID3D12FunctionReflection : ID3D12FunctionReflection.Interface +public unsafe partial struct ID3D12FunctionReflection : ID3D12FunctionReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12LibraryReflection.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12LibraryReflection.cs index 488e07d94e..cd48e04bab 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12LibraryReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12LibraryReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8E349D19-54DB-4A56-9DC9-119D87BDB804")] [NativeTypeName("struct ID3D12LibraryReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LibraryReflection : ID3D12LibraryReflection.Interface +public unsafe partial struct ID3D12LibraryReflection : ID3D12LibraryReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LibraryReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflection.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflection.cs index 901affc681..c47e0387e4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflection.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5A58797D-A72C-478D-8BA2-EFC6B0EFE88E")] [NativeTypeName("struct ID3D12ShaderReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12ShaderReflection : ID3D12ShaderReflection.Interface +public unsafe partial struct ID3D12ShaderReflection : ID3D12ShaderReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionConstantBuffer.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionConstantBuffer.cs index efa09b8693..889f4e12bc 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionConstantBuffer.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionConstantBuffer.cs @@ -3,16 +3,20 @@ // Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("C59598B4-48B3-4869-B9B1-B1618B14A8B7")] -public unsafe partial struct ID3D12ShaderReflectionConstantBuffer : ID3D12ShaderReflectionConstantBuffer.Interface +public unsafe partial struct ID3D12ShaderReflectionConstantBuffer : ID3D12ShaderReflectionConstantBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionConstantBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionType.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionType.cs index c6d0fac09e..f97d5ad37c 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionType.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionType.cs @@ -3,16 +3,20 @@ // Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("E913C351-783D-48CA-A1D1-4F306284AD56")] -public unsafe partial struct ID3D12ShaderReflectionType : ID3D12ShaderReflectionType.Interface +public unsafe partial struct ID3D12ShaderReflectionType : ID3D12ShaderReflectionType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionVariable.cs b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionVariable.cs index 662d9d0ecd..f3c8571426 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionVariable.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12shader/ID3D12ShaderReflectionVariable.cs @@ -3,16 +3,20 @@ // Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; /// [Guid("8337A8A6-A216-444A-B2F4-314733A73AEA")] -public unsafe partial struct ID3D12ShaderReflectionVariable : ID3D12ShaderReflectionVariable.Interface +public unsafe partial struct ID3D12ShaderReflectionVariable : ID3D12ShaderReflectionVariable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionVariable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.cs index 5309586962..8390e80c00 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -94,6 +95,7 @@ public partial struct _FilterRangeSupport_e__FixedBuffer public D3D12_VIDEO_PROCESS_FILTER_RANGE e30; public D3D12_VIDEO_PROCESS_FILTER_RANGE e31; + [UnscopedRef] public ref D3D12_VIDEO_PROCESS_FILTER_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -104,6 +106,7 @@ public ref D3D12_VIDEO_PROCESS_FILTER_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.cs index dcad951558..b3f5818f50 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -42,6 +43,7 @@ public partial struct _FrameArguments_e__FixedBuffer public D3D12_VIDEO_DECODE_FRAME_ARGUMENT e8; public D3D12_VIDEO_DECODE_FRAME_ARGUMENT e9; + [UnscopedRef] public ref D3D12_VIDEO_DECODE_FRAME_ARGUMENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -52,6 +54,7 @@ public ref D3D12_VIDEO_DECODE_FRAME_ARGUMENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 10); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.cs index 34e52aef70..d1d920ead9 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Histograms_e__FixedBuffer public D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM e2; public D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM e3; + [UnscopedRef] public ref D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 4); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.cs index 1d7e54b481..7b2fc8a968 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _InputStream_e__FixedBuffer public D3D12_VIDEO_PROCESS_INPUT_STREAM e0; public D3D12_VIDEO_PROCESS_INPUT_STREAM e1; + [UnscopedRef] public ref D3D12_VIDEO_PROCESS_INPUT_STREAM this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref D3D12_VIDEO_PROCESS_INPUT_STREAM this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.cs index 0fd6a8d31c..aad3752279 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _InputStream_e__FixedBuffer public D3D12_VIDEO_PROCESS_INPUT_STREAM e0; public D3D12_VIDEO_PROCESS_INPUT_STREAM e1; + [UnscopedRef] public ref D3D12_VIDEO_PROCESS_INPUT_STREAM this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref D3D12_VIDEO_PROCESS_INPUT_STREAM this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.cs index 871d10d4d1..647ff920dc 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -27,6 +28,7 @@ public partial struct _OutputStream_e__FixedBuffer public D3D12_VIDEO_PROCESS_OUTPUT_STREAM e0; public D3D12_VIDEO_PROCESS_OUTPUT_STREAM e1; + [UnscopedRef] public ref D3D12_VIDEO_PROCESS_OUTPUT_STREAM this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref D3D12_VIDEO_PROCESS_OUTPUT_STREAM this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList.cs index 38a1411f3e..bc3342fbd2 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3B60536E-AD29-4E64-A269-F853837E5E53")] [NativeTypeName("struct ID3D12VideoDecodeCommandList : ID3D12CommandList")] [NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12VideoDecodeCommandList : ID3D12VideoDecodeCommandList.Interface +public unsafe partial struct ID3D12VideoDecodeCommandList : ID3D12VideoDecodeCommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList1.cs index 9b4fb1c386..1f36072350 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D52F011B-B56E-453C-A05A-A7F311C8F472")] [NativeTypeName("struct ID3D12VideoDecodeCommandList1 : ID3D12VideoDecodeCommandList")] [NativeInheritance("ID3D12VideoDecodeCommandList")] -public unsafe partial struct ID3D12VideoDecodeCommandList1 : ID3D12VideoDecodeCommandList1.Interface +public unsafe partial struct ID3D12VideoDecodeCommandList1 : ID3D12VideoDecodeCommandList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList2.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList2.cs index 25837d3586..f806f963b5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecodeCommandList2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoDecodeCommandList2 : ID3D12VideoDecodeCommandList1")] [NativeInheritance("ID3D12VideoDecodeCommandList1")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoDecodeCommandList2 : ID3D12VideoDecodeCommandList2.Interface +public unsafe partial struct ID3D12VideoDecodeCommandList2 : ID3D12VideoDecodeCommandList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder.cs index dd9a88f14b..781d2b4e92 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C59B6BDC-7720-4074-A136-17A156037470")] [NativeTypeName("struct ID3D12VideoDecoder : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoDecoder : ID3D12VideoDecoder.Interface +public unsafe partial struct ID3D12VideoDecoder : ID3D12VideoDecoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder1.cs index d8858fc7d2..9d0402c713 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoder1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoDecoder1 : ID3D12VideoDecoder")] [NativeInheritance("ID3D12VideoDecoder")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoDecoder1 : ID3D12VideoDecoder1.Interface +public unsafe partial struct ID3D12VideoDecoder1 : ID3D12VideoDecoder1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoder1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap.cs index 05b16ef1ee..e2c46ec5d0 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0946B7C9-EBF6-4047-BB73-8683E27DBB1F")] [NativeTypeName("struct ID3D12VideoDecoderHeap : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoDecoderHeap : ID3D12VideoDecoderHeap.Interface +public unsafe partial struct ID3D12VideoDecoderHeap : ID3D12VideoDecoderHeap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoderHeap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap1.cs index 05f672b283..4c48516db1 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDecoderHeap1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DA1D98C5-539F-41B2-BF6B-1198A03B6D26")] [NativeTypeName("struct ID3D12VideoDecoderHeap1 : ID3D12VideoDecoderHeap")] [NativeInheritance("ID3D12VideoDecoderHeap")] -public unsafe partial struct ID3D12VideoDecoderHeap1 : ID3D12VideoDecoderHeap1.Interface +public unsafe partial struct ID3D12VideoDecoderHeap1 : ID3D12VideoDecoderHeap1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoderHeap1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice.cs index 0b32feb74c..495d4afb25 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1F052807-0B46-4ACC-8A89-364F793718A4")] [NativeTypeName("struct ID3D12VideoDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VideoDevice : ID3D12VideoDevice.Interface +public unsafe partial struct ID3D12VideoDevice : ID3D12VideoDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice1.cs index 9e0935fffd..ff63052e40 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("981611AD-A144-4C83-9890-F30E26D658AB")] [NativeTypeName("struct ID3D12VideoDevice1 : ID3D12VideoDevice")] [NativeInheritance("ID3D12VideoDevice")] -public unsafe partial struct ID3D12VideoDevice1 : ID3D12VideoDevice1.Interface +public unsafe partial struct ID3D12VideoDevice1 : ID3D12VideoDevice1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice2.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice2.cs index 626b5d16a7..8d05fc7be5 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoDevice2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F019AC49-F838-4A95-9B17-579437C8F513")] [NativeTypeName("struct ID3D12VideoDevice2 : ID3D12VideoDevice1")] [NativeInheritance("ID3D12VideoDevice1")] -public unsafe partial struct ID3D12VideoDevice2 : ID3D12VideoDevice2.Interface +public unsafe partial struct ID3D12VideoDevice2 : ID3D12VideoDevice2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList.cs index bc4a821ce2..58f2206600 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoEncodeCommandList : ID3D12CommandList")] [NativeInheritance("ID3D12CommandList")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoEncodeCommandList : ID3D12VideoEncodeCommandList.Interface +public unsafe partial struct ID3D12VideoEncodeCommandList : ID3D12VideoEncodeCommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList1.cs index 899f8a6488..2546efca4f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoEncodeCommandList1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("94971ECA-2BDB-4769-88CF-3675EA757EBC")] [NativeTypeName("struct ID3D12VideoEncodeCommandList1 : ID3D12VideoEncodeCommandList")] [NativeInheritance("ID3D12VideoEncodeCommandList")] -public unsafe partial struct ID3D12VideoEncodeCommandList1 : ID3D12VideoEncodeCommandList1.Interface +public unsafe partial struct ID3D12VideoEncodeCommandList1 : ID3D12VideoEncodeCommandList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoExtensionCommand.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoExtensionCommand.cs index 0482cca21e..786dd87566 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoExtensionCommand.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoExtensionCommand.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoExtensionCommand : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoExtensionCommand : ID3D12VideoExtensionCommand.Interface +public unsafe partial struct ID3D12VideoExtensionCommand : ID3D12VideoExtensionCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoExtensionCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionEstimator.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionEstimator.cs index ab58d78b69..40c1e0849d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionEstimator.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionEstimator.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoMotionEstimator : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoMotionEstimator : ID3D12VideoMotionEstimator.Interface +public unsafe partial struct ID3D12VideoMotionEstimator : ID3D12VideoMotionEstimator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoMotionEstimator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionVectorHeap.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionVectorHeap.cs index 57ae0cdd64..2b81611c6f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionVectorHeap.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoMotionVectorHeap.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoMotionVectorHeap : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoMotionVectorHeap : ID3D12VideoMotionVectorHeap.Interface +public unsafe partial struct ID3D12VideoMotionVectorHeap : ID3D12VideoMotionVectorHeap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoMotionVectorHeap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList.cs index 721437de9e..02cbac14a6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AEB2543A-167F-4682-ACC8-D159ED4A6209")] [NativeTypeName("struct ID3D12VideoProcessCommandList : ID3D12CommandList")] [NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12VideoProcessCommandList : ID3D12VideoProcessCommandList.Interface +public unsafe partial struct ID3D12VideoProcessCommandList : ID3D12VideoProcessCommandList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList1.cs index b9b923f393..b3ea8954e0 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("542C5C4D-7596-434F-8C93-4EFA6766F267")] [NativeTypeName("struct ID3D12VideoProcessCommandList1 : ID3D12VideoProcessCommandList")] [NativeInheritance("ID3D12VideoProcessCommandList")] -public unsafe partial struct ID3D12VideoProcessCommandList1 : ID3D12VideoProcessCommandList1.Interface +public unsafe partial struct ID3D12VideoProcessCommandList1 : ID3D12VideoProcessCommandList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList2.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList2.cs index b9d9550537..29852a857a 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList2.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessCommandList2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct ID3D12VideoProcessCommandList2 : ID3D12VideoProcessCommandList1")] [NativeInheritance("ID3D12VideoProcessCommandList1")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoProcessCommandList2 : ID3D12VideoProcessCommandList2.Interface +public unsafe partial struct ID3D12VideoProcessCommandList2 : ID3D12VideoProcessCommandList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor.cs index 59340e37b0..5a669052bd 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("304FDB32-BEDE-410A-8545-943AC6A46138")] [NativeTypeName("struct ID3D12VideoProcessor : ID3D12Pageable")] [NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoProcessor : ID3D12VideoProcessor.Interface +public unsafe partial struct ID3D12VideoProcessor : ID3D12VideoProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor1.cs b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor1.cs index a66ebe6954..d51371e95f 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor1.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/ID3D12VideoProcessor1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F3CFE615-553F-425C-86D8-EE8C1B1FB01C")] [NativeTypeName("struct ID3D12VideoProcessor1 : ID3D12VideoProcessor")] [NativeInheritance("ID3D12VideoProcessor")] -public unsafe partial struct ID3D12VideoProcessor1 : ID3D12VideoProcessor1.Interface +public unsafe partial struct ID3D12VideoProcessor1 : ID3D12VideoProcessor1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessor1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DBlob.cs b/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DBlob.cs index b32379da28..e327e587b3 100644 --- a/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DBlob.cs +++ b/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DBlob.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8BA5FB08-5195-40E2-AC58-0D989C3A0102")] [NativeTypeName("struct ID3D10Blob : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3DBlob : ID3DBlob.Interface +public unsafe partial struct ID3DBlob : ID3DBlob.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Blob)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DDestructionNotifier.cs b/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DDestructionNotifier.cs index 631905e455..5e0b15bbfb 100644 --- a/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DDestructionNotifier.cs +++ b/sources/Interop/Windows/DirectX/um/d3dcommon/ID3DDestructionNotifier.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A06EB39A-50DA-425B-8C31-4EECD6C270F3")] [NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ID3DDestructionNotifier : ID3DDestructionNotifier.Interface +public unsafe partial struct ID3DDestructionNotifier : ID3DDestructionNotifier.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/d3dcompiler/D3DCOMPILER.cs b/sources/Interop/Windows/DirectX/um/d3dcompiler/D3DCOMPILER.cs index da2faa4296..3cf4242d61 100644 --- a/sources/Interop/Windows/DirectX/um/d3dcompiler/D3DCOMPILER.cs +++ b/sources/Interop/Windows/DirectX/um/d3dcompiler/D3DCOMPILER.cs @@ -13,7 +13,7 @@ public static partial class D3DCOMPILER public const string D3DCOMPILER_DLL_W = "d3dcompiler_47.dll"; [NativeTypeName("#define D3DCOMPILER_DLL_A \"d3dcompiler_47.dll\"")] - public static ReadOnlySpan D3DCOMPILER_DLL_A => new byte[] { 0x64, 0x33, 0x64, 0x63, 0x6F, 0x6D, 0x70, 0x69, 0x6C, 0x65, 0x72, 0x5F, 0x34, 0x37, 0x2E, 0x64, 0x6C, 0x6C, 0x00 }; + public static ReadOnlySpan D3DCOMPILER_DLL_A => "d3dcompiler_47.dll"u8; [NativeTypeName("#define D3DCOMPILER_DLL D3DCOMPILER_DLL_W")] public const string D3DCOMPILER_DLL = "d3dcompiler_47.dll"; diff --git a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_3X2_F.cs b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_3X2_F.cs index bc56d67b03..7b9ba994ae 100644 --- a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_3X2_F.cs +++ b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_3X2_F.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,126 +18,139 @@ public unsafe partial struct D2D_MATRIX_3X2_F public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref float m11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.m11, 1)); + return ref Anonymous.Anonymous1.m11; } } /// + [UnscopedRef] public ref float m12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.m12, 1)); + return ref Anonymous.Anonymous1.m12; } } /// + [UnscopedRef] public ref float m21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.m21, 1)); + return ref Anonymous.Anonymous1.m21; } } /// + [UnscopedRef] public ref float m22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.m22, 1)); + return ref Anonymous.Anonymous1.m22; } } /// + [UnscopedRef] public ref float dx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.dx, 1)); + return ref Anonymous.Anonymous1.dx; } } /// + [UnscopedRef] public ref float dy { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.dy, 1)); + return ref Anonymous.Anonymous1.dy; } } /// + [UnscopedRef] public ref float _11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._11, 1)); + return ref Anonymous.Anonymous2._11; } } /// + [UnscopedRef] public ref float _12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._12, 1)); + return ref Anonymous.Anonymous2._12; } } /// + [UnscopedRef] public ref float _21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._21, 1)); + return ref Anonymous.Anonymous2._21; } } /// + [UnscopedRef] public ref float _22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._22, 1)); + return ref Anonymous.Anonymous2._22; } } /// + [UnscopedRef] public ref float _31 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._31, 1)); + return ref Anonymous.Anonymous2._31; } } /// + [UnscopedRef] public ref float _32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2._32, 1)); + return ref Anonymous.Anonymous2._32; } } /// + [UnscopedRef] public Span m { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X3_F.cs b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X3_F.cs index 51c66d513e..991e115d19 100644 --- a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X3_F.cs +++ b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X3_F.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,126 +18,139 @@ public unsafe partial struct D2D_MATRIX_4X3_F public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref float _11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._11, 1)); + return ref Anonymous.Anonymous._11; } } /// + [UnscopedRef] public ref float _12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._12, 1)); + return ref Anonymous.Anonymous._12; } } /// + [UnscopedRef] public ref float _13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._13, 1)); + return ref Anonymous.Anonymous._13; } } /// + [UnscopedRef] public ref float _21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._21, 1)); + return ref Anonymous.Anonymous._21; } } /// + [UnscopedRef] public ref float _22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._22, 1)); + return ref Anonymous.Anonymous._22; } } /// + [UnscopedRef] public ref float _23 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._23, 1)); + return ref Anonymous.Anonymous._23; } } /// + [UnscopedRef] public ref float _31 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._31, 1)); + return ref Anonymous.Anonymous._31; } } /// + [UnscopedRef] public ref float _32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._32, 1)); + return ref Anonymous.Anonymous._32; } } /// + [UnscopedRef] public ref float _33 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._33, 1)); + return ref Anonymous.Anonymous._33; } } /// + [UnscopedRef] public ref float _41 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._41, 1)); + return ref Anonymous.Anonymous._41; } } /// + [UnscopedRef] public ref float _42 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._42, 1)); + return ref Anonymous.Anonymous._42; } } /// + [UnscopedRef] public ref float _43 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._43, 1)); + return ref Anonymous.Anonymous._43; } } /// + [UnscopedRef] public Span m { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X4_F.cs b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X4_F.cs index e61e08e4c6..ccc5c5b41d 100644 --- a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X4_F.cs +++ b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_4X4_F.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,166 +18,183 @@ public unsafe partial struct D2D_MATRIX_4X4_F public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref float _11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._11, 1)); + return ref Anonymous.Anonymous._11; } } /// + [UnscopedRef] public ref float _12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._12, 1)); + return ref Anonymous.Anonymous._12; } } /// + [UnscopedRef] public ref float _13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._13, 1)); + return ref Anonymous.Anonymous._13; } } /// + [UnscopedRef] public ref float _14 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._14, 1)); + return ref Anonymous.Anonymous._14; } } /// + [UnscopedRef] public ref float _21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._21, 1)); + return ref Anonymous.Anonymous._21; } } /// + [UnscopedRef] public ref float _22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._22, 1)); + return ref Anonymous.Anonymous._22; } } /// + [UnscopedRef] public ref float _23 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._23, 1)); + return ref Anonymous.Anonymous._23; } } /// + [UnscopedRef] public ref float _24 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._24, 1)); + return ref Anonymous.Anonymous._24; } } /// + [UnscopedRef] public ref float _31 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._31, 1)); + return ref Anonymous.Anonymous._31; } } /// + [UnscopedRef] public ref float _32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._32, 1)); + return ref Anonymous.Anonymous._32; } } /// + [UnscopedRef] public ref float _33 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._33, 1)); + return ref Anonymous.Anonymous._33; } } /// + [UnscopedRef] public ref float _34 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._34, 1)); + return ref Anonymous.Anonymous._34; } } /// + [UnscopedRef] public ref float _41 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._41, 1)); + return ref Anonymous.Anonymous._41; } } /// + [UnscopedRef] public ref float _42 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._42, 1)); + return ref Anonymous.Anonymous._42; } } /// + [UnscopedRef] public ref float _43 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._43, 1)); + return ref Anonymous.Anonymous._43; } } /// + [UnscopedRef] public ref float _44 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._44, 1)); + return ref Anonymous.Anonymous._44; } } /// + [UnscopedRef] public Span m { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_5X4_F.cs b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_5X4_F.cs index 20064bc699..845bc54372 100644 --- a/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_5X4_F.cs +++ b/sources/Interop/Windows/DirectX/um/dcommon/D2D_MATRIX_5X4_F.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,206 +18,227 @@ public unsafe partial struct D2D_MATRIX_5X4_F public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref float _11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._11, 1)); + return ref Anonymous.Anonymous._11; } } /// + [UnscopedRef] public ref float _12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._12, 1)); + return ref Anonymous.Anonymous._12; } } /// + [UnscopedRef] public ref float _13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._13, 1)); + return ref Anonymous.Anonymous._13; } } /// + [UnscopedRef] public ref float _14 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._14, 1)); + return ref Anonymous.Anonymous._14; } } /// + [UnscopedRef] public ref float _21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._21, 1)); + return ref Anonymous.Anonymous._21; } } /// + [UnscopedRef] public ref float _22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._22, 1)); + return ref Anonymous.Anonymous._22; } } /// + [UnscopedRef] public ref float _23 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._23, 1)); + return ref Anonymous.Anonymous._23; } } /// + [UnscopedRef] public ref float _24 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._24, 1)); + return ref Anonymous.Anonymous._24; } } /// + [UnscopedRef] public ref float _31 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._31, 1)); + return ref Anonymous.Anonymous._31; } } /// + [UnscopedRef] public ref float _32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._32, 1)); + return ref Anonymous.Anonymous._32; } } /// + [UnscopedRef] public ref float _33 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._33, 1)); + return ref Anonymous.Anonymous._33; } } /// + [UnscopedRef] public ref float _34 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._34, 1)); + return ref Anonymous.Anonymous._34; } } /// + [UnscopedRef] public ref float _41 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._41, 1)); + return ref Anonymous.Anonymous._41; } } /// + [UnscopedRef] public ref float _42 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._42, 1)); + return ref Anonymous.Anonymous._42; } } /// + [UnscopedRef] public ref float _43 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._43, 1)); + return ref Anonymous.Anonymous._43; } } /// + [UnscopedRef] public ref float _44 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._44, 1)); + return ref Anonymous.Anonymous._44; } } /// + [UnscopedRef] public ref float _51 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._51, 1)); + return ref Anonymous.Anonymous._51; } } /// + [UnscopedRef] public ref float _52 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._52, 1)); + return ref Anonymous.Anonymous._52; } } /// + [UnscopedRef] public ref float _53 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._53, 1)); + return ref Anonymous.Anonymous._53; } } /// + [UnscopedRef] public ref float _54 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._54, 1)); + return ref Anonymous.Anonymous._54; } } /// + [UnscopedRef] public Span m { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionAffineTransform2DEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionAffineTransform2DEffect.cs index d18c71d14a..be04cde02e 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionAffineTransform2DEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionAffineTransform2DEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0B74B9E8-CDD6-492F-BBBC-5ED32157026D")] [NativeTypeName("struct IDCompositionAffineTransform2DEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionAffineTransform2DEffect : IDCompositionAffineTransform2DEffect.Interface +public unsafe partial struct IDCompositionAffineTransform2DEffect : IDCompositionAffineTransform2DEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionAffineTransform2DEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionArithmeticCompositeEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionArithmeticCompositeEffect.cs index 6fb13e1258..7247510395 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionArithmeticCompositeEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionArithmeticCompositeEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3B67DFA8-E3DD-4E61-B640-46C2F3D739DC")] [NativeTypeName("struct IDCompositionArithmeticCompositeEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionArithmeticCompositeEffect : IDCompositionArithmeticCompositeEffect.Interface +public unsafe partial struct IDCompositionArithmeticCompositeEffect : IDCompositionArithmeticCompositeEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionArithmeticCompositeEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBlendEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBlendEffect.cs index e379101d23..99cfd023d9 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBlendEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBlendEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("33ECDC0A-578A-4A11-9C14-0CB90517F9C5")] [NativeTypeName("struct IDCompositionBlendEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionBlendEffect : IDCompositionBlendEffect.Interface +public unsafe partial struct IDCompositionBlendEffect : IDCompositionBlendEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionBlendEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBrightnessEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBrightnessEffect.cs index 698747b408..7b42185235 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBrightnessEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionBrightnessEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6027496E-CB3A-49AB-934F-D798DA4F7DA6")] [NativeTypeName("struct IDCompositionBrightnessEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionBrightnessEffect : IDCompositionBrightnessEffect.Interface +public unsafe partial struct IDCompositionBrightnessEffect : IDCompositionBrightnessEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionBrightnessEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionClip.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionClip.cs index ea55c5025c..76eb369a68 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionClip.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionClip.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionClip : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionClip : IDCompositionClip.Interface +public unsafe partial struct IDCompositionClip : IDCompositionClip.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionClip)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionColorMatrixEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionColorMatrixEffect.cs index 46561acfdd..11d43a7301 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionColorMatrixEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionColorMatrixEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C1170A22-3CE2-4966-90D4-55408BFC84C4")] [NativeTypeName("struct IDCompositionColorMatrixEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionColorMatrixEffect : IDCompositionColorMatrixEffect.Interface +public unsafe partial struct IDCompositionColorMatrixEffect : IDCompositionColorMatrixEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionColorMatrixEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionCompositeEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionCompositeEffect.cs index b8c7bde624..e97ba40dd7 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionCompositeEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionCompositeEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("576616C0-A231-494D-A38D-00FD5EC4DB46")] [NativeTypeName("struct IDCompositionCompositeEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionCompositeEffect : IDCompositionCompositeEffect.Interface +public unsafe partial struct IDCompositionCompositeEffect : IDCompositionCompositeEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionCompositeEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDelegatedInkTrail.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDelegatedInkTrail.cs index 080a3e5d43..19e30907a5 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDelegatedInkTrail.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDelegatedInkTrail.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C2448E9B-547D-4057-8CF5-8144EDE1C2DA")] [NativeTypeName("struct IDCompositionDelegatedInkTrail : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDCompositionDelegatedInkTrail : IDCompositionDelegatedInkTrail.Interface +public unsafe partial struct IDCompositionDelegatedInkTrail : IDCompositionDelegatedInkTrail.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDelegatedInkTrail)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDesktopDevice.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDesktopDevice.cs index 1b8f65c838..17c132af14 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDesktopDevice.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDesktopDevice.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionDesktopDevice : IDCompositionDevice2")] [NativeInheritance("IDCompositionDevice2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionDesktopDevice : IDCompositionDesktopDevice.Interface +public unsafe partial struct IDCompositionDesktopDevice : IDCompositionDesktopDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDesktopDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice.cs index 5ec4bf1c64..8201fdeaaf 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionDevice : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionDevice : IDCompositionDevice.Interface +public unsafe partial struct IDCompositionDevice : IDCompositionDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice2.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice2.cs index 0b955f919f..157a86398a 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice2.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionDevice2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionDevice2 : IDCompositionDevice2.Interface +public unsafe partial struct IDCompositionDevice2 : IDCompositionDevice2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDevice2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice3.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice3.cs index 6e78b1719d..9ccc7d582d 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice3.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDevice3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionDevice3 : IDCompositionDevice2")] [NativeInheritance("IDCompositionDevice2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionDevice3 : IDCompositionDevice3.Interface +public unsafe partial struct IDCompositionDevice3 : IDCompositionDevice3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDevice3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDeviceDebug.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDeviceDebug.cs index 631b74895c..1521ac0ccc 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDeviceDebug.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionDeviceDebug.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionDeviceDebug : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionDeviceDebug : IDCompositionDeviceDebug.Interface +public unsafe partial struct IDCompositionDeviceDebug : IDCompositionDeviceDebug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDeviceDebug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffect.cs index 248d6e0b44..6025be76aa 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffect.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionEffect : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionEffect : IDCompositionEffect.Interface +public unsafe partial struct IDCompositionEffect : IDCompositionEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffectGroup.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffectGroup.cs index 4ca058bcbc..59efd9a66a 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffectGroup.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionEffectGroup.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionEffectGroup : IDCompositionEffect")] [NativeInheritance("IDCompositionEffect")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionEffectGroup : IDCompositionEffectGroup.Interface +public unsafe partial struct IDCompositionEffectGroup : IDCompositionEffectGroup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionEffectGroup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionFilterEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionFilterEffect.cs index 215ea2538e..6e84d03f9f 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionFilterEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionFilterEffect.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionFilterEffect : IDCompositionEffect")] [NativeInheritance("IDCompositionEffect")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionFilterEffect : IDCompositionFilterEffect.Interface +public unsafe partial struct IDCompositionFilterEffect : IDCompositionFilterEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionFilterEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionGaussianBlurEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionGaussianBlurEffect.cs index 59b354dcb6..36dc267c6f 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionGaussianBlurEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionGaussianBlurEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("45D4D0B7-1BD4-454E-8894-2BFA68443033")] [NativeTypeName("struct IDCompositionGaussianBlurEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionGaussianBlurEffect : IDCompositionGaussianBlurEffect.Interface +public unsafe partial struct IDCompositionGaussianBlurEffect : IDCompositionGaussianBlurEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionGaussianBlurEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionHueRotationEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionHueRotationEffect.cs index 756020c5d6..476654caf8 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionHueRotationEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionHueRotationEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6DB9F920-0770-4781-B0C6-381912F9D167")] [NativeTypeName("struct IDCompositionHueRotationEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionHueRotationEffect : IDCompositionHueRotationEffect.Interface +public unsafe partial struct IDCompositionHueRotationEffect : IDCompositionHueRotationEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionHueRotationEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionInkTrailDevice.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionInkTrailDevice.cs index d57dd4de6d..961ad30211 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionInkTrailDevice.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionInkTrailDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DF0C7CEC-CDEB-4D4A-B91C-721BF22F4E6C")] [NativeTypeName("struct IDCompositionInkTrailDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDCompositionInkTrailDevice : IDCompositionInkTrailDevice.Interface +public unsafe partial struct IDCompositionInkTrailDevice : IDCompositionInkTrailDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionInkTrailDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionLinearTransferEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionLinearTransferEffect.cs index ac857139d4..afcecd9a68 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionLinearTransferEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionLinearTransferEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4305EE5B-C4A0-4C88-9385-67124E017683")] [NativeTypeName("struct IDCompositionLinearTransferEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionLinearTransferEffect : IDCompositionLinearTransferEffect.Interface +public unsafe partial struct IDCompositionLinearTransferEffect : IDCompositionLinearTransferEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionLinearTransferEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform.cs index 431c1899e8..9a8de23abb 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionMatrixTransform : IDCompositionTransform")] [NativeInheritance("IDCompositionTransform")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionMatrixTransform : IDCompositionMatrixTransform.Interface +public unsafe partial struct IDCompositionMatrixTransform : IDCompositionMatrixTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionMatrixTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform3D.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform3D.cs index 3202873bdd..ee1c26fbb6 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform3D.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionMatrixTransform3D.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionMatrixTransform3D : IDCompositionTransform3D")] [NativeInheritance("IDCompositionTransform3D")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionMatrixTransform3D : IDCompositionMatrixTransform3D.Interface +public unsafe partial struct IDCompositionMatrixTransform3D : IDCompositionMatrixTransform3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionMatrixTransform3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRectangleClip.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRectangleClip.cs index 933b80b876..e2c6e4df40 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRectangleClip.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRectangleClip.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionRectangleClip : IDCompositionClip")] [NativeInheritance("IDCompositionClip")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionRectangleClip : IDCompositionRectangleClip.Interface +public unsafe partial struct IDCompositionRectangleClip : IDCompositionRectangleClip.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionRectangleClip)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform.cs index 0df3afd3be..179f8bd11f 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionRotateTransform : IDCompositionTransform")] [NativeInheritance("IDCompositionTransform")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionRotateTransform : IDCompositionRotateTransform.Interface +public unsafe partial struct IDCompositionRotateTransform : IDCompositionRotateTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionRotateTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform3D.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform3D.cs index 021a19cdd2..2d77bda3d5 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform3D.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionRotateTransform3D.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionRotateTransform3D : IDCompositionTransform3D")] [NativeInheritance("IDCompositionTransform3D")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionRotateTransform3D : IDCompositionRotateTransform3D.Interface +public unsafe partial struct IDCompositionRotateTransform3D : IDCompositionRotateTransform3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionRotateTransform3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSaturationEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSaturationEffect.cs index 7cc3ef48e6..5ef5e5dd24 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSaturationEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSaturationEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A08DEBDA-3258-4FA4-9F16-9174D3FE93B1")] [NativeTypeName("struct IDCompositionSaturationEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionSaturationEffect : IDCompositionSaturationEffect.Interface +public unsafe partial struct IDCompositionSaturationEffect : IDCompositionSaturationEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionSaturationEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform.cs index 36585fbd83..759098a2f2 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionScaleTransform : IDCompositionTransform")] [NativeInheritance("IDCompositionTransform")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionScaleTransform : IDCompositionScaleTransform.Interface +public unsafe partial struct IDCompositionScaleTransform : IDCompositionScaleTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionScaleTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform3D.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform3D.cs index 008cd2b00b..2d11cb9294 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform3D.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionScaleTransform3D.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionScaleTransform3D : IDCompositionTransform3D")] [NativeInheritance("IDCompositionTransform3D")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionScaleTransform3D : IDCompositionScaleTransform3D.Interface +public unsafe partial struct IDCompositionScaleTransform3D : IDCompositionScaleTransform3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionScaleTransform3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionShadowEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionShadowEffect.cs index ed6b7478fb..35fa7cc795 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionShadowEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionShadowEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4AD18AC0-CFD2-4C2F-BB62-96E54FDB6879")] [NativeTypeName("struct IDCompositionShadowEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionShadowEffect : IDCompositionShadowEffect.Interface +public unsafe partial struct IDCompositionShadowEffect : IDCompositionShadowEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionShadowEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSkewTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSkewTransform.cs index 82ddd319bd..34e7ec252f 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSkewTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSkewTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionSkewTransform : IDCompositionTransform")] [NativeInheritance("IDCompositionTransform")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionSkewTransform : IDCompositionSkewTransform.Interface +public unsafe partial struct IDCompositionSkewTransform : IDCompositionSkewTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionSkewTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurface.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurface.cs index 52441766d4..06add2ff91 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurface.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurface.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionSurface : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionSurface : IDCompositionSurface.Interface +public unsafe partial struct IDCompositionSurface : IDCompositionSurface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionSurface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurfaceFactory.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurfaceFactory.cs index 09633ca58a..7b83e202a9 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurfaceFactory.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionSurfaceFactory.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionSurfaceFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionSurfaceFactory : IDCompositionSurfaceFactory.Interface +public unsafe partial struct IDCompositionSurfaceFactory : IDCompositionSurfaceFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionSurfaceFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTableTransferEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTableTransferEffect.cs index b047e9bb7a..94a1a56df8 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTableTransferEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTableTransferEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9B7E82E2-69C5-4EB4-A5F5-A7033F5132CD")] [NativeTypeName("struct IDCompositionTableTransferEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionTableTransferEffect : IDCompositionTableTransferEffect.Interface +public unsafe partial struct IDCompositionTableTransferEffect : IDCompositionTableTransferEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTableTransferEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTarget.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTarget.cs index 9701951dd6..359826f770 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTarget.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTarget.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionTarget : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionTarget : IDCompositionTarget.Interface +public unsafe partial struct IDCompositionTarget : IDCompositionTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform.cs index 13a5be9014..5f82e16444 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionTransform : IDCompositionTransform3D")] [NativeInheritance("IDCompositionTransform3D")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionTransform : IDCompositionTransform.Interface +public unsafe partial struct IDCompositionTransform : IDCompositionTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform3D.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform3D.cs index be3ef68e3f..bb970e4ce4 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform3D.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTransform3D.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("71185722-246B-41F2-AAD1-0443F7F4BFC2")] [NativeTypeName("struct IDCompositionTransform3D : IDCompositionEffect")] [NativeInheritance("IDCompositionEffect")] -public unsafe partial struct IDCompositionTransform3D : IDCompositionTransform3D.Interface +public unsafe partial struct IDCompositionTransform3D : IDCompositionTransform3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTransform3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform.cs index 5222e228bb..31d1401136 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionTranslateTransform : IDCompositionTransform")] [NativeInheritance("IDCompositionTransform")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionTranslateTransform : IDCompositionTranslateTransform.Interface +public unsafe partial struct IDCompositionTranslateTransform : IDCompositionTranslateTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTranslateTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform3D.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform3D.cs index 79210bbce3..c0a96cf99e 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform3D.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTranslateTransform3D.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionTranslateTransform3D : IDCompositionTransform3D")] [NativeInheritance("IDCompositionTransform3D")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionTranslateTransform3D : IDCompositionTranslateTransform3D.Interface +public unsafe partial struct IDCompositionTranslateTransform3D : IDCompositionTranslateTransform3D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTranslateTransform3D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTurbulenceEffect.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTurbulenceEffect.cs index 99f847a062..da30a2f975 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTurbulenceEffect.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionTurbulenceEffect.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A6A55BDA-C09C-49F3-9193-A41922C89715")] [NativeTypeName("struct IDCompositionTurbulenceEffect : IDCompositionFilterEffect")] [NativeInheritance("IDCompositionFilterEffect")] -public unsafe partial struct IDCompositionTurbulenceEffect : IDCompositionTurbulenceEffect.Interface +public unsafe partial struct IDCompositionTurbulenceEffect : IDCompositionTurbulenceEffect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTurbulenceEffect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVirtualSurface.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVirtualSurface.cs index b261dd1a73..65b22bc2fa 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVirtualSurface.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVirtualSurface.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionVirtualSurface : IDCompositionSurface")] [NativeInheritance("IDCompositionSurface")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionVirtualSurface : IDCompositionVirtualSurface.Interface +public unsafe partial struct IDCompositionVirtualSurface : IDCompositionVirtualSurface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionVirtualSurface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual.cs index 918a4088be..1e85dfdf54 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionVisual : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionVisual : IDCompositionVisual.Interface +public unsafe partial struct IDCompositionVisual : IDCompositionVisual.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionVisual)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual2.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual2.cs index 4ddd3aea9b..df742e547a 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual2.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionVisual2 : IDCompositionVisual")] [NativeInheritance("IDCompositionVisual")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionVisual2 : IDCompositionVisual2.Interface +public unsafe partial struct IDCompositionVisual2 : IDCompositionVisual2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionVisual2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual3.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual3.cs index de1da08b0c..eec138eb32 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual3.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisual3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionVisual3 : IDCompositionVisualDebug")] [NativeInheritance("IDCompositionVisualDebug")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionVisual3 : IDCompositionVisual3.Interface +public unsafe partial struct IDCompositionVisual3 : IDCompositionVisual3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionVisual3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisualDebug.cs b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisualDebug.cs index 4d7ebdc643..3061406e70 100644 --- a/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisualDebug.cs +++ b/sources/Interop/Windows/DirectX/um/dcomp/IDCompositionVisualDebug.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionVisualDebug : IDCompositionVisual2")] [NativeInheritance("IDCompositionVisual2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDCompositionVisualDebug : IDCompositionVisualDebug.Interface +public unsafe partial struct IDCompositionVisualDebug : IDCompositionVisualDebug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionVisualDebug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dcompanimation/IDCompositionAnimation.cs b/sources/Interop/Windows/DirectX/um/dcompanimation/IDCompositionAnimation.cs index 505a0f7dc0..b9da13c9bc 100644 --- a/sources/Interop/Windows/DirectX/um/dcompanimation/IDCompositionAnimation.cs +++ b/sources/Interop/Windows/DirectX/um/dcompanimation/IDCompositionAnimation.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDCompositionAnimation : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDCompositionAnimation : IDCompositionAnimation.Interface +public unsafe partial struct IDCompositionAnimation : IDCompositionAnimation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionAnimation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDBLTFX.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDBLTFX.cs index 9f8522ffa5..7b9f1a2e67 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDBLTFX.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDBLTFX.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -101,122 +102,134 @@ public unsafe partial struct DDBLTFX public DDCOLORKEY ddckSrcColorkey; /// + [UnscopedRef] public ref uint dwZDestConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwZDestConst, 1)); + return ref Anonymous1.dwZDestConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSZBufferDest { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.lpDDSZBufferDest; + return ref Anonymous1.lpDDSZBufferDest; } } /// + [UnscopedRef] public ref uint dwZSrcConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwZSrcConst, 1)); + return ref Anonymous2.dwZSrcConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSZBufferSrc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.lpDDSZBufferSrc; + return ref Anonymous2.lpDDSZBufferSrc; } } /// + [UnscopedRef] public ref uint dwAlphaDestConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwAlphaDestConst, 1)); + return ref Anonymous3.dwAlphaDestConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSAlphaDest { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.lpDDSAlphaDest; + return ref Anonymous3.lpDDSAlphaDest; } } /// + [UnscopedRef] public ref uint dwAlphaSrcConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwAlphaSrcConst, 1)); + return ref Anonymous4.dwAlphaSrcConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSAlphaSrc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous4.lpDDSAlphaSrc; + return ref Anonymous4.lpDDSAlphaSrc; } } /// + [UnscopedRef] public ref uint dwFillColor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwFillColor, 1)); + return ref Anonymous5.dwFillColor; } } /// + [UnscopedRef] public ref uint dwFillDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwFillDepth, 1)); + return ref Anonymous5.dwFillDepth; } } /// + [UnscopedRef] public ref uint dwFillPixel { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwFillPixel, 1)); + return ref Anonymous5.dwFillPixel; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSPattern { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous5.lpDDSPattern; + return ref Anonymous5.lpDDSPattern; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDOVERLAYFX.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDOVERLAYFX.cs index 6e616da2c3..7dbf3920e8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDOVERLAYFX.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDOVERLAYFX.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -58,42 +59,46 @@ public unsafe partial struct DDOVERLAYFX public uint dwFlags; /// + [UnscopedRef] public ref uint dwAlphaDestConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwAlphaDestConst, 1)); + return ref Anonymous1.dwAlphaDestConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSAlphaDest { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.lpDDSAlphaDest; + return ref Anonymous1.lpDDSAlphaDest; } } /// + [UnscopedRef] public ref uint dwAlphaSrcConst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwAlphaSrcConst, 1)); + return ref Anonymous2.dwAlphaSrcConst; } } /// + [UnscopedRef] public ref IDirectDrawSurface* lpDDSAlphaSrc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.lpDDSAlphaSrc; + return ref Anonymous2.lpDDSAlphaSrc; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDPIXELFORMAT.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDPIXELFORMAT.cs index c0142c3fbd..a5e3439cb8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDPIXELFORMAT.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDPIXELFORMAT.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -44,272 +45,299 @@ public partial struct DDPIXELFORMAT public _Anonymous5_e__Union Anonymous5; /// + [UnscopedRef] public ref uint dwRGBBitCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwRGBBitCount, 1)); + return ref Anonymous1.dwRGBBitCount; } } /// + [UnscopedRef] public ref uint dwYUVBitCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwYUVBitCount, 1)); + return ref Anonymous1.dwYUVBitCount; } } /// + [UnscopedRef] public ref uint dwZBufferBitDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwZBufferBitDepth, 1)); + return ref Anonymous1.dwZBufferBitDepth; } } /// + [UnscopedRef] public ref uint dwAlphaBitDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwAlphaBitDepth, 1)); + return ref Anonymous1.dwAlphaBitDepth; } } /// + [UnscopedRef] public ref uint dwLuminanceBitCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwLuminanceBitCount, 1)); + return ref Anonymous1.dwLuminanceBitCount; } } /// + [UnscopedRef] public ref uint dwBumpBitCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwBumpBitCount, 1)); + return ref Anonymous1.dwBumpBitCount; } } /// + [UnscopedRef] public ref uint dwPrivateFormatBitCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwPrivateFormatBitCount, 1)); + return ref Anonymous1.dwPrivateFormatBitCount; } } /// + [UnscopedRef] public ref uint dwRBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwRBitMask, 1)); + return ref Anonymous2.dwRBitMask; } } /// + [UnscopedRef] public ref uint dwYBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwYBitMask, 1)); + return ref Anonymous2.dwYBitMask; } } /// + [UnscopedRef] public ref uint dwStencilBitDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwStencilBitDepth, 1)); + return ref Anonymous2.dwStencilBitDepth; } } /// + [UnscopedRef] public ref uint dwLuminanceBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwLuminanceBitMask, 1)); + return ref Anonymous2.dwLuminanceBitMask; } } /// + [UnscopedRef] public ref uint dwBumpDuBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwBumpDuBitMask, 1)); + return ref Anonymous2.dwBumpDuBitMask; } } /// + [UnscopedRef] public ref uint dwOperations { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwOperations, 1)); + return ref Anonymous2.dwOperations; } } /// + [UnscopedRef] public ref uint dwGBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwGBitMask, 1)); + return ref Anonymous3.dwGBitMask; } } /// + [UnscopedRef] public ref uint dwUBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwUBitMask, 1)); + return ref Anonymous3.dwUBitMask; } } /// + [UnscopedRef] public ref uint dwZBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwZBitMask, 1)); + return ref Anonymous3.dwZBitMask; } } /// + [UnscopedRef] public ref uint dwBumpDvBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwBumpDvBitMask, 1)); + return ref Anonymous3.dwBumpDvBitMask; } } /// + [UnscopedRef] public ref _Anonymous3_e__Union._MultiSampleCaps_e__Struct MultiSampleCaps { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.MultiSampleCaps, 1)); + return ref Anonymous3.MultiSampleCaps; } } /// + [UnscopedRef] public ref uint dwBBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwBBitMask, 1)); + return ref Anonymous4.dwBBitMask; } } /// + [UnscopedRef] public ref uint dwVBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwVBitMask, 1)); + return ref Anonymous4.dwVBitMask; } } /// + [UnscopedRef] public ref uint dwStencilBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwStencilBitMask, 1)); + return ref Anonymous4.dwStencilBitMask; } } /// + [UnscopedRef] public ref uint dwBumpLuminanceBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwBumpLuminanceBitMask, 1)); + return ref Anonymous4.dwBumpLuminanceBitMask; } } /// + [UnscopedRef] public ref uint dwRGBAlphaBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwRGBAlphaBitMask, 1)); + return ref Anonymous5.dwRGBAlphaBitMask; } } /// + [UnscopedRef] public ref uint dwYUVAlphaBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwYUVAlphaBitMask, 1)); + return ref Anonymous5.dwYUVAlphaBitMask; } } /// + [UnscopedRef] public ref uint dwLuminanceAlphaBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwLuminanceAlphaBitMask, 1)); + return ref Anonymous5.dwLuminanceAlphaBitMask; } } /// + [UnscopedRef] public ref uint dwRGBZBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwRGBZBitMask, 1)); + return ref Anonymous5.dwRGBZBitMask; } } /// + [UnscopedRef] public ref uint dwYUVZBitMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwYUVZBitMask, 1)); + return ref Anonymous5.dwYUVZBitMask; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPS2.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPS2.cs index caf4dede84..be5d539cb9 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPS2.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPS2.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,22 +28,24 @@ public partial struct DDSCAPS2 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint dwCaps4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwCaps4, 1)); + return ref Anonymous.dwCaps4; } } /// + [UnscopedRef] public ref uint dwVolumeDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwVolumeDepth, 1)); + return ref Anonymous.dwVolumeDepth; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPSEX.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPSEX.cs index 631a43ef00..bab8facd90 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPSEX.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDSCAPSEX.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,22 +25,24 @@ public partial struct DDSCAPSEX public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint dwCaps4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwCaps4, 1)); + return ref Anonymous.dwCaps4; } } /// + [UnscopedRef] public ref uint dwVolumeDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwVolumeDepth, 1)); + return ref Anonymous.dwVolumeDepth; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC.cs index 3a7c010ab3..f51e572be8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -70,52 +71,57 @@ public unsafe partial struct DDSURFACEDESC public DDSCAPS ddsCaps; /// + [UnscopedRef] public ref int lPitch { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lPitch, 1)); + return ref Anonymous1.lPitch; } } /// + [UnscopedRef] public ref uint dwLinearSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwLinearSize, 1)); + return ref Anonymous1.dwLinearSize; } } /// + [UnscopedRef] public ref uint dwMipMapCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwMipMapCount, 1)); + return ref Anonymous2.dwMipMapCount; } } /// + [UnscopedRef] public ref uint dwZBufferBitDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwZBufferBitDepth, 1)); + return ref Anonymous2.dwZBufferBitDepth; } } /// + [UnscopedRef] public ref uint dwRefreshRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwRefreshRate, 1)); + return ref Anonymous2.dwRefreshRate; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC2.cs b/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC2.cs index 5c784c5fbc..26feeb54ea 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC2.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DDSURFACEDESC2.cs @@ -3,6 +3,7 @@ // Ported from um/ddraw.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -76,112 +77,123 @@ public unsafe partial struct DDSURFACEDESC2 public uint dwTextureStage; /// + [UnscopedRef] public ref int lPitch { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lPitch, 1)); + return ref Anonymous1.lPitch; } } /// + [UnscopedRef] public ref uint dwLinearSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwLinearSize, 1)); + return ref Anonymous1.dwLinearSize; } } /// + [UnscopedRef] public ref uint dwBackBufferCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwBackBufferCount, 1)); + return ref Anonymous2.dwBackBufferCount; } } /// + [UnscopedRef] public ref uint dwDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwDepth, 1)); + return ref Anonymous2.dwDepth; } } /// + [UnscopedRef] public ref uint dwMipMapCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwMipMapCount, 1)); + return ref Anonymous3.dwMipMapCount; } } /// + [UnscopedRef] public ref uint dwRefreshRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwRefreshRate, 1)); + return ref Anonymous3.dwRefreshRate; } } /// + [UnscopedRef] public ref uint dwSrcVBHandle { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.dwSrcVBHandle, 1)); + return ref Anonymous3.dwSrcVBHandle; } } /// + [UnscopedRef] public ref DDCOLORKEY ddckCKDestOverlay { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.ddckCKDestOverlay, 1)); + return ref Anonymous4.ddckCKDestOverlay; } } /// + [UnscopedRef] public ref uint dwEmptyFaceColor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous4.dwEmptyFaceColor, 1)); + return ref Anonymous4.dwEmptyFaceColor; } } /// + [UnscopedRef] public ref DDPIXELFORMAT ddpfPixelFormat { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.ddpfPixelFormat, 1)); + return ref Anonymous5.ddpfPixelFormat; } } /// + [UnscopedRef] public ref uint dwFVF { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous5.dwFVF, 1)); + return ref Anonymous5.dwFVF; } } diff --git a/sources/Interop/Windows/DirectX/um/ddraw/DirectX.cs b/sources/Interop/Windows/DirectX/um/ddraw/DirectX.cs index aba71609b4..55d3c64eb8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/DirectX.cs @@ -67,13 +67,13 @@ public static unsafe partial class DirectX public static delegate*, void*, uint, HRESULT> DirectDrawEnumerateEx => &DirectDrawEnumerateExW; [NativeTypeName("#define REGSTR_KEY_DDHW_DESCRIPTION \"Description\"")] - public static ReadOnlySpan REGSTR_KEY_DDHW_DESCRIPTION => new byte[] { 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6F, 0x6E, 0x00 }; + public static ReadOnlySpan REGSTR_KEY_DDHW_DESCRIPTION => "Description"u8; [NativeTypeName("#define REGSTR_KEY_DDHW_DRIVERNAME \"DriverName\"")] - public static ReadOnlySpan REGSTR_KEY_DDHW_DRIVERNAME => new byte[] { 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4E, 0x61, 0x6D, 0x65, 0x00 }; + public static ReadOnlySpan REGSTR_KEY_DDHW_DRIVERNAME => "DriverName"u8; [NativeTypeName("#define REGSTR_PATH_DDHW \"Hardware\\\\DirectDrawDrivers\"")] - public static ReadOnlySpan REGSTR_PATH_DDHW => new byte[] { 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x5C, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x44, 0x72, 0x61, 0x77, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x73, 0x00 }; + public static ReadOnlySpan REGSTR_PATH_DDHW => "Hardware\\DirectDrawDrivers"u8; [NativeTypeName("#define DD_ROP_SPACE (256/32)")] public const int DD_ROP_SPACE = (256 / 32); diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw.cs index 6c3d6505ad..9464a72116 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6C14DB80-A733-11CE-A521-0020AF0BE560")] [NativeTypeName("struct IDirectDraw : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDraw : IDirectDraw.Interface +public unsafe partial struct IDirectDraw : IDirectDraw.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDraw)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw2.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw2.cs index 0e6eb732b3..6229ed1123 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw2.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B3A6F3E0-2B43-11CF-A2DE-00AA00B93356")] [NativeTypeName("struct IDirectDraw2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDraw2 : IDirectDraw2.Interface +public unsafe partial struct IDirectDraw2 : IDirectDraw2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDraw2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw4.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw4.cs index 7ff3f67ed2..a0b0f6cbe8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw4.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9C59509A-39BD-11D1-8C4A-00C04FD930C5")] [NativeTypeName("struct IDirectDraw4 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDraw4 : IDirectDraw4.Interface +public unsafe partial struct IDirectDraw4 : IDirectDraw4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDraw4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw7.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw7.cs index b944efde65..41318079c2 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw7.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDraw7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("15E65EC0-3B9C-11D2-B92F-00609797EA5B")] [NativeTypeName("struct IDirectDraw7 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDraw7 : IDirectDraw7.Interface +public unsafe partial struct IDirectDraw7 : IDirectDraw7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDraw7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawClipper.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawClipper.cs index b56fc16eb8..f512156d1d 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawClipper.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawClipper.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6C14DB85-A733-11CE-A521-0020AF0BE560")] [NativeTypeName("struct IDirectDrawClipper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawClipper : IDirectDrawClipper.Interface +public unsafe partial struct IDirectDrawClipper : IDirectDrawClipper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawClipper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawColorControl.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawColorControl.cs index 9279726807..2c01019fb6 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawColorControl.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawColorControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4B9F0EE0-0D7E-11D0-9B06-00A0C903A3B8")] [NativeTypeName("struct IDirectDrawColorControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawColorControl : IDirectDrawColorControl.Interface +public unsafe partial struct IDirectDrawColorControl : IDirectDrawColorControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawColorControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawGammaControl.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawGammaControl.cs index aa9c4c31df..83e02a93ce 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawGammaControl.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawGammaControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("69C11C3E-B46B-11D1-AD7A-00C04FC29B4E")] [NativeTypeName("struct IDirectDrawGammaControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawGammaControl : IDirectDrawGammaControl.Interface +public unsafe partial struct IDirectDrawGammaControl : IDirectDrawGammaControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawGammaControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawPalette.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawPalette.cs index 20a0faa0c6..b2f8697440 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawPalette.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawPalette.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6C14DB84-A733-11CE-A521-0020AF0BE560")] [NativeTypeName("struct IDirectDrawPalette : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawPalette : IDirectDrawPalette.Interface +public unsafe partial struct IDirectDrawPalette : IDirectDrawPalette.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawPalette)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface.cs index e5a545e53f..32fb769d0a 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6C14DB81-A733-11CE-A521-0020AF0BE560")] [NativeTypeName("struct IDirectDrawSurface : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawSurface : IDirectDrawSurface.Interface +public unsafe partial struct IDirectDrawSurface : IDirectDrawSurface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawSurface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface2.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface2.cs index fa5a9b9ce5..923439a7b8 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface2.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("57805885-6EEC-11CF-9441-A82303C10E27")] [NativeTypeName("struct IDirectDrawSurface2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawSurface2 : IDirectDrawSurface2.Interface +public unsafe partial struct IDirectDrawSurface2 : IDirectDrawSurface2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawSurface2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface3.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface3.cs index 0897806a88..89fd28356e 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface3.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DA044E00-69B2-11D0-A1D5-00AA00B8DFBB")] [NativeTypeName("struct IDirectDrawSurface3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawSurface3 : IDirectDrawSurface3.Interface +public unsafe partial struct IDirectDrawSurface3 : IDirectDrawSurface3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawSurface3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface4.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface4.cs index 1dc063b871..da93e3327c 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface4.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("0B2B8630-AD35-11D0-8EA6-00609797EA5B")] [NativeTypeName("struct IDirectDrawSurface4 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawSurface4 : IDirectDrawSurface4.Interface +public unsafe partial struct IDirectDrawSurface4 : IDirectDrawSurface4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawSurface4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface7.cs b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface7.cs index 8e99db0337..d916a10f89 100644 --- a/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface7.cs +++ b/sources/Interop/Windows/DirectX/um/ddraw/IDirectDrawSurface7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("06675A80-3B9B-11D2-B92F-00609797EA5B")] [NativeTypeName("struct IDirectDrawSurface7 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawSurface7 : IDirectDrawSurface7.Interface +public unsafe partial struct IDirectDrawSurface7 : IDirectDrawSurface7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawSurface7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DCompManipulationCompositor.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DCompManipulationCompositor.cs index e9516b5b9b..10ff7a6b83 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DCompManipulationCompositor.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DCompManipulationCompositor.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("79DEA627-A08A-43AC-8EF5-6900B9299126")] -public partial struct DCompManipulationCompositor +public unsafe partial struct DCompManipulationCompositor : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DCompManipulationCompositor)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationManager.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationManager.cs index 3bbe5b8eda..a50b71d3c7 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationManager.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationManager.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("54E211B6-3650-4F75-8334-FA359598E1C5")] -public partial struct DirectManipulationManager +public unsafe partial struct DirectManipulationManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DirectManipulationManager)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationPrimaryContent.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationPrimaryContent.cs index 4c71443bd0..087f6df2a6 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationPrimaryContent.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationPrimaryContent.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("CAA02661-D59E-41C7-8393-3BA3BACB6B57")] -public partial struct DirectManipulationPrimaryContent +public unsafe partial struct DirectManipulationPrimaryContent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DirectManipulationPrimaryContent)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationSharedManager.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationSharedManager.cs index bb3f445d1c..6d952743c4 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationSharedManager.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationSharedManager.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("99793286-77CC-4B57-96DB-3B354F6F9FB5")] -public partial struct DirectManipulationSharedManager +public unsafe partial struct DirectManipulationSharedManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DirectManipulationSharedManager)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationUpdateManager.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationUpdateManager.cs index 80b30fd3cf..ce3f165c83 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationUpdateManager.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationUpdateManager.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("9FC1BFD5-1835-441A-B3B1-B6CC74B727D0")] -public partial struct DirectManipulationUpdateManager +public unsafe partial struct DirectManipulationUpdateManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DirectManipulationUpdateManager)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationViewport.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationViewport.cs index fd6dd9c827..9538f63f7d 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationViewport.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/DirectManipulationViewport.cs @@ -3,12 +3,16 @@ // Ported from um/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("34E211B6-3650-4F75-8334-FA359598E1C5")] -public partial struct DirectManipulationViewport +public unsafe partial struct DirectManipulationViewport : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DirectManipulationViewport)); } diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationAutoScrollBehavior.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationAutoScrollBehavior.cs index 31ee00e109..5d49a4b207 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationAutoScrollBehavior.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationAutoScrollBehavior.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationAutoScrollBehavior : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationAutoScrollBehavior : IDirectManipulationAutoScrollBehavior.Interface +public unsafe partial struct IDirectManipulationAutoScrollBehavior : IDirectManipulationAutoScrollBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationAutoScrollBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor.cs index 590d978e4d..6f93f84590 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationCompositor : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationCompositor : IDirectManipulationCompositor.Interface +public unsafe partial struct IDirectManipulationCompositor : IDirectManipulationCompositor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationCompositor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor2.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor2.cs index 350974480e..43b7e88538 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor2.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationCompositor2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationCompositor2 : IDirectManipulationCompositor")] [NativeInheritance("IDirectManipulationCompositor")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDirectManipulationCompositor2 : IDirectManipulationCompositor2.Interface +public unsafe partial struct IDirectManipulationCompositor2 : IDirectManipulationCompositor2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationCompositor2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationContent.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationContent.cs index d58150df61..9ba0aafbb2 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationContent.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationContent.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationContent : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationContent : IDirectManipulationContent.Interface +public unsafe partial struct IDirectManipulationContent : IDirectManipulationContent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationContent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDeferContactService.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDeferContactService.cs index e11a1177b2..56de588fef 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDeferContactService.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDeferContactService.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationDeferContactService : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDirectManipulationDeferContactService : IDirectManipulationDeferContactService.Interface +public unsafe partial struct IDirectManipulationDeferContactService : IDirectManipulationDeferContactService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationDeferContactService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropBehavior.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropBehavior.cs index acd9e26199..6e4e538ee6 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropBehavior.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropBehavior.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationDragDropBehavior : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationDragDropBehavior : IDirectManipulationDragDropBehavior.Interface +public unsafe partial struct IDirectManipulationDragDropBehavior : IDirectManipulationDragDropBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationDragDropBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropEventHandler.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropEventHandler.cs index 6528677269..da53e057e1 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropEventHandler.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationDragDropEventHandler.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationDragDropEventHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationDragDropEventHandler : IDirectManipulationDragDropEventHandler.Interface +public unsafe partial struct IDirectManipulationDragDropEventHandler : IDirectManipulationDragDropEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationDragDropEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationFrameInfoProvider.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationFrameInfoProvider.cs index e2c1712cd3..7822045fe8 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationFrameInfoProvider.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationFrameInfoProvider.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationFrameInfoProvider : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationFrameInfoProvider : IDirectManipulationFrameInfoProvider.Interface +public unsafe partial struct IDirectManipulationFrameInfoProvider : IDirectManipulationFrameInfoProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationFrameInfoProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationInteractionEventHandler.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationInteractionEventHandler.cs index c9c33546b3..fa802dfd97 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationInteractionEventHandler.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationInteractionEventHandler.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationInteractionEventHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationInteractionEventHandler : IDirectManipulationInteractionEventHandler.Interface +public unsafe partial struct IDirectManipulationInteractionEventHandler : IDirectManipulationInteractionEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationInteractionEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager.cs index 4e3d886540..2abf97eed5 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationManager : IDirectManipulationManager.Interface +public unsafe partial struct IDirectManipulationManager : IDirectManipulationManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager2.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager2.cs index 8514dd6497..b3659a59b8 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager2.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationManager2 : IDirectManipulationManager")] [NativeInheritance("IDirectManipulationManager")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationManager2 : IDirectManipulationManager2.Interface +public unsafe partial struct IDirectManipulationManager2 : IDirectManipulationManager2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationManager2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager3.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager3.cs index eff5a5c7d6..2aa6e17cc9 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager3.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationManager3 : IDirectManipulationManager2")] [NativeInheritance("IDirectManipulationManager2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDirectManipulationManager3 : IDirectManipulationManager3.Interface +public unsafe partial struct IDirectManipulationManager3 : IDirectManipulationManager3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationManager3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationPrimaryContent.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationPrimaryContent.cs index 3b15fb4b77..0291026ac8 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationPrimaryContent.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationPrimaryContent.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationPrimaryContent : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationPrimaryContent : IDirectManipulationPrimaryContent.Interface +public unsafe partial struct IDirectManipulationPrimaryContent : IDirectManipulationPrimaryContent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationPrimaryContent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateHandler.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateHandler.cs index f191fcb538..9aae221287 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateHandler.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateHandler.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationUpdateHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationUpdateHandler : IDirectManipulationUpdateHandler.Interface +public unsafe partial struct IDirectManipulationUpdateHandler : IDirectManipulationUpdateHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationUpdateHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateManager.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateManager.cs index 70113635f1..7f33465204 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateManager.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationUpdateManager.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationUpdateManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationUpdateManager : IDirectManipulationUpdateManager.Interface +public unsafe partial struct IDirectManipulationUpdateManager : IDirectManipulationUpdateManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationUpdateManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport.cs index 11e3f88aac..caadfe597a 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationViewport : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationViewport : IDirectManipulationViewport.Interface +public unsafe partial struct IDirectManipulationViewport : IDirectManipulationViewport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationViewport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport2.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport2.cs index 7885ebea8d..0d54300c05 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport2.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewport2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationViewport2 : IDirectManipulationViewport")] [NativeInheritance("IDirectManipulationViewport")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDirectManipulationViewport2 : IDirectManipulationViewport2.Interface +public unsafe partial struct IDirectManipulationViewport2 : IDirectManipulationViewport2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationViewport2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewportEventHandler.cs b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewportEventHandler.cs index d34aa2270b..c398ed2db9 100644 --- a/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewportEventHandler.cs +++ b/sources/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationViewportEventHandler.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDirectManipulationViewportEventHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDirectManipulationViewportEventHandler : IDirectManipulationViewportEventHandler.Interface +public unsafe partial struct IDirectManipulationViewportEventHandler : IDirectManipulationViewportEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectManipulationViewportEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteBitmapRenderTarget.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteBitmapRenderTarget.cs index 60f47b0bac..e32aa2a304 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteBitmapRenderTarget.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteBitmapRenderTarget.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5E5A32A3-8DFF-4773-9FF6-0696EAB77267")] [NativeTypeName("struct IDWriteBitmapRenderTarget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteBitmapRenderTarget : IDWriteBitmapRenderTarget.Interface +public unsafe partial struct IDWriteBitmapRenderTarget : IDWriteBitmapRenderTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFactory.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFactory.cs index 7e52ba02d9..958b803af8 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFactory.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B859EE5A-D838-4B5B-A2E8-1ADC7D93DB48")] [NativeTypeName("struct IDWriteFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFactory : IDWriteFactory.Interface +public unsafe partial struct IDWriteFactory : IDWriteFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFont.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFont.cs index 0c76623011..60c3b50d35 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFont.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFont.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("ACD16696-8C14-4F5D-877E-FE3FC1D32737")] [NativeTypeName("struct IDWriteFont : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFont : IDWriteFont.Interface +public unsafe partial struct IDWriteFont : IDWriteFont.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollection.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollection.cs index 74f09b7b05..fcefff1aa5 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollection.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A84CEE02-3EEA-4EEE-A827-87C1A02A0FCC")] [NativeTypeName("struct IDWriteFontCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontCollection : IDWriteFontCollection.Interface +public unsafe partial struct IDWriteFontCollection : IDWriteFontCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollectionLoader.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollectionLoader.cs index 12fe56f1e7..f06f6eb77a 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollectionLoader.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontCollectionLoader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CCA920E4-52F0-492B-BFA8-29C72EE0A468")] [NativeTypeName("struct IDWriteFontCollectionLoader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontCollectionLoader : IDWriteFontCollectionLoader.Interface +public unsafe partial struct IDWriteFontCollectionLoader : IDWriteFontCollectionLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollectionLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFace.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFace.cs index 76a97a655e..8199de2d4b 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFace.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFace.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5F49804D-7024-4D43-BFA9-D25984F53849")] [NativeTypeName("struct IDWriteFontFace : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFace : IDWriteFontFace.Interface +public unsafe partial struct IDWriteFontFace : IDWriteFontFace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFamily.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFamily.cs index 5091b1bca3..d7218a1f20 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFamily.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFamily.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DA20D8EF-812A-4C43-9802-62EC4ABD7ADD")] [NativeTypeName("struct IDWriteFontFamily : IDWriteFontList")] [NativeInheritance("IDWriteFontList")] -public unsafe partial struct IDWriteFontFamily : IDWriteFontFamily.Interface +public unsafe partial struct IDWriteFontFamily : IDWriteFontFamily.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFile.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFile.cs index b6e04c5ef2..924efb4684 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFile.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFile.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("739D886A-CEF5-47DC-8769-1A8B41BEBBB0")] [NativeTypeName("struct IDWriteFontFile : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFile : IDWriteFontFile.Interface +public unsafe partial struct IDWriteFontFile : IDWriteFontFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileEnumerator.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileEnumerator.cs index e90c4902d0..d970d7ae90 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileEnumerator.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("72755049-5FF7-435D-8348-4BE97CFA6C7C")] [NativeTypeName("struct IDWriteFontFileEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileEnumerator : IDWriteFontFileEnumerator.Interface +public unsafe partial struct IDWriteFontFileEnumerator : IDWriteFontFileEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileLoader.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileLoader.cs index 9978d9ff24..c9344e8770 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileLoader.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileLoader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("727CAD4E-D6AF-4C9E-8A08-D695B11CAA49")] [NativeTypeName("struct IDWriteFontFileLoader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileLoader : IDWriteFontFileLoader.Interface +public unsafe partial struct IDWriteFontFileLoader : IDWriteFontFileLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileStream.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileStream.cs index 01b2a688cb..ea33e6a1db 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileStream.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontFileStream.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6D4865FE-0AB8-4D91-8F62-5DD6BE34A3E0")] [NativeTypeName("struct IDWriteFontFileStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileStream : IDWriteFontFileStream.Interface +public unsafe partial struct IDWriteFontFileStream : IDWriteFontFileStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontList.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontList.cs index 9d98d0633d..d5fc31235e 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontList.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteFontList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1A0D8438-1D97-4EC1-AEF9-A2FB86ED6ACB")] [NativeTypeName("struct IDWriteFontList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontList : IDWriteFontList.Interface +public unsafe partial struct IDWriteFontList : IDWriteFontList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGdiInterop.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGdiInterop.cs index d7b432f5df..91ba0b1ecc 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGdiInterop.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGdiInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1EDD9491-9853-4299-898F-6432983B6F3A")] [NativeTypeName("struct IDWriteGdiInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteGdiInterop : IDWriteGdiInterop.Interface +public unsafe partial struct IDWriteGdiInterop : IDWriteGdiInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGlyphRunAnalysis.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGlyphRunAnalysis.cs index 8f23f0511c..710be52562 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGlyphRunAnalysis.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteGlyphRunAnalysis.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7D97DBF7-E085-42D4-81E3-6A883BDED118")] [NativeTypeName("struct IDWriteGlyphRunAnalysis : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteGlyphRunAnalysis : IDWriteGlyphRunAnalysis.Interface +public unsafe partial struct IDWriteGlyphRunAnalysis : IDWriteGlyphRunAnalysis.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGlyphRunAnalysis)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteInlineObject.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteInlineObject.cs index f4813c56ca..c369ff5f87 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteInlineObject.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteInlineObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8339FDE3-106F-47AB-8373-1C6295EB10B3")] [NativeTypeName("struct IDWriteInlineObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteInlineObject : IDWriteInlineObject.Interface +public unsafe partial struct IDWriteInlineObject : IDWriteInlineObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInlineObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalFontFileLoader.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalFontFileLoader.cs index 3fc0c359c3..298f46f04f 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalFontFileLoader.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalFontFileLoader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B2D9F3EC-C9FE-4A11-A2EC-D86208F7C0A2")] [NativeTypeName("struct IDWriteLocalFontFileLoader : IDWriteFontFileLoader")] [NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteLocalFontFileLoader : IDWriteLocalFontFileLoader.Interface +public unsafe partial struct IDWriteLocalFontFileLoader : IDWriteLocalFontFileLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalFontFileLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalizedStrings.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalizedStrings.cs index 10675b3827..07deb42518 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalizedStrings.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteLocalizedStrings.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("08256209-099A-4B34-B86D-C22B110E7771")] [NativeTypeName("struct IDWriteLocalizedStrings : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.Interface +public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalizedStrings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteNumberSubstitution.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteNumberSubstitution.cs index 07057dfdb3..5ef1c002fc 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteNumberSubstitution.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteNumberSubstitution.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("14885CC9-BAB0-4F90-B6ED-5C366A2CD03D")] [NativeTypeName("struct IDWriteNumberSubstitution : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteNumberSubstitution : IDWriteNumberSubstitution.Interface +public unsafe partial struct IDWriteNumberSubstitution : IDWriteNumberSubstitution.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteNumberSubstitution)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWritePixelSnapping.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWritePixelSnapping.cs index 9ad7e57420..761847ae38 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWritePixelSnapping.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWritePixelSnapping.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EAF3A2DA-ECF4-4D24-B644-B34F6842024B")] [NativeTypeName("struct IDWritePixelSnapping : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWritePixelSnapping : IDWritePixelSnapping.Interface +public unsafe partial struct IDWritePixelSnapping : IDWritePixelSnapping.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWritePixelSnapping)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteRenderingParams.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteRenderingParams.cs index b70e345bc6..7d2843f343 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteRenderingParams.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteRenderingParams.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2F0DA53A-2ADD-47CD-82EE-D9EC34688E75")] [NativeTypeName("struct IDWriteRenderingParams : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteRenderingParams : IDWriteRenderingParams.Interface +public unsafe partial struct IDWriteRenderingParams : IDWriteRenderingParams.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSink.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSink.cs index 6dba5f15da..b8ed603d3e 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSink.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("5810CD44-0CA0-4701-B3FA-BEC5182AE4F6")] [NativeTypeName("struct IDWriteTextAnalysisSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalysisSink : IDWriteTextAnalysisSink.Interface +public unsafe partial struct IDWriteTextAnalysisSink : IDWriteTextAnalysisSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSource.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSource.cs index bba090f58f..ebbb927e4d 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSource.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalysisSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("688E1A58-5094-47C8-ADC8-FBCEA60AE92B")] [NativeTypeName("struct IDWriteTextAnalysisSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalysisSource : IDWriteTextAnalysisSource.Interface +public unsafe partial struct IDWriteTextAnalysisSource : IDWriteTextAnalysisSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalyzer.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalyzer.cs index 66cda40318..01771d17a2 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalyzer.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextAnalyzer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B7E6163E-7F46-43B4-84B3-E4E6249C365D")] [NativeTypeName("struct IDWriteTextAnalyzer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalyzer : IDWriteTextAnalyzer.Interface +public unsafe partial struct IDWriteTextAnalyzer : IDWriteTextAnalyzer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextFormat.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextFormat.cs index 5acdd30217..d95e214bff 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextFormat.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextFormat.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9C906818-31D7-4FD3-A151-7C5E225DB55A")] [NativeTypeName("struct IDWriteTextFormat : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface +public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextLayout.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextLayout.cs index cc1e90eec7..67f92338ef 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextLayout.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextLayout.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("53737037-6D14-410B-9BFE-0B182BB70961")] [NativeTypeName("struct IDWriteTextLayout : IDWriteTextFormat")] [NativeInheritance("IDWriteTextFormat")] -public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface +public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextRenderer.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextRenderer.cs index b9a9e31049..65ca338e9d 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextRenderer.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTextRenderer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EF8A8135-5CC6-45FE-8825-C5A0724EB819")] [NativeTypeName("struct IDWriteTextRenderer : IDWritePixelSnapping")] [NativeInheritance("IDWritePixelSnapping")] -public unsafe partial struct IDWriteTextRenderer : IDWriteTextRenderer.Interface +public unsafe partial struct IDWriteTextRenderer : IDWriteTextRenderer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTypography.cs b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTypography.cs index 471905d316..af5b380500 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTypography.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/IDWriteTypography.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("55F1112B-1DC2-4B3C-9541-F46894ED85B6")] [NativeTypeName("struct IDWriteTypography : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTypography : IDWriteTypography.Interface +public unsafe partial struct IDWriteTypography : IDWriteTypography.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTypography)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteBitmapRenderTarget1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteBitmapRenderTarget1.cs index e0dd536e15..a5e035e778 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteBitmapRenderTarget1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteBitmapRenderTarget1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("791E8298-3EF3-4230-9880-C9BDECC42064")] [NativeTypeName("struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget")] [NativeInheritance("IDWriteBitmapRenderTarget")] -public unsafe partial struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget1.Interface +public unsafe partial struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFactory1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFactory1.cs index 5be5afc389..bee7a64d1e 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFactory1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFactory1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("30572F99-DAC6-41DB-A16E-0486307E606A")] [NativeTypeName("struct IDWriteFactory1 : IDWriteFactory")] [NativeInheritance("IDWriteFactory")] -public unsafe partial struct IDWriteFactory1 : IDWriteFactory1.Interface +public unsafe partial struct IDWriteFactory1 : IDWriteFactory1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFont1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFont1.cs index d76d78a36a..0446cd8e3c 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFont1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFont1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("ACD16696-8C14-4F5D-877E-FE3FC1D32738")] [NativeTypeName("struct IDWriteFont1 : IDWriteFont")] [NativeInheritance("IDWriteFont")] -public unsafe partial struct IDWriteFont1 : IDWriteFont1.Interface +public unsafe partial struct IDWriteFont1 : IDWriteFont1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFontFace1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFontFace1.cs index e0777d3ff5..d1457f4ac8 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFontFace1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteFontFace1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A71EFDB4-9FDB-4838-AD90-CFC3BE8C3DAF")] [NativeTypeName("struct IDWriteFontFace1 : IDWriteFontFace")] [NativeInheritance("IDWriteFontFace")] -public unsafe partial struct IDWriteFontFace1 : IDWriteFontFace1.Interface +public unsafe partial struct IDWriteFontFace1 : IDWriteFontFace1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteRenderingParams1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteRenderingParams1.cs index ddb06ff654..0288f477d3 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteRenderingParams1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteRenderingParams1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("94413CF4-A6FC-4248-8B50-6674348FCAD3")] [NativeTypeName("struct IDWriteRenderingParams1 : IDWriteRenderingParams")] [NativeInheritance("IDWriteRenderingParams")] -public unsafe partial struct IDWriteRenderingParams1 : IDWriteRenderingParams1.Interface +public unsafe partial struct IDWriteRenderingParams1 : IDWriteRenderingParams1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSink1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSink1.cs index eda861bf2f..5bc222bcb5 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSink1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSink1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B0D941A0-85E7-4D8B-9FD3-5CED9934482A")] [NativeTypeName("struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink")] [NativeInheritance("IDWriteTextAnalysisSink")] -public unsafe partial struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink1.Interface +public unsafe partial struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSource1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSource1.cs index 9952f40d64..71d5aaafd8 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSource1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalysisSource1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("639CFAD8-0FB4-4B21-A58A-067920120009")] [NativeTypeName("struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource")] [NativeInheritance("IDWriteTextAnalysisSource")] -public unsafe partial struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource1.Interface +public unsafe partial struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalyzer1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalyzer1.cs index b2dc3f8475..53ec68cdaa 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalyzer1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextAnalyzer1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("80DAD800-E21F-4E83-96CE-BFCCE500DB7C")] [NativeTypeName("struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer")] [NativeInheritance("IDWriteTextAnalyzer")] -public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interface +public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextLayout1.cs b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextLayout1.cs index 0e25391fc7..542e2d5fcd 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextLayout1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_1/IDWriteTextLayout1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9064D822-80A7-465C-A986-DF65F78B8FEB")] [NativeTypeName("struct IDWriteTextLayout1 : IDWriteTextLayout")] [NativeInheritance("IDWriteTextLayout")] -public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface +public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteColorGlyphRunEnumerator.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteColorGlyphRunEnumerator.cs index 8fe3434793..c7a3588c44 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteColorGlyphRunEnumerator.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteColorGlyphRunEnumerator.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteColorGlyphRunEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteColorGlyphRunEnumerator : IDWriteColorGlyphRunEnumerator.Interface +public unsafe partial struct IDWriteColorGlyphRunEnumerator : IDWriteColorGlyphRunEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFactory2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFactory2.cs index 591d7c64e5..76c100578e 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFactory2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFactory2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFactory2 : IDWriteFactory1")] [NativeInheritance("IDWriteFactory1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFactory2 : IDWriteFactory2.Interface +public unsafe partial struct IDWriteFactory2 : IDWriteFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFont2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFont2.cs index 0068be74a5..81de90ba44 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFont2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFont2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFont2 : IDWriteFont1")] [NativeInheritance("IDWriteFont1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFont2 : IDWriteFont2.Interface +public unsafe partial struct IDWriteFont2 : IDWriteFont2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFace2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFace2.cs index 554d3975e8..f187d52de2 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFace2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFace2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFace2 : IDWriteFontFace1")] [NativeInheritance("IDWriteFontFace1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFontFace2 : IDWriteFontFace2.Interface +public unsafe partial struct IDWriteFontFace2 : IDWriteFontFace2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallback.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallback.cs index 9920214bd8..bfa3f2042b 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallback.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallback.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFontFallback : IDWriteFontFallback.Interface +public unsafe partial struct IDWriteFontFallback : IDWriteFontFallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallbackBuilder.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallbackBuilder.cs index 9d65943257..3c3be56cf3 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallbackBuilder.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteFontFallbackBuilder.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFallbackBuilder : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFontFallbackBuilder : IDWriteFontFallbackBuilder.Interface +public unsafe partial struct IDWriteFontFallbackBuilder : IDWriteFontFallbackBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallbackBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteRenderingParams2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteRenderingParams2.cs index 7fbc908446..e56f788d8d 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteRenderingParams2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteRenderingParams2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteRenderingParams2 : IDWriteRenderingParams1")] [NativeInheritance("IDWriteRenderingParams1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteRenderingParams2 : IDWriteRenderingParams2.Interface +public unsafe partial struct IDWriteRenderingParams2 : IDWriteRenderingParams2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextAnalyzer2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextAnalyzer2.cs index 0c28d32d71..e5dbf4ba75 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextAnalyzer2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextAnalyzer2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer1")] [NativeInheritance("IDWriteTextAnalyzer1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer2.Interface +public unsafe partial struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextFormat1.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextFormat1.cs index c6cd233ab9..763e265ef1 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextFormat1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextFormat1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextFormat1 : IDWriteTextFormat")] [NativeInheritance("IDWriteTextFormat")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextFormat1 : IDWriteTextFormat1.Interface +public unsafe partial struct IDWriteTextFormat1 : IDWriteTextFormat1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextLayout2.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextLayout2.cs index 8c087decc9..b528bda714 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextLayout2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextLayout2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextLayout2 : IDWriteTextLayout1")] [NativeInheritance("IDWriteTextLayout1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface +public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextRenderer1.cs b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextRenderer1.cs index 18de1b0ee5..947aa67bc2 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextRenderer1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_2/IDWriteTextRenderer1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextRenderer1 : IDWriteTextRenderer")] [NativeInheritance("IDWriteTextRenderer")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextRenderer1 : IDWriteTextRenderer1.Interface +public unsafe partial struct IDWriteTextRenderer1 : IDWriteTextRenderer1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteAsyncResult.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteAsyncResult.cs index e6577bf14f..c5a30681cc 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteAsyncResult.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteAsyncResult.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CE25F8FD-863B-4D13-9651-C1F88DC73FE2")] [NativeTypeName("struct IDWriteAsyncResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteAsyncResult : IDWriteAsyncResult.Interface +public unsafe partial struct IDWriteAsyncResult : IDWriteAsyncResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteAsyncResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteColorGlyphRunEnumerator1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteColorGlyphRunEnumerator1.cs index 44ded5811e..2ca581b8ea 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteColorGlyphRunEnumerator1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteColorGlyphRunEnumerator1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7C5F86DA-C7A1-4F05-B8E1-55A179FE5A35")] [NativeTypeName("struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator")] [NativeInheritance("IDWriteColorGlyphRunEnumerator")] -public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator1.Interface +public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory3.cs index 9fe255228f..76d137b287 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFactory3 : IDWriteFactory2")] [NativeInheritance("IDWriteFactory2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFactory3 : IDWriteFactory3.Interface +public unsafe partial struct IDWriteFactory3 : IDWriteFactory3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory4.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory4.cs index 32edf9d24b..a994487ca4 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory4.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4B0B5BD3-0797-4549-8AC5-FE915CC53856")] [NativeTypeName("struct IDWriteFactory4 : IDWriteFactory3")] [NativeInheritance("IDWriteFactory3")] -public unsafe partial struct IDWriteFactory4 : IDWriteFactory4.Interface +public unsafe partial struct IDWriteFactory4 : IDWriteFactory4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory5.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory5.cs index b696165fba..bd0d333284 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory5.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("958DB99A-BE2A-4F09-AF7D-65189803D1D3")] [NativeTypeName("struct IDWriteFactory5 : IDWriteFactory4")] [NativeInheritance("IDWriteFactory4")] -public unsafe partial struct IDWriteFactory5 : IDWriteFactory5.Interface +public unsafe partial struct IDWriteFactory5 : IDWriteFactory5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory6.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory6.cs index 4b5d14255a..abe1e2e1bf 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory6.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F3744D80-21F7-42EB-B35D-995BC72FC223")] [NativeTypeName("struct IDWriteFactory6 : IDWriteFactory5")] [NativeInheritance("IDWriteFactory5")] -public unsafe partial struct IDWriteFactory6 : IDWriteFactory6.Interface +public unsafe partial struct IDWriteFactory6 : IDWriteFactory6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory7.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory7.cs index 24c4946464..27b6787b03 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory7.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFactory7.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("35D0E0B3-9076-4D2E-A016-A91B568A06B4")] [NativeTypeName("struct IDWriteFactory7 : IDWriteFactory6")] [NativeInheritance("IDWriteFactory6")] -public unsafe partial struct IDWriteFactory7 : IDWriteFactory7.Interface +public unsafe partial struct IDWriteFactory7 : IDWriteFactory7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFont3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFont3.cs index 04397615b5..0606368a0a 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFont3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFont3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFont3 : IDWriteFont2")] [NativeInheritance("IDWriteFont2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFont3 : IDWriteFont3.Interface +public unsafe partial struct IDWriteFont3 : IDWriteFont3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection1.cs index 0d54973b10..29e2ca3770 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("53585141-D9F8-4095-8321-D73CF6BD116C")] [NativeTypeName("struct IDWriteFontCollection1 : IDWriteFontCollection")] [NativeInheritance("IDWriteFontCollection")] -public unsafe partial struct IDWriteFontCollection1 : IDWriteFontCollection1.Interface +public unsafe partial struct IDWriteFontCollection1 : IDWriteFontCollection1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection2.cs index 2a4773e01d..b7e1adedd3 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("514039C6-4617-4064-BF8B-92EA83E506E0")] [NativeTypeName("struct IDWriteFontCollection2 : IDWriteFontCollection1")] [NativeInheritance("IDWriteFontCollection1")] -public unsafe partial struct IDWriteFontCollection2 : IDWriteFontCollection2.Interface +public unsafe partial struct IDWriteFontCollection2 : IDWriteFontCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection3.cs index d82ae185cb..9d4cea6fbb 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontCollection3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A4D055A6-F9E3-4E25-93B7-9E309F3AF8E9")] [NativeTypeName("struct IDWriteFontCollection3 : IDWriteFontCollection2")] [NativeInheritance("IDWriteFontCollection2")] -public unsafe partial struct IDWriteFontCollection3 : IDWriteFontCollection3.Interface +public unsafe partial struct IDWriteFontCollection3 : IDWriteFontCollection3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadListener.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadListener.cs index 75429b4029..645719c8b7 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadListener.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadListener.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontDownloadListener : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFontDownloadListener : IDWriteFontDownloadListener.Interface +public unsafe partial struct IDWriteFontDownloadListener : IDWriteFontDownloadListener.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadListener)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadQueue.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadQueue.cs index 2676635dbb..90520b48da 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadQueue.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontDownloadQueue.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontDownloadQueue : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteFontDownloadQueue : IDWriteFontDownloadQueue.Interface +public unsafe partial struct IDWriteFontDownloadQueue : IDWriteFontDownloadQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace3.cs index 4e1e4157d2..fb83199719 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFace3 : IDWriteFontFace2")] [NativeInheritance("IDWriteFontFace2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFontFace3 : IDWriteFontFace3.Interface +public unsafe partial struct IDWriteFontFace3 : IDWriteFontFace3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace4.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace4.cs index b8af4b4bdb..63e383cd1f 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace4.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("27F2A904-4EB8-441D-9678-0563F53E3E2F")] [NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")] [NativeInheritance("IDWriteFontFace3")] -public unsafe partial struct IDWriteFontFace4 : IDWriteFontFace4.Interface +public unsafe partial struct IDWriteFontFace4 : IDWriteFontFace4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace5.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace5.cs index 531f5fd9fd..8f737d93e2 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace5.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("98EFF3A5-B667-479A-B145-E2FA5B9FDC29")] [NativeTypeName("struct IDWriteFontFace5 : IDWriteFontFace4")] [NativeInheritance("IDWriteFontFace4")] -public unsafe partial struct IDWriteFontFace5 : IDWriteFontFace5.Interface +public unsafe partial struct IDWriteFontFace5 : IDWriteFontFace5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace6.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace6.cs index c7e8bfc4e7..1cd84a7297 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace6.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFace6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C4B1FE1B-6E84-47D5-B54C-A597981B06AD")] [NativeTypeName("struct IDWriteFontFace6 : IDWriteFontFace5")] [NativeInheritance("IDWriteFontFace5")] -public unsafe partial struct IDWriteFontFace6 : IDWriteFontFace6.Interface +public unsafe partial struct IDWriteFontFace6 : IDWriteFontFace6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference.cs index 836b801305..1863fe4c0d 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFaceReference : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFontFaceReference : IDWriteFontFaceReference.Interface +public unsafe partial struct IDWriteFontFaceReference : IDWriteFontFaceReference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference1.cs index 38395bf044..fccf8b8283 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFaceReference1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C081FE77-2FD1-41AC-A5A3-34983C4BA61A")] [NativeTypeName("struct IDWriteFontFaceReference1 : IDWriteFontFaceReference")] [NativeInheritance("IDWriteFontFaceReference")] -public unsafe partial struct IDWriteFontFaceReference1 : IDWriteFontFaceReference1.Interface +public unsafe partial struct IDWriteFontFaceReference1 : IDWriteFontFaceReference1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFallback1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFallback1.cs index 4b437123d5..67f3a15e19 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFallback1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFallback1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2397599D-DD0D-4681-BD6A-F4F31EAADE77")] [NativeTypeName("struct IDWriteFontFallback1 : IDWriteFontFallback")] [NativeInheritance("IDWriteFontFallback")] -public unsafe partial struct IDWriteFontFallback1 : IDWriteFontFallback1.Interface +public unsafe partial struct IDWriteFontFallback1 : IDWriteFontFallback1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily1.cs index da908a28c4..52442df2d5 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontFamily1 : IDWriteFontFamily")] [NativeInheritance("IDWriteFontFamily")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFontFamily1 : IDWriteFontFamily1.Interface +public unsafe partial struct IDWriteFontFamily1 : IDWriteFontFamily1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily2.cs index 2ad89ac0be..c7767f7bfe 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontFamily2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3ED49E77-A398-4261-B9CF-C126C2131EF3")] [NativeTypeName("struct IDWriteFontFamily2 : IDWriteFontFamily1")] [NativeInheritance("IDWriteFontFamily1")] -public unsafe partial struct IDWriteFontFamily2 : IDWriteFontFamily2.Interface +public unsafe partial struct IDWriteFontFamily2 : IDWriteFontFamily2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList1.cs index 36d03f43b1..15f00225e5 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontList1 : IDWriteFontList")] [NativeInheritance("IDWriteFontList")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFontList1 : IDWriteFontList1.Interface +public unsafe partial struct IDWriteFontList1 : IDWriteFontList1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList2.cs index 77e8d3f9bc..3e9644a733 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontList2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("C0763A34-77AF-445A-B735-08C37B0A5BF5")] [NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")] [NativeInheritance("IDWriteFontList1")] -public unsafe partial struct IDWriteFontList2 : IDWriteFontList2.Interface +public unsafe partial struct IDWriteFontList2 : IDWriteFontList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontResource.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontResource.cs index 6b51b18336..52a970a061 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontResource.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontResource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("1F803A76-6871-48E8-987F-B975551C50F2")] [NativeTypeName("struct IDWriteFontResource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontResource : IDWriteFontResource.Interface +public unsafe partial struct IDWriteFontResource : IDWriteFontResource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontResource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet.cs index acd5be4101..f96b6c8934 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteFontSet : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteFontSet : IDWriteFontSet.Interface +public unsafe partial struct IDWriteFontSet : IDWriteFontSet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet1.cs index f4b64a23ed..15f00510a2 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7E9FDA85-6C92-4053-BC47-7AE3530DB4D3")] [NativeTypeName("struct IDWriteFontSet1 : IDWriteFontSet")] [NativeInheritance("IDWriteFontSet")] -public unsafe partial struct IDWriteFontSet1 : IDWriteFontSet1.Interface +public unsafe partial struct IDWriteFontSet1 : IDWriteFontSet1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet2.cs index 461778718a..1fd2250d16 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DC7EAD19-E54C-43AF-B2DA-4E2B79BA3F7F")] [NativeTypeName("struct IDWriteFontSet2 : IDWriteFontSet1")] [NativeInheritance("IDWriteFontSet1")] -public unsafe partial struct IDWriteFontSet2 : IDWriteFontSet2.Interface +public unsafe partial struct IDWriteFontSet2 : IDWriteFontSet2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet3.cs index eb23ec0307..c1debc000b 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSet3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7C073EF2-A7F4-4045-8C32-8AB8AE640F90")] [NativeTypeName("struct IDWriteFontSet3 : IDWriteFontSet2")] [NativeInheritance("IDWriteFontSet2")] -public unsafe partial struct IDWriteFontSet3 : IDWriteFontSet3.Interface +public unsafe partial struct IDWriteFontSet3 : IDWriteFontSet3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder.cs index ea337d810f..e658dfb222 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("2F642AFE-9C68-4F40-B8BE-457401AFCB3D")] [NativeTypeName("struct IDWriteFontSetBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontSetBuilder : IDWriteFontSetBuilder.Interface +public unsafe partial struct IDWriteFontSetBuilder : IDWriteFontSetBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder1.cs index 0563ca4352..e83bf951c0 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3FF7715F-3CDC-4DC6-9B72-EC5621DCCAFD")] [NativeTypeName("struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder")] [NativeInheritance("IDWriteFontSetBuilder")] -public unsafe partial struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder1.Interface +public unsafe partial struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder2.cs index 823dfe4fe7..d29bd60f79 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteFontSetBuilder2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("EE5BA612-B131-463C-8F4F-3189B9401E45")] [NativeTypeName("struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder1")] [NativeInheritance("IDWriteFontSetBuilder1")] -public unsafe partial struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder2.Interface +public unsafe partial struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteGdiInterop1.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteGdiInterop1.cs index b3744fb650..6e38a06cff 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteGdiInterop1.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteGdiInterop1.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4556BE70-3ABD-4F70-90BE-421780A6F515")] [NativeTypeName("struct IDWriteGdiInterop1 : IDWriteGdiInterop")] [NativeInheritance("IDWriteGdiInterop")] -public unsafe partial struct IDWriteGdiInterop1 : IDWriteGdiInterop1.Interface +public unsafe partial struct IDWriteGdiInterop1 : IDWriteGdiInterop1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteInMemoryFontFileLoader.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteInMemoryFontFileLoader.cs index 295ef182d8..a96f051876 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteInMemoryFontFileLoader.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteInMemoryFontFileLoader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("DC102F47-A12D-4B1C-822D-9E117E33043F")] [NativeTypeName("struct IDWriteInMemoryFontFileLoader : IDWriteFontFileLoader")] [NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteInMemoryFontFileLoader : IDWriteInMemoryFontFileLoader.Interface +public unsafe partial struct IDWriteInMemoryFontFileLoader : IDWriteInMemoryFontFileLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInMemoryFontFileLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileLoader.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileLoader.cs index 1393db0077..a913794c6e 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileLoader.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileLoader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("68648C83-6EDE-46C0-AB46-20083A887FDE")] [NativeTypeName("struct IDWriteRemoteFontFileLoader : IDWriteFontFileLoader")] [NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteRemoteFontFileLoader : IDWriteRemoteFontFileLoader.Interface +public unsafe partial struct IDWriteRemoteFontFileLoader : IDWriteRemoteFontFileLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileStream.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileStream.cs index 11d814fdb1..c7ddc91826 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileStream.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRemoteFontFileStream.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4DB3757A-2C72-4ED9-B2B6-1ABABE1AFF9C")] [NativeTypeName("struct IDWriteRemoteFontFileStream : IDWriteFontFileStream")] [NativeInheritance("IDWriteFontFileStream")] -public unsafe partial struct IDWriteRemoteFontFileStream : IDWriteRemoteFontFileStream.Interface +public unsafe partial struct IDWriteRemoteFontFileStream : IDWriteRemoteFontFileStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRenderingParams3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRenderingParams3.cs index 64e997ad8a..be5484df78 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRenderingParams3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteRenderingParams3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteRenderingParams3 : IDWriteRenderingParams2")] [NativeInheritance("IDWriteRenderingParams2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IDWriteRenderingParams3 : IDWriteRenderingParams3.Interface +public unsafe partial struct IDWriteRenderingParams3 : IDWriteRenderingParams3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteStringList.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteStringList.cs index 93ecead1b6..27aedb5cdc 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteStringList.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteStringList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CFEE3140-1157-47CA-8B85-31BFCF3F2D0E")] [NativeTypeName("struct IDWriteStringList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface +public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteStringList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat2.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat2.cs index 8fb0c9d20e..5e89255a35 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat2.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextFormat2 : IDWriteTextFormat1")] [NativeInheritance("IDWriteTextFormat1")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextFormat2 : IDWriteTextFormat2.Interface +public unsafe partial struct IDWriteTextFormat2 : IDWriteTextFormat2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat3.cs index 40e6ff04ea..5aaaba359b 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextFormat3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("6D3B5641-E550-430D-A85B-B7BF48A93427")] [NativeTypeName("struct IDWriteTextFormat3 : IDWriteTextFormat2")] [NativeInheritance("IDWriteTextFormat2")] -public unsafe partial struct IDWriteTextFormat3 : IDWriteTextFormat3.Interface +public unsafe partial struct IDWriteTextFormat3 : IDWriteTextFormat3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout3.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout3.cs index 881baf31e8..d52b0df3ca 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout3.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDWriteTextLayout3 : IDWriteTextLayout2")] [NativeInheritance("IDWriteTextLayout2")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface +public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout4.cs b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout4.cs index 771a518c61..41a4c329e8 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout4.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite_3/IDWriteTextLayout4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("05A9BF42-223F-4441-B5FB-8263685F55E9")] [NativeTypeName("struct IDWriteTextLayout4 : IDWriteTextLayout3")] [NativeInheritance("IDWriteTextLayout3")] -public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface +public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcAssembler.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcAssembler.cs index e2e7aa82d6..57c2bc0dff 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcAssembler.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcAssembler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("091F7A26-1C1F-4948-904B-E6E3A8A771D5")] [NativeTypeName("struct IDxcAssembler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcAssembler : IDxcAssembler.Interface +public unsafe partial struct IDxcAssembler : IDxcAssembler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcAssembler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlob.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlob.cs index 0d8ac1f191..0526822d96 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlob.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlob.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8BA5FB08-5195-40E2-AC58-0D989C3A0102")] [NativeTypeName("struct IDxcBlob : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcBlob : IDxcBlob.Interface +public unsafe partial struct IDxcBlob : IDxcBlob.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlob)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobEncoding.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobEncoding.cs index 84b0fc7f73..5e08278fee 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobEncoding.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobEncoding.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7241D424-2646-4191-97C0-98E96E42FC68")] [NativeTypeName("struct IDxcBlobEncoding : IDxcBlob")] [NativeInheritance("IDxcBlob")] -public unsafe partial struct IDxcBlobEncoding : IDxcBlobEncoding.Interface +public unsafe partial struct IDxcBlobEncoding : IDxcBlobEncoding.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobEncoding)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf16.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf16.cs index f30fd7536c..9a0dc0620f 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf16.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf16.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A3F84EAB-0FAA-497E-A39C-EE6ED60B2D84")] [NativeTypeName("struct IDxcBlobUtf16 : IDxcBlobEncoding")] [NativeInheritance("IDxcBlobEncoding")] -public unsafe partial struct IDxcBlobUtf16 : IDxcBlobUtf16.Interface +public unsafe partial struct IDxcBlobUtf16 : IDxcBlobUtf16.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf16)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf8.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf8.cs index 979ac5aaab..486b7f87fe 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf8.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcBlobUtf8.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("3DA636C9-BA71-4024-A301-30CBF125305B")] [NativeTypeName("struct IDxcBlobUtf8 : IDxcBlobEncoding")] [NativeInheritance("IDxcBlobEncoding")] -public unsafe partial struct IDxcBlobUtf8 : IDxcBlobUtf8.Interface +public unsafe partial struct IDxcBlobUtf8 : IDxcBlobUtf8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler.cs index f9499f6b7e..672f67c9e9 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("8C210BF3-011F-4422-8D70-6F9ACB8DB617")] [NativeTypeName("struct IDxcCompiler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompiler : IDxcCompiler.Interface +public unsafe partial struct IDxcCompiler : IDxcCompiler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler2.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler2.cs index fb77190bac..0fe3d6f294 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler2.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A005A9D9-B8BB-4594-B5C9-0E633BEC4D37")] [NativeTypeName("struct IDxcCompiler2 : IDxcCompiler")] [NativeInheritance("IDxcCompiler")] -public unsafe partial struct IDxcCompiler2 : IDxcCompiler2.Interface +public unsafe partial struct IDxcCompiler2 : IDxcCompiler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler3.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler3.cs index 0654d6a769..951d739540 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler3.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompiler3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("228B4687-5A6A-4730-900C-9702B2203F54")] [NativeTypeName("struct IDxcCompiler3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompiler3 : IDxcCompiler3.Interface +public unsafe partial struct IDxcCompiler3 : IDxcCompiler3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompilerArgs.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompilerArgs.cs index da79edb5c2..cb50eeb616 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompilerArgs.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcCompilerArgs.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("73EFFE2A-70DC-45F8-9690-EFF64C02429D")] [NativeTypeName("struct IDxcCompilerArgs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompilerArgs : IDxcCompilerArgs.Interface +public unsafe partial struct IDxcCompilerArgs : IDxcCompilerArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompilerArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerBuilder.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerBuilder.cs index 112fb86af0..ccaafd728a 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerBuilder.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerBuilder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("334B1F50-2292-4B35-99A1-25588D8C17FE")] [NativeTypeName("struct IDxcContainerBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcContainerBuilder : IDxcContainerBuilder.Interface +public unsafe partial struct IDxcContainerBuilder : IDxcContainerBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerReflection.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerReflection.cs index 445d175491..be65fcce15 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerReflection.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcContainerReflection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("D2C21B26-8350-4BDC-976A-331CE6F4C54C")] [NativeTypeName("struct IDxcContainerReflection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcContainerReflection : IDxcContainerReflection.Interface +public unsafe partial struct IDxcContainerReflection : IDxcContainerReflection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerReflection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcIncludeHandler.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcIncludeHandler.cs index 715237e344..fafbce5b8f 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcIncludeHandler.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcIncludeHandler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7F61FC7D-950D-467F-B3E3-3C02FB49187C")] [NativeTypeName("struct IDxcIncludeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcIncludeHandler : IDxcIncludeHandler.Interface +public unsafe partial struct IDxcIncludeHandler : IDxcIncludeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcIncludeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLibrary.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLibrary.cs index eb333f575c..074c7858a3 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLibrary.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLibrary.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("E5204DC7-D18C-4C3C-BDFB-851673980FE7")] [NativeTypeName("struct IDxcLibrary : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcLibrary : IDxcLibrary.Interface +public unsafe partial struct IDxcLibrary : IDxcLibrary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLibrary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLinker.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLinker.cs index f835f79916..e16cb3821d 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLinker.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcLinker.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("F1B5BE2A-62DD-4327-A1C2-42AC1E1E78E6")] [NativeTypeName("struct IDxcLinker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcLinker : IDxcLinker.Interface +public unsafe partial struct IDxcLinker : IDxcLinker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLinker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOperationResult.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOperationResult.cs index a23707b596..686d223007 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOperationResult.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOperationResult.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("CEDB484A-D4E9-445A-B991-CA21CA157DC2")] [NativeTypeName("struct IDxcOperationResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOperationResult : IDxcOperationResult.Interface +public unsafe partial struct IDxcOperationResult : IDxcOperationResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOperationResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizer.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizer.cs index b7f3abaeab..4e07c16dda 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizer.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("25740E2E-9CBA-401B-9119-4FB42F39F270")] [NativeTypeName("struct IDxcOptimizer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOptimizer : IDxcOptimizer.Interface +public unsafe partial struct IDxcOptimizer : IDxcOptimizer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizerPass.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizerPass.cs index b31f0cdd99..e5065e1963 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizerPass.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcOptimizerPass.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("AE2CD79F-CC22-453F-9B6B-B124E7A5204C")] [NativeTypeName("struct IDxcOptimizerPass : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOptimizerPass : IDxcOptimizerPass.Interface +public unsafe partial struct IDxcOptimizerPass : IDxcOptimizerPass.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizerPass)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcResult.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcResult.cs index e9445e768a..ba7c359baf 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcResult.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcResult.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("58346CDA-DDE7-4497-9461-6F87AF5E0659")] [NativeTypeName("struct IDxcResult : IDxcOperationResult")] [NativeInheritance("IDxcOperationResult")] -public unsafe partial struct IDxcResult : IDxcResult.Interface +public unsafe partial struct IDxcResult : IDxcResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcUtils.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcUtils.cs index 35ea96e30c..c0cf2f10e1 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcUtils.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcUtils.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("4605C4CB-2019-492A-ADA4-65F20BB7D67F")] [NativeTypeName("struct IDxcUtils : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcUtils : IDxcUtils.Interface +public unsafe partial struct IDxcUtils : IDxcUtils.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcUtils)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcValidator.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcValidator.cs index b20649e599..873723345f 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcValidator.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcValidator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A6E82BD2-1FD7-4826-9811-2857E797F49A")] [NativeTypeName("struct IDxcValidator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcValidator : IDxcValidator.Interface +public unsafe partial struct IDxcValidator : IDxcValidator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcValidator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo.cs index e591e96ebd..a7a38f4a8d 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("B04F5B50-2059-4F12-A8FF-A1E0CDE1CC7E")] [NativeTypeName("struct IDxcVersionInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxcVersionInfo : IDxcVersionInfo.Interface +public unsafe partial struct IDxcVersionInfo : IDxcVersionInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo2.cs b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo2.cs index da12230d8d..d3a5e92222 100644 --- a/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo2.cs +++ b/sources/Interop/Windows/DirectX/um/dxcapi/IDxcVersionInfo2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("FB6904C4-42F0-4B62-9C46-983AF7DA7C83")] [NativeTypeName("struct IDxcVersionInfo2 : IDxcVersionInfo")] [NativeInheritance("IDxcVersionInfo")] -public unsafe partial struct IDxcVersionInfo2 : IDxcVersionInfo2.Interface +public unsafe partial struct IDxcVersionInfo2 : IDxcVersionInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapter.cs b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapter.cs index 2ba90dbdaf..7592d5996d 100644 --- a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapter.cs +++ b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapter.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXCoreAdapter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapter : IDXCoreAdapter.Interface +public unsafe partial struct IDXCoreAdapter : IDXCoreAdapter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterFactory.cs b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterFactory.cs index 74724a2e64..3a22746e43 100644 --- a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterFactory.cs +++ b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterFactory.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXCoreAdapterFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapterFactory : IDXCoreAdapterFactory.Interface +public unsafe partial struct IDXCoreAdapterFactory : IDXCoreAdapterFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapterFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterList.cs b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterList.cs index 408d362cde..9a8d06b9a4 100644 --- a/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterList.cs +++ b/sources/Interop/Windows/DirectX/um/dxcore_interface/IDXCoreAdapterList.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXCoreAdapterList : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapterList : IDXCoreAdapterList.Interface +public unsafe partial struct IDXCoreAdapterList : IDXCoreAdapterList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapterList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagContainer.cs b/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagContainer.cs index a9542b62d9..244c272228 100644 --- a/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagContainer.cs +++ b/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagContainer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("7D0F462F-4064-4862-BC7F-933E5058C10F")] [NativeTypeName("struct IDxDiagContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxDiagContainer : IDxDiagContainer.Interface +public unsafe partial struct IDxDiagContainer : IDxDiagContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxDiagContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagProvider.cs b/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagProvider.cs index 486c7091b2..8336f828f4 100644 --- a/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagProvider.cs +++ b/sources/Interop/Windows/DirectX/um/dxdiag/IDxDiagProvider.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("9C6B4CB0-23F8-49CC-A3ED-45A55000A6D2")] [NativeTypeName("struct IDxDiagProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDxDiagProvider : IDxDiagProvider.Interface +public unsafe partial struct IDxDiagProvider : IDxDiagProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxDiagProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug.cs b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug.cs index 409b2c53db..e5ea9a803e 100644 --- a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug.cs +++ b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIDebug : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDXGIDebug : IDXGIDebug.Interface +public unsafe partial struct IDXGIDebug : IDXGIDebug.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug1.cs b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug1.cs index 0dd4293cca..1b65266240 100644 --- a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug1.cs +++ b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIDebug1.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIDebug1 : IDXGIDebug")] [NativeInheritance("IDXGIDebug")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IDXGIDebug1 : IDXGIDebug1.Interface +public unsafe partial struct IDXGIDebug1 : IDXGIDebug1.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug1)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIInfoQueue.cs b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIInfoQueue.cs index a6d0ff77c8..b96693e260 100644 --- a/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIInfoQueue.cs +++ b/sources/Interop/Windows/DirectX/um/dxgidebug/IDXGIInfoQueue.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IDXGIInfoQueue : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDXGIInfoQueue : IDXGIInfoQueue.Interface +public unsafe partial struct IDXGIInfoQueue : IDXGIInfoQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIInfoQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/xapo/IXAPO.cs b/sources/Interop/Windows/DirectX/um/xapo/IXAPO.cs index 103e2d8efd..4dded42677 100644 --- a/sources/Interop/Windows/DirectX/um/xapo/IXAPO.cs +++ b/sources/Interop/Windows/DirectX/um/xapo/IXAPO.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("A410B984-9839-4819-A0BE-2856AE6B3ADB")] [NativeTypeName("struct IXAPO : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXAPO : IXAPO.Interface +public unsafe partial struct IXAPO : IXAPO.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXAPO)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/xapo/IXAPOParameters.cs b/sources/Interop/Windows/DirectX/um/xapo/IXAPOParameters.cs index 8c36d1339b..f705aae24a 100644 --- a/sources/Interop/Windows/DirectX/um/xapo/IXAPOParameters.cs +++ b/sources/Interop/Windows/DirectX/um/xapo/IXAPOParameters.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("26D95C66-80F2-499A-AD54-5AE7F01C6D98")] [NativeTypeName("struct IXAPOParameters : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXAPOParameters : IXAPOParameters.Interface +public unsafe partial struct IXAPOParameters : IXAPOParameters.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXAPOParameters)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/xapofx/FXEQ.cs b/sources/Interop/Windows/DirectX/um/xapofx/FXEQ.cs index c6bab80578..c11c761433 100644 --- a/sources/Interop/Windows/DirectX/um/xapofx/FXEQ.cs +++ b/sources/Interop/Windows/DirectX/um/xapofx/FXEQ.cs @@ -3,13 +3,18 @@ // Ported from um/xapofx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; [Guid("F5E01117-D6C4-485A-A3F5-695196F3DBFA")] -public partial struct FXEQ +public unsafe partial struct FXEQ : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FXEQ)); + [NativeTypeName("#define FXEQ_MIN_FRAMERATE 22000")] public const int FXEQ_MIN_FRAMERATE = 22000; diff --git a/sources/Interop/Windows/DirectX/um/xapofx/FXEcho.cs b/sources/Interop/Windows/DirectX/um/xapofx/FXEcho.cs index b40633b74c..de4f338fdb 100644 --- a/sources/Interop/Windows/DirectX/um/xapofx/FXEcho.cs +++ b/sources/Interop/Windows/DirectX/um/xapofx/FXEcho.cs @@ -3,13 +3,18 @@ // Ported from um/xapofx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; [Guid("5039D740-F736-449A-84D3-A56202557B87")] -public partial struct FXEcho +public unsafe partial struct FXEcho : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FXEcho)); + [NativeTypeName("#define FXECHO_MIN_WETDRYMIX 0.0f")] public const float FXECHO_MIN_WETDRYMIX = 0.0f; diff --git a/sources/Interop/Windows/DirectX/um/xapofx/FXMasteringLimiter.cs b/sources/Interop/Windows/DirectX/um/xapofx/FXMasteringLimiter.cs index 7cc3c1a1c7..3c8b30316d 100644 --- a/sources/Interop/Windows/DirectX/um/xapofx/FXMasteringLimiter.cs +++ b/sources/Interop/Windows/DirectX/um/xapofx/FXMasteringLimiter.cs @@ -3,13 +3,18 @@ // Ported from um/xapofx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; [Guid("C4137916-2BE1-46FD-8599-441536F49856")] -public partial struct FXMasteringLimiter +public unsafe partial struct FXMasteringLimiter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FXMasteringLimiter)); + [NativeTypeName("#define FXMASTERINGLIMITER_MIN_RELEASE 1")] public const int FXMASTERINGLIMITER_MIN_RELEASE = 1; diff --git a/sources/Interop/Windows/DirectX/um/xapofx/FXReverb.cs b/sources/Interop/Windows/DirectX/um/xapofx/FXReverb.cs index 454557fe96..40a73683ef 100644 --- a/sources/Interop/Windows/DirectX/um/xapofx/FXReverb.cs +++ b/sources/Interop/Windows/DirectX/um/xapofx/FXReverb.cs @@ -3,13 +3,18 @@ // Ported from um/xapofx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; [Guid("7D9ACA56-CB68-4807-B632-B137352E8596")] -public partial struct FXReverb +public unsafe partial struct FXReverb : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FXReverb)); + [NativeTypeName("#define FXREVERB_MIN_DIFFUSION 0.0f")] public const float FXREVERB_MIN_DIFFUSION = 0.0f; diff --git a/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2.cs b/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2.cs index 33bf8a6b28..512c8ff335 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.Windows; using static TerraFX.Interop.Windows.AUDIO_STREAM_CATEGORY; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.DirectX; [NativeTypeName("struct IXAudio2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IXAudio2 : IXAudio2.Interface +public unsafe partial struct IXAudio2 : IXAudio2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXAudio2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2Extension.cs b/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2Extension.cs index c3c2bbf7ac..aeab27244c 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2Extension.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2/IXAudio2Extension.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.DirectX; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.DirectX; [Guid("84AC29BB-D619-44D2-B197-E4ACF7DF3ED6")] [NativeTypeName("struct IXAudio2Extension : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXAudio2Extension : IXAudio2Extension.Interface +public unsafe partial struct IXAudio2Extension : IXAudio2Extension.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXAudio2Extension)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2.cs b/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2.cs index 5ff635c146..e40ee9a528 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2.cs @@ -12,7 +12,7 @@ namespace TerraFX.Interop.DirectX; public static partial class XAUDIO2 { [NativeTypeName("#define XAUDIO2_DLL_A \"xaudio2_9.dll\"")] - public static ReadOnlySpan XAUDIO2_DLL_A => new byte[] { 0x78, 0x61, 0x75, 0x64, 0x69, 0x6F, 0x32, 0x5F, 0x39, 0x2E, 0x64, 0x6C, 0x6C, 0x00 }; + public static ReadOnlySpan XAUDIO2_DLL_A => "xaudio2_9.dll"u8; [NativeTypeName("#define XAUDIO2_DLL_W L\"xaudio2_9.dll\"")] public const string XAUDIO2_DLL_W = "xaudio2_9.dll"; diff --git a/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2D.cs b/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2D.cs index af45969159..7f8b4019ec 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2D.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2/XAUDIO2D.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.DirectX; public static partial class XAUDIO2D { [NativeTypeName("#define XAUDIO2D_DLL_A \"xaudio2_9d.dll\"")] - public static ReadOnlySpan XAUDIO2D_DLL_A => new byte[] { 0x78, 0x61, 0x75, 0x64, 0x69, 0x6F, 0x32, 0x5F, 0x39, 0x64, 0x2E, 0x64, 0x6C, 0x6C, 0x00 }; + public static ReadOnlySpan XAUDIO2D_DLL_A => "xaudio2_9d.dll"u8; [NativeTypeName("#define XAUDIO2D_DLL_W L\"xaudio2_9d.dll\"")] public const string XAUDIO2D_DLL_W = "xaudio2_9d.dll"; diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioReverb.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioReverb.cs index 72243807fc..c97d3143f4 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioReverb.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioReverb.cs @@ -3,12 +3,16 @@ // Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("C2633B16-471B-4498-B8C5-4F0959E2EC09")] -public partial struct AudioReverb +public unsafe partial struct AudioReverb : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_AudioReverb)); } diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioVolumeMeter.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioVolumeMeter.cs index eb0ebc1b64..84aa1fe9e8 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioVolumeMeter.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/AudioVolumeMeter.cs @@ -3,12 +3,16 @@ // Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.DirectX; /// [Guid("4FC3B166-972A-40CF-BC37-7DB03DB2FBA3")] -public partial struct AudioVolumeMeter +public unsafe partial struct AudioVolumeMeter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_AudioVolumeMeter)); } diff --git a/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/EncoderParameters.cs b/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/EncoderParameters.cs index fc49680373..2df768bd36 100644 --- a/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/EncoderParameters.cs +++ b/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/EncoderParameters.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _Parameter_e__FixedBuffer { public EncoderParameter e0; + [UnscopedRef] public ref EncoderParameter this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref EncoderParameter this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/IImageBytes.cs b/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/IImageBytes.cs index 428ddf9217..4f72ba0d79 100644 --- a/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/IImageBytes.cs +++ b/sources/Interop/Windows/Gdiplus/um/gdiplusimaging/IImageBytes.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Gdiplus; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Gdiplus; [Guid("025D1823-6C7D-447B-BBDB-A3CBC3DFA2FC")] [NativeTypeName("struct IImageBytes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IImageBytes : IImageBytes.Interface +public unsafe partial struct IImageBytes : IImageBytes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IImageBytes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Gdiplus/um/gdiplusmetaheader/MetafileHeader.cs b/sources/Interop/Windows/Gdiplus/um/gdiplusmetaheader/MetafileHeader.cs index 767b25a961..5077bd543a 100644 --- a/sources/Interop/Windows/Gdiplus/um/gdiplusmetaheader/MetafileHeader.cs +++ b/sources/Interop/Windows/Gdiplus/um/gdiplusmetaheader/MetafileHeader.cs @@ -3,6 +3,7 @@ // Ported from um/gdiplusmetaheader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -60,22 +61,24 @@ public unsafe partial struct MetafileHeader public int LogicalDpiY; /// + [UnscopedRef] public ref METAHEADER WmfHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.WmfHeader, 1)); + return ref Anonymous.WmfHeader; } } /// + [UnscopedRef] public ref ENHMETAHEADER3 EmfHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.EmfHeader, 1)); + return ref Anonymous.EmfHeader; } } diff --git a/sources/Interop/Windows/Shims/UnscopedRefAttribute.cs b/sources/Interop/Windows/Shims/UnscopedRefAttribute.cs new file mode 100644 index 0000000000..15b202d819 --- /dev/null +++ b/sources/Interop/Windows/Shims/UnscopedRefAttribute.cs @@ -0,0 +1,8 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +namespace System.Diagnostics.CodeAnalysis; + +[AttributeUsageAttribute(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, Inherited = false)] +internal sealed class UnscopedRefAttribute : Attribute +{ +} diff --git a/sources/Interop/Windows/TerraFX.Interop.Windows.csproj b/sources/Interop/Windows/TerraFX.Interop.Windows.csproj index f1cf16f57b..44390adda8 100644 --- a/sources/Interop/Windows/TerraFX.Interop.Windows.csproj +++ b/sources/Interop/Windows/TerraFX.Interop.Windows.csproj @@ -3,13 +3,17 @@ - 0419;1571;1572;1573;1574;1580;1584;1589;1591;1658;IDE0017;$(NoWarn) + $(NoWarn);CA2252;CS0419;CS1571;CS1572;CS1573;CS1574;CS1580;CS1584;CS1589;CS1591;CS1658;IDE0017 TerraFX.Interop - net6.0 + net6.0;net7.0 + + + + diff --git a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingController.cs b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingController.cs index dd9bb3c02c..304520e9ce 100644 --- a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingController.cs +++ b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingController.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("F0A56423-A664-4FBD-8B43-409A45E8D9A1")] [NativeTypeName("struct ICastingController : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICastingController : ICastingController.Interface +public unsafe partial struct ICastingController : ICastingController.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICastingController)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingEventHandler.cs b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingEventHandler.cs index a248f2461c..06555074e4 100644 --- a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingEventHandler.cs +++ b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingEventHandler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("C79A6CB7-BEBD-47A6-A2AD-4D45AD79C7BC")] [NativeTypeName("struct ICastingEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICastingEventHandler : ICastingEventHandler.Interface +public unsafe partial struct ICastingEventHandler : ICastingEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICastingEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingSourceInfo.cs b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingSourceInfo.cs index 92571b60c4..b0a8fdc59b 100644 --- a/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingSourceInfo.cs +++ b/sources/Interop/Windows/WinRT/um/CastingInterop/ICastingSourceInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("45101AB7-7C3A-4BCE-9500-12C09024B298")] [NativeTypeName("struct ICastingSourceInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICastingSourceInfo : ICastingSourceInfo.Interface +public unsafe partial struct ICastingSourceInfo : ICastingSourceInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICastingSourceInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/HolographicSpaceInterop/IHolographicSpaceInterop.cs b/sources/Interop/Windows/WinRT/um/HolographicSpaceInterop/IHolographicSpaceInterop.cs index 1230599da5..8e2d521bd8 100644 --- a/sources/Interop/Windows/WinRT/um/HolographicSpaceInterop/IHolographicSpaceInterop.cs +++ b/sources/Interop/Windows/WinRT/um/HolographicSpaceInterop/IHolographicSpaceInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IHolographicSpaceInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IHolographicSpaceInterop : IHolographicSpaceInterop.Interface +public unsafe partial struct IHolographicSpaceInterop : IHolographicSpaceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHolographicSpaceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/IContentPrefetcherTaskTrigger/IContentPrefetcherTaskTrigger.cs b/sources/Interop/Windows/WinRT/um/IContentPrefetcherTaskTrigger/IContentPrefetcherTaskTrigger.cs index 43624b858c..62609e257e 100644 --- a/sources/Interop/Windows/WinRT/um/IContentPrefetcherTaskTrigger/IContentPrefetcherTaskTrigger.cs +++ b/sources/Interop/Windows/WinRT/um/IContentPrefetcherTaskTrigger/IContentPrefetcherTaskTrigger.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IContentPrefetcherTaskTrigger : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IContentPrefetcherTaskTrigger : IContentPrefetcherTaskTrigger.Interface +public unsafe partial struct IContentPrefetcherTaskTrigger : IContentPrefetcherTaskTrigger.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContentPrefetcherTaskTrigger)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/IMessageDispatcher/IMessageDispatcher.cs b/sources/Interop/Windows/WinRT/um/IMessageDispatcher/IMessageDispatcher.cs index 9a656359e4..d2a3f54fd2 100644 --- a/sources/Interop/Windows/WinRT/um/IMessageDispatcher/IMessageDispatcher.cs +++ b/sources/Interop/Windows/WinRT/um/IMessageDispatcher/IMessageDispatcher.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("F5F84C8F-CFD0-4CD6-B66B-C5D26FF1689D")] [NativeTypeName("struct IMessageDispatcher : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IMessageDispatcher : IMessageDispatcher.Interface +public unsafe partial struct IMessageDispatcher : IMessageDispatcher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMessageDispatcher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorAttributes.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorAttributes.cs index 96448b4a97..062ce44936 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorAttributes.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorAttributes.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("4B1B1759-EC40-466C-AAB4-BEB5347FD24C")] [NativeTypeName("struct IMLOperatorAttributes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorAttributes : IMLOperatorAttributes.Interface +public unsafe partial struct IMLOperatorAttributes : IMLOperatorAttributes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorAttributes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernel.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernel.cs index f8e0afd038..c90b06637f 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernel.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernel.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("11C4B4A0-B467-4EAA-A1A6-B961D8D0ED79")] [NativeTypeName("struct IMLOperatorKernel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorKernel : IMLOperatorKernel.Interface +public unsafe partial struct IMLOperatorKernel : IMLOperatorKernel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorKernel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelContext.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelContext.cs index 2f6d43c3a6..acea93334f 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelContext.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("82536A28-F022-4769-9D3F-8B278F84C0C3")] [NativeTypeName("struct IMLOperatorKernelContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorKernelContext : IMLOperatorKernelContext.Interface +public unsafe partial struct IMLOperatorKernelContext : IMLOperatorKernelContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorKernelContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelCreationContext.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelCreationContext.cs index d4aa8df24f..477a593204 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelCreationContext.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelCreationContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("5459B53D-A0FC-4665-ADDD-70171EF7E631")] [NativeTypeName("struct IMLOperatorKernelCreationContext : IMLOperatorAttributes")] [NativeInheritance("IMLOperatorAttributes")] -public unsafe partial struct IMLOperatorKernelCreationContext : IMLOperatorKernelCreationContext.Interface +public unsafe partial struct IMLOperatorKernelCreationContext : IMLOperatorKernelCreationContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorKernelCreationContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelFactory.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelFactory.cs index c0551b8415..b94756372f 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelFactory.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorKernelFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("EF15AD6F-0DC9-4908-AB35-A575A30DFBF8")] [NativeTypeName("struct IMLOperatorKernelFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorKernelFactory : IMLOperatorKernelFactory.Interface +public unsafe partial struct IMLOperatorKernelFactory : IMLOperatorKernelFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorKernelFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorRegistry.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorRegistry.cs index 96556ba9b6..fe627e5613 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorRegistry.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorRegistry.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("2AF9DD2D-B516-4672-9AB5-530C208493AD")] [NativeTypeName("struct IMLOperatorRegistry : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorRegistry : IMLOperatorRegistry.Interface +public unsafe partial struct IMLOperatorRegistry : IMLOperatorRegistry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorRegistry)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferenceContext.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferenceContext.cs index 789ed6dbed..62dbf41833 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferenceContext.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferenceContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("105B6B29-5408-4A68-9959-09B5955A3492")] [NativeTypeName("struct IMLOperatorShapeInferenceContext : IMLOperatorAttributes")] [NativeInheritance("IMLOperatorAttributes")] -public unsafe partial struct IMLOperatorShapeInferenceContext : IMLOperatorShapeInferenceContext.Interface +public unsafe partial struct IMLOperatorShapeInferenceContext : IMLOperatorShapeInferenceContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorShapeInferenceContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferrer.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferrer.cs index 7a0f0596b9..a433919838 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferrer.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorShapeInferrer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("540BE5BE-A6C9-40EE-83F6-D2B8B40A7798")] [NativeTypeName("struct IMLOperatorShapeInferrer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorShapeInferrer : IMLOperatorShapeInferrer.Interface +public unsafe partial struct IMLOperatorShapeInferrer : IMLOperatorShapeInferrer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorShapeInferrer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensor.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensor.cs index 160f395e54..65b5a471a8 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensor.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensor.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("7FE41F41-F430-440E-AECE-54416DC8B9DB")] [NativeTypeName("struct IMLOperatorTensor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorTensor : IMLOperatorTensor.Interface +public unsafe partial struct IMLOperatorTensor : IMLOperatorTensor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorTensor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensorShapeDescription.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensorShapeDescription.cs index b73945506d..2e23374ba3 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensorShapeDescription.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTensorShapeDescription.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("F20E8CBE-3B28-4248-BE95-F96FBC6E4643")] [NativeTypeName("struct IMLOperatorTensorShapeDescription : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorTensorShapeDescription : IMLOperatorTensorShapeDescription.Interface +public unsafe partial struct IMLOperatorTensorShapeDescription : IMLOperatorTensorShapeDescription.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorTensorShapeDescription)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferenceContext.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferenceContext.cs index ac4a73fdb9..738c8e5d01 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferenceContext.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferenceContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("EC893BB1-F938-427B-8488-C8DCF775F138")] [NativeTypeName("struct IMLOperatorTypeInferenceContext : IMLOperatorAttributes")] [NativeInheritance("IMLOperatorAttributes")] -public unsafe partial struct IMLOperatorTypeInferenceContext : IMLOperatorTypeInferenceContext.Interface +public unsafe partial struct IMLOperatorTypeInferenceContext : IMLOperatorTypeInferenceContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorTypeInferenceContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferrer.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferrer.cs index 4b72b41ba4..7f2ec85bef 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferrer.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/IMLOperatorTypeInferrer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("781AEB48-9BCB-4797-BF77-8BF455217BEB")] [NativeTypeName("struct IMLOperatorTypeInferrer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMLOperatorTypeInferrer : IMLOperatorTypeInferrer.Interface +public unsafe partial struct IMLOperatorTypeInferrer : IMLOperatorTypeInferrer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMLOperatorTypeInferrer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorAttributeNameValue.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorAttributeNameValue.cs index be63d58ac5..95ef63bfa6 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorAttributeNameValue.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorAttributeNameValue.cs @@ -3,6 +3,7 @@ // Ported from um/MLOperatorAuthor.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,42 +28,46 @@ public unsafe partial struct MLOperatorAttributeNameValue public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref void* reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.reserved; + return ref Anonymous.reserved; } } /// + [UnscopedRef] public ref long* ints { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.ints; + return ref Anonymous.ints; } } /// + [UnscopedRef] public ref sbyte** strings { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.strings; + return ref Anonymous.strings; } } /// + [UnscopedRef] public ref float* floats { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.floats; + return ref Anonymous.floats; } } diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorEdgeDescription.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorEdgeDescription.cs index f38a5e0a1c..7859f646ee 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorEdgeDescription.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorEdgeDescription.cs @@ -3,6 +3,7 @@ // Ported from um/MLOperatorAuthor.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct MLOperatorEdgeDescription public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ulong reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.reserved, 1)); + return ref Anonymous.reserved; } } /// + [UnscopedRef] public ref MLOperatorTensorDataType tensorDataType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.tensorDataType, 1)); + return ref Anonymous.tensorDataType; } } diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorSchemaEdgeDescription.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorSchemaEdgeDescription.cs index 9d12cab150..8aaeb7f617 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorSchemaEdgeDescription.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorSchemaEdgeDescription.cs @@ -3,6 +3,7 @@ // Ported from um/MLOperatorAuthor.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,32 +23,35 @@ public unsafe partial struct MLOperatorSchemaEdgeDescription public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref void* reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.reserved; + return ref Anonymous.reserved; } } /// + [UnscopedRef] public ref sbyte* typeLabel { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.typeLabel; + return ref Anonymous.typeLabel; } } /// + [UnscopedRef] public ref MLOperatorEdgeDescription edgeDescription { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.edgeDescription, 1)); + return ref Anonymous.edgeDescription; } } diff --git a/sources/Interop/Windows/WinRT/um/PlayToManagerInterop/IPlayToManagerInterop.cs b/sources/Interop/Windows/WinRT/um/PlayToManagerInterop/IPlayToManagerInterop.cs index f1ad1f5410..b11a228440 100644 --- a/sources/Interop/Windows/WinRT/um/PlayToManagerInterop/IPlayToManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/PlayToManagerInterop/IPlayToManagerInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IPlayToManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPlayToManagerInterop : IPlayToManagerInterop.Interface +public unsafe partial struct IPlayToManagerInterop : IPlayToManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPlayToManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/Print3DManagerInterop/IPrinting3DManagerInterop.cs b/sources/Interop/Windows/WinRT/um/Print3DManagerInterop/IPrinting3DManagerInterop.cs index 19a4653176..0e9c5e59ac 100644 --- a/sources/Interop/Windows/WinRT/um/Print3DManagerInterop/IPrinting3DManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/Print3DManagerInterop/IPrinting3DManagerInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("9CA31010-1484-4587-B26B-DDDF9F9CAECD")] [NativeTypeName("struct IPrinting3DManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IPrinting3DManagerInterop : IPrinting3DManagerInterop.Interface +public unsafe partial struct IPrinting3DManagerInterop : IPrinting3DManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrinting3DManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/PrintManagerInterop/IPrintManagerInterop.cs b/sources/Interop/Windows/WinRT/um/PrintManagerInterop/IPrintManagerInterop.cs index 2c37748b9e..706b3b8872 100644 --- a/sources/Interop/Windows/WinRT/um/PrintManagerInterop/IPrintManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/PrintManagerInterop/IPrintManagerInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IPrintManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPrintManagerInterop : IPrintManagerInterop.Interface +public unsafe partial struct IPrintManagerInterop : IPrintManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerConfigurationInterop.cs b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerConfigurationInterop.cs index 78526f88fa..2ae81ed3ef 100644 --- a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerConfigurationInterop.cs +++ b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerConfigurationInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IRadialControllerConfigurationInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IRadialControllerConfigurationInterop : IRadialControllerConfigurationInterop.Interface +public unsafe partial struct IRadialControllerConfigurationInterop : IRadialControllerConfigurationInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRadialControllerConfigurationInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerIndependentInputSourceInterop.cs b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerIndependentInputSourceInterop.cs index 290542813e..21e1bf6e94 100644 --- a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerIndependentInputSourceInterop.cs +++ b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerIndependentInputSourceInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("3D577EFF-4CEE-11E6-B535-001BDC06AB3B")] [NativeTypeName("struct IRadialControllerIndependentInputSourceInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IRadialControllerIndependentInputSourceInterop : IRadialControllerIndependentInputSourceInterop.Interface +public unsafe partial struct IRadialControllerIndependentInputSourceInterop : IRadialControllerIndependentInputSourceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRadialControllerIndependentInputSourceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerInterop.cs b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerInterop.cs index 2ad9b973ea..1768ee0cc2 100644 --- a/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/RadialControllerInterop/IRadialControllerInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IRadialControllerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IRadialControllerInterop : IRadialControllerInterop.Interface +public unsafe partial struct IRadialControllerInterop : IRadialControllerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRadialControllerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RemoteSystemsInterop/ICorrelationVectorInformation.cs b/sources/Interop/Windows/WinRT/um/RemoteSystemsInterop/ICorrelationVectorInformation.cs index 208c29270f..50db6b1422 100644 --- a/sources/Interop/Windows/WinRT/um/RemoteSystemsInterop/ICorrelationVectorInformation.cs +++ b/sources/Interop/Windows/WinRT/um/RemoteSystemsInterop/ICorrelationVectorInformation.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("83C78B3C-D88B-4950-AA6E-22B8D22AABD3")] [NativeTypeName("struct ICorrelationVectorInformation : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ICorrelationVectorInformation : ICorrelationVectorInformation.Interface +public unsafe partial struct ICorrelationVectorInformation : ICorrelationVectorInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICorrelationVectorInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo.cs b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo.cs index a2d0df85e5..70145ddb34 100644 --- a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo.cs +++ b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ILanguageExceptionErrorInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ILanguageExceptionErrorInfo : ILanguageExceptionErrorInfo.Interface +public unsafe partial struct ILanguageExceptionErrorInfo : ILanguageExceptionErrorInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILanguageExceptionErrorInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo2.cs b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo2.cs index ac571fbc73..625425f6ee 100644 --- a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo2.cs +++ b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionErrorInfo2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ILanguageExceptionErrorInfo2 : ILanguageExceptionErrorInfo")] [NativeInheritance("ILanguageExceptionErrorInfo")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ILanguageExceptionErrorInfo2 : ILanguageExceptionErrorInfo2.Interface +public unsafe partial struct ILanguageExceptionErrorInfo2 : ILanguageExceptionErrorInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILanguageExceptionErrorInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionStackBackTrace.cs b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionStackBackTrace.cs index cf5ff07654..b78f61ef67 100644 --- a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionStackBackTrace.cs +++ b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionStackBackTrace.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ILanguageExceptionStackBackTrace : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ILanguageExceptionStackBackTrace : ILanguageExceptionStackBackTrace.Interface +public unsafe partial struct ILanguageExceptionStackBackTrace : ILanguageExceptionStackBackTrace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILanguageExceptionStackBackTrace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionTransform.cs b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionTransform.cs index 1b138c16f2..4350cfca1d 100644 --- a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionTransform.cs +++ b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/ILanguageExceptionTransform.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ILanguageExceptionTransform : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ILanguageExceptionTransform : ILanguageExceptionTransform.Interface +public unsafe partial struct ILanguageExceptionTransform : ILanguageExceptionTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILanguageExceptionTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/IRestrictedErrorInfo.cs b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/IRestrictedErrorInfo.cs index db0199e64b..2e9613c215 100644 --- a/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/IRestrictedErrorInfo.cs +++ b/sources/Interop/Windows/WinRT/um/RestrictedErrorInfo/IRestrictedErrorInfo.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IRestrictedErrorInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IRestrictedErrorInfo : IRestrictedErrorInfo.Interface +public unsafe partial struct IRestrictedErrorInfo : IRestrictedErrorInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRestrictedErrorInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/SpatialInteractionManagerInterop/ISpatialInteractionManagerInterop.cs b/sources/Interop/Windows/WinRT/um/SpatialInteractionManagerInterop/ISpatialInteractionManagerInterop.cs index 3855ec6ee7..64ebb73156 100644 --- a/sources/Interop/Windows/WinRT/um/SpatialInteractionManagerInterop/ISpatialInteractionManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/SpatialInteractionManagerInterop/ISpatialInteractionManagerInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISpatialInteractionManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialInteractionManagerInterop : ISpatialInteractionManagerInterop.Interface +public unsafe partial struct ISpatialInteractionManagerInterop : ISpatialInteractionManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialInteractionManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/SystemMediaTransportControlsInterop/ISystemMediaTransportControlsInterop.cs b/sources/Interop/Windows/WinRT/um/SystemMediaTransportControlsInterop/ISystemMediaTransportControlsInterop.cs index 7fee25222b..87381d2a62 100644 --- a/sources/Interop/Windows/WinRT/um/SystemMediaTransportControlsInterop/ISystemMediaTransportControlsInterop.cs +++ b/sources/Interop/Windows/WinRT/um/SystemMediaTransportControlsInterop/ISystemMediaTransportControlsInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("DDB0472D-C911-4A1F-86D9-DC3D71A95F5A")] [NativeTypeName("struct ISystemMediaTransportControlsInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ISystemMediaTransportControlsInterop : ISystemMediaTransportControlsInterop.Interface +public unsafe partial struct ISystemMediaTransportControlsInterop : ISystemMediaTransportControlsInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISystemMediaTransportControlsInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/UIViewSettingsInterop/IUIViewSettingsInterop.cs b/sources/Interop/Windows/WinRT/um/UIViewSettingsInterop/IUIViewSettingsInterop.cs index f88af05650..894033e9ae 100644 --- a/sources/Interop/Windows/WinRT/um/UIViewSettingsInterop/IUIViewSettingsInterop.cs +++ b/sources/Interop/Windows/WinRT/um/UIViewSettingsInterop/IUIViewSettingsInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("3694DBF9-8F68-44BE-8FF5-195C98EDE8A6")] [NativeTypeName("struct IUIViewSettingsInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IUIViewSettingsInterop : IUIViewSettingsInterop.Interface +public unsafe partial struct IUIViewSettingsInterop : IUIViewSettingsInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIViewSettingsInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/UserConsentVerifierInterop/IUserConsentVerifierInterop.cs b/sources/Interop/Windows/WinRT/um/UserConsentVerifierInterop/IUserConsentVerifierInterop.cs index 0ac54a50f0..9a9b7e83df 100644 --- a/sources/Interop/Windows/WinRT/um/UserConsentVerifierInterop/IUserConsentVerifierInterop.cs +++ b/sources/Interop/Windows/WinRT/um/UserConsentVerifierInterop/IUserConsentVerifierInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("39E050C3-4E74-441A-8DC0-B81104DF949C")] [NativeTypeName("struct IUserConsentVerifierInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IUserConsentVerifierInterop : IUserConsentVerifierInterop.Interface +public unsafe partial struct IUserConsentVerifierInterop : IUserConsentVerifierInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserConsentVerifierInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WebAuthenticationCoreManagerInterop/IWebAuthenticationCoreManagerInterop.cs b/sources/Interop/Windows/WinRT/um/WebAuthenticationCoreManagerInterop/IWebAuthenticationCoreManagerInterop.cs index 0d56dfd846..4b91d5c624 100644 --- a/sources/Interop/Windows/WinRT/um/WebAuthenticationCoreManagerInterop/IWebAuthenticationCoreManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/WebAuthenticationCoreManagerInterop/IWebAuthenticationCoreManagerInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("F4B8E804-811E-4436-B69C-44CB67B72084")] [NativeTypeName("struct IWebAuthenticationCoreManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IWebAuthenticationCoreManagerInterop : IWebAuthenticationCoreManagerInterop.Interface +public unsafe partial struct IWebAuthenticationCoreManagerInterop : IWebAuthenticationCoreManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebAuthenticationCoreManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayDeviceInterop.cs b/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayDeviceInterop.cs index 26c1348021..0958932fca 100644 --- a/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayDeviceInterop.cs +++ b/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayDeviceInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("64338358-366A-471B-BD56-DD8EF48E439B")] [NativeTypeName("struct IDisplayDeviceInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDisplayDeviceInterop : IDisplayDeviceInterop.Interface +public unsafe partial struct IDisplayDeviceInterop : IDisplayDeviceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDisplayDeviceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayPathInterop.cs b/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayPathInterop.cs index 319df49400..b3acc17014 100644 --- a/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayPathInterop.cs +++ b/sources/Interop/Windows/WinRT/um/Windows.Devices.Display.Core.Interop/IDisplayPathInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("A6BA4205-E59E-4E71-B25B-4E436D21EE3D")] [NativeTypeName("struct IDisplayPathInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDisplayPathInterop : IDisplayPathInterop.Interface +public unsafe partial struct IDisplayPathInterop : IDisplayPathInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDisplayPathInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/Windows.Graphics.Capture.Interop/IGraphicsCaptureItemInterop.cs b/sources/Interop/Windows/WinRT/um/Windows.Graphics.Capture.Interop/IGraphicsCaptureItemInterop.cs index 791f7a9c51..2199928dbe 100644 --- a/sources/Interop/Windows/WinRT/um/Windows.Graphics.Capture.Interop/IGraphicsCaptureItemInterop.cs +++ b/sources/Interop/Windows/WinRT/um/Windows.Graphics.Capture.Interop/IGraphicsCaptureItemInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("3628E81B-3CAC-4C60-B7F4-23CE0E0C3356")] [NativeTypeName("struct IGraphicsCaptureItemInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGraphicsCaptureItemInterop : IGraphicsCaptureItemInterop.Interface +public unsafe partial struct IGraphicsCaptureItemInterop : IGraphicsCaptureItemInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphicsCaptureItemInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IOplockBreakingHandler.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IOplockBreakingHandler.cs index 72c14d26ce..6295706c09 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IOplockBreakingHandler.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IOplockBreakingHandler.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IOplockBreakingHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IOplockBreakingHandler : IOplockBreakingHandler.Interface +public unsafe partial struct IOplockBreakingHandler : IOplockBreakingHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOplockBreakingHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IRandomAccessStreamFileAccessMode.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IRandomAccessStreamFileAccessMode.cs index 89849c4edc..a419da56a7 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IRandomAccessStreamFileAccessMode.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IRandomAccessStreamFileAccessMode.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IRandomAccessStreamFileAccessMode : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IRandomAccessStreamFileAccessMode : IRandomAccessStreamFileAccessMode.Interface +public unsafe partial struct IRandomAccessStreamFileAccessMode : IRandomAccessStreamFileAccessMode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRandomAccessStreamFileAccessMode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageFolderHandleAccess.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageFolderHandleAccess.cs index 40497895f8..77dbe623b0 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageFolderHandleAccess.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageFolderHandleAccess.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IStorageFolderHandleAccess : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IStorageFolderHandleAccess : IStorageFolderHandleAccess.Interface +public unsafe partial struct IStorageFolderHandleAccess : IStorageFolderHandleAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageFolderHandleAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageItemHandleAccess.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageItemHandleAccess.cs index 77f121a86c..cfbc96e719 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageItemHandleAccess.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IStorageItemHandleAccess.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IStorageItemHandleAccess : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IStorageItemHandleAccess : IStorageItemHandleAccess.Interface +public unsafe partial struct IStorageItemHandleAccess : IStorageItemHandleAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageItemHandleAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleOplockCallback.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleOplockCallback.cs index 14cb1277f6..ef6840b6f1 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleOplockCallback.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleOplockCallback.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IUnbufferedFileHandleOplockCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IUnbufferedFileHandleOplockCallback : IUnbufferedFileHandleOplockCallback.Interface +public unsafe partial struct IUnbufferedFileHandleOplockCallback : IUnbufferedFileHandleOplockCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnbufferedFileHandleOplockCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleProvider.cs b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleProvider.cs index b2f5ae1a08..d1cf9684cd 100644 --- a/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleProvider.cs +++ b/sources/Interop/Windows/WinRT/um/WindowsStorageCOM/IUnbufferedFileHandleProvider.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IUnbufferedFileHandleProvider : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IUnbufferedFileHandleProvider : IUnbufferedFileHandleProvider.Interface +public unsafe partial struct IUnbufferedFileHandleProvider : IUnbufferedFileHandleProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnbufferedFileHandleProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/accountssettingspaneinterop/IAccountsSettingsPaneInterop.cs b/sources/Interop/Windows/WinRT/um/accountssettingspaneinterop/IAccountsSettingsPaneInterop.cs index 3df687448b..ef0bae407a 100644 --- a/sources/Interop/Windows/WinRT/um/accountssettingspaneinterop/IAccountsSettingsPaneInterop.cs +++ b/sources/Interop/Windows/WinRT/um/accountssettingspaneinterop/IAccountsSettingsPaneInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("D3EE12AD-3865-4362-9746-B75A682DF0E6")] [NativeTypeName("struct IAccountsSettingsPaneInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IAccountsSettingsPaneInterop : IAccountsSettingsPaneInterop.Interface +public unsafe partial struct IAccountsSettingsPaneInterop : IAccountsSettingsPaneInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccountsSettingsPaneInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/appserviceinterop/IAppServiceConnectionExtendedExecution.cs b/sources/Interop/Windows/WinRT/um/appserviceinterop/IAppServiceConnectionExtendedExecution.cs index adf714c93b..5a4f5bab61 100644 --- a/sources/Interop/Windows/WinRT/um/appserviceinterop/IAppServiceConnectionExtendedExecution.cs +++ b/sources/Interop/Windows/WinRT/um/appserviceinterop/IAppServiceConnectionExtendedExecution.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("65219584-F9CB-4AE3-81F9-A28A6CA450D9")] [NativeTypeName("struct IAppServiceConnectionExtendedExecution : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppServiceConnectionExtendedExecution : IAppServiceConnectionExtendedExecution.Interface +public unsafe partial struct IAppServiceConnectionExtendedExecution : IAppServiceConnectionExtendedExecution.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppServiceConnectionExtendedExecution)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/appserviceinterop/ICorrelationVectorSource.cs b/sources/Interop/Windows/WinRT/um/appserviceinterop/ICorrelationVectorSource.cs index 3e0e9f2e99..a2aa4a160d 100644 --- a/sources/Interop/Windows/WinRT/um/appserviceinterop/ICorrelationVectorSource.cs +++ b/sources/Interop/Windows/WinRT/um/appserviceinterop/ICorrelationVectorSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("152B8A3B-B9B9-4685-B56E-974847BC7545")] [NativeTypeName("struct ICorrelationVectorSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICorrelationVectorSource : ICorrelationVectorSource.Interface +public unsafe partial struct ICorrelationVectorSource : ICorrelationVectorSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICorrelationVectorSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/dragdropinterop/IDragDropManagerInterop.cs b/sources/Interop/Windows/WinRT/um/dragdropinterop/IDragDropManagerInterop.cs index b4ac4482ed..a34cd59d9b 100644 --- a/sources/Interop/Windows/WinRT/um/dragdropinterop/IDragDropManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/dragdropinterop/IDragDropManagerInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("5AD8CBA7-4C01-4DAC-9074-827894292D63")] [NativeTypeName("struct IDragDropManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IDragDropManagerInterop : IDragDropManagerInterop.Interface +public unsafe partial struct IDragDropManagerInterop : IDragDropManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDragDropManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop.cs b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop.cs index 26b87209c5..75538cdbab 100644 --- a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IProtectionPolicyManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IProtectionPolicyManagerInterop : IProtectionPolicyManagerInterop.Interface +public unsafe partial struct IProtectionPolicyManagerInterop : IProtectionPolicyManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProtectionPolicyManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop2.cs b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop2.cs index 525ec909bd..1762b01466 100644 --- a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop2.cs +++ b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IProtectionPolicyManagerInterop2 : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IProtectionPolicyManagerInterop2 : IProtectionPolicyManagerInterop2.Interface +public unsafe partial struct IProtectionPolicyManagerInterop2 : IProtectionPolicyManagerInterop2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProtectionPolicyManagerInterop2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop3.cs b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop3.cs index 86a079432d..398e910a0e 100644 --- a/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop3.cs +++ b/sources/Interop/Windows/WinRT/um/efswrtinterop/IProtectionPolicyManagerInterop3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("C1C03933-B398-4D93-B0FD-2972ADF802C2")] [NativeTypeName("struct IProtectionPolicyManagerInterop3 : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IProtectionPolicyManagerInterop3 : IProtectionPolicyManagerInterop3.Interface +public unsafe partial struct IProtectionPolicyManagerInterop3 : IProtectionPolicyManagerInterop3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProtectionPolicyManagerInterop3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/inputpaneinterop/IInputPaneInterop.cs b/sources/Interop/Windows/WinRT/um/inputpaneinterop/IInputPaneInterop.cs index 10c90e9a78..52dcfd3f90 100644 --- a/sources/Interop/Windows/WinRT/um/inputpaneinterop/IInputPaneInterop.cs +++ b/sources/Interop/Windows/WinRT/um/inputpaneinterop/IInputPaneInterop.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IInputPaneInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IInputPaneInterop : IInputPaneInterop.Interface +public unsafe partial struct IInputPaneInterop : IInputPaneInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputPaneInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/remotesystemadditionalinfo/IRemoteSystemAdditionalInfoProvider.cs b/sources/Interop/Windows/WinRT/um/remotesystemadditionalinfo/IRemoteSystemAdditionalInfoProvider.cs index 375cdf7b5f..874de5d5b4 100644 --- a/sources/Interop/Windows/WinRT/um/remotesystemadditionalinfo/IRemoteSystemAdditionalInfoProvider.cs +++ b/sources/Interop/Windows/WinRT/um/remotesystemadditionalinfo/IRemoteSystemAdditionalInfoProvider.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("EEAA3D5F-EC63-4D27-AF38-E86B1D7292CB")] [NativeTypeName("struct IRemoteSystemAdditionalInfoProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRemoteSystemAdditionalInfoProvider : IRemoteSystemAdditionalInfoProvider.Interface +public unsafe partial struct IRemoteSystemAdditionalInfoProvider : IRemoteSystemAdditionalInfoProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRemoteSystemAdditionalInfoProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityInterop.cs b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityInterop.cs index f7a0e080e2..422667e511 100644 --- a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityInterop.cs +++ b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("1ADE314D-0E0A-40D9-824C-9A088A50059F")] [NativeTypeName("struct IUserActivityInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IUserActivityInterop : IUserActivityInterop.Interface +public unsafe partial struct IUserActivityInterop : IUserActivityInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserActivityInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityRequestManagerInterop.cs b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityRequestManagerInterop.cs index 550498f8a7..4c0f3e032f 100644 --- a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityRequestManagerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivityRequestManagerInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("DD69F876-9699-4715-9095-E37EA30DFA1B")] [NativeTypeName("struct IUserActivityRequestManagerInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IUserActivityRequestManagerInterop : IUserActivityRequestManagerInterop.Interface +public unsafe partial struct IUserActivityRequestManagerInterop : IUserActivityRequestManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserActivityRequestManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivitySourceHostInterop.cs b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivitySourceHostInterop.cs index f0ce63dc45..c6836ae5a5 100644 --- a/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivitySourceHostInterop.cs +++ b/sources/Interop/Windows/WinRT/um/useractivityinterop/IUserActivitySourceHostInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("C15DF8BC-8844-487A-B85B-7578E0F61419")] [NativeTypeName("struct IUserActivitySourceHostInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IUserActivitySourceHostInterop : IUserActivitySourceHostInterop.Interface +public unsafe partial struct IUserActivitySourceHostInterop : IUserActivitySourceHostInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserActivitySourceHostInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelDeviceFactoryNative.cs b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelDeviceFactoryNative.cs index cee66ce6af..31d2404d4b 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelDeviceFactoryNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelDeviceFactoryNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.WinRT; [Guid("1E9B31A1-662E-4AE0-AF67-F63BB337E634")] [NativeTypeName("struct ILearningModelDeviceFactoryNative : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILearningModelDeviceFactoryNative : ILearningModelDeviceFactoryNative.Interface +public unsafe partial struct ILearningModelDeviceFactoryNative : ILearningModelDeviceFactoryNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILearningModelDeviceFactoryNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelOperatorProviderNative.cs b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelOperatorProviderNative.cs index 74331e2c10..25fb162052 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelOperatorProviderNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelOperatorProviderNative.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("1ADAA23A-EB67-41F3-AAD8-5D984E9BACD4")] [NativeTypeName("struct ILearningModelOperatorProviderNative : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILearningModelOperatorProviderNative : ILearningModelOperatorProviderNative.Interface +public unsafe partial struct ILearningModelOperatorProviderNative : ILearningModelOperatorProviderNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILearningModelOperatorProviderNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelSessionOptionsNative.cs b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelSessionOptionsNative.cs index 73b136463e..2713a6dc6b 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelSessionOptionsNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ILearningModelSessionOptionsNative.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("C71E953F-37B4-4564-8658-D8396866DB0D")] [NativeTypeName("struct ILearningModelSessionOptionsNative : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILearningModelSessionOptionsNative : ILearningModelSessionOptionsNative.Interface +public unsafe partial struct ILearningModelSessionOptionsNative : ILearningModelSessionOptionsNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILearningModelSessionOptionsNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorNative.cs b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorNative.cs index 274cf9b9d2..65ac04a608 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.WinRT; [Guid("52F547EF-5B03-49B5-82D6-565F1EE0DD49")] [NativeTypeName("struct ITensorNative : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITensorNative : ITensorNative.Interface +public unsafe partial struct ITensorNative : ITensorNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITensorNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorStaticsNative.cs b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorStaticsNative.cs index e76706628a..b3c12fa52b 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorStaticsNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ai.machinelearning.native/ITensorStaticsNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.WinRT; [Guid("39D055A4-66F6-4EBC-95D9-7A29EBE7690A")] [NativeTypeName("struct ITensorStaticsNative : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITensorStaticsNative : ITensorStaticsNative.Interface +public unsafe partial struct ITensorStaticsNative : ITensorStaticsNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITensorStaticsNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.data.pdf.interop/IPdfRendererNative.cs b/sources/Interop/Windows/WinRT/um/windows.data.pdf.interop/IPdfRendererNative.cs index b5578e5fcc..871fef3e40 100644 --- a/sources/Interop/Windows/WinRT/um/windows.data.pdf.interop/IPdfRendererNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.data.pdf.interop/IPdfRendererNative.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IPdfRendererNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IPdfRendererNative : IPdfRendererNative.Interface +public unsafe partial struct IPdfRendererNative : IPdfRendererNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPdfRendererNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs index 0f3dabeb15..3d2d9931b0 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("A9B3D012-3DF2-4EE3-B8D1-8695F457D3C1")] [NativeTypeName("struct IDirect3DDxgiInterfaceAccess : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirect3DDxgiInterfaceAccess : IDirect3DDxgiInterfaceAccess.Interface +public unsafe partial struct IDirect3DDxgiInterfaceAccess : IDirect3DDxgiInterfaceAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirect3DDxgiInterfaceAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraInterop.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraInterop.cs index 14f6995cdd..b57ef40309 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraInterop.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraInterop.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IHolographicCameraInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IHolographicCameraInterop : IHolographicCameraInterop.Interface +public unsafe partial struct IHolographicCameraInterop : IHolographicCameraInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHolographicCameraInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraRenderingParametersInterop.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraRenderingParametersInterop.cs index 7e852b041c..ff6b76ebc8 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraRenderingParametersInterop.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicCameraRenderingParametersInterop.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IHolographicCameraRenderingParametersInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IHolographicCameraRenderingParametersInterop : IHolographicCameraRenderingParametersInterop.Interface +public unsafe partial struct IHolographicCameraRenderingParametersInterop : IHolographicCameraRenderingParametersInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHolographicCameraRenderingParametersInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerInterop.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerInterop.cs index feb18193e3..f8c83ab5d5 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerInterop.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerInterop.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IHolographicQuadLayerInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IHolographicQuadLayerInterop : IHolographicQuadLayerInterop.Interface +public unsafe partial struct IHolographicQuadLayerInterop : IHolographicQuadLayerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHolographicQuadLayerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerUpdateParametersInterop.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerUpdateParametersInterop.cs index 0e2c72f923..3f854f2e7e 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerUpdateParametersInterop.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.holographic.interop/IHolographicQuadLayerUpdateParametersInterop.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IHolographicQuadLayerUpdateParametersInterop : IInspectable")] [NativeInheritance("IInspectable")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IHolographicQuadLayerUpdateParametersInterop : IHolographicQuadLayerUpdateParametersInterop.Interface +public unsafe partial struct IHolographicQuadLayerUpdateParametersInterop : IHolographicQuadLayerUpdateParametersInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHolographicQuadLayerUpdateParametersInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNative.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNative.cs index 516236fe25..970d1eecca 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNative.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("94BC8415-04EA-4B2E-AF13-4DE95AA898EB")] [NativeTypeName("struct ISoftwareBitmapNative : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ISoftwareBitmapNative : ISoftwareBitmapNative.Interface +public unsafe partial struct ISoftwareBitmapNative : ISoftwareBitmapNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISoftwareBitmapNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNativeFactory.cs b/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNativeFactory.cs index 67e8f3e0d9..f6158781f4 100644 --- a/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNativeFactory.cs +++ b/sources/Interop/Windows/WinRT/um/windows.graphics.imaging.interop/ISoftwareBitmapNativeFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("C3C181EC-2914-4791-AF02-02D224A10B43")] [NativeTypeName("struct ISoftwareBitmapNativeFactory : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ISoftwareBitmapNativeFactory : ISoftwareBitmapNativeFactory.Interface +public unsafe partial struct ISoftwareBitmapNativeFactory : ISoftwareBitmapNativeFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISoftwareBitmapNativeFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNative.cs b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNative.cs index d02677315b..4875e136dc 100644 --- a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNative.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("20BE1E2E-930F-4746-9335-3C332F255093")] [NativeTypeName("struct IAudioFrameNative : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IAudioFrameNative : IAudioFrameNative.Interface +public unsafe partial struct IAudioFrameNative : IAudioFrameNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioFrameNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNativeFactory.cs b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNativeFactory.cs index 5723fcaa78..c0a0004ed8 100644 --- a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNativeFactory.cs +++ b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IAudioFrameNativeFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("7BD67CF8-BF7D-43E6-AF8D-B170EE0C0110")] [NativeTypeName("struct IAudioFrameNativeFactory : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IAudioFrameNativeFactory : IAudioFrameNativeFactory.Interface +public unsafe partial struct IAudioFrameNativeFactory : IAudioFrameNativeFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioFrameNativeFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNative.cs b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNative.cs index b5950b01e3..5ef291bc02 100644 --- a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNative.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("26BA702B-314A-4620-AAF6-7A51AA58FA18")] [NativeTypeName("struct IVideoFrameNative : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IVideoFrameNative : IVideoFrameNative.Interface +public unsafe partial struct IVideoFrameNative : IVideoFrameNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVideoFrameNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNativeFactory.cs b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNativeFactory.cs index 600dc156d5..cd0cfa6142 100644 --- a/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNativeFactory.cs +++ b/sources/Interop/Windows/WinRT/um/windows.media.core.interop/IVideoFrameNativeFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("69E3693E-8E1E-4E63-AC4C-7FDC21D9731D")] [NativeTypeName("struct IVideoFrameNativeFactory : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IVideoFrameNativeFactory : IVideoFrameNativeFactory.Interface +public unsafe partial struct IVideoFrameNativeFactory : IVideoFrameNativeFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVideoFrameNativeFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative.cs index 2f3623eace..a15815b45f 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IDesktopWindowXamlSourceNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct IDesktopWindowXamlSourceNative : IDesktopWindowXamlSourceNative.Interface +public unsafe partial struct IDesktopWindowXamlSourceNative : IDesktopWindowXamlSourceNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDesktopWindowXamlSourceNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative2.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative2.cs index 511ee38942..4987e1d0e7 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative2.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.hosting.desktopwindowxamlsource/IDesktopWindowXamlSourceNative2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IDesktopWindowXamlSourceNative2 : IDesktopWindowXamlSourceNative")] [NativeInheritance("IDesktopWindowXamlSourceNative")] [SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct IDesktopWindowXamlSourceNative2 : IDesktopWindowXamlSourceNative2.Interface +public unsafe partial struct IDesktopWindowXamlSourceNative2 : IDesktopWindowXamlSourceNative2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDesktopWindowXamlSourceNative2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceManagerNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceManagerNative.cs index 05ce7103c5..56c72f3b0b 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceManagerNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceManagerNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISurfaceImageSourceManagerNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISurfaceImageSourceManagerNative : ISurfaceImageSourceManagerNative.Interface +public unsafe partial struct ISurfaceImageSourceManagerNative : ISurfaceImageSourceManagerNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurfaceImageSourceManagerNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNative.cs index c6e25c0c63..dc6e4f4093 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNative.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISurfaceImageSourceNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISurfaceImageSourceNative : ISurfaceImageSourceNative.Interface +public unsafe partial struct ISurfaceImageSourceNative : ISurfaceImageSourceNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurfaceImageSourceNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNativeWithD2D.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNativeWithD2D.cs index ae4cc15afa..3d81b55a07 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNativeWithD2D.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISurfaceImageSourceNativeWithD2D.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISurfaceImageSourceNativeWithD2D : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISurfaceImageSourceNativeWithD2D : ISurfaceImageSourceNativeWithD2D.Interface +public unsafe partial struct ISurfaceImageSourceNativeWithD2D : ISurfaceImageSourceNativeWithD2D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurfaceImageSourceNativeWithD2D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainBackgroundPanelNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainBackgroundPanelNative.cs index 29007ff684..fe61fc7d56 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainBackgroundPanelNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainBackgroundPanelNative.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISwapChainBackgroundPanelNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISwapChainBackgroundPanelNative : ISwapChainBackgroundPanelNative.Interface +public unsafe partial struct ISwapChainBackgroundPanelNative : ISwapChainBackgroundPanelNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISwapChainBackgroundPanelNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative.cs index 3b5eaaf9c2..23e4e7c623 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISwapChainPanelNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISwapChainPanelNative : ISwapChainPanelNative.Interface +public unsafe partial struct ISwapChainPanelNative : ISwapChainPanelNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISwapChainPanelNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative2.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative2.cs index 0e17ec1140..d1f94c78ae 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative2.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/ISwapChainPanelNative2.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct ISwapChainPanelNative2 : ISwapChainPanelNative")] [NativeInheritance("ISwapChainPanelNative")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ISwapChainPanelNative2 : ISwapChainPanelNative2.Interface +public unsafe partial struct ISwapChainPanelNative2 : ISwapChainPanelNative2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISwapChainPanelNative2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceImageSourceNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceImageSourceNative.cs index b28dbb1c4e..48e5b5101b 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceImageSourceNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceImageSourceNative.cs @@ -9,6 +9,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -17,8 +18,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVirtualSurfaceImageSourceNative : ISurfaceImageSourceNative")] [NativeInheritance("ISurfaceImageSourceNative")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IVirtualSurfaceImageSourceNative : IVirtualSurfaceImageSourceNative.Interface +public unsafe partial struct IVirtualSurfaceImageSourceNative : IVirtualSurfaceImageSourceNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVirtualSurfaceImageSourceNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceUpdatesCallbackNative.cs b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceUpdatesCallbackNative.cs index 447b7085ec..0b49bd4f69 100644 --- a/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceUpdatesCallbackNative.cs +++ b/sources/Interop/Windows/WinRT/um/windows.ui.xaml.media.dxinterop/IVirtualSurfaceUpdatesCallbackNative.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVirtualSurfaceUpdatesCallbackNative : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IVirtualSurfaceUpdatesCallbackNative : IVirtualSurfaceUpdatesCallbackNative.Interface +public unsafe partial struct IVirtualSurfaceUpdatesCallbackNative : IVirtualSurfaceUpdatesCallbackNative.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVirtualSurfaceUpdatesCallbackNative)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IBitmapData.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IBitmapData.cs index 558a5e0c09..67ebe26d8b 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IBitmapData.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IBitmapData.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IBitmapData : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IBitmapData : IBitmapData.Interface +public unsafe partial struct IBitmapData : IBitmapData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBitmapData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService.cs index 09df3585e8..f9ff792df1 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVisualTreeService : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IVisualTreeService : IVisualTreeService.Interface +public unsafe partial struct IVisualTreeService : IVisualTreeService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualTreeService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService2.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService2.cs index e2c6c748e5..04d883b06b 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService2.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVisualTreeService2 : IVisualTreeService")] [NativeInheritance("IVisualTreeService")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IVisualTreeService2 : IVisualTreeService2.Interface +public unsafe partial struct IVisualTreeService2 : IVisualTreeService2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualTreeService2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService3.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService3.cs index 2c580c834a..914c61a8f2 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService3.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeService3.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVisualTreeService3 : IVisualTreeService2")] [NativeInheritance("IVisualTreeService2")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IVisualTreeService3 : IVisualTreeService3.Interface +public unsafe partial struct IVisualTreeService3 : IVisualTreeService3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualTreeService3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback.cs index 77cefa2a7f..270cad9b68 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVisualTreeServiceCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IVisualTreeServiceCallback : IVisualTreeServiceCallback.Interface +public unsafe partial struct IVisualTreeServiceCallback : IVisualTreeServiceCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualTreeServiceCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback2.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback2.cs index 4070b40829..0c4c184fc8 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback2.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IVisualTreeServiceCallback2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IVisualTreeServiceCallback2 : IVisualTreeServiceCallback")] [NativeInheritance("IVisualTreeServiceCallback")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IVisualTreeServiceCallback2 : IVisualTreeServiceCallback2.Interface +public unsafe partial struct IVisualTreeServiceCallback2 : IVisualTreeServiceCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualTreeServiceCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/um/xamlOM/IXamlDiagnostics.cs b/sources/Interop/Windows/WinRT/um/xamlOM/IXamlDiagnostics.cs index f96a5d1fcd..5ea44c74b8 100644 --- a/sources/Interop/Windows/WinRT/um/xamlOM/IXamlDiagnostics.cs +++ b/sources/Interop/Windows/WinRT/um/xamlOM/IXamlDiagnostics.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.WinRT; [NativeTypeName("struct IXamlDiagnostics : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IXamlDiagnostics : IXamlDiagnostics.Interface +public unsafe partial struct IXamlDiagnostics : IXamlDiagnostics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXamlDiagnostics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreInputInterop.cs b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreInputInterop.cs index 608a685135..9bb8ddedcd 100644 --- a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreInputInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreInputInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("40BFE3E3-B75A-4479-AC96-475365749BB8")] [NativeTypeName("struct ICoreInputInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICoreInputInterop : ICoreInputInterop.Interface +public unsafe partial struct ICoreInputInterop : ICoreInputInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoreInputInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowAdapterInterop.cs b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowAdapterInterop.cs index 82ef8710d4..783fb91911 100644 --- a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowAdapterInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowAdapterInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("7A5B6FD1-CD73-4B6C-9CF4-2E869EAF470A")] [NativeTypeName("struct ICoreWindowAdapterInterop : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ICoreWindowAdapterInterop : ICoreWindowAdapterInterop.Interface +public unsafe partial struct ICoreWindowAdapterInterop : ICoreWindowAdapterInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoreWindowAdapterInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowComponentInterop.cs b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowComponentInterop.cs index d60dcb9a5b..c8eab2c9e9 100644 --- a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowComponentInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowComponentInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("0576AB31-A310-4C40-BA31-FD37E0298DFA")] [NativeTypeName("struct ICoreWindowComponentInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICoreWindowComponentInterop : ICoreWindowComponentInterop.Interface +public unsafe partial struct ICoreWindowComponentInterop : ICoreWindowComponentInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoreWindowComponentInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowInterop.cs b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowInterop.cs index 15b827f95c..865f5bb9d0 100644 --- a/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/CoreWindow/ICoreWindowInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("45D64A29-A63E-4CB6-B498-5781D298CB4F")] [NativeTypeName("struct ICoreWindowInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICoreWindowInterop : ICoreWindowInterop.Interface +public unsafe partial struct ICoreWindowInterop : ICoreWindowInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoreWindowInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintDocumentPageSource.cs b/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintDocumentPageSource.cs index 643702e012..23a63bb5f8 100644 --- a/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintDocumentPageSource.cs +++ b/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintDocumentPageSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("A96BB1DB-172E-4667-82B5-AD97A252318F")] [NativeTypeName("struct IPrintDocumentPageSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPrintDocumentPageSource : IPrintDocumentPageSource.Interface +public unsafe partial struct IPrintDocumentPageSource : IPrintDocumentPageSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintDocumentPageSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintPreviewPageCollection.cs b/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintPreviewPageCollection.cs index bfa63b73de..26e25e4ac9 100644 --- a/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintPreviewPageCollection.cs +++ b/sources/Interop/Windows/WinRT/winrt/DocumentSource/IPrintPreviewPageCollection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("0B31CC62-D7EC-4747-9D6E-F2537D870F2B")] [NativeTypeName("struct IPrintPreviewPageCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPrintPreviewPageCollection : IPrintPreviewPageCollection.Interface +public unsafe partial struct IPrintPreviewPageCollection : IPrintPreviewPageCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintPreviewPageCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/MemoryBuffer/IMemoryBufferByteAccess.cs b/sources/Interop/Windows/WinRT/winrt/MemoryBuffer/IMemoryBufferByteAccess.cs index 0dc9f69767..af819b416a 100644 --- a/sources/Interop/Windows/WinRT/winrt/MemoryBuffer/IMemoryBufferByteAccess.cs +++ b/sources/Interop/Windows/WinRT/winrt/MemoryBuffer/IMemoryBufferByteAccess.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("5B0D3235-4DBA-4D44-865E-8F1D0E4FD04D")] [NativeTypeName("struct IMemoryBufferByteAccess : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMemoryBufferByteAccess : IMemoryBufferByteAccess.Interface +public unsafe partial struct IMemoryBufferByteAccess : IMemoryBufferByteAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMemoryBufferByteAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReference.cs b/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReference.cs index fef4ac38ea..d220778b1d 100644 --- a/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReference.cs +++ b/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReference.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("00000037-0000-0000-C000-000000000046")] [NativeTypeName("struct IWeakReference : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWeakReference : IWeakReference.Interface +public unsafe partial struct IWeakReference : IWeakReference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWeakReference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReferenceSource.cs b/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReferenceSource.cs index f92fffc19f..2358857033 100644 --- a/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReferenceSource.cs +++ b/sources/Interop/Windows/WinRT/winrt/WeakReference/IWeakReferenceSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("00000038-0000-0000-C000-000000000046")] [NativeTypeName("struct IWeakReferenceSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWeakReferenceSource : IWeakReferenceSource.Interface +public unsafe partial struct IWeakReferenceSource : IWeakReferenceSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWeakReferenceSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/activation/IActivationFactory.cs b/sources/Interop/Windows/WinRT/winrt/activation/IActivationFactory.cs index 4a0d7dccb5..91107d4b55 100644 --- a/sources/Interop/Windows/WinRT/winrt/activation/IActivationFactory.cs +++ b/sources/Interop/Windows/WinRT/winrt/activation/IActivationFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("00000035-0000-0000-C000-000000000046")] [NativeTypeName("struct IActivationFactory : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IActivationFactory : IActivationFactory.Interface +public unsafe partial struct IActivationFactory : IActivationFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActivationFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/asyncinfo/IAsyncInfo.cs b/sources/Interop/Windows/WinRT/winrt/asyncinfo/IAsyncInfo.cs index d52dac1f3f..32ff55170d 100644 --- a/sources/Interop/Windows/WinRT/winrt/asyncinfo/IAsyncInfo.cs +++ b/sources/Interop/Windows/WinRT/winrt/asyncinfo/IAsyncInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("00000036-0000-0000-C000-000000000046")] [NativeTypeName("struct IAsyncInfo : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IAsyncInfo : IAsyncInfo.Interface +public unsafe partial struct IAsyncInfo : IAsyncInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAsyncInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/inspectable/IInspectable.cs b/sources/Interop/Windows/WinRT/winrt/inspectable/IInspectable.cs index 76a0015144..44a4385e9b 100644 --- a/sources/Interop/Windows/WinRT/winrt/inspectable/IInspectable.cs +++ b/sources/Interop/Windows/WinRT/winrt/inspectable/IInspectable.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90")] [NativeTypeName("struct IInspectable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInspectable : IInspectable.Interface +public unsafe partial struct IInspectable : IInspectable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInspectable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/ivectorchangedeventargs/IVectorChangedEventArgs.cs b/sources/Interop/Windows/WinRT/winrt/ivectorchangedeventargs/IVectorChangedEventArgs.cs index c600190266..fc5d4f3048 100644 --- a/sources/Interop/Windows/WinRT/winrt/ivectorchangedeventargs/IVectorChangedEventArgs.cs +++ b/sources/Interop/Windows/WinRT/winrt/ivectorchangedeventargs/IVectorChangedEventArgs.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("575933DF-34FE-4480-AF15-07691F3D5D9B")] [NativeTypeName("struct IVectorChangedEventArgs : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct IVectorChangedEventArgs : IVectorChangedEventArgs.Interface +public unsafe partial struct IVectorChangedEventArgs : IVectorChangedEventArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVectorChangedEventArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/robuffer/IBufferByteAccess.cs b/sources/Interop/Windows/WinRT/winrt/robuffer/IBufferByteAccess.cs index e9243756d8..9e0a5a22fd 100644 --- a/sources/Interop/Windows/WinRT/winrt/robuffer/IBufferByteAccess.cs +++ b/sources/Interop/Windows/WinRT/winrt/robuffer/IBufferByteAccess.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("905A0FEF-BC53-11DF-8C49-001E4FC686DA")] [NativeTypeName("struct IBufferByteAccess : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBufferByteAccess : IBufferByteAccess.Interface +public unsafe partial struct IBufferByteAccess : IBufferByteAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBufferByteAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.graphics.effects.interop/IGraphicsEffectD2D1Interop.cs b/sources/Interop/Windows/WinRT/winrt/windows.graphics.effects.interop/IGraphicsEffectD2D1Interop.cs index 280b28fbd5..7c5911c860 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.graphics.effects.interop/IGraphicsEffectD2D1Interop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.graphics.effects.interop/IGraphicsEffectD2D1Interop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("2FC57384-A068-44D7-A331-30982FCF7177")] [NativeTypeName("struct IGraphicsEffectD2D1Interop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGraphicsEffectD2D1Interop : IGraphicsEffectD2D1Interop.Interface +public unsafe partial struct IGraphicsEffectD2D1Interop : IGraphicsEffectD2D1Interop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphicsEffectD2D1Interop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionCapabilitiesInteropFactory.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionCapabilitiesInteropFactory.cs index a25c862051..555d4976be 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionCapabilitiesInteropFactory.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionCapabilitiesInteropFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("2C9DB356-E70D-4642-8298-BC4AA5B4865C")] [NativeTypeName("struct ICompositionCapabilitiesInteropFactory : IInspectable")] [NativeInheritance("IInspectable")] -public unsafe partial struct ICompositionCapabilitiesInteropFactory : ICompositionCapabilitiesInteropFactory.Interface +public unsafe partial struct ICompositionCapabilitiesInteropFactory : ICompositionCapabilitiesInteropFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositionCapabilitiesInteropFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop.cs index c3f2d0da60..107fcac85f 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("FD04E6E3-FE0C-4C3C-AB19-A07601A576EE")] [NativeTypeName("struct ICompositionDrawingSurfaceInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICompositionDrawingSurfaceInterop : ICompositionDrawingSurfaceInterop.Interface +public unsafe partial struct ICompositionDrawingSurfaceInterop : ICompositionDrawingSurfaceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositionDrawingSurfaceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop2.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop2.cs index 041ef9abac..c4087598d2 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop2.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionDrawingSurfaceInterop2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("41E64AAE-98C0-4239-8E95-A330DD6AA18B")] [NativeTypeName("struct ICompositionDrawingSurfaceInterop2 : ICompositionDrawingSurfaceInterop")] [NativeInheritance("ICompositionDrawingSurfaceInterop")] -public unsafe partial struct ICompositionDrawingSurfaceInterop2 : ICompositionDrawingSurfaceInterop2.Interface +public unsafe partial struct ICompositionDrawingSurfaceInterop2 : ICompositionDrawingSurfaceInterop2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositionDrawingSurfaceInterop2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionGraphicsDeviceInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionGraphicsDeviceInterop.cs index 8fb479c1d2..b095cce196 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionGraphicsDeviceInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositionGraphicsDeviceInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("A116FF71-F8BF-4C8A-9C98-70779A32A9C8")] [NativeTypeName("struct ICompositionGraphicsDeviceInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICompositionGraphicsDeviceInterop : ICompositionGraphicsDeviceInterop.Interface +public unsafe partial struct ICompositionGraphicsDeviceInterop : ICompositionGraphicsDeviceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositionGraphicsDeviceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorDesktopInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorDesktopInterop.cs index b4a1acd7dc..5a30b3fd0c 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorDesktopInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorDesktopInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("29E691FA-4567-4DCA-B319-D0F207EB6807")] [NativeTypeName("struct ICompositorDesktopInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICompositorDesktopInterop : ICompositorDesktopInterop.Interface +public unsafe partial struct ICompositorDesktopInterop : ICompositorDesktopInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositorDesktopInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorInterop.cs index b30ef6c55e..5eb3b13f87 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ICompositorInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("25297D5C-3AD4-4C9C-B5CF-E36A38512330")] [NativeTypeName("struct ICompositorInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICompositorInterop : ICompositorInterop.Interface +public unsafe partial struct ICompositorInterop : ICompositorInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICompositorInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IDesktopWindowTargetInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IDesktopWindowTargetInterop.cs index adb628cb18..902cc5bf38 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IDesktopWindowTargetInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IDesktopWindowTargetInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("35DBF59E-E3F9-45B0-81E7-FE75F4145DC9")] [NativeTypeName("struct IDesktopWindowTargetInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDesktopWindowTargetInterop : IDesktopWindowTargetInterop.Interface +public unsafe partial struct IDesktopWindowTargetInterop : IDesktopWindowTargetInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDesktopWindowTargetInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ISwapChainInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ISwapChainInterop.cs index 3438c68e31..7028222279 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ISwapChainInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/ISwapChainInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("26F496A0-7F38-45FB-88F7-FAAABE67DD59")] [NativeTypeName("struct ISwapChainInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISwapChainInterop : ISwapChainInterop.Interface +public unsafe partial struct ISwapChainInterop : ISwapChainInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISwapChainInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IVisualInteractionSourceInterop.cs b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IVisualInteractionSourceInterop.cs index 909d5c2af6..99880942c7 100644 --- a/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IVisualInteractionSourceInterop.cs +++ b/sources/Interop/Windows/WinRT/winrt/windows.ui.composition.interop/IVisualInteractionSourceInterop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.WinRT; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.WinRT; [Guid("11F62CD1-2F9D-42D3-B05F-D6790D9E9F8E")] [NativeTypeName("struct IVisualInteractionSourceInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVisualInteractionSourceInterop : IVisualInteractionSourceInterop.Interface +public unsafe partial struct IVisualInteractionSourceInterop : IVisualInteractionSourceInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualInteractionSourceInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaAddressMap.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaAddressMap.cs index 5bc66ac74b..a344f599c6 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaAddressMap.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaAddressMap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B62A2E7A-067A-4EA3-B598-04C09717502C")] [NativeTypeName("struct IDiaAddressMap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaAddressMap : IDiaAddressMap.Interface +public unsafe partial struct IDiaAddressMap : IDiaAddressMap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaAddressMap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaDataSource.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaDataSource.cs index 3a6129b7c4..acf85f7f64 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaDataSource.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaDataSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79F1BB5F-B66E-48E5-B6A9-1545C323CA3D")] [NativeTypeName("struct IDiaDataSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaDataSource : IDiaDataSource.Interface +public unsafe partial struct IDiaDataSource : IDiaDataSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaDataSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreamData.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreamData.cs index ec88823e64..5968ddc084 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreamData.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreamData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("486943E8-D187-4A6B-A3C4-291259FFF60D")] [NativeTypeName("struct IDiaEnumDebugStreamData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumDebugStreamData : IDiaEnumDebugStreamData.Interface +public unsafe partial struct IDiaEnumDebugStreamData : IDiaEnumDebugStreamData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumDebugStreamData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreams.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreams.cs index d109a0db45..af3a30ff81 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreams.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumDebugStreams.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08CBB41E-47A6-4F87-92F1-1C9C87CED044")] [NativeTypeName("struct IDiaEnumDebugStreams : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumDebugStreams : IDiaEnumDebugStreams.Interface +public unsafe partial struct IDiaEnumDebugStreams : IDiaEnumDebugStreams.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumDebugStreams)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumFrameData.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumFrameData.cs index 75f8c97e0f..ed6631df4f 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumFrameData.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumFrameData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9FC77A4B-3C1C-44ED-A798-6C1DEEA53E1F")] [NativeTypeName("struct IDiaEnumFrameData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumFrameData : IDiaEnumFrameData.Interface +public unsafe partial struct IDiaEnumFrameData : IDiaEnumFrameData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumFrameData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInjectedSources.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInjectedSources.cs index 88170e0f16..dc48cc5a55 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInjectedSources.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInjectedSources.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D5612573-6925-4468-8883-98CDEC8C384A")] [NativeTypeName("struct IDiaEnumInjectedSources : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumInjectedSources : IDiaEnumInjectedSources.Interface +public unsafe partial struct IDiaEnumInjectedSources : IDiaEnumInjectedSources.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumInjectedSources)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInputAssemblyFiles.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInputAssemblyFiles.cs index 57119ef56a..9dfa064c50 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInputAssemblyFiles.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumInputAssemblyFiles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C7FF653-51F7-457E-8419-B20F57EF7E4D")] [NativeTypeName("struct IDiaEnumInputAssemblyFiles : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumInputAssemblyFiles : IDiaEnumInputAssemblyFiles.Interface +public unsafe partial struct IDiaEnumInputAssemblyFiles : IDiaEnumInputAssemblyFiles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumInputAssemblyFiles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumLineNumbers.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumLineNumbers.cs index 073bb8e99e..816e1f9d11 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumLineNumbers.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumLineNumbers.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FE30E878-54AC-44F1-81BA-39DE940F6052")] [NativeTypeName("struct IDiaEnumLineNumbers : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumLineNumbers : IDiaEnumLineNumbers.Interface +public unsafe partial struct IDiaEnumLineNumbers : IDiaEnumLineNumbers.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumLineNumbers)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSectionContribs.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSectionContribs.cs index 929b3050f6..1f72cd467f 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSectionContribs.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSectionContribs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1994DEB2-2C82-4B1D-A57F-AFF424D54A68")] [NativeTypeName("struct IDiaEnumSectionContribs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumSectionContribs : IDiaEnumSectionContribs.Interface +public unsafe partial struct IDiaEnumSectionContribs : IDiaEnumSectionContribs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSectionContribs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSegments.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSegments.cs index 1433031b92..3c7f0c03b6 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSegments.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSegments.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E8368CA9-01D1-419D-AC0C-E31235DBDA9F")] [NativeTypeName("struct IDiaEnumSegments : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumSegments : IDiaEnumSegments.Interface +public unsafe partial struct IDiaEnumSegments : IDiaEnumSegments.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSegments)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSourceFiles.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSourceFiles.cs index 75c0910697..f07b87d817 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSourceFiles.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSourceFiles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("10F3DBD9-664F-4469-B808-9471C7A50538")] [NativeTypeName("struct IDiaEnumSourceFiles : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumSourceFiles : IDiaEnumSourceFiles.Interface +public unsafe partial struct IDiaEnumSourceFiles : IDiaEnumSourceFiles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSourceFiles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumStackFrames.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumStackFrames.cs index cb4de12d35..a1b32529ae 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumStackFrames.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumStackFrames.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EC9D461D-CE74-4711-A020-7D8F9A1DD255")] [NativeTypeName("struct IDiaEnumStackFrames : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumStackFrames : IDiaEnumStackFrames.Interface +public unsafe partial struct IDiaEnumStackFrames : IDiaEnumStackFrames.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumStackFrames)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbols.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbols.cs index 5ae4c756b6..854e7ac6d6 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbols.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbols.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CAB72C48-443B-48F5-9B0B-42F0820AB29A")] [NativeTypeName("struct IDiaEnumSymbols : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumSymbols : IDiaEnumSymbols.Interface +public unsafe partial struct IDiaEnumSymbols : IDiaEnumSymbols.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSymbols)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr.cs index abec6dd293..aa3c43ea39 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("624B7D9C-24EA-4421-9D06-3B577471C1FA")] [NativeTypeName("struct IDiaEnumSymbolsByAddr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumSymbolsByAddr : IDiaEnumSymbolsByAddr.Interface +public unsafe partial struct IDiaEnumSymbolsByAddr : IDiaEnumSymbolsByAddr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSymbolsByAddr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr2.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr2.cs index a004bb59d7..fb82249f06 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr2.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumSymbolsByAddr2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1E45BD02-BE45-4D71-BA32-0E576CFCD59F")] [NativeTypeName("struct IDiaEnumSymbolsByAddr2 : IDiaEnumSymbolsByAddr")] [NativeInheritance("IDiaEnumSymbolsByAddr")] -public unsafe partial struct IDiaEnumSymbolsByAddr2 : IDiaEnumSymbolsByAddr2.Interface +public unsafe partial struct IDiaEnumSymbolsByAddr2 : IDiaEnumSymbolsByAddr2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumSymbolsByAddr2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumTables.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumTables.cs index 09df8afc9e..e07c3dfa80 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaEnumTables.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaEnumTables.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C65C2B0A-1150-4D7A-AFCC-E05BF3DEE81E")] [NativeTypeName("struct IDiaEnumTables : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaEnumTables : IDiaEnumTables.Interface +public unsafe partial struct IDiaEnumTables : IDiaEnumTables.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaEnumTables)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaFrameData.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaFrameData.cs index fc7169018d..1375a6f6f6 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaFrameData.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaFrameData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A39184B7-6A36-42DE-8EEC-7DF9F3F59F33")] [NativeTypeName("struct IDiaFrameData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaFrameData : IDiaFrameData.Interface +public unsafe partial struct IDiaFrameData : IDiaFrameData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaFrameData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaImageData.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaImageData.cs index 8dda4dac06..da81ab30bd 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaImageData.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaImageData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C8E40ED2-A1D9-4221-8692-3CE661184B44")] [NativeTypeName("struct IDiaImageData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaImageData : IDiaImageData.Interface +public unsafe partial struct IDiaImageData : IDiaImageData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaImageData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaInjectedSource.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaInjectedSource.cs index 22bebbd4ac..ad1422409a 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaInjectedSource.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaInjectedSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE605CDC-8105-4A23-B710-3259F1E26112")] [NativeTypeName("struct IDiaInjectedSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaInjectedSource : IDiaInjectedSource.Interface +public unsafe partial struct IDiaInjectedSource : IDiaInjectedSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaInjectedSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaInputAssemblyFile.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaInputAssemblyFile.cs index 973e2ab2c8..b36a425d00 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaInputAssemblyFile.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaInputAssemblyFile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3BFE56B0-390C-4863-9430-1F3D083B7684")] [NativeTypeName("struct IDiaInputAssemblyFile : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaInputAssemblyFile : IDiaInputAssemblyFile.Interface +public unsafe partial struct IDiaInputAssemblyFile : IDiaInputAssemblyFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaInputAssemblyFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaLineNumber.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaLineNumber.cs index d21baa19e4..236644a4bd 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaLineNumber.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaLineNumber.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B388EB14-BE4D-421D-A8A1-6CF7AB057086")] [NativeTypeName("struct IDiaLineNumber : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaLineNumber : IDiaLineNumber.Interface +public unsafe partial struct IDiaLineNumber : IDiaLineNumber.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaLineNumber)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback.cs index 2b6399ab5a..fcb411a25c 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C32ADB82-73F4-421B-95D5-A4706EDF5DBE")] [NativeTypeName("struct IDiaLoadCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaLoadCallback : IDiaLoadCallback.Interface +public unsafe partial struct IDiaLoadCallback : IDiaLoadCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaLoadCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback2.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback2.cs index 482bad85ee..8ed25fde6d 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback2.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaLoadCallback2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4688A074-5A4D-4486-AEA8-7B90711D9F7C")] [NativeTypeName("struct IDiaLoadCallback2 : IDiaLoadCallback")] [NativeInheritance("IDiaLoadCallback")] -public unsafe partial struct IDiaLoadCallback2 : IDiaLoadCallback2.Interface +public unsafe partial struct IDiaLoadCallback2 : IDiaLoadCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaLoadCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaPropertyStorage.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaPropertyStorage.cs index ace900541f..6d9f9a8066 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaPropertyStorage.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaPropertyStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9D416F9C-E184-45B2-A4F0-CE517F719E9B")] [NativeTypeName("struct IDiaPropertyStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaPropertyStorage : IDiaPropertyStorage.Interface +public unsafe partial struct IDiaPropertyStorage : IDiaPropertyStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaPropertyStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtOffsetCallback.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtOffsetCallback.cs index 2274046c07..13754740a3 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtOffsetCallback.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtOffsetCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("587A461C-B80B-4F54-9194-5032589A6319")] [NativeTypeName("struct IDiaReadExeAtOffsetCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaReadExeAtOffsetCallback : IDiaReadExeAtOffsetCallback.Interface +public unsafe partial struct IDiaReadExeAtOffsetCallback : IDiaReadExeAtOffsetCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaReadExeAtOffsetCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtRVACallback.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtRVACallback.cs index 17e5125881..53a80996e7 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtRVACallback.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaReadExeAtRVACallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8E3F80CA-7517-432A-BA07-285134AAEA8E")] [NativeTypeName("struct IDiaReadExeAtRVACallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaReadExeAtRVACallback : IDiaReadExeAtRVACallback.Interface +public unsafe partial struct IDiaReadExeAtRVACallback : IDiaReadExeAtRVACallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaReadExeAtRVACallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSectionContrib.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSectionContrib.cs index 465980b90d..0eab4aa201 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSectionContrib.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSectionContrib.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0CF4B60E-35B1-4C6C-BDD8-854B9C8E3857")] [NativeTypeName("struct IDiaSectionContrib : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaSectionContrib : IDiaSectionContrib.Interface +public unsafe partial struct IDiaSectionContrib : IDiaSectionContrib.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSectionContrib)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSegment.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSegment.cs index 3b476ffbe3..1efd4276e2 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSegment.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSegment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0775B784-C75B-4449-848B-B7BD3159545B")] [NativeTypeName("struct IDiaSegment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaSegment : IDiaSegment.Interface +public unsafe partial struct IDiaSegment : IDiaSegment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSegment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSession.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSession.cs index 1464add953..fce800567b 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSession.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2F609EE1-D1C8-4E24-8288-3326BADCD211")] [NativeTypeName("struct IDiaSession : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaSession : IDiaSession.Interface +public unsafe partial struct IDiaSession : IDiaSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSourceFile.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSourceFile.cs index 0d3d104009..5c297d5912 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSourceFile.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSourceFile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2EF5353-F5A8-4EB3-90D2-CB526ACB3CDD")] [NativeTypeName("struct IDiaSourceFile : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaSourceFile : IDiaSourceFile.Interface +public unsafe partial struct IDiaSourceFile : IDiaSourceFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSourceFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackFrame.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackFrame.cs index d1a4ded732..794d078171 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackFrame.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5EDBC96D-CDD6-4792-AFBE-CC89007D9610")] [NativeTypeName("struct IDiaStackFrame : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaStackFrame : IDiaStackFrame.Interface +public unsafe partial struct IDiaStackFrame : IDiaStackFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkFrame.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkFrame.cs index 1a9ce1f173..76556b323d 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkFrame.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("07C590C1-438D-4F47-BDCD-4397BC81AD75")] [NativeTypeName("struct IDiaStackWalkFrame : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaStackWalkFrame : IDiaStackWalkFrame.Interface +public unsafe partial struct IDiaStackWalkFrame : IDiaStackWalkFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackWalkFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper.cs index 83854dc06e..baef371b7f 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("21F81B1B-C5BB-42A3-BC4F-CCBAA75B9F19")] [NativeTypeName("struct IDiaStackWalkHelper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaStackWalkHelper : IDiaStackWalkHelper.Interface +public unsafe partial struct IDiaStackWalkHelper : IDiaStackWalkHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackWalkHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper2.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper2.cs index 55ae731f12..f133122bd8 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper2.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalkHelper2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8222C490-507B-4BEF-B3BD-41DCA7B5934C")] [NativeTypeName("struct IDiaStackWalkHelper2 : IDiaStackWalkHelper")] [NativeInheritance("IDiaStackWalkHelper")] -public unsafe partial struct IDiaStackWalkHelper2 : IDiaStackWalkHelper2.Interface +public unsafe partial struct IDiaStackWalkHelper2 : IDiaStackWalkHelper2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackWalkHelper2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker.cs index 89577d259a..ad7a289cc5 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5485216B-A54C-469F-9670-52B24D5229BB")] [NativeTypeName("struct IDiaStackWalker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaStackWalker : IDiaStackWalker.Interface +public unsafe partial struct IDiaStackWalker : IDiaStackWalker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackWalker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker2.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker2.cs index babe2876f5..1185720674 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker2.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaStackWalker2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7C185885-A015-4CAC-9411-0F4FB39B1F3A")] [NativeTypeName("struct IDiaStackWalker2 : IDiaStackWalker")] [NativeInheritance("IDiaStackWalker")] -public unsafe partial struct IDiaStackWalker2 : IDiaStackWalker2.Interface +public unsafe partial struct IDiaStackWalker2 : IDiaStackWalker2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaStackWalker2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol.cs index dd35e39165..f943285221 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CB787B2F-BD6C-4635-BA52-933126BD2DCD")] [NativeTypeName("struct IDiaSymbol : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiaSymbol : IDiaSymbol.Interface +public unsafe partial struct IDiaSymbol : IDiaSymbol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol10.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol10.cs index 310e1152ba..2606147c46 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol10.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol10.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9034A70B-B0B7-4605-8A97-33772F3A7B8C")] [NativeTypeName("struct IDiaSymbol10 : IDiaSymbol9")] [NativeInheritance("IDiaSymbol9")] -public unsafe partial struct IDiaSymbol10 : IDiaSymbol10.Interface +public unsafe partial struct IDiaSymbol10 : IDiaSymbol10.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol10)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol2.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol2.cs index 4a32dadc7e..47bc189d3a 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol2.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("611E86CD-B7D1-4546-8A15-070E2B07A427")] [NativeTypeName("struct IDiaSymbol2 : IDiaSymbol")] [NativeInheritance("IDiaSymbol")] -public unsafe partial struct IDiaSymbol2 : IDiaSymbol2.Interface +public unsafe partial struct IDiaSymbol2 : IDiaSymbol2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol3.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol3.cs index f0c450748c..a34d5b402a 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol3.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("99B665F7-C1B2-49D3-89B2-A384361ACAB5")] [NativeTypeName("struct IDiaSymbol3 : IDiaSymbol2")] [NativeInheritance("IDiaSymbol2")] -public unsafe partial struct IDiaSymbol3 : IDiaSymbol3.Interface +public unsafe partial struct IDiaSymbol3 : IDiaSymbol3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol4.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol4.cs index 7c571e882b..6f60993b20 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol4.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BF6C88A7-E9D6-4346-99A1-D053DE5A7808")] [NativeTypeName("struct IDiaSymbol4 : IDiaSymbol3")] [NativeInheritance("IDiaSymbol3")] -public unsafe partial struct IDiaSymbol4 : IDiaSymbol4.Interface +public unsafe partial struct IDiaSymbol4 : IDiaSymbol4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol5.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol5.cs index 46a4e90de6..6bdbc492cc 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol5.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ABE2DE00-DC2D-4793-AF9A-EF1D90832644")] [NativeTypeName("struct IDiaSymbol5 : IDiaSymbol4")] [NativeInheritance("IDiaSymbol4")] -public unsafe partial struct IDiaSymbol5 : IDiaSymbol5.Interface +public unsafe partial struct IDiaSymbol5 : IDiaSymbol5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol6.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol6.cs index bee68435d4..816140c4b9 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol6.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8133DAD3-75FE-4234-AC7E-F8E7A1D3CBB3")] [NativeTypeName("struct IDiaSymbol6 : IDiaSymbol5")] [NativeInheritance("IDiaSymbol5")] -public unsafe partial struct IDiaSymbol6 : IDiaSymbol6.Interface +public unsafe partial struct IDiaSymbol6 : IDiaSymbol6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol7.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol7.cs index 752a721f93..ee52857b79 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol7.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("64CE6CD5-7315-4328-86D6-10E303E010B4")] [NativeTypeName("struct IDiaSymbol7 : IDiaSymbol6")] [NativeInheritance("IDiaSymbol6")] -public unsafe partial struct IDiaSymbol7 : IDiaSymbol7.Interface +public unsafe partial struct IDiaSymbol7 : IDiaSymbol7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol8.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol8.cs index f5bd57548b..ca9d8407bd 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol8.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol8.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7F2E041F-1294-41BD-B83A-E715972D2CE3")] [NativeTypeName("struct IDiaSymbol8 : IDiaSymbol7")] [NativeInheritance("IDiaSymbol7")] -public unsafe partial struct IDiaSymbol8 : IDiaSymbol8.Interface +public unsafe partial struct IDiaSymbol8 : IDiaSymbol8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol9.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol9.cs index 834db4d972..473cd0fbc2 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol9.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaSymbol9.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A89E5969-92A1-4F8A-B704-00121C37ABBB")] [NativeTypeName("struct IDiaSymbol9 : IDiaSymbol8")] [NativeInheritance("IDiaSymbol8")] -public unsafe partial struct IDiaSymbol9 : IDiaSymbol9.Interface +public unsafe partial struct IDiaSymbol9 : IDiaSymbol9.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaSymbol9)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/dia2/IDiaTable.cs b/sources/Interop/Windows/Windows/other/dia2/IDiaTable.cs index abe3738d2e..f2acf56d86 100644 --- a/sources/Interop/Windows/Windows/other/dia2/IDiaTable.cs +++ b/sources/Interop/Windows/Windows/other/dia2/IDiaTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4A59FB77-ABAC-469B-A30B-9ECC85BFEF14")] [NativeTypeName("struct IDiaTable : IEnumUnknown")] [NativeInheritance("IEnumUnknown")] -public unsafe partial struct IDiaTable : IDiaTable.Interface +public unsafe partial struct IDiaTable : IDiaTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiaTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/other/helper-types/INativeGuid.cs b/sources/Interop/Windows/Windows/other/helper-types/INativeGuid.cs new file mode 100644 index 0000000000..6f48dde032 --- /dev/null +++ b/sources/Interop/Windows/Windows/other/helper-types/INativeGuid.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +using System; + +namespace TerraFX.Interop; + +public unsafe interface INativeGuid +{ + protected internal static abstract Guid* NativeGuid { get; } +} diff --git a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_CERT.cs b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_CERT.cs index 930d6c59da..3d005f53fc 100644 --- a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_CERT.cs +++ b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_CERT.cs @@ -3,6 +3,7 @@ // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,32 +28,35 @@ public unsafe partial struct SIGNER_CERT public HWND hwnd; /// + [UnscopedRef] public ref ushort* pwszSpcFile { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszSpcFile; + return ref Anonymous.pwszSpcFile; } } /// + [UnscopedRef] public ref SIGNER_CERT_STORE_INFO* pCertStoreInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pCertStoreInfo; + return ref Anonymous.pCertStoreInfo; } } /// + [UnscopedRef] public ref SIGNER_SPC_CHAIN_INFO* pSpcChainInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSpcChainInfo; + return ref Anonymous.pSpcChainInfo; } } diff --git a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_PROVIDER_INFO.cs b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_PROVIDER_INFO.cs index 0e9f08c2bf..60d8614667 100644 --- a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_PROVIDER_INFO.cs +++ b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_PROVIDER_INFO.cs @@ -3,6 +3,7 @@ // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,22 +37,24 @@ public unsafe partial struct SIGNER_PROVIDER_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort* pwszPvkFileName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszPvkFileName; + return ref Anonymous.pwszPvkFileName; } } /// + [UnscopedRef] public ref ushort* pwszKeyContainer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszKeyContainer; + return ref Anonymous.pwszKeyContainer; } } diff --git a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.cs b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.cs index 454f50bffe..fae15bd629 100644 --- a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.cs +++ b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.cs @@ -3,6 +3,7 @@ // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,12 +37,13 @@ public unsafe partial struct SIGNER_SIGNATURE_INFO public CRYPT_ATTRIBUTES* psUnauthenticated; /// + [UnscopedRef] public ref SIGNER_ATTR_AUTHCODE* pAttrAuthcode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pAttrAuthcode; + return ref Anonymous.pAttrAuthcode; } } diff --git a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SUBJECT_INFO.cs b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SUBJECT_INFO.cs index 257c87141c..93139ef312 100644 --- a/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SUBJECT_INFO.cs +++ b/sources/Interop/Windows/Windows/other/mssign32/SIGNER_SUBJECT_INFO.cs @@ -3,6 +3,7 @@ // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,22 +29,24 @@ public unsafe partial struct SIGNER_SUBJECT_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref SIGNER_FILE_INFO* pSignerFileInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSignerFileInfo; + return ref Anonymous.pSignerFileInfo; } } /// + [UnscopedRef] public ref SIGNER_BLOB_INFO* pSignerBlobInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSignerBlobInfo; + return ref Anonymous.pSignerBlobInfo; } } diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPDESTTABLE.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPDESTTABLE.cs index d3b97f614a..dac859b29e 100644 --- a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPDESTTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPDESTTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPDESTROW e0; + [UnscopedRef] public ref MIB_IPDESTROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPDESTROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPMCAST_BOUNDARY_TABLE.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPMCAST_BOUNDARY_TABLE.cs index b9e7f4875b..bfe797167d 100644 --- a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPMCAST_BOUNDARY_TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_IPMCAST_BOUNDARY_TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPMCAST_BOUNDARY e0; + [UnscopedRef] public ref MIB_IPMCAST_BOUNDARY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPMCAST_BOUNDARY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.cs index a6e014fed0..ecde0c3ea4 100644 --- a/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.cs +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -21,16 +22,18 @@ public unsafe partial struct MIB_OPAQUE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ulong ullAlign { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ullAlign, 1)); + return ref Anonymous.ullAlign; } } /// + [UnscopedRef] public Span rgbyData { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/shared/evntprov/EVENT_DATA_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/shared/evntprov/EVENT_DATA_DESCRIPTOR.cs index 48896baa53..39ab7c4eec 100644 --- a/sources/Interop/Windows/Windows/shared/evntprov/EVENT_DATA_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/shared/evntprov/EVENT_DATA_DESCRIPTOR.cs @@ -3,6 +3,7 @@ // Ported from shared/evntprov.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,42 +25,46 @@ public partial struct EVENT_DATA_DESCRIPTOR public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } /// + [UnscopedRef] public ref byte Type { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Type, 1)); + return ref Anonymous.Anonymous.Type; } } /// + [UnscopedRef] public ref byte Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Reserved1, 1)); + return ref Anonymous.Anonymous.Reserved1; } } /// + [UnscopedRef] public ref ushort Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Reserved2, 1)); + return ref Anonymous.Anonymous.Reserved2; } } diff --git a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_BUTTON_CAPS.cs b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_BUTTON_CAPS.cs index bcebf94655..b85b0e4fb6 100644 --- a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_BUTTON_CAPS.cs +++ b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_BUTTON_CAPS.cs @@ -3,6 +3,7 @@ // Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -62,22 +63,24 @@ public unsafe partial struct HIDP_BUTTON_CAPS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Range_e__Struct Range { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Range, 1)); + return ref Anonymous.Range; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._NotRange_e__Struct NotRange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NotRange, 1)); + return ref Anonymous.NotRange; } } diff --git a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_DATA.cs b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_DATA.cs index 3a3d65314b..a65abe11b4 100644 --- a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_DATA.cs +++ b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_DATA.cs @@ -3,6 +3,7 @@ // Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,22 +23,24 @@ public partial struct HIDP_DATA public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint RawValue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RawValue, 1)); + return ref Anonymous.RawValue; } } /// + [UnscopedRef] public ref byte On { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.On, 1)); + return ref Anonymous.On; } } diff --git a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_KEYBOARD_MODIFIER_STATE.cs b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_KEYBOARD_MODIFIER_STATE.cs index 33495d9b3e..165b179fee 100644 --- a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_KEYBOARD_MODIFIER_STATE.cs +++ b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_KEYBOARD_MODIFIER_STATE.cs @@ -3,6 +3,7 @@ // Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -208,12 +209,13 @@ public uint Reserved } /// + [UnscopedRef] public ref uint ul { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ul, 1)); + return ref Anonymous.ul; } } diff --git a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_VALUE_CAPS.cs b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_VALUE_CAPS.cs index 43b79ebf58..e753c17a7e 100644 --- a/sources/Interop/Windows/Windows/shared/hidpi/HIDP_VALUE_CAPS.cs +++ b/sources/Interop/Windows/Windows/shared/hidpi/HIDP_VALUE_CAPS.cs @@ -3,6 +3,7 @@ // Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -100,22 +101,24 @@ public unsafe partial struct HIDP_VALUE_CAPS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Range_e__Struct Range { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Range, 1)); + return ref Anonymous.Range; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._NotRange_e__Struct NotRange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NotRange, 1)); + return ref Anonymous.NotRange; } } diff --git a/sources/Interop/Windows/Windows/shared/ifmib/MIB_IFTABLE.cs b/sources/Interop/Windows/Windows/shared/ifmib/MIB_IFTABLE.cs index dbf9990fdf..1747400e36 100644 --- a/sources/Interop/Windows/Windows/shared/ifmib/MIB_IFTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ifmib/MIB_IFTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IFROW e0; + [UnscopedRef] public ref MIB_IFROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IFROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPADDRTABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPADDRTABLE.cs index d95cec3195..5b70c92b2f 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPADDRTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPADDRTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPADDRROW_XP e0; + [UnscopedRef] public ref MIB_IPADDRROW_XP this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPADDRROW_XP this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDROW.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDROW.cs index cd72bf9514..ef4541d328 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDROW.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDROW.cs @@ -3,6 +3,7 @@ // Ported from shared/ipmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -68,42 +69,46 @@ public partial struct MIB_IPFORWARDROW public uint dwForwardMetric5; /// + [UnscopedRef] public ref uint dwForwardType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.dwForwardType, 1)); + return ref Anonymous1.dwForwardType; } } /// + [UnscopedRef] public ref MIB_IPFORWARD_TYPE ForwardType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.ForwardType, 1)); + return ref Anonymous1.ForwardType; } } /// + [UnscopedRef] public ref uint dwForwardProto { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwForwardProto, 1)); + return ref Anonymous2.dwForwardProto; } } /// + [UnscopedRef] public ref MIB_IPFORWARD_PROTO ForwardProto { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ForwardProto, 1)); + return ref Anonymous2.ForwardProto; } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDTABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDTABLE.cs index 100892783b..0eadbaa8ac 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPFORWARDTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPFORWARDROW e0; + [UnscopedRef] public ref MIB_IPFORWARDROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPFORWARDROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_IF_TABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_IF_TABLE.cs index 1a05047776..d5093002fc 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_IF_TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_IF_TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPMCAST_IF_ENTRY e0; + [UnscopedRef] public ref MIB_IPMCAST_IF_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPMCAST_IF_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE.cs index b807b3892e..8dd989fc53 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -81,6 +82,7 @@ public partial struct _rgmioOutInfo_e__FixedBuffer { public MIB_IPMCAST_OIF_XP e0; + [UnscopedRef] public ref MIB_IPMCAST_OIF_XP this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -91,6 +93,7 @@ public ref MIB_IPMCAST_OIF_XP this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS.cs index f0b9f76715..6c6952585c 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -85,6 +86,7 @@ public partial struct _rgmiosOutStats_e__FixedBuffer { public MIB_IPMCAST_OIF_STATS_LH e0; + [UnscopedRef] public ref MIB_IPMCAST_OIF_STATS_LH this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -95,6 +97,7 @@ public ref MIB_IPMCAST_OIF_STATS_LH this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS_EX_XP.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS_EX_XP.cs index 2186f720e3..8b018857aa 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS_EX_XP.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPMCAST_MFE_STATS_EX_XP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -105,6 +106,7 @@ public partial struct _rgmiosOutStats_e__FixedBuffer { public MIB_IPMCAST_OIF_STATS_LH e0; + [UnscopedRef] public ref MIB_IPMCAST_OIF_STATS_LH this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -115,6 +117,7 @@ public ref MIB_IPMCAST_OIF_STATS_LH this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETROW_LH.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETROW_LH.cs index 85d9813c58..64f7472330 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETROW_LH.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETROW_LH.cs @@ -3,6 +3,7 @@ // Ported from shared/ipmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,22 +33,24 @@ public unsafe partial struct MIB_IPNETROW_LH public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint dwType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwType, 1)); + return ref Anonymous.dwType; } } /// + [UnscopedRef] public ref MIB_IPNET_TYPE Type { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Type, 1)); + return ref Anonymous.Type; } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETTABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETTABLE.cs index fb078f6bf8..9ab08639df 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPNETTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPNETROW_LH e0; + [UnscopedRef] public ref MIB_IPNETROW_LH this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPNETROW_LH this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPSTATS_LH.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPSTATS_LH.cs index aab3ba7661..2e2d04f69b 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPSTATS_LH.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_IPSTATS_LH.cs @@ -3,6 +3,7 @@ // Ported from shared/ipmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -104,22 +105,24 @@ public partial struct MIB_IPSTATS_LH public uint dwNumRoutes; /// + [UnscopedRef] public ref uint dwForwarding { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwForwarding, 1)); + return ref Anonymous.dwForwarding; } } /// + [UnscopedRef] public ref MIB_IPSTATS_FORWARDING Forwarding { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Forwarding, 1)); + return ref Anonymous.Forwarding; } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_STATS_TABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_STATS_TABLE.cs index a3ff53f686..bb85077e4c 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_STATS_TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_STATS_TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPMCAST_MFE_STATS e0; + [UnscopedRef] public ref MIB_IPMCAST_MFE_STATS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPMCAST_MFE_STATS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_TABLE.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_TABLE.cs index 2758a68351..96f78afe2d 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB_MFE_TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_IPMCAST_MFE e0; + [UnscopedRef] public ref MIB_IPMCAST_MFE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_IPMCAST_MFE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ks/KSDATAFORMAT.Manual.cs b/sources/Interop/Windows/Windows/shared/ks/KSDATAFORMAT.Manual.cs index 1bdccb5f03..2ab32b903a 100644 --- a/sources/Interop/Windows/Windows/shared/ks/KSDATAFORMAT.Manual.cs +++ b/sources/Interop/Windows/Windows/shared/ks/KSDATAFORMAT.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -15,19 +17,75 @@ public partial struct KSDATAFORMAT [NativeTypeName("KSDATAFORMAT::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/shared/ks.h:1096:5)")] internal _Anonymous_e__Struct Anonymous; - public ref uint FormatSize => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FormatSize, 1)); + [UnscopedRef] + public ref uint FormatSize + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.FormatSize; + } + } - public ref uint Flags => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + [UnscopedRef] + public ref uint Flags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Flags; + } + } - public ref uint SampleSize => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SampleSize, 1)); + [UnscopedRef] + public ref uint SampleSize + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.SampleSize; + } + } - public ref uint Reserved => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + [UnscopedRef] + public ref uint Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Reserved; + } + } - public ref Guid MajorFormat => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.MajorFormat, 1)); + [UnscopedRef] + public ref Guid MajorFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.MajorFormat; + } + } - public ref Guid SubFormat => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SubFormat, 1)); + [UnscopedRef] + public ref Guid SubFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.SubFormat; + } + } - public ref Guid Specifier => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Specifier, 1)); + [UnscopedRef] + public ref Guid Specifier + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Specifier; + } + } [FieldOffset(0)] [NativeTypeName("LONGLONG")] diff --git a/sources/Interop/Windows/Windows/shared/ks/KSIDENTIFIER.Manual.cs b/sources/Interop/Windows/Windows/shared/ks/KSIDENTIFIER.Manual.cs index 7f9ae8a31e..4d882e9875 100644 --- a/sources/Interop/Windows/Windows/shared/ks/KSIDENTIFIER.Manual.cs +++ b/sources/Interop/Windows/Windows/shared/ks/KSIDENTIFIER.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -13,13 +15,45 @@ public partial struct KSIDENTIFIER [NativeTypeName("KSIDENTIFIER::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/shared/ks.h:107:5)")] internal _Anonymous_e__Union Anonymous; - public ref Guid Set => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Set, 1)); + [UnscopedRef] + public ref Guid Set + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Anonymous.Set; + } + } - public ref uint Id => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Id, 1)); + [UnscopedRef] + public ref uint Id + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Anonymous.Id; + } + } - public ref uint Flags => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + [UnscopedRef] + public ref uint Flags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Anonymous.Flags; + } + } - public ref long Alignment => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + [UnscopedRef] + public ref long Alignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Alignment; + } + } [StructLayout(LayoutKind.Explicit)] public partial struct _Anonymous_e__Union diff --git a/sources/Interop/Windows/Windows/shared/mmreg/ADPCMWAVEFORMAT.cs b/sources/Interop/Windows/Windows/shared/mmreg/ADPCMWAVEFORMAT.cs index e8a85fd05c..3b11bde3b4 100644 --- a/sources/Interop/Windows/Windows/shared/mmreg/ADPCMWAVEFORMAT.cs +++ b/sources/Interop/Windows/Windows/shared/mmreg/ADPCMWAVEFORMAT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,6 +35,7 @@ public partial struct _aCoef_e__FixedBuffer { public ADPCMCOEFSET e0; + [UnscopedRef] public ref ADPCMCOEFSET this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -44,6 +46,7 @@ public ref ADPCMCOEFSET this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_IEEE_FLOAT.cs b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_IEEE_FLOAT.cs index 02597eed47..7e54bd5ea1 100644 --- a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_IEEE_FLOAT.cs +++ b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_IEEE_FLOAT.cs @@ -3,12 +3,16 @@ // Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00000003-0000-0010-8000-00AA00389B71")] -public partial struct KSDATAFORMAT_SUBTYPE_IEEE_FLOAT +public unsafe partial struct KSDATAFORMAT_SUBTYPE_IEEE_FLOAT : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)); } diff --git a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_PCM.cs b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_PCM.cs index e55fe0f862..3c7cfcbf8d 100644 --- a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_PCM.cs +++ b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_PCM.cs @@ -3,12 +3,16 @@ // Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00000001-0000-0010-8000-00AA00389B71")] -public partial struct KSDATAFORMAT_SUBTYPE_PCM +public unsafe partial struct KSDATAFORMAT_SUBTYPE_PCM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_KSDATAFORMAT_SUBTYPE_PCM)); } diff --git a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_WAVEFORMATEX.cs b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_WAVEFORMATEX.cs index 211a510add..f8658dbdf6 100644 --- a/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_WAVEFORMATEX.cs +++ b/sources/Interop/Windows/Windows/shared/mmreg/KSDATAFORMAT_SUBTYPE_WAVEFORMATEX.cs @@ -3,12 +3,16 @@ // Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00000000-0000-0010-8000-00AA00389B71")] -public partial struct KSDATAFORMAT_SUBTYPE_WAVEFORMATEX +public unsafe partial struct KSDATAFORMAT_SUBTYPE_WAVEFORMATEX : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX)); } diff --git a/sources/Interop/Windows/Windows/shared/tbs/TBS_CONTEXT_PARAMS2.cs b/sources/Interop/Windows/Windows/shared/tbs/TBS_CONTEXT_PARAMS2.cs index 163216fe38..a806c37290 100644 --- a/sources/Interop/Windows/Windows/shared/tbs/TBS_CONTEXT_PARAMS2.cs +++ b/sources/Interop/Windows/Windows/shared/tbs/TBS_CONTEXT_PARAMS2.cs @@ -3,6 +3,7 @@ // Ported from shared/tbs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -70,12 +71,13 @@ public uint includeTpm20 } /// + [UnscopedRef] public ref uint asUINT32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.asUINT32, 1)); + return ref Anonymous.asUINT32; } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE.cs index 1a8fcc1fda..47ad41a4fb 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCP6ROW e0; + [UnscopedRef] public ref MIB_TCP6ROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCP6ROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE2.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE2.cs index 33974f5284..09a71751e4 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE2.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE2.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCP6ROW2 e0; + [UnscopedRef] public ref MIB_TCP6ROW2 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCP6ROW2 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_MODULE.cs index db3b57bf20..786c7e581f 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_MODULE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCP6ROW_OWNER_MODULE e0; + [UnscopedRef] public ref MIB_TCP6ROW_OWNER_MODULE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCP6ROW_OWNER_MODULE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_PID.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_PID.cs index ed8c0e226c..3ddfd6b749 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_PID.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCP6TABLE_OWNER_PID.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCP6ROW_OWNER_PID e0; + [UnscopedRef] public ref MIB_TCP6ROW_OWNER_PID this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCP6ROW_OWNER_PID this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPROW_LH.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPROW_LH.cs index 77ef368b95..2d66335e21 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPROW_LH.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPROW_LH.cs @@ -3,6 +3,7 @@ // Ported from shared/tcpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,22 +33,24 @@ public partial struct MIB_TCPROW_LH public uint dwRemotePort; /// + [UnscopedRef] public ref uint dwState { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwState, 1)); + return ref Anonymous.dwState; } } /// + [UnscopedRef] public ref MIB_TCP_STATE State { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.State, 1)); + return ref Anonymous.State; } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPSTATS_LH.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPSTATS_LH.cs index 1d38413db1..99417c2862 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPSTATS_LH.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPSTATS_LH.cs @@ -3,6 +3,7 @@ // Ported from shared/tcpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -72,22 +73,24 @@ public partial struct MIB_TCPSTATS_LH public uint dwNumConns; /// + [UnscopedRef] public ref uint dwRtoAlgorithm { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwRtoAlgorithm, 1)); + return ref Anonymous.dwRtoAlgorithm; } } /// + [UnscopedRef] public ref TCP_RTO_ALGORITHM RtoAlgorithm { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RtoAlgorithm, 1)); + return ref Anonymous.RtoAlgorithm; } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE.cs index 86d3aa9cc7..8201a30817 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCPROW_LH e0; + [UnscopedRef] public ref MIB_TCPROW_LH this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCPROW_LH this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE2.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE2.cs index 78a9071f3e..2ffc105469 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE2.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE2.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCPROW2 e0; + [UnscopedRef] public ref MIB_TCPROW2 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCPROW2 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_MODULE.cs index 94457c6a5c..9222193c53 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_MODULE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCPROW_OWNER_MODULE e0; + [UnscopedRef] public ref MIB_TCPROW_OWNER_MODULE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCPROW_OWNER_MODULE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_PID.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_PID.cs index 280c96090a..1987a1ca86 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_PID.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE_OWNER_PID.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_TCPROW_OWNER_PID e0; + [UnscopedRef] public ref MIB_TCPROW_OWNER_PID this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_TCPROW_OWNER_PID this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW2.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW2.cs index 96f6690d61..7f22f70115 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW2.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW2.cs @@ -3,6 +3,7 @@ // Ported from shared/udpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -67,12 +68,13 @@ public int SpecificPortBind } /// + [UnscopedRef] public ref int dwFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFlags, 1)); + return ref Anonymous.dwFlags; } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW_OWNER_MODULE.cs index 4f27ea0fea..968f8319e2 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6ROW_OWNER_MODULE.cs @@ -3,6 +3,7 @@ // Ported from shared/udpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -55,12 +56,13 @@ public int SpecificPortBind } /// + [UnscopedRef] public ref int dwFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFlags, 1)); + return ref Anonymous.dwFlags; } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE.cs index c5763dca87..2fe646ff6f 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDP6ROW e0; + [UnscopedRef] public ref MIB_UDP6ROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDP6ROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE2.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE2.cs index 791455bd70..2e248e1cde 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE2.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE2.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDP6ROW2 e0; + [UnscopedRef] public ref MIB_UDP6ROW2 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDP6ROW2 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_MODULE.cs index dc894996ea..fac29506bf 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_MODULE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDP6ROW_OWNER_MODULE e0; + [UnscopedRef] public ref MIB_UDP6ROW_OWNER_MODULE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDP6ROW_OWNER_MODULE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_PID.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_PID.cs index ac0cbe1f9b..6aa82f6a0b 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_PID.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDP6TABLE_OWNER_PID.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDP6ROW_OWNER_PID e0; + [UnscopedRef] public ref MIB_UDP6ROW_OWNER_PID this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDP6ROW_OWNER_PID this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW2.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW2.cs index 1b6d9c60c4..b27824e316 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW2.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW2.cs @@ -3,6 +3,7 @@ // Ported from shared/udpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -59,12 +60,13 @@ public int SpecificPortBind } /// + [UnscopedRef] public ref int dwFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFlags, 1)); + return ref Anonymous.dwFlags; } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW_OWNER_MODULE.cs index 3125f73d7a..5ed7a0f256 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPROW_OWNER_MODULE.cs @@ -3,6 +3,7 @@ // Ported from shared/udpmib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -51,12 +52,13 @@ public int SpecificPortBind } /// + [UnscopedRef] public ref int dwFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFlags, 1)); + return ref Anonymous.dwFlags; } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE.cs index 274bd1333c..d6fd66c7d9 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDPROW e0; + [UnscopedRef] public ref MIB_UDPROW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDPROW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE2.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE2.cs index ade8fb43a7..8f6ae61834 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE2.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE2.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDPROW2 e0; + [UnscopedRef] public ref MIB_UDPROW2 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDPROW2 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_MODULE.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_MODULE.cs index 3aa769ec76..2fcbbdb755 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_MODULE.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_MODULE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDPROW_OWNER_MODULE e0; + [UnscopedRef] public ref MIB_UDPROW_OWNER_MODULE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDPROW_OWNER_MODULE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_PID.cs b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_PID.cs index c3119c6119..f2a25d2f08 100644 --- a/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_PID.cs +++ b/sources/Interop/Windows/Windows/shared/udpmib/MIB_UDPTABLE_OWNER_PID.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _table_e__FixedBuffer { public MIB_UDPROW_OWNER_PID e0; + [UnscopedRef] public ref MIB_UDPROW_OWNER_PID this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MIB_UDPROW_OWNER_PID this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ws2def/SCOPE_ID.cs b/sources/Interop/Windows/Windows/shared/ws2def/SCOPE_ID.cs index 91df7350b8..b109844bd8 100644 --- a/sources/Interop/Windows/Windows/shared/ws2def/SCOPE_ID.cs +++ b/sources/Interop/Windows/Windows/shared/ws2def/SCOPE_ID.cs @@ -3,6 +3,7 @@ // Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -48,12 +49,13 @@ public uint Level } /// + [UnscopedRef] public ref uint Value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Value, 1)); + return ref Anonymous.Value; } } diff --git a/sources/Interop/Windows/Windows/shared/ws2def/SOCKET_ADDRESS_LIST.cs b/sources/Interop/Windows/Windows/shared/ws2def/SOCKET_ADDRESS_LIST.cs index 122b9e70df..1fcf2fdc2f 100644 --- a/sources/Interop/Windows/Windows/shared/ws2def/SOCKET_ADDRESS_LIST.cs +++ b/sources/Interop/Windows/Windows/shared/ws2def/SOCKET_ADDRESS_LIST.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _Address_e__FixedBuffer { public SOCKET_ADDRESS e0; + [UnscopedRef] public ref SOCKET_ADDRESS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref SOCKET_ADDRESS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/GROUP_FILTER.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/GROUP_FILTER.cs index 52fab791c9..e323eaeff3 100644 --- a/sources/Interop/Windows/Windows/shared/ws2ipdef/GROUP_FILTER.cs +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/GROUP_FILTER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _gf_slist_e__FixedBuffer { public SOCKADDR_STORAGE e0; + [UnscopedRef] public ref SOCKADDR_STORAGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref SOCKADDR_STORAGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/IP_MSFILTER.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/IP_MSFILTER.cs index 85438164c1..03a6711915 100644 --- a/sources/Interop/Windows/Windows/shared/ws2ipdef/IP_MSFILTER.cs +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/IP_MSFILTER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,6 +35,7 @@ public partial struct _imsf_slist_e__FixedBuffer { public IN_ADDR e0; + [UnscopedRef] public ref IN_ADDR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -44,6 +46,7 @@ public ref IN_ADDR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/SOCKADDR_IN6.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/SOCKADDR_IN6.cs index 9a629fd819..1585927121 100644 --- a/sources/Interop/Windows/Windows/shared/ws2ipdef/SOCKADDR_IN6.cs +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/SOCKADDR_IN6.cs @@ -3,6 +3,7 @@ // Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -30,22 +31,24 @@ public partial struct SOCKADDR_IN6 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint sin6_scope_id { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.sin6_scope_id, 1)); + return ref Anonymous.sin6_scope_id; } } /// + [UnscopedRef] public ref SCOPE_ID sin6_scope_struct { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.sin6_scope_struct, 1)); + return ref Anonymous.sin6_scope_struct; } } diff --git a/sources/Interop/Windows/Windows/shared/wtypes/CY.cs b/sources/Interop/Windows/Windows/shared/wtypes/CY.cs index 4b9876fb04..c565f2a621 100644 --- a/sources/Interop/Windows/Windows/shared/wtypes/CY.cs +++ b/sources/Interop/Windows/Windows/shared/wtypes/CY.cs @@ -3,6 +3,7 @@ // Ported from shared/wtypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,22 +24,24 @@ public partial struct CY public long int64; /// + [UnscopedRef] public ref uint Lo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Lo, 1)); + return ref Anonymous.Lo; } } /// + [UnscopedRef] public ref int Hi { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Hi, 1)); + return ref Anonymous.Hi; } } diff --git a/sources/Interop/Windows/Windows/shared/wtypes/DECIMAL.cs b/sources/Interop/Windows/Windows/shared/wtypes/DECIMAL.cs index 07fec54c9b..c2ad971df6 100644 --- a/sources/Interop/Windows/Windows/shared/wtypes/DECIMAL.cs +++ b/sources/Interop/Windows/Windows/shared/wtypes/DECIMAL.cs @@ -3,6 +3,7 @@ // Ported from shared/wtypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,62 +28,68 @@ public partial struct DECIMAL public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref byte scale { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous.scale, 1)); + return ref Anonymous1.Anonymous.scale; } } /// + [UnscopedRef] public ref byte sign { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous.sign, 1)); + return ref Anonymous1.Anonymous.sign; } } /// + [UnscopedRef] public ref ushort signscale { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.signscale, 1)); + return ref Anonymous1.signscale; } } /// + [UnscopedRef] public ref uint Lo32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Anonymous.Lo32, 1)); + return ref Anonymous2.Anonymous.Lo32; } } /// + [UnscopedRef] public ref uint Mid32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Anonymous.Mid32, 1)); + return ref Anonymous2.Anonymous.Mid32; } } /// + [UnscopedRef] public ref ulong Lo64 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Lo64, 1)); + return ref Anonymous2.Lo64; } } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxBundleFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxBundleFactory.cs index faafab91a0..d9a12d9ab6 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxBundleFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxBundleFactory.cs @@ -3,12 +3,16 @@ // Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("378E0446-5384-43B7-8877-E7DBDD883446")] -public partial struct AppxBundleFactory +public unsafe partial struct AppxBundleFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppxBundleFactory)); } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxEncryptionFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxEncryptionFactory.cs index 3e040a4962..19042f68e5 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxEncryptionFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxEncryptionFactory.cs @@ -3,12 +3,16 @@ // Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DC664FDD-D868-46EE-8780-8D196CB739F7")] -public partial struct AppxEncryptionFactory +public unsafe partial struct AppxEncryptionFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppxEncryptionFactory)); } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxFactory.cs index 923e9385b2..ccf6a109ed 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxFactory.cs @@ -3,12 +3,16 @@ // Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5842A140-FF9F-4166-8F5C-62F5B7B0C781")] -public partial struct AppxFactory +public unsafe partial struct AppxFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppxFactory)); } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackageEditor.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackageEditor.cs index 27e47eddea..303ff9b945 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackageEditor.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackageEditor.cs @@ -3,12 +3,16 @@ // Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F004F2CA-AEBC-4B0D-BF58-E516D5BCC0AB")] -public partial struct AppxPackageEditor +public unsafe partial struct AppxPackageEditor : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppxPackageEditor)); } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackagingDiagnosticEventSinkManager.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackagingDiagnosticEventSinkManager.cs index 1775139a36..683063568f 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackagingDiagnosticEventSinkManager.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/AppxPackagingDiagnosticEventSinkManager.cs @@ -3,12 +3,16 @@ // Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("50CA0A46-1588-4161-8ED2-EF9E469CED5D")] -public partial struct AppxPackagingDiagnosticEventSinkManager +public unsafe partial struct AppxPackagingDiagnosticEventSinkManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppxPackagingDiagnosticEventSinkManager)); } diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlock.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlock.cs index f56f8c9f02..835f9e1920 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlock.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlock.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBlockMapBlock : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxBlockMapBlock : IAppxBlockMapBlock.Interface +public unsafe partial struct IAppxBlockMapBlock : IAppxBlockMapBlock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBlockMapBlock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlocksEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlocksEnumerator.cs index 4a2b591b22..2f3e736f2d 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlocksEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapBlocksEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBlockMapBlocksEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxBlockMapBlocksEnumerator : IAppxBlockMapBlocksEnumerator.Interface +public unsafe partial struct IAppxBlockMapBlocksEnumerator : IAppxBlockMapBlocksEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBlockMapBlocksEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFile.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFile.cs index 2469b62e66..cb786dde69 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFile.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFile.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBlockMapFile : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxBlockMapFile : IAppxBlockMapFile.Interface +public unsafe partial struct IAppxBlockMapFile : IAppxBlockMapFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBlockMapFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFilesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFilesEnumerator.cs index 8f6d9f9d2f..c9f92e1471 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFilesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapFilesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBlockMapFilesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxBlockMapFilesEnumerator : IAppxBlockMapFilesEnumerator.Interface +public unsafe partial struct IAppxBlockMapFilesEnumerator : IAppxBlockMapFilesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBlockMapFilesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapReader.cs index dd2ca1e296..4bd9457eac 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBlockMapReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBlockMapReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxBlockMapReader : IAppxBlockMapReader.Interface +public unsafe partial struct IAppxBlockMapReader : IAppxBlockMapReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBlockMapReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleFactory.cs index b19923b327..bad22d3e47 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleFactory : IAppxBundleFactory.Interface +public unsafe partial struct IAppxBundleFactory : IAppxBundleFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfo.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfo.cs index 9369c05d4f..9cae6fcfba 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfo.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestOptionalBundleInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleManifestOptionalBundleInfo : IAppxBundleManifestOptionalBundleInfo.Interface +public unsafe partial struct IAppxBundleManifestOptionalBundleInfo : IAppxBundleManifestOptionalBundleInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestOptionalBundleInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfoEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfoEnumerator.cs index 1f5e457944..d1ffeb3276 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfoEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestOptionalBundleInfoEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestOptionalBundleInfoEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleManifestOptionalBundleInfoEnumerator : IAppxBundleManifestOptionalBundleInfoEnumerator.Interface +public unsafe partial struct IAppxBundleManifestOptionalBundleInfoEnumerator : IAppxBundleManifestOptionalBundleInfoEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestOptionalBundleInfoEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo.cs index a1c7b7dff4..a6296059f8 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestPackageInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleManifestPackageInfo : IAppxBundleManifestPackageInfo.Interface +public unsafe partial struct IAppxBundleManifestPackageInfo : IAppxBundleManifestPackageInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestPackageInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo2.cs index 6ad0af8ef9..72ad13d582 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestPackageInfo2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleManifestPackageInfo2 : IAppxBundleManifestPackageInfo2.Interface +public unsafe partial struct IAppxBundleManifestPackageInfo2 : IAppxBundleManifestPackageInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestPackageInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo3.cs index 08f908b13d..226d2e584b 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6BA74B98-BB74-4296-80D0-5F4256A99675")] [NativeTypeName("struct IAppxBundleManifestPackageInfo3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxBundleManifestPackageInfo3 : IAppxBundleManifestPackageInfo3.Interface +public unsafe partial struct IAppxBundleManifestPackageInfo3 : IAppxBundleManifestPackageInfo3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestPackageInfo3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo4.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo4.cs index 1403f45295..0de6012768 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo4.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfo4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5DA6F13D-A8A7-4532-857C-1393D659371D")] [NativeTypeName("struct IAppxBundleManifestPackageInfo4 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxBundleManifestPackageInfo4 : IAppxBundleManifestPackageInfo4.Interface +public unsafe partial struct IAppxBundleManifestPackageInfo4 : IAppxBundleManifestPackageInfo4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestPackageInfo4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfoEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfoEnumerator.cs index b0b75427d2..274f39f5c4 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfoEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestPackageInfoEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestPackageInfoEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleManifestPackageInfoEnumerator : IAppxBundleManifestPackageInfoEnumerator.Interface +public unsafe partial struct IAppxBundleManifestPackageInfoEnumerator : IAppxBundleManifestPackageInfoEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestPackageInfoEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader.cs index acefcc4899..d7ff9ba94f 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleManifestReader : IAppxBundleManifestReader.Interface +public unsafe partial struct IAppxBundleManifestReader : IAppxBundleManifestReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader2.cs index 16da9010ac..4ef3a86b3c 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleManifestReader2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleManifestReader2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleManifestReader2 : IAppxBundleManifestReader2.Interface +public unsafe partial struct IAppxBundleManifestReader2 : IAppxBundleManifestReader2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleManifestReader2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleReader.cs index b212d6985e..047ed6184b 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleReader : IAppxBundleReader.Interface +public unsafe partial struct IAppxBundleReader : IAppxBundleReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter.cs index 76051b1c1e..432beebbd4 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxBundleWriter : IAppxBundleWriter.Interface +public unsafe partial struct IAppxBundleWriter : IAppxBundleWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter2.cs index b7c9db5ba6..eeb1f9e279 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleWriter2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleWriter2 : IAppxBundleWriter2.Interface +public unsafe partial struct IAppxBundleWriter2 : IAppxBundleWriter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleWriter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter3.cs index d134767cb7..d6c6dc592a 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleWriter3 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleWriter3 : IAppxBundleWriter3.Interface +public unsafe partial struct IAppxBundleWriter3 : IAppxBundleWriter3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleWriter3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter4.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter4.cs index 2bbfe31b4a..8b524dfeea 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter4.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxBundleWriter4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxBundleWriter4 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxBundleWriter4 : IAppxBundleWriter4.Interface +public unsafe partial struct IAppxBundleWriter4 : IAppxBundleWriter4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxBundleWriter4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroup.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroup.cs index 16be80b38e..4c557e159d 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroup.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroup.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxContentGroup : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxContentGroup : IAppxContentGroup.Interface +public unsafe partial struct IAppxContentGroup : IAppxContentGroup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxContentGroup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupFilesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupFilesEnumerator.cs index 8d79164d7b..f3fac974c5 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupFilesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupFilesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxContentGroupFilesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxContentGroupFilesEnumerator : IAppxContentGroupFilesEnumerator.Interface +public unsafe partial struct IAppxContentGroupFilesEnumerator : IAppxContentGroupFilesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxContentGroupFilesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapReader.cs index 86933aabbf..57403ceb36 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxContentGroupMapReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxContentGroupMapReader : IAppxContentGroupMapReader.Interface +public unsafe partial struct IAppxContentGroupMapReader : IAppxContentGroupMapReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxContentGroupMapReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapWriter.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapWriter.cs index dea2ddaaac..db61f1cd90 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapWriter.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupMapWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxContentGroupMapWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxContentGroupMapWriter : IAppxContentGroupMapWriter.Interface +public unsafe partial struct IAppxContentGroupMapWriter : IAppxContentGroupMapWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxContentGroupMapWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupsEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupsEnumerator.cs index 21ff6db70d..179ec548b7 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupsEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxContentGroupsEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxContentGroupsEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxContentGroupsEnumerator : IAppxContentGroupsEnumerator.Interface +public unsafe partial struct IAppxContentGroupsEnumerator : IAppxContentGroupsEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxContentGroupsEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter.cs index 027dac3a78..f4d10a9520 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptedBundleWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IAppxEncryptedBundleWriter : IAppxEncryptedBundleWriter.Interface +public unsafe partial struct IAppxEncryptedBundleWriter : IAppxEncryptedBundleWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptedBundleWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter2.cs index 6f3c99b996..d5f4d30528 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptedBundleWriter2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxEncryptedBundleWriter2 : IAppxEncryptedBundleWriter2.Interface +public unsafe partial struct IAppxEncryptedBundleWriter2 : IAppxEncryptedBundleWriter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptedBundleWriter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter3.cs index 0aa3d097cf..ba7fa5230b 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedBundleWriter3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptedBundleWriter3 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxEncryptedBundleWriter3 : IAppxEncryptedBundleWriter3.Interface +public unsafe partial struct IAppxEncryptedBundleWriter3 : IAppxEncryptedBundleWriter3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptedBundleWriter3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter.cs index 902f1f9b2c..ec4c8467e4 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptedPackageWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IAppxEncryptedPackageWriter : IAppxEncryptedPackageWriter.Interface +public unsafe partial struct IAppxEncryptedPackageWriter : IAppxEncryptedPackageWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptedPackageWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter2.cs index 12db146ea8..8c605c24f8 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptedPackageWriter2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptedPackageWriter2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IAppxEncryptedPackageWriter2 : IAppxEncryptedPackageWriter2.Interface +public unsafe partial struct IAppxEncryptedPackageWriter2 : IAppxEncryptedPackageWriter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptedPackageWriter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory.cs index cda24b04e5..623b672de7 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptionFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IAppxEncryptionFactory : IAppxEncryptionFactory.Interface +public unsafe partial struct IAppxEncryptionFactory : IAppxEncryptionFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptionFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory2.cs index 946be86958..0538803781 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptionFactory2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxEncryptionFactory2 : IAppxEncryptionFactory2.Interface +public unsafe partial struct IAppxEncryptionFactory2 : IAppxEncryptionFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptionFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory3.cs index 6c97fd1a2d..056080c050 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptionFactory3 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxEncryptionFactory3 : IAppxEncryptionFactory3.Interface +public unsafe partial struct IAppxEncryptionFactory3 : IAppxEncryptionFactory3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptionFactory3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory4.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory4.cs index f1b4a8bcc7..e2f7010f2e 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory4.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxEncryptionFactory4.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxEncryptionFactory4 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxEncryptionFactory4 : IAppxEncryptionFactory4.Interface +public unsafe partial struct IAppxEncryptionFactory4 : IAppxEncryptionFactory4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxEncryptionFactory4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory.cs index 3703a0e109..f0837faa9e 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxFactory : IAppxFactory.Interface +public unsafe partial struct IAppxFactory : IAppxFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory2.cs index 1e9ee46aed..56c0fdf194 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFactory2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxFactory2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxFactory2 : IAppxFactory2.Interface +public unsafe partial struct IAppxFactory2 : IAppxFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFile.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFile.cs index 83ce23f2dc..b57a50d9e8 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFile.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFile.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxFile : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxFile : IAppxFile.Interface +public unsafe partial struct IAppxFile : IAppxFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFilesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFilesEnumerator.cs index ec62a7eb87..2e34e61e19 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFilesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxFilesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxFilesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxFilesEnumerator : IAppxFilesEnumerator.Interface +public unsafe partial struct IAppxFilesEnumerator : IAppxFilesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxFilesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplication.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplication.cs index 97c00393e9..b6c830fe63 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplication.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplication.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestApplication : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestApplication : IAppxManifestApplication.Interface +public unsafe partial struct IAppxManifestApplication : IAppxManifestApplication.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestApplication)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplicationsEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplicationsEnumerator.cs index 79e16237db..4a08e21bd3 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplicationsEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestApplicationsEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestApplicationsEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestApplicationsEnumerator : IAppxManifestApplicationsEnumerator.Interface +public unsafe partial struct IAppxManifestApplicationsEnumerator : IAppxManifestApplicationsEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestApplicationsEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestCapabilitiesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestCapabilitiesEnumerator.cs index 32199847de..f3e6d050ac 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestCapabilitiesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestCapabilitiesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("11D22258-F470-42C1-B291-8361C5437E41")] [NativeTypeName("struct IAppxManifestCapabilitiesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestCapabilitiesEnumerator : IAppxManifestCapabilitiesEnumerator.Interface +public unsafe partial struct IAppxManifestCapabilitiesEnumerator : IAppxManifestCapabilitiesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestCapabilitiesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDeviceCapabilitiesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDeviceCapabilitiesEnumerator.cs index a6e0f2be9f..25c344fc24 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDeviceCapabilitiesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDeviceCapabilitiesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestDeviceCapabilitiesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestDeviceCapabilitiesEnumerator : IAppxManifestDeviceCapabilitiesEnumerator.Interface +public unsafe partial struct IAppxManifestDeviceCapabilitiesEnumerator : IAppxManifestDeviceCapabilitiesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestDeviceCapabilitiesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraint.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraint.cs index c471e3eaf6..4e1d4e10e7 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraint.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C031BEE4-BBCC-48EA-A237-C34045C80A07")] [NativeTypeName("struct IAppxManifestDriverConstraint : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestDriverConstraint : IAppxManifestDriverConstraint.Interface +public unsafe partial struct IAppxManifestDriverConstraint : IAppxManifestDriverConstraint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestDriverConstraint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraintsEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraintsEnumerator.cs index 72f6090b9a..6dbbb49d7d 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraintsEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverConstraintsEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D402B2D1-F600-49E0-95E6-975D8DA13D89")] [NativeTypeName("struct IAppxManifestDriverConstraintsEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestDriverConstraintsEnumerator : IAppxManifestDriverConstraintsEnumerator.Interface +public unsafe partial struct IAppxManifestDriverConstraintsEnumerator : IAppxManifestDriverConstraintsEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestDriverConstraintsEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependenciesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependenciesEnumerator.cs index bb9d1279ae..8bffbe9081 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependenciesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependenciesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FE039DB2-467F-4755-8404-8F5EB6865B33")] [NativeTypeName("struct IAppxManifestDriverDependenciesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestDriverDependenciesEnumerator : IAppxManifestDriverDependenciesEnumerator.Interface +public unsafe partial struct IAppxManifestDriverDependenciesEnumerator : IAppxManifestDriverDependenciesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestDriverDependenciesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependency.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependency.cs index eec8bc5138..00cde59dee 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependency.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestDriverDependency.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1210CB94-5A92-4602-BE24-79F318AF4AF9")] [NativeTypeName("struct IAppxManifestDriverDependency : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestDriverDependency : IAppxManifestDriverDependency.Interface +public unsafe partial struct IAppxManifestDriverDependency : IAppxManifestDriverDependency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestDriverDependency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependenciesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependenciesEnumerator.cs index 2db6becd3b..26bd7088c7 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependenciesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependenciesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6427A646-7F49-433E-B1A6-0DA309F6885A")] [NativeTypeName("struct IAppxManifestHostRuntimeDependenciesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestHostRuntimeDependenciesEnumerator : IAppxManifestHostRuntimeDependenciesEnumerator.Interface +public unsafe partial struct IAppxManifestHostRuntimeDependenciesEnumerator : IAppxManifestHostRuntimeDependenciesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestHostRuntimeDependenciesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency.cs index 9827a91f03..e58ad37387 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3455D234-8414-410D-95C7-7B35255B8391")] [NativeTypeName("struct IAppxManifestHostRuntimeDependency : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestHostRuntimeDependency : IAppxManifestHostRuntimeDependency.Interface +public unsafe partial struct IAppxManifestHostRuntimeDependency : IAppxManifestHostRuntimeDependency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestHostRuntimeDependency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency2.cs index 28d609dbdb..87c64bbf9e 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestHostRuntimeDependency2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C26F23A8-EE10-4AD6-B898-2B4D7AEBFE6A")] [NativeTypeName("struct IAppxManifestHostRuntimeDependency2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestHostRuntimeDependency2 : IAppxManifestHostRuntimeDependency2.Interface +public unsafe partial struct IAppxManifestHostRuntimeDependency2 : IAppxManifestHostRuntimeDependency2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestHostRuntimeDependency2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependenciesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependenciesEnumerator.cs index 24155afc37..dfb8bdcf6c 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependenciesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependenciesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestMainPackageDependenciesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestMainPackageDependenciesEnumerator : IAppxManifestMainPackageDependenciesEnumerator.Interface +public unsafe partial struct IAppxManifestMainPackageDependenciesEnumerator : IAppxManifestMainPackageDependenciesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestMainPackageDependenciesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependency.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependency.cs index 7b97c3f515..57e7da85de 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependency.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestMainPackageDependency.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestMainPackageDependency : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestMainPackageDependency : IAppxManifestMainPackageDependency.Interface +public unsafe partial struct IAppxManifestMainPackageDependency : IAppxManifestMainPackageDependency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestMainPackageDependency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependenciesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependenciesEnumerator.cs index c0a52b6a25..50ff2478ba 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependenciesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependenciesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B84E2FC3-F8EC-4BC1-8AE2-156346F5FFEA")] [NativeTypeName("struct IAppxManifestOSPackageDependenciesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestOSPackageDependenciesEnumerator : IAppxManifestOSPackageDependenciesEnumerator.Interface +public unsafe partial struct IAppxManifestOSPackageDependenciesEnumerator : IAppxManifestOSPackageDependenciesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestOSPackageDependenciesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependency.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependency.cs index 8a5ad25b34..17586c18e3 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependency.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOSPackageDependency.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("154995EE-54A6-4F14-AC97-D8CF0519644B")] [NativeTypeName("struct IAppxManifestOSPackageDependency : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestOSPackageDependency : IAppxManifestOSPackageDependency.Interface +public unsafe partial struct IAppxManifestOSPackageDependency : IAppxManifestOSPackageDependency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestOSPackageDependency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOptionalPackageInfo.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOptionalPackageInfo.cs index d01a2703cc..06f467f515 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOptionalPackageInfo.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestOptionalPackageInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestOptionalPackageInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestOptionalPackageInfo : IAppxManifestOptionalPackageInfo.Interface +public unsafe partial struct IAppxManifestOptionalPackageInfo : IAppxManifestOptionalPackageInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestOptionalPackageInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependenciesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependenciesEnumerator.cs index bc88feb054..d1eaaf38b3 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependenciesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependenciesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestPackageDependenciesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestPackageDependenciesEnumerator : IAppxManifestPackageDependenciesEnumerator.Interface +public unsafe partial struct IAppxManifestPackageDependenciesEnumerator : IAppxManifestPackageDependenciesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageDependenciesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency.cs index 9b5f0a8491..7a6e7228ca 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestPackageDependency : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestPackageDependency : IAppxManifestPackageDependency.Interface +public unsafe partial struct IAppxManifestPackageDependency : IAppxManifestPackageDependency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageDependency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency2.cs index 08c4d205f8..1c3913e0ad 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestPackageDependency2 : IAppxManifestPackageDependency")] [NativeInheritance("IAppxManifestPackageDependency")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestPackageDependency2 : IAppxManifestPackageDependency2.Interface +public unsafe partial struct IAppxManifestPackageDependency2 : IAppxManifestPackageDependency2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageDependency2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency3.cs index 83dc975dab..32c306479d 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageDependency3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1AC56374-6198-4D6B-92E4-749D5AB8A895")] [NativeTypeName("struct IAppxManifestPackageDependency3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestPackageDependency3 : IAppxManifestPackageDependency3.Interface +public unsafe partial struct IAppxManifestPackageDependency3 : IAppxManifestPackageDependency3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageDependency3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId.cs index a749d642a0..c0b4e881d7 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestPackageId : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestPackageId : IAppxManifestPackageId.Interface +public unsafe partial struct IAppxManifestPackageId : IAppxManifestPackageId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId2.cs index 0c8299d3d8..b610bb1c7b 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestPackageId2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestPackageId2 : IAppxManifestPackageId")] [NativeInheritance("IAppxManifestPackageId")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestPackageId2 : IAppxManifestPackageId2.Interface +public unsafe partial struct IAppxManifestPackageId2 : IAppxManifestPackageId2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestPackageId2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestProperties.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestProperties.cs index 27d192ac77..cbfd18eb01 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestProperties.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestProperties.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestProperties : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestProperties : IAppxManifestProperties.Interface +public unsafe partial struct IAppxManifestProperties : IAppxManifestProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResource.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResource.cs index 9dcdc14e17..0656497620 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResource.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B53A497-3C5C-48D1-9EA3-BB7EAC8CD7D4")] [NativeTypeName("struct IAppxManifestQualifiedResource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestQualifiedResource : IAppxManifestQualifiedResource.Interface +public unsafe partial struct IAppxManifestQualifiedResource : IAppxManifestQualifiedResource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestQualifiedResource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResourcesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResourcesEnumerator.cs index dd14c3e29f..6af0cf65a8 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResourcesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestQualifiedResourcesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8EF6ADFE-3762-4A8F-9373-2FC5D444C8D2")] [NativeTypeName("struct IAppxManifestQualifiedResourcesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestQualifiedResourcesEnumerator : IAppxManifestQualifiedResourcesEnumerator.Interface +public unsafe partial struct IAppxManifestQualifiedResourcesEnumerator : IAppxManifestQualifiedResourcesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestQualifiedResourcesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader.cs index ff047b5cae..15508df649 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestReader : IAppxManifestReader.Interface +public unsafe partial struct IAppxManifestReader : IAppxManifestReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader2.cs index c14121dd40..dd8f421322 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestReader2 : IAppxManifestReader")] [NativeInheritance("IAppxManifestReader")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IAppxManifestReader2 : IAppxManifestReader2.Interface +public unsafe partial struct IAppxManifestReader2 : IAppxManifestReader2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader3.cs index cd19e3b4a3..9345962957 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C43825AB-69B7-400A-9709-CC37F5A72D24")] [NativeTypeName("struct IAppxManifestReader3 : IAppxManifestReader2")] [NativeInheritance("IAppxManifestReader2")] -public unsafe partial struct IAppxManifestReader3 : IAppxManifestReader3.Interface +public unsafe partial struct IAppxManifestReader3 : IAppxManifestReader3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader4.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader4.cs index ab976f4d31..8971eaeef0 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader4.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4579BB7C-741D-4161-B5A1-47BD3B78AD9B")] [NativeTypeName("struct IAppxManifestReader4 : IAppxManifestReader3")] [NativeInheritance("IAppxManifestReader3")] -public unsafe partial struct IAppxManifestReader4 : IAppxManifestReader4.Interface +public unsafe partial struct IAppxManifestReader4 : IAppxManifestReader4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader5.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader5.cs index 72fb069f30..acf0278b01 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader5.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader5.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestReader5 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestReader5 : IAppxManifestReader5.Interface +public unsafe partial struct IAppxManifestReader5 : IAppxManifestReader5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader6.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader6.cs index 5d2004ed46..99e36d55cc 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader6.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader6.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestReader6 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestReader6 : IAppxManifestReader6.Interface +public unsafe partial struct IAppxManifestReader6 : IAppxManifestReader6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader7.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader7.cs index 83a1209e26..fc8cbe7438 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader7.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestReader7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8EFE6F27-0CE0-4988-B32D-738EB63DB3B7")] [NativeTypeName("struct IAppxManifestReader7 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestReader7 : IAppxManifestReader7.Interface +public unsafe partial struct IAppxManifestReader7 : IAppxManifestReader7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestReader7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestResourcesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestResourcesEnumerator.cs index e80a50e191..7fd25afd89 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestResourcesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestResourcesEnumerator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestResourcesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxManifestResourcesEnumerator : IAppxManifestResourcesEnumerator.Interface +public unsafe partial struct IAppxManifestResourcesEnumerator : IAppxManifestResourcesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestResourcesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamiliesEnumerator.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamiliesEnumerator.cs index d28fcdcb84..2ad1c84544 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamiliesEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamiliesEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36537F36-27A4-4788-88C0-733819575017")] [NativeTypeName("struct IAppxManifestTargetDeviceFamiliesEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxManifestTargetDeviceFamiliesEnumerator : IAppxManifestTargetDeviceFamiliesEnumerator.Interface +public unsafe partial struct IAppxManifestTargetDeviceFamiliesEnumerator : IAppxManifestTargetDeviceFamiliesEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestTargetDeviceFamiliesEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamily.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamily.cs index 398be7cb4b..cb3adea538 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamily.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxManifestTargetDeviceFamily.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxManifestTargetDeviceFamily : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxManifestTargetDeviceFamily : IAppxManifestTargetDeviceFamily.Interface +public unsafe partial struct IAppxManifestTargetDeviceFamily : IAppxManifestTargetDeviceFamily.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxManifestTargetDeviceFamily)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageEditor.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageEditor.cs index 640ca91364..03d1b00bc3 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageEditor.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageEditor.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxPackageEditor : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxPackageEditor : IAppxPackageEditor.Interface +public unsafe partial struct IAppxPackageEditor : IAppxPackageEditor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackageEditor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageReader.cs index f9f1b07aeb..495fd5a85c 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxPackageReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxPackageReader : IAppxPackageReader.Interface +public unsafe partial struct IAppxPackageReader : IAppxPackageReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackageReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter.cs index 66605add2d..c3c037864f 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxPackageWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAppxPackageWriter : IAppxPackageWriter.Interface +public unsafe partial struct IAppxPackageWriter : IAppxPackageWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackageWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter2.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter2.cs index 3221271534..0dea7d14d5 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter2.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxPackageWriter2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxPackageWriter2 : IAppxPackageWriter2.Interface +public unsafe partial struct IAppxPackageWriter2 : IAppxPackageWriter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackageWriter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter3.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter3.cs index 28fa915bfa..d109c945ad 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter3.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackageWriter3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxPackageWriter3 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxPackageWriter3 : IAppxPackageWriter3.Interface +public unsafe partial struct IAppxPackageWriter3 : IAppxPackageWriter3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackageWriter3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSink.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSink.cs index 37f1e92792..657f527277 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSink.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("17239D47-6ADB-45D2-80F6-F9CBC3BF059D")] [NativeTypeName("struct IAppxPackagingDiagnosticEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxPackagingDiagnosticEventSink : IAppxPackagingDiagnosticEventSink.Interface +public unsafe partial struct IAppxPackagingDiagnosticEventSink : IAppxPackagingDiagnosticEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackagingDiagnosticEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSinkManager.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSinkManager.cs index 7b29ebc153..d982667267 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSinkManager.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxPackagingDiagnosticEventSinkManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("369648FA-A7EB-4909-A15D-6954A078F18A")] [NativeTypeName("struct IAppxPackagingDiagnosticEventSinkManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppxPackagingDiagnosticEventSinkManager : IAppxPackagingDiagnosticEventSinkManager.Interface +public unsafe partial struct IAppxPackagingDiagnosticEventSinkManager : IAppxPackagingDiagnosticEventSinkManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxPackagingDiagnosticEventSinkManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxSourceContentGroupMapReader.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxSourceContentGroupMapReader.cs index 180f75504a..a6e88f32a9 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxSourceContentGroupMapReader.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/IAppxSourceContentGroupMapReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAppxSourceContentGroupMapReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAppxSourceContentGroupMapReader : IAppxSourceContentGroupMapReader.Interface +public unsafe partial struct IAppxSourceContentGroupMapReader : IAppxSourceContentGroupMapReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppxSourceContentGroupMapReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioAmbisonicsControl.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioAmbisonicsControl.cs index 89818683d7..f694b34918 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioAmbisonicsControl.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioAmbisonicsControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("28724C91-DF35-4856-9F76-D6A26413F3DF")] [NativeTypeName("struct IAudioAmbisonicsControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioAmbisonicsControl : IAudioAmbisonicsControl.Interface +public unsafe partial struct IAudioAmbisonicsControl : IAudioAmbisonicsControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioAmbisonicsControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioCaptureClient.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioCaptureClient.cs index 58b90594f4..cd246f3620 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioCaptureClient.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioCaptureClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C8ADBD64-E71E-48A0-A4DE-185C395CD317")] [NativeTypeName("struct IAudioCaptureClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioCaptureClient : IAudioCaptureClient.Interface +public unsafe partial struct IAudioCaptureClient : IAudioCaptureClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioCaptureClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient.cs index bad2057ec7..aa0aedb942 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1CB9AD4C-DBFA-4C32-B178-C2F568A703B2")] [NativeTypeName("struct IAudioClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioClient : IAudioClient.Interface +public unsafe partial struct IAudioClient : IAudioClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient2.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient2.cs index af48abcdff..6f47acc583 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient2.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAudioClient2 : IAudioClient")] [NativeInheritance("IAudioClient")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAudioClient2 : IAudioClient2.Interface +public unsafe partial struct IAudioClient2 : IAudioClient2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClient2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient3.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient3.cs index d0b028be8e..f48212ed0e 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient3.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClient3.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAudioClient3 : IAudioClient2")] [NativeInheritance("IAudioClient2")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IAudioClient3 : IAudioClient3.Interface +public unsafe partial struct IAudioClient3 : IAudioClient3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClient3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClientDuckingControl.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClientDuckingControl.cs index 53c1ad2259..5686830b66 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClientDuckingControl.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClientDuckingControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAudioClientDuckingControl : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19043.0")] -public unsafe partial struct IAudioClientDuckingControl : IAudioClientDuckingControl.Interface +public unsafe partial struct IAudioClientDuckingControl : IAudioClientDuckingControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClientDuckingControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock.cs index 8097751693..6b5007166a 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CD63314F-3FBA-4A1B-812C-EF96358728E7")] [NativeTypeName("struct IAudioClock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioClock : IAudioClock.Interface +public unsafe partial struct IAudioClock : IAudioClock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock2.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock2.cs index 3217df6488..7a5c834d0c 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock2.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClock2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6F49FF73-6727-49AC-A008-D98CF5E70048")] [NativeTypeName("struct IAudioClock2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioClock2 : IAudioClock2.Interface +public unsafe partial struct IAudioClock2 : IAudioClock2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClock2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClockAdjustment.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClockAdjustment.cs index 4263ca0717..f22dde157a 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioClockAdjustment.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioClockAdjustment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F6E4C0A0-46D9-4FB8-BE21-57A3EF2B626C")] [NativeTypeName("struct IAudioClockAdjustment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioClockAdjustment : IAudioClockAdjustment.Interface +public unsafe partial struct IAudioClockAdjustment : IAudioClockAdjustment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioClockAdjustment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioRenderClient.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioRenderClient.cs index f9f4d1e86f..43511ab3df 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioRenderClient.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioRenderClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F294ACFC-3146-4483-A7BF-ADDCA7C260E2")] [NativeTypeName("struct IAudioRenderClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioRenderClient : IAudioRenderClient.Interface +public unsafe partial struct IAudioRenderClient : IAudioRenderClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioRenderClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IAudioStreamVolume.cs b/sources/Interop/Windows/Windows/um/Audioclient/IAudioStreamVolume.cs index b76af09f99..81eb282275 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IAudioStreamVolume.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IAudioStreamVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("93014887-242D-4068-8A15-CF5E93B90FE3")] [NativeTypeName("struct IAudioStreamVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioStreamVolume : IAudioStreamVolume.Interface +public unsafe partial struct IAudioStreamVolume : IAudioStreamVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioStreamVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/IChannelAudioVolume.cs b/sources/Interop/Windows/Windows/um/Audioclient/IChannelAudioVolume.cs index 4dbe3f532d..b2527fe47c 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/IChannelAudioVolume.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/IChannelAudioVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C158861-B533-4B30-B1CF-E853E51C59B8")] [NativeTypeName("struct IChannelAudioVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IChannelAudioVolume : IChannelAudioVolume.Interface +public unsafe partial struct IChannelAudioVolume : IChannelAudioVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IChannelAudioVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Audioclient/ISimpleAudioVolume.cs b/sources/Interop/Windows/Windows/um/Audioclient/ISimpleAudioVolume.cs index 741a76dfe7..c18110560f 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/ISimpleAudioVolume.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/ISimpleAudioVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("87CE5498-68D6-44E5-9215-6DA47EF883D8")] [NativeTypeName("struct ISimpleAudioVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISimpleAudioVolume : ISimpleAudioVolume.Interface +public unsafe partial struct ISimpleAudioVolume : ISimpleAudioVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISimpleAudioVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TASKDIALOGCONFIG.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TASKDIALOGCONFIG.cs index fbaa06a790..e1cb5c5627 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/TASKDIALOGCONFIG.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TASKDIALOGCONFIG.cs @@ -3,6 +3,7 @@ // Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -101,42 +102,46 @@ public unsafe partial struct TASKDIALOGCONFIG public uint cxWidth; /// + [UnscopedRef] public ref HICON hMainIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hMainIcon; + return ref Anonymous1.hMainIcon; } } /// + [UnscopedRef] public ref ushort* pszMainIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszMainIcon; + return ref Anonymous1.pszMainIcon; } } /// + [UnscopedRef] public ref HICON hFooterIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hFooterIcon; + return ref Anonymous2.hFooterIcon; } } /// + [UnscopedRef] public ref ushort* pszFooterIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszFooterIcon; + return ref Anonymous2.pszFooterIcon; } } diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTA.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTA.cs index 334123df16..1f1bca2483 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTA.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTA.cs @@ -3,6 +3,7 @@ // Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,22 +23,24 @@ public partial struct TVINSERTSTRUCTA public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref TVITEMEXA itemex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.itemex, 1)); + return ref Anonymous.itemex; } } /// + [UnscopedRef] public ref TVITEMA item { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.item, 1)); + return ref Anonymous.item; } } diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTW.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTW.cs index 12c6e593fb..bf4a020de1 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTW.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVINSERTSTRUCTW.cs @@ -3,6 +3,7 @@ // Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,22 +23,24 @@ public partial struct TVINSERTSTRUCTW public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref TVITEMEXW itemex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.itemex, 1)); + return ref Anonymous.itemex; } } /// + [UnscopedRef] public ref TVITEMW item { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.item, 1)); + return ref Anonymous.item; } } diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs b/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs index 4ae4cfeffe..f4c97ac200 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static partial class WC { [NativeTypeName("#define WC_HEADERA \"SysHeader32\"")] - public static ReadOnlySpan WC_HEADERA => new byte[] { 0x53, 0x79, 0x73, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_HEADERA => "SysHeader32"u8; [NativeTypeName("#define WC_HEADERW L\"SysHeader32\"")] public const string WC_HEADERW = "SysHeader32"; @@ -22,7 +22,7 @@ public static partial class WC public const string WC_LINK = "SysLink"; [NativeTypeName("#define WC_LISTVIEWA \"SysListView32\"")] - public static ReadOnlySpan WC_LISTVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x4C, 0x69, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_LISTVIEWA => "SysListView32"u8; [NativeTypeName("#define WC_LISTVIEWW L\"SysListView32\"")] public const string WC_LISTVIEWW = "SysListView32"; @@ -31,7 +31,7 @@ public static partial class WC public const string WC_LISTVIEW = "SysListView32"; [NativeTypeName("#define WC_TREEVIEWA \"SysTreeView32\"")] - public static ReadOnlySpan WC_TREEVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x72, 0x65, 0x65, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_TREEVIEWA => "SysTreeView32"u8; [NativeTypeName("#define WC_TREEVIEWW L\"SysTreeView32\"")] public const string WC_TREEVIEWW = "SysTreeView32"; @@ -43,13 +43,13 @@ public static partial class WC public const string WC_COMBOBOXEXW = "ComboBoxEx32"; [NativeTypeName("#define WC_COMBOBOXEXA \"ComboBoxEx32\"")] - public static ReadOnlySpan WC_COMBOBOXEXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x45, 0x78, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_COMBOBOXEXA => "ComboBoxEx32"u8; [NativeTypeName("#define WC_COMBOBOXEX WC_COMBOBOXEXW")] public const string WC_COMBOBOXEX = "ComboBoxEx32"; [NativeTypeName("#define WC_TABCONTROLA \"SysTabControl32\"")] - public static ReadOnlySpan WC_TABCONTROLA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x61, 0x62, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_TABCONTROLA => "SysTabControl32"u8; [NativeTypeName("#define WC_TABCONTROLW L\"SysTabControl32\"")] public const string WC_TABCONTROLW = "SysTabControl32"; @@ -61,7 +61,7 @@ public static partial class WC public const string WC_IPADDRESSW = "SysIPAddress32"; [NativeTypeName("#define WC_IPADDRESSA \"SysIPAddress32\"")] - public static ReadOnlySpan WC_IPADDRESSA => new byte[] { 0x53, 0x79, 0x73, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan WC_IPADDRESSA => "SysIPAddress32"u8; [NativeTypeName("#define WC_IPADDRESS WC_IPADDRESSW")] public const string WC_IPADDRESS = "SysIPAddress32"; @@ -70,7 +70,7 @@ public static partial class WC public const string WC_PAGESCROLLERW = "SysPager"; [NativeTypeName("#define WC_PAGESCROLLERA \"SysPager\"")] - public static ReadOnlySpan WC_PAGESCROLLERA => new byte[] { 0x53, 0x79, 0x73, 0x50, 0x61, 0x67, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan WC_PAGESCROLLERA => "SysPager"u8; [NativeTypeName("#define WC_PAGESCROLLER WC_PAGESCROLLERW")] public const string WC_PAGESCROLLER = "SysPager"; @@ -79,13 +79,13 @@ public static partial class WC public const string WC_NATIVEFONTCTLW = "NativeFontCtl"; [NativeTypeName("#define WC_NATIVEFONTCTLA \"NativeFontCtl\"")] - public static ReadOnlySpan WC_NATIVEFONTCTLA => new byte[] { 0x4E, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x43, 0x74, 0x6C, 0x00 }; + public static ReadOnlySpan WC_NATIVEFONTCTLA => "NativeFontCtl"u8; [NativeTypeName("#define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW")] public const string WC_NATIVEFONTCTL = "NativeFontCtl"; [NativeTypeName("#define WC_BUTTONA \"Button\"")] - public static ReadOnlySpan WC_BUTTONA => new byte[] { 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x00 }; + public static ReadOnlySpan WC_BUTTONA => "Button"u8; [NativeTypeName("#define WC_BUTTONW L\"Button\"")] public const string WC_BUTTONW = "Button"; @@ -94,7 +94,7 @@ public static partial class WC public const string WC_BUTTON = "Button"; [NativeTypeName("#define WC_STATICA \"Static\"")] - public static ReadOnlySpan WC_STATICA => new byte[] { 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x00 }; + public static ReadOnlySpan WC_STATICA => "Static"u8; [NativeTypeName("#define WC_STATICW L\"Static\"")] public const string WC_STATICW = "Static"; @@ -103,7 +103,7 @@ public static partial class WC public const string WC_STATIC = "Static"; [NativeTypeName("#define WC_EDITA \"Edit\"")] - public static ReadOnlySpan WC_EDITA => new byte[] { 0x45, 0x64, 0x69, 0x74, 0x00 }; + public static ReadOnlySpan WC_EDITA => "Edit"u8; [NativeTypeName("#define WC_EDITW L\"Edit\"")] public const string WC_EDITW = "Edit"; @@ -112,7 +112,7 @@ public static partial class WC public const string WC_EDIT = "Edit"; [NativeTypeName("#define WC_LISTBOXA \"ListBox\"")] - public static ReadOnlySpan WC_LISTBOXA => new byte[] { 0x4C, 0x69, 0x73, 0x74, 0x42, 0x6F, 0x78, 0x00 }; + public static ReadOnlySpan WC_LISTBOXA => "ListBox"u8; [NativeTypeName("#define WC_LISTBOXW L\"ListBox\"")] public const string WC_LISTBOXW = "ListBox"; @@ -121,7 +121,7 @@ public static partial class WC public const string WC_LISTBOX = "ListBox"; [NativeTypeName("#define WC_COMBOBOXA \"ComboBox\"")] - public static ReadOnlySpan WC_COMBOBOXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x00 }; + public static ReadOnlySpan WC_COMBOBOXA => "ComboBox"u8; [NativeTypeName("#define WC_COMBOBOXW L\"ComboBox\"")] public const string WC_COMBOBOXW = "ComboBox"; @@ -130,7 +130,7 @@ public static partial class WC public const string WC_COMBOBOX = "ComboBox"; [NativeTypeName("#define WC_SCROLLBARA \"ScrollBar\"")] - public static ReadOnlySpan WC_SCROLLBARA => new byte[] { 0x53, 0x63, 0x72, 0x6F, 0x6C, 0x6C, 0x42, 0x61, 0x72, 0x00 }; + public static ReadOnlySpan WC_SCROLLBARA => "ScrollBar"u8; [NativeTypeName("#define WC_SCROLLBARW L\"ScrollBar\"")] public const string WC_SCROLLBARW = "ScrollBar"; diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs b/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs index c2f2d2031a..5f15704d24 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs @@ -506,7 +506,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string TOOLBARCLASSNAMEW = "ToolbarWindow32"; [NativeTypeName("#define TOOLBARCLASSNAMEA \"ToolbarWindow32\"")] - public static ReadOnlySpan TOOLBARCLASSNAMEA => new byte[] { 0x54, 0x6F, 0x6F, 0x6C, 0x62, 0x61, 0x72, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan TOOLBARCLASSNAMEA => "ToolbarWindow32"u8; [NativeTypeName("#define TOOLBARCLASSNAME TOOLBARCLASSNAMEW")] public const string TOOLBARCLASSNAME = "ToolbarWindow32"; @@ -623,7 +623,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string REBARCLASSNAMEW = "ReBarWindow32"; [NativeTypeName("#define REBARCLASSNAMEA \"ReBarWindow32\"")] - public static ReadOnlySpan REBARCLASSNAMEA => new byte[] { 0x52, 0x65, 0x42, 0x61, 0x72, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan REBARCLASSNAMEA => "ReBarWindow32"u8; [NativeTypeName("#define REBARCLASSNAME REBARCLASSNAMEW")] public const string REBARCLASSNAME = "ReBarWindow32"; @@ -695,7 +695,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string TOOLTIPS_CLASSW = "tooltips_class32"; [NativeTypeName("#define TOOLTIPS_CLASSA \"tooltips_class32\"")] - public static ReadOnlySpan TOOLTIPS_CLASSA => new byte[] { 0x74, 0x6F, 0x6F, 0x6C, 0x74, 0x69, 0x70, 0x73, 0x5F, 0x63, 0x6C, 0x61, 0x73, 0x73, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan TOOLTIPS_CLASSA => "tooltips_class32"u8; [NativeTypeName("#define TOOLTIPS_CLASS TOOLTIPS_CLASSW")] public const string TOOLTIPS_CLASS = "tooltips_class32"; @@ -800,7 +800,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string STATUSCLASSNAMEW = "msctls_statusbar32"; [NativeTypeName("#define STATUSCLASSNAMEA \"msctls_statusbar32\"")] - public static ReadOnlySpan STATUSCLASSNAMEA => new byte[] { 0x6D, 0x73, 0x63, 0x74, 0x6C, 0x73, 0x5F, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x61, 0x72, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan STATUSCLASSNAMEA => "msctls_statusbar32"u8; [NativeTypeName("#define STATUSCLASSNAME STATUSCLASSNAMEW")] public const string STATUSCLASSNAME = "msctls_statusbar32"; @@ -827,7 +827,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const int MINSYSCOMMAND = 0xF000; [NativeTypeName("#define TRACKBAR_CLASSA \"msctls_trackbar32\"")] - public static ReadOnlySpan TRACKBAR_CLASSA => new byte[] { 0x6D, 0x73, 0x63, 0x74, 0x6C, 0x73, 0x5F, 0x74, 0x72, 0x61, 0x63, 0x6B, 0x62, 0x61, 0x72, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan TRACKBAR_CLASSA => "msctls_trackbar32"u8; [NativeTypeName("#define TRACKBAR_CLASSW L\"msctls_trackbar32\"")] public const string TRACKBAR_CLASSW = "msctls_trackbar32"; @@ -887,7 +887,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string DRAGLISTMSGSTRING = "commctrl_DragListMsg"; [NativeTypeName("#define UPDOWN_CLASSA \"msctls_updown32\"")] - public static ReadOnlySpan UPDOWN_CLASSA => new byte[] { 0x6D, 0x73, 0x63, 0x74, 0x6C, 0x73, 0x5F, 0x75, 0x70, 0x64, 0x6F, 0x77, 0x6E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan UPDOWN_CLASSA => "msctls_updown32"u8; [NativeTypeName("#define UPDOWN_CLASSW L\"msctls_updown32\"")] public const string UPDOWN_CLASSW = "msctls_updown32"; @@ -932,7 +932,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const uint UDN_DELTAPOS = unchecked((0U - 721U) - 1); [NativeTypeName("#define PROGRESS_CLASSA \"msctls_progress32\"")] - public static ReadOnlySpan PROGRESS_CLASSA => new byte[] { 0x6D, 0x73, 0x63, 0x74, 0x6C, 0x73, 0x5F, 0x70, 0x72, 0x6F, 0x67, 0x72, 0x65, 0x73, 0x73, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan PROGRESS_CLASSA => "msctls_progress32"u8; [NativeTypeName("#define PROGRESS_CLASSW L\"msctls_progress32\"")] public const string PROGRESS_CLASSW = "msctls_progress32"; @@ -1007,7 +1007,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const int HKM_SETRULES = (0x0400 + 3); [NativeTypeName("#define HOTKEY_CLASSA \"msctls_hotkey32\"")] - public static ReadOnlySpan HOTKEY_CLASSA => new byte[] { 0x6D, 0x73, 0x63, 0x74, 0x6C, 0x73, 0x5F, 0x68, 0x6F, 0x74, 0x6B, 0x65, 0x79, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan HOTKEY_CLASSA => "msctls_hotkey32"u8; [NativeTypeName("#define HOTKEY_CLASSW L\"msctls_hotkey32\"")] public const string HOTKEY_CLASSW = "msctls_hotkey32"; @@ -1556,7 +1556,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string ANIMATE_CLASSW = "SysAnimate32"; [NativeTypeName("#define ANIMATE_CLASSA \"SysAnimate32\"")] - public static ReadOnlySpan ANIMATE_CLASSA => new byte[] { 0x53, 0x79, 0x73, 0x41, 0x6E, 0x69, 0x6D, 0x61, 0x74, 0x65, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan ANIMATE_CLASSA => "SysAnimate32"u8; [NativeTypeName("#define ANIMATE_CLASS ANIMATE_CLASSW")] public const string ANIMATE_CLASS = "SysAnimate32"; @@ -1583,7 +1583,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string MONTHCAL_CLASSW = "SysMonthCal32"; [NativeTypeName("#define MONTHCAL_CLASSA \"SysMonthCal32\"")] - public static ReadOnlySpan MONTHCAL_CLASSA => new byte[] { 0x53, 0x79, 0x73, 0x4D, 0x6F, 0x6E, 0x74, 0x68, 0x43, 0x61, 0x6C, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan MONTHCAL_CLASSA => "SysMonthCal32"u8; [NativeTypeName("#define MONTHCAL_CLASS MONTHCAL_CLASSW")] public const string MONTHCAL_CLASS = "SysMonthCal32"; @@ -1703,7 +1703,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const string DATETIMEPICK_CLASSW = "SysDateTimePick32"; [NativeTypeName("#define DATETIMEPICK_CLASSA \"SysDateTimePick32\"")] - public static ReadOnlySpan DATETIMEPICK_CLASSA => new byte[] { 0x53, 0x79, 0x73, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6D, 0x65, 0x50, 0x69, 0x63, 0x6B, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan DATETIMEPICK_CLASSA => "SysDateTimePick32"u8; [NativeTypeName("#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW")] public const string DATETIMEPICK_CLASS = "SysDateTimePick32"; diff --git a/sources/Interop/Windows/Windows/um/Dimm/CActiveIMM.cs b/sources/Interop/Windows/Windows/um/Dimm/CActiveIMM.cs index 95e958e64e..bdb875345a 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/CActiveIMM.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/CActiveIMM.cs @@ -3,12 +3,16 @@ // Ported from um/Dimm.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4955DD33-B159-11D0-8FCF-00AA006BCC59")] -public partial struct CActiveIMM +public unsafe partial struct CActiveIMM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CActiveIMM)); } diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIME.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIME.cs index 81908185d6..8bfdbcac19 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIME.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIME.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6FE20962-D077-11D0-8FE7-00AA006BCC59")] [NativeTypeName("struct IActiveIME : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveIME : IActiveIME.Interface +public unsafe partial struct IActiveIME : IActiveIME.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIME)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIME2.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIME2.cs index 1f37913ffe..97a8bdec7e 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIME2.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIME2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E1C4BF0E-2D53-11D2-93E1-0060B067B86E")] [NativeTypeName("struct IActiveIME2 : IActiveIME")] [NativeInheritance("IActiveIME")] -public unsafe partial struct IActiveIME2 : IActiveIME2.Interface +public unsafe partial struct IActiveIME2 : IActiveIME2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIME2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMApp.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMApp.cs index bd27656a8e..915cd580cf 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMApp.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMApp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08C0E040-62D1-11D1-9326-0060B067B86E")] [NativeTypeName("struct IActiveIMMApp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveIMMApp : IActiveIMMApp.Interface +public unsafe partial struct IActiveIMMApp : IActiveIMMApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIMMApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMIME.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMIME.cs index 3d4bed98f0..40b97405f0 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMIME.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMIME.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08C03411-F96B-11D0-A475-00AA006BCC59")] [NativeTypeName("struct IActiveIMMIME : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveIMMIME : IActiveIMMIME.Interface +public unsafe partial struct IActiveIMMIME : IActiveIMMIME.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIMMIME)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMMessagePumpOwner.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMMessagePumpOwner.cs index 5370a7dfd8..512082172b 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMMessagePumpOwner.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMMessagePumpOwner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B5CF2CFA-8AEB-11D1-9364-0060B067B86E")] [NativeTypeName("struct IActiveIMMMessagePumpOwner : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveIMMMessagePumpOwner : IActiveIMMMessagePumpOwner.Interface +public unsafe partial struct IActiveIMMMessagePumpOwner : IActiveIMMMessagePumpOwner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIMMMessagePumpOwner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMRegistrar.cs b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMRegistrar.cs index a6e4181343..19a01fa439 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMRegistrar.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IActiveIMMRegistrar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B3458082-BD00-11D1-939B-0060B067B86E")] [NativeTypeName("struct IActiveIMMRegistrar : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveIMMRegistrar : IActiveIMMRegistrar.Interface +public unsafe partial struct IActiveIMMRegistrar : IActiveIMMRegistrar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveIMMRegistrar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IEnumInputContext.cs b/sources/Interop/Windows/Windows/um/Dimm/IEnumInputContext.cs index 91249bc562..f3aaa63abf 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IEnumInputContext.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IEnumInputContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("09B5EAB0-F997-11D1-93D4-0060B067B86E")] [NativeTypeName("struct IEnumInputContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumInputContext : IEnumInputContext.Interface +public unsafe partial struct IEnumInputContext : IEnumInputContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumInputContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordA.cs b/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordA.cs index b11764731b..ec6201e484 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordA.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08C03412-F96B-11D0-A475-00AA006BCC59")] [NativeTypeName("struct IEnumRegisterWordA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumRegisterWordA : IEnumRegisterWordA.Interface +public unsafe partial struct IEnumRegisterWordA : IEnumRegisterWordA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumRegisterWordA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordW.cs b/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordW.cs index ca2ca71ea2..a0b03f6e75 100644 --- a/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordW.cs +++ b/sources/Interop/Windows/Windows/um/Dimm/IEnumRegisterWordW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4955DD31-B159-11D0-8FCF-00AA006BCC59")] [NativeTypeName("struct IEnumRegisterWordW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumRegisterWordW : IEnumRegisterWordW.Interface +public unsafe partial struct IEnumRegisterWordW : IEnumRegisterWordW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumRegisterWordW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DispEx/IDispatchEx.Manual.cs b/sources/Interop/Windows/Windows/um/DispEx/IDispatchEx.Manual.cs index ecefe15b1e..8be30c35b2 100644 --- a/sources/Interop/Windows/Windows/um/DispEx/IDispatchEx.Manual.cs +++ b/sources/Interop/Windows/Windows/um/DispEx/IDispatchEx.Manual.cs @@ -6,14 +6,17 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; [Guid("A6EF9860-C720-11D0-9337-00A0C90DCAA9")] [NativeTypeName("struct IDispatchEx : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDispatchEx : IDispatch.Interface +public unsafe partial struct IDispatchEx : IDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDispatchEx)); + public void** lpVtbl; [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/DispEx/IID.Manual.cs b/sources/Interop/Windows/Windows/um/DispEx/IID.Manual.cs new file mode 100644 index 0000000000..e4c39b5dc8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/DispEx/IID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/DispEx.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 IID +{ + [NativeTypeName("const GUID")] + public static ref readonly Guid IID_IDispatchEx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0x98, 0xEF, 0xA6, + 0x20, 0xC7, + 0xD0, 0x11, + 0x93, + 0x37, + 0x00, + 0xA0, + 0xC9, + 0xD, + 0xCA, + 0xA9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Interop/Windows/Windows/um/DocObj/IContinueCallback.cs b/sources/Interop/Windows/Windows/um/DocObj/IContinueCallback.cs index 0a41f02c3b..9dad3e98cd 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IContinueCallback.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IContinueCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCCA-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IContinueCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContinueCallback : IContinueCallback.Interface +public unsafe partial struct IContinueCallback : IContinueCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContinueCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IEnumOleDocumentViews.cs b/sources/Interop/Windows/Windows/um/DocObj/IEnumOleDocumentViews.cs index 1c4fe9bd91..970e4e96a6 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IEnumOleDocumentViews.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IEnumOleDocumentViews.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCC8-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IEnumOleDocumentViews : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumOleDocumentViews : IEnumOleDocumentViews.Interface +public unsafe partial struct IEnumOleDocumentViews : IEnumOleDocumentViews.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumOleDocumentViews)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IOleCommandTarget.cs b/sources/Interop/Windows/Windows/um/DocObj/IOleCommandTarget.cs index 30b50e3126..cb12b2b9d3 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IOleCommandTarget.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IOleCommandTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCCB-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IOleCommandTarget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleCommandTarget : IOleCommandTarget.Interface +public unsafe partial struct IOleCommandTarget : IOleCommandTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleCommandTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IOleDocument.cs b/sources/Interop/Windows/Windows/um/DocObj/IOleDocument.cs index 08b07e938b..687e656fcd 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IOleDocument.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IOleDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCC5-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IOleDocument : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleDocument : IOleDocument.Interface +public unsafe partial struct IOleDocument : IOleDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentSite.cs b/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentSite.cs index cb8002cf14..db4812893f 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentSite.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCC7-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IOleDocumentSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleDocumentSite : IOleDocumentSite.Interface +public unsafe partial struct IOleDocumentSite : IOleDocumentSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleDocumentSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentView.cs b/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentView.cs index 3d6023db64..db7c721137 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentView.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IOleDocumentView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCC6-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IOleDocumentView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleDocumentView : IOleDocumentView.Interface +public unsafe partial struct IOleDocumentView : IOleDocumentView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleDocumentView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IPrint.cs b/sources/Interop/Windows/Windows/um/DocObj/IPrint.cs index 6a3b9e246a..931327161a 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IPrint.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IPrint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B722BCC9-4E68-101B-A2BC-00AA00404770")] [NativeTypeName("struct IPrint : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPrint : IPrint.Interface +public unsafe partial struct IPrint : IPrint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IProtectFocus.cs b/sources/Interop/Windows/Windows/um/DocObj/IProtectFocus.cs index 25b921e441..7d14845408 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IProtectFocus.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IProtectFocus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D81F90A3-8156-44F7-AD28-5ABB87003274")] [NativeTypeName("struct IProtectFocus : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProtectFocus : IProtectFocus.Interface +public unsafe partial struct IProtectFocus : IProtectFocus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProtectFocus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IProtectedModeMenuServices.cs b/sources/Interop/Windows/Windows/um/DocObj/IProtectedModeMenuServices.cs index 4edea7758f..d3e98c0e40 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IProtectedModeMenuServices.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IProtectedModeMenuServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("73C105EE-9DFF-4A07-B83C-7EFF290C266E")] [NativeTypeName("struct IProtectedModeMenuServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProtectedModeMenuServices : IProtectedModeMenuServices.Interface +public unsafe partial struct IProtectedModeMenuServices : IProtectedModeMenuServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProtectedModeMenuServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/IZoomEvents.cs b/sources/Interop/Windows/Windows/um/DocObj/IZoomEvents.cs index b273501f33..1193806af3 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/IZoomEvents.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/IZoomEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("41B68150-904C-4E17-A0BA-A438182E359D")] [NativeTypeName("struct IZoomEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IZoomEvents : IZoomEvents.Interface +public unsafe partial struct IZoomEvents : IZoomEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IZoomEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocObj/PAGESET.cs b/sources/Interop/Windows/Windows/um/DocObj/PAGESET.cs index 087f283e6b..469757dcd4 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/PAGESET.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/PAGESET.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _rgPages_e__FixedBuffer { public PAGERANGE e0; + [UnscopedRef] public ref PAGERANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref PAGERANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageStatusEvent.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageStatusEvent.cs index a755942001..10d9c1a2b5 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageStatusEvent.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageStatusEvent.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPrintDocumentPackageStatusEvent : IDispatch")] [NativeInheritance("IDispatch")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPrintDocumentPackageStatusEvent : IPrintDocumentPackageStatusEvent.Interface +public unsafe partial struct IPrintDocumentPackageStatusEvent : IPrintDocumentPackageStatusEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintDocumentPackageStatusEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTarget.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTarget.cs index 1bb2af3697..24556c68a3 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTarget.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTarget.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPrintDocumentPackageTarget : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPrintDocumentPackageTarget : IPrintDocumentPackageTarget.Interface +public unsafe partial struct IPrintDocumentPackageTarget : IPrintDocumentPackageTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintDocumentPackageTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTargetFactory.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTargetFactory.cs index d9da7c5350..1f9a58b083 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTargetFactory.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/IPrintDocumentPackageTargetFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPrintDocumentPackageTargetFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPrintDocumentPackageTargetFactory : IPrintDocumentPackageTargetFactory.Interface +public unsafe partial struct IPrintDocumentPackageTargetFactory : IPrintDocumentPackageTargetFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintDocumentPackageTargetFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTarget.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTarget.cs index 8bac85e4af..e95dbdd503 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTarget.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTarget.cs @@ -3,12 +3,16 @@ // Ported from um/DocumentTarget.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("4842669E-9947-46EA-8BA2-D8CCE432C2CA")] -public partial struct PrintDocumentPackageTarget +public unsafe partial struct PrintDocumentPackageTarget : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_PrintDocumentPackageTarget)); } diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTargetFactory.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTargetFactory.cs index 105db2b0e0..127bd2baea 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTargetFactory.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/PrintDocumentPackageTargetFactory.cs @@ -3,12 +3,16 @@ // Ported from um/DocumentTarget.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("348EF17D-6C81-4982-92B4-EE188A43867A")] -public partial struct PrintDocumentPackageTargetFactory +public unsafe partial struct PrintDocumentPackageTargetFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_PrintDocumentPackageTargetFactory)); } diff --git a/sources/Interop/Windows/Windows/um/EvColl/EC_VARIANT.cs b/sources/Interop/Windows/Windows/um/EvColl/EC_VARIANT.cs index 7480f580b5..1f165645dc 100644 --- a/sources/Interop/Windows/Windows/um/EvColl/EC_VARIANT.cs +++ b/sources/Interop/Windows/Windows/um/EvColl/EC_VARIANT.cs @@ -3,6 +3,7 @@ // Ported from um/EvColl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,92 +25,101 @@ public unsafe partial struct EC_VARIANT public uint Type; /// + [UnscopedRef] public ref BOOL BooleanVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.BooleanVal, 1)); + return ref Anonymous.BooleanVal; } } /// + [UnscopedRef] public ref uint UInt32Val { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UInt32Val, 1)); + return ref Anonymous.UInt32Val; } } /// + [UnscopedRef] public ref ulong DateTimeVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DateTimeVal, 1)); + return ref Anonymous.DateTimeVal; } } /// + [UnscopedRef] public ref ushort* StringVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.StringVal; + return ref Anonymous.StringVal; } } /// + [UnscopedRef] public ref byte* BinaryVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.BinaryVal; + return ref Anonymous.BinaryVal; } } /// + [UnscopedRef] public ref BOOL* BooleanArr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.BooleanArr; + return ref Anonymous.BooleanArr; } } /// + [UnscopedRef] public ref int* Int32Arr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Int32Arr; + return ref Anonymous.Int32Arr; } } /// + [UnscopedRef] public ref ushort** StringArr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.StringArr; + return ref Anonymous.StringArr; } } /// + [UnscopedRef] public ref EC_OBJECT_ARRAY_PROPERTY_HANDLE PropertyHandleVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.PropertyHandleVal; + return ref Anonymous.PropertyHandleVal; } } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/CScriptErrorList.cs b/sources/Interop/Windows/Windows/um/ExDisp/CScriptErrorList.cs index 12d830d1ce..3d7f546550 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/CScriptErrorList.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/CScriptErrorList.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EFD01300-160F-11D2-BB2E-00805FF7EFCA")] -public partial struct CScriptErrorList +public unsafe partial struct CScriptErrorList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CScriptErrorList)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/DShellNameSpaceEvents.cs b/sources/Interop/Windows/Windows/um/ExDisp/DShellNameSpaceEvents.cs index 119bf47f34..65c2f0739d 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/DShellNameSpaceEvents.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/DShellNameSpaceEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("55136806-B2DE-11D1-B9F2-00A0C98BC547")] [NativeTypeName("struct DShellNameSpaceEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DShellNameSpaceEvents : DShellNameSpaceEvents.Interface +public unsafe partial struct DShellNameSpaceEvents : DShellNameSpaceEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DShellNameSpaceEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/DShellWindowsEvents.cs b/sources/Interop/Windows/Windows/um/ExDisp/DShellWindowsEvents.cs index 4f78b076cb..c9bd2a9987 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/DShellWindowsEvents.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/DShellWindowsEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FE4106E0-399A-11D0-A48C-00A0C90A8F39")] [NativeTypeName("struct DShellWindowsEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DShellWindowsEvents : DShellWindowsEvents.Interface +public unsafe partial struct DShellWindowsEvents : DShellWindowsEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DShellWindowsEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents.cs b/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents.cs index 7482b1dee9..07b51ae569 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EAB22AC2-30C1-11CF-A7EB-0000C05BAE0B")] [NativeTypeName("struct DWebBrowserEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DWebBrowserEvents : DWebBrowserEvents.Interface +public unsafe partial struct DWebBrowserEvents : DWebBrowserEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DWebBrowserEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents2.cs b/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents2.cs index 4fdb754ea4..f8a09888c3 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents2.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/DWebBrowserEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D")] [NativeTypeName("struct DWebBrowserEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DWebBrowserEvents2 : DWebBrowserEvents2.Interface +public unsafe partial struct DWebBrowserEvents2 : DWebBrowserEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DWebBrowserEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IScriptErrorList.cs b/sources/Interop/Windows/Windows/um/ExDisp/IScriptErrorList.cs index bbe58c025a..d00bd2267c 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IScriptErrorList.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IScriptErrorList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F3470F24-15FD-11D2-BB2E-00805FF7EFCA")] [NativeTypeName("struct IScriptErrorList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IScriptErrorList : IScriptErrorList.Interface +public unsafe partial struct IScriptErrorList : IScriptErrorList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IScriptErrorList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellFavoritesNameSpace.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellFavoritesNameSpace.cs index 0516f13dde..aa2b48a9b7 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellFavoritesNameSpace.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellFavoritesNameSpace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("55136804-B2DE-11D1-B9F2-00A0C98BC547")] [NativeTypeName("struct IShellFavoritesNameSpace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellFavoritesNameSpace : IShellFavoritesNameSpace.Interface +public unsafe partial struct IShellFavoritesNameSpace : IShellFavoritesNameSpace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFavoritesNameSpace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellNameSpace.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellNameSpace.cs index 7ce66e55a6..47f14dbce1 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellNameSpace.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellNameSpace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E572D3C9-37BE-4AE2-825D-D521763E3108")] [NativeTypeName("struct IShellNameSpace : IShellFavoritesNameSpace")] [NativeInheritance("IShellFavoritesNameSpace")] -public unsafe partial struct IShellNameSpace : IShellNameSpace.Interface +public unsafe partial struct IShellNameSpace : IShellNameSpace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellNameSpace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper.cs index ea935ef1b5..dbfdb7a22f 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("729FE2F8-1EA8-11D1-8F85-00C04FC2FBE1")] [NativeTypeName("struct IShellUIHelper : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellUIHelper : IShellUIHelper.Interface +public unsafe partial struct IShellUIHelper : IShellUIHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper2.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper2.cs index b8e5c920ad..d529e849aa 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper2.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7FE6EDA-1932-4281-B881-87B31B8BC52C")] [NativeTypeName("struct IShellUIHelper2 : IShellUIHelper")] [NativeInheritance("IShellUIHelper")] -public unsafe partial struct IShellUIHelper2 : IShellUIHelper2.Interface +public unsafe partial struct IShellUIHelper2 : IShellUIHelper2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper3.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper3.cs index dc860b7588..d0f4860dbe 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper3.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("528DF2EC-D419-40BC-9B6D-DCDBF9C1B25D")] [NativeTypeName("struct IShellUIHelper3 : IShellUIHelper2")] [NativeInheritance("IShellUIHelper2")] -public unsafe partial struct IShellUIHelper3 : IShellUIHelper3.Interface +public unsafe partial struct IShellUIHelper3 : IShellUIHelper3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper4.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper4.cs index a8ff41b095..8c48a176c0 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper4.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B36E6A53-8073-499E-824C-D776330A333E")] [NativeTypeName("struct IShellUIHelper4 : IShellUIHelper3")] [NativeInheritance("IShellUIHelper3")] -public unsafe partial struct IShellUIHelper4 : IShellUIHelper4.Interface +public unsafe partial struct IShellUIHelper4 : IShellUIHelper4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper5.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper5.cs index 0b6a8bb0c5..f15fb7fc47 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper5.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2A08B09-103D-4D3F-B91C-EA455CA82EFA")] [NativeTypeName("struct IShellUIHelper5 : IShellUIHelper4")] [NativeInheritance("IShellUIHelper4")] -public unsafe partial struct IShellUIHelper5 : IShellUIHelper5.Interface +public unsafe partial struct IShellUIHelper5 : IShellUIHelper5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper6.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper6.cs index b9215cf616..f3a0aada92 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper6.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("987A573E-46EE-4E89-96AB-DDF7F8FDC98C")] [NativeTypeName("struct IShellUIHelper6 : IShellUIHelper5")] [NativeInheritance("IShellUIHelper5")] -public unsafe partial struct IShellUIHelper6 : IShellUIHelper6.Interface +public unsafe partial struct IShellUIHelper6 : IShellUIHelper6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper7.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper7.cs index 9db0402c02..6fcdc8e8a9 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper7.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("60E567C8-9573-4AB2-A264-637C6C161CB1")] [NativeTypeName("struct IShellUIHelper7 : IShellUIHelper6")] [NativeInheritance("IShellUIHelper6")] -public unsafe partial struct IShellUIHelper7 : IShellUIHelper7.Interface +public unsafe partial struct IShellUIHelper7 : IShellUIHelper7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper8.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper8.cs index 5cc5cfeae5..100ef077b1 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper8.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper8.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("66DEBCF2-05B0-4F07-B49B-B96241A65DB2")] [NativeTypeName("struct IShellUIHelper8 : IShellUIHelper7")] [NativeInheritance("IShellUIHelper7")] -public unsafe partial struct IShellUIHelper8 : IShellUIHelper8.Interface +public unsafe partial struct IShellUIHelper8 : IShellUIHelper8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper9.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper9.cs index c8e75b5a28..55422302fc 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper9.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellUIHelper9.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6CDF73B0-7F2F-451F-BC0F-63E0F3284E54")] [NativeTypeName("struct IShellUIHelper9 : IShellUIHelper8")] [NativeInheritance("IShellUIHelper8")] -public unsafe partial struct IShellUIHelper9 : IShellUIHelper9.Interface +public unsafe partial struct IShellUIHelper9 : IShellUIHelper9.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellUIHelper9)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IShellWindows.cs b/sources/Interop/Windows/Windows/um/ExDisp/IShellWindows.cs index d75d46cd86..0b0e74978b 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IShellWindows.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IShellWindows.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85CB6900-4D95-11CF-960C-0080C7F4EE85")] [NativeTypeName("struct IShellWindows : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellWindows : IShellWindows.Interface +public unsafe partial struct IShellWindows : IShellWindows.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellWindows)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser.cs b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser.cs index 8d6022e51c..717385930b 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B")] [NativeTypeName("struct IWebBrowser : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebBrowser : IWebBrowser.Interface +public unsafe partial struct IWebBrowser : IWebBrowser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebBrowser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser2.cs b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser2.cs index 7fdcdcd1d7..d761f1f385 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser2.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowser2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E")] [NativeTypeName("struct IWebBrowser2 : IWebBrowserApp")] [NativeInheritance("IWebBrowserApp")] -public unsafe partial struct IWebBrowser2 : IWebBrowser2.Interface +public unsafe partial struct IWebBrowser2 : IWebBrowser2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebBrowser2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowserApp.cs b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowserApp.cs index e60db9c9b1..bdf07e49a4 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowserApp.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/IWebBrowserApp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002DF05-0000-0000-C000-000000000046")] [NativeTypeName("struct IWebBrowserApp : IWebBrowser")] [NativeInheritance("IWebBrowser")] -public unsafe partial struct IWebBrowserApp : IWebBrowserApp.Interface +public unsafe partial struct IWebBrowserApp : IWebBrowserApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebBrowserApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorer.cs b/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorer.cs index 81872707e4..cac0b38a57 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorer.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorer.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0002DF01-0000-0000-C000-000000000046")] -public partial struct InternetExplorer +public unsafe partial struct InternetExplorer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_InternetExplorer)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorerMedium.cs b/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorerMedium.cs index fc5ecf0fbe..8e84c76c57 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorerMedium.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/InternetExplorerMedium.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D5E8041D-920F-45E9-B8FB-B1DEB82C6E5E")] -public partial struct InternetExplorerMedium +public unsafe partial struct InternetExplorerMedium : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_InternetExplorerMedium)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/ShellBrowserWindow.cs b/sources/Interop/Windows/Windows/um/ExDisp/ShellBrowserWindow.cs index 95b77aff54..05dd36daf9 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/ShellBrowserWindow.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/ShellBrowserWindow.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C08AFD90-F2A1-11D1-8455-00A0C91F3880")] -public partial struct ShellBrowserWindow +public unsafe partial struct ShellBrowserWindow : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellBrowserWindow)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/ShellNameSpace.cs b/sources/Interop/Windows/Windows/um/ExDisp/ShellNameSpace.cs index 4cdf456d42..cd50757c11 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/ShellNameSpace.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/ShellNameSpace.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("55136805-B2DE-11D1-B9F2-00A0C98BC547")] -public partial struct ShellNameSpace +public unsafe partial struct ShellNameSpace : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellNameSpace)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/ShellUIHelper.cs b/sources/Interop/Windows/Windows/um/ExDisp/ShellUIHelper.cs index 338592bb24..00960f25bb 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/ShellUIHelper.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/ShellUIHelper.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("64AB4BB7-111E-11D1-8F79-00C04FC2FBE1")] -public partial struct ShellUIHelper +public unsafe partial struct ShellUIHelper : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellUIHelper)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/ShellWindows.cs b/sources/Interop/Windows/Windows/um/ExDisp/ShellWindows.cs index 5a7d025cd7..521bb2b032 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/ShellWindows.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/ShellWindows.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9BA05972-F6A8-11CF-A442-00A0C90A8F39")] -public partial struct ShellWindows +public unsafe partial struct ShellWindows : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellWindows)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser.cs b/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser.cs index 339d0e840c..c0a9eade20 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8856F961-340A-11D0-A96B-00C04FD705A2")] -public partial struct WebBrowser +public unsafe partial struct WebBrowser : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebBrowser)); } diff --git a/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser_V1.cs b/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser_V1.cs index 247ae3cd0b..7eecbc21bb 100644 --- a/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser_V1.cs +++ b/sources/Interop/Windows/Windows/um/ExDisp/WebBrowser_V1.cs @@ -3,12 +3,16 @@ // Ported from um/ExDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B")] -public partial struct WebBrowser_V1 +public unsafe partial struct WebBrowser_V1 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebBrowser_V1)); } diff --git a/sources/Interop/Windows/Windows/um/HLink/IEnumHLITEM.cs b/sources/Interop/Windows/Windows/um/HLink/IEnumHLITEM.cs index 0cf7bfbb4f..6781da1336 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IEnumHLITEM.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IEnumHLITEM.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C6-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IEnumHLITEM : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumHLITEM : IEnumHLITEM.Interface +public unsafe partial struct IEnumHLITEM : IEnumHLITEM.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumHLITEM)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IExtensionServices.cs b/sources/Interop/Windows/Windows/um/HLink/IExtensionServices.cs index e40b845711..3827120084 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IExtensionServices.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IExtensionServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9CB-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IExtensionServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExtensionServices : IExtensionServices.Interface +public unsafe partial struct IExtensionServices : IExtensionServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExtensionServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IHlink.cs b/sources/Interop/Windows/Windows/um/HLink/IHlink.cs index 6909489b84..862ff67bb1 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IHlink.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IHlink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C3-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHlink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHlink : IHlink.Interface +public unsafe partial struct IHlink : IHlink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHlink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IHlinkBrowseContext.cs b/sources/Interop/Windows/Windows/um/HLink/IHlinkBrowseContext.cs index 74ebd32f15..5a64098c58 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IHlinkBrowseContext.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IHlinkBrowseContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C7-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHlinkBrowseContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHlinkBrowseContext : IHlinkBrowseContext.Interface +public unsafe partial struct IHlinkBrowseContext : IHlinkBrowseContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHlinkBrowseContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IHlinkFrame.cs b/sources/Interop/Windows/Windows/um/HLink/IHlinkFrame.cs index ab0e131f89..a739eb5877 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IHlinkFrame.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IHlinkFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C5-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHlinkFrame : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHlinkFrame : IHlinkFrame.Interface +public unsafe partial struct IHlinkFrame : IHlinkFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHlinkFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IHlinkSite.cs b/sources/Interop/Windows/Windows/um/HLink/IHlinkSite.cs index e1562ca6fb..d792589818 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IHlinkSite.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IHlinkSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C2-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHlinkSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHlinkSite : IHlinkSite.Interface +public unsafe partial struct IHlinkSite : IHlinkSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHlinkSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/HLink/IHlinkTarget.cs b/sources/Interop/Windows/Windows/um/HLink/IHlinkTarget.cs index 5014852bcd..0cb8e9c903 100644 --- a/sources/Interop/Windows/Windows/um/HLink/IHlinkTarget.cs +++ b/sources/Interop/Windows/Windows/um/HLink/IHlinkTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C4-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHlinkTarget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHlinkTarget : IHlinkTarget.Interface +public unsafe partial struct IHlinkTarget : IHlinkTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHlinkTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IContact/Contact.cs b/sources/Interop/Windows/Windows/um/IContact/Contact.cs index bd64825cb9..2ba4cd5df1 100644 --- a/sources/Interop/Windows/Windows/um/IContact/Contact.cs +++ b/sources/Interop/Windows/Windows/um/IContact/Contact.cs @@ -3,12 +3,16 @@ // Ported from um/IContact.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("61B68808-8EEE-4FD1-ACB8-3D804C8DB056")] -public partial struct Contact +public unsafe partial struct Contact : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_Contact)); } diff --git a/sources/Interop/Windows/Windows/um/IContact/ContactManager.cs b/sources/Interop/Windows/Windows/um/IContact/ContactManager.cs index c4eaba7323..6c13874e29 100644 --- a/sources/Interop/Windows/Windows/um/IContact/ContactManager.cs +++ b/sources/Interop/Windows/Windows/um/IContact/ContactManager.cs @@ -3,12 +3,16 @@ // Ported from um/IContact.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("7165C8AB-AF88-42BD-86FD-5310B4285A02")] -public partial struct ContactManager +public unsafe partial struct ContactManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_ContactManager)); } diff --git a/sources/Interop/Windows/Windows/um/IContact/IContact.cs b/sources/Interop/Windows/Windows/um/IContact/IContact.cs index 7c2e115ee2..6572b0653b 100644 --- a/sources/Interop/Windows/Windows/um/IContact/IContact.cs +++ b/sources/Interop/Windows/Windows/um/IContact/IContact.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F941B671-BDA7-4F77-884A-F46462F226A7")] [NativeTypeName("struct IContact : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContact : IContact.Interface +public unsafe partial struct IContact : IContact.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContact)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IContact/IContactCollection.cs b/sources/Interop/Windows/Windows/um/IContact/IContactCollection.cs index f6d356ed5a..860b758e6d 100644 --- a/sources/Interop/Windows/Windows/um/IContact/IContactCollection.cs +++ b/sources/Interop/Windows/Windows/um/IContact/IContactCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B6AFA338-D779-11D9-8BDE-F66BAD1E3F3A")] [NativeTypeName("struct IContactCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContactCollection : IContactCollection.Interface +public unsafe partial struct IContactCollection : IContactCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContactCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IContact/IContactManager.cs b/sources/Interop/Windows/Windows/um/IContact/IContactManager.cs index 45127dfb61..7bb287d2ae 100644 --- a/sources/Interop/Windows/Windows/um/IContact/IContactManager.cs +++ b/sources/Interop/Windows/Windows/um/IContact/IContactManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AD553D98-DEB1-474A-8E17-FC0C2075B738")] [NativeTypeName("struct IContactManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContactManager : IContactManager.Interface +public unsafe partial struct IContactManager : IContactManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContactManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IContact/IContactProperties.cs b/sources/Interop/Windows/Windows/um/IContact/IContactProperties.cs index 0a5a2256b5..fb99ffbeca 100644 --- a/sources/Interop/Windows/Windows/um/IContact/IContactProperties.cs +++ b/sources/Interop/Windows/Windows/um/IContact/IContactProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70DD27DD-5CBD-46E8-BEF0-23B6B346288F")] [NativeTypeName("struct IContactProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContactProperties : IContactProperties.Interface +public unsafe partial struct IContactProperties : IContactProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContactProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IContact/IContactPropertyCollection.cs b/sources/Interop/Windows/Windows/um/IContact/IContactPropertyCollection.cs index 3779f3901d..1a2ce6c250 100644 --- a/sources/Interop/Windows/Windows/um/IContact/IContactPropertyCollection.cs +++ b/sources/Interop/Windows/Windows/um/IContact/IContactPropertyCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FFD3ADF8-FA64-4328-B1B6-2E0DB509CB3C")] [NativeTypeName("struct IContactPropertyCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContactPropertyCollection : IContactPropertyCollection.Interface +public unsafe partial struct IContactPropertyCollection : IContactPropertyCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContactPropertyCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IPExport/IP_INTERFACE_INFO.cs b/sources/Interop/Windows/Windows/um/IPExport/IP_INTERFACE_INFO.cs index 57d65f88ba..273a6af7a2 100644 --- a/sources/Interop/Windows/Windows/um/IPExport/IP_INTERFACE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/IPExport/IP_INTERFACE_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Adapter_e__FixedBuffer { public IP_ADAPTER_INDEX_MAP e0; + [UnscopedRef] public ref IP_ADAPTER_INDEX_MAP this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref IP_ADAPTER_INDEX_MAP this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_LH.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_LH.cs index 344ba6b120..41ff5edae5 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_LH.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_LH.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -152,42 +153,46 @@ public unsafe partial struct IP_ADAPTER_ADDRESSES_LH public IP_ADAPTER_DNS_SUFFIX* FirstDnsSuffix; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Alignment, 1)); + return ref Anonymous1.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous.Length, 1)); + return ref Anonymous1.Anonymous.Length; } } /// + [UnscopedRef] public ref uint IfIndex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous.IfIndex, 1)); + return ref Anonymous1.Anonymous.IfIndex; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Flags, 1)); + return ref Anonymous2.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_XP.cs index c747206e1e..5c1131c591 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ADDRESSES_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -87,32 +88,35 @@ public unsafe partial struct IP_ADAPTER_ADDRESSES_XP public IP_ADAPTER_PREFIX_XP* FirstPrefix; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint IfIndex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.IfIndex, 1)); + return ref Anonymous.Anonymous.IfIndex; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ANYCAST_ADDRESS_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ANYCAST_ADDRESS_XP.cs index c7d0390e3b..3c51c93ba1 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ANYCAST_ADDRESS_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_ANYCAST_ADDRESS_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public unsafe partial struct IP_ADAPTER_ANYCAST_ADDRESS_XP public SOCKET_ADDRESS Address; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + return ref Anonymous.Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_DNS_SERVER_ADDRESS_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_DNS_SERVER_ADDRESS_XP.cs index 7bf2304851..438597d0e3 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_DNS_SERVER_ADDRESS_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_DNS_SERVER_ADDRESS_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public unsafe partial struct IP_ADAPTER_DNS_SERVER_ADDRESS_XP public SOCKET_ADDRESS Address; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Reserved, 1)); + return ref Anonymous.Anonymous.Reserved; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_GATEWAY_ADDRESS_LH.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_GATEWAY_ADDRESS_LH.cs index 60e3a42938..a0b1c6d804 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_GATEWAY_ADDRESS_LH.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_GATEWAY_ADDRESS_LH.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public unsafe partial struct IP_ADAPTER_GATEWAY_ADDRESS_LH public SOCKET_ADDRESS Address; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Reserved, 1)); + return ref Anonymous.Anonymous.Reserved; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_MULTICAST_ADDRESS_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_MULTICAST_ADDRESS_XP.cs index a236a28f9a..d0b47ca8da 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_MULTICAST_ADDRESS_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_MULTICAST_ADDRESS_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public unsafe partial struct IP_ADAPTER_MULTICAST_ADDRESS_XP public SOCKET_ADDRESS Address; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + return ref Anonymous.Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_PREFIX_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_PREFIX_XP.cs index a0ead9617c..493b382f07 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_PREFIX_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_PREFIX_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,32 +28,35 @@ public unsafe partial struct IP_ADAPTER_PREFIX_XP public uint PrefixLength; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + return ref Anonymous.Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_LH.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_LH.cs index 4e48eb9642..0c00566ee2 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_LH.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_LH.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -48,32 +49,35 @@ public unsafe partial struct IP_ADAPTER_UNICAST_ADDRESS_LH public byte OnLinkPrefixLength; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + return ref Anonymous.Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_XP.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_XP.cs index 4d46f41a24..226caecab4 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_XP.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_UNICAST_ADDRESS_XP.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -44,32 +45,35 @@ public unsafe partial struct IP_ADAPTER_UNICAST_ADDRESS_XP public uint LeaseLifetime; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Flags, 1)); + return ref Anonymous.Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_WINS_SERVER_ADDRESS_LH.cs b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_WINS_SERVER_ADDRESS_LH.cs index ac490611f9..d4fe7d679f 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_WINS_SERVER_ADDRESS_LH.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/IP_ADAPTER_WINS_SERVER_ADDRESS_LH.cs @@ -3,6 +3,7 @@ // Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public unsafe partial struct IP_ADAPTER_WINS_SERVER_ADDRESS_LH public SOCKET_ADDRESS Address; /// + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } /// + [UnscopedRef] public ref uint Length { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Length, 1)); + return ref Anonymous.Anonymous.Length; } } /// + [UnscopedRef] public ref uint Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Reserved, 1)); + return ref Anonymous.Anonymous.Reserved; } } diff --git a/sources/Interop/Windows/Windows/um/ImageTranscode/ITranscodeImage.cs b/sources/Interop/Windows/Windows/um/ImageTranscode/ITranscodeImage.cs index 2c43d4c0c7..c3bd53d30a 100644 --- a/sources/Interop/Windows/Windows/um/ImageTranscode/ITranscodeImage.cs +++ b/sources/Interop/Windows/Windows/um/ImageTranscode/ITranscodeImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BAE86DDD-DC11-421C-B7AB-CC55D1D65C44")] [NativeTypeName("struct ITranscodeImage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITranscodeImage : ITranscodeImage.Interface +public unsafe partial struct ITranscodeImage : ITranscodeImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITranscodeImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ImageTranscode/ImageTranscode.cs b/sources/Interop/Windows/Windows/um/ImageTranscode/ImageTranscode.cs index 20bb31689e..6c485959e2 100644 --- a/sources/Interop/Windows/Windows/um/ImageTranscode/ImageTranscode.cs +++ b/sources/Interop/Windows/Windows/um/ImageTranscode/ImageTranscode.cs @@ -3,12 +3,16 @@ // Ported from um/ImageTranscode.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("17B75166-928F-417D-9685-64AA135565C1")] -public partial struct ImageTranscode +public unsafe partial struct ImageTranscode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ImageTranscode)); } diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkCommitRequestHandler.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkCommitRequestHandler.cs index 74aa3b2d57..305108a4e9 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkCommitRequestHandler.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkCommitRequestHandler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInkCommitRequestHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IInkCommitRequestHandler : IInkCommitRequestHandler.Interface +public unsafe partial struct IInkCommitRequestHandler : IInkCommitRequestHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkCommitRequestHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkDesktopHost.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkDesktopHost.cs index 2c2e37f5d7..2f5ffc931f 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkDesktopHost.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkDesktopHost.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInkDesktopHost : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IInkDesktopHost : IInkDesktopHost.Interface +public unsafe partial struct IInkDesktopHost : IInkDesktopHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkDesktopHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkHostWorkItem.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkHostWorkItem.cs index 3c54c808e9..90a4691856 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkHostWorkItem.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkHostWorkItem.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInkHostWorkItem : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IInkHostWorkItem : IInkHostWorkItem.Interface +public unsafe partial struct IInkHostWorkItem : IInkHostWorkItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkHostWorkItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkPresenterDesktop.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkPresenterDesktop.cs index e216ce5bd7..7483025537 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkPresenterDesktop.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/IInkPresenterDesktop.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInkPresenterDesktop : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IInkPresenterDesktop : IInkPresenterDesktop.Interface +public unsafe partial struct IInkPresenterDesktop : IInkPresenterDesktop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkPresenterDesktop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/InkDesktopHost.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/InkDesktopHost.cs index c3fb2121ed..a94e9948f0 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/InkDesktopHost.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/InkDesktopHost.cs @@ -3,12 +3,16 @@ // Ported from um/InkPresenterDesktop.h and um/InkPresenterDesktop_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("062584A6-F830-4BDC-A4D2-0A10AB062B1D")] -public partial struct InkDesktopHost +public unsafe partial struct InkDesktopHost : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_InkDesktopHost)); } diff --git a/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope.cs b/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope.cs index 073c06b72f..391062f2a5 100644 --- a/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope.cs +++ b/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FDE1EAEE-6924-4CDF-91E7-DA38CFF5559D")] [NativeTypeName("struct ITfInputScope : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInputScope : ITfInputScope.Interface +public unsafe partial struct ITfInputScope : ITfInputScope.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputScope)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope2.cs b/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope2.cs index 5ac0b0658f..ae81dccc84 100644 --- a/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope2.cs +++ b/sources/Interop/Windows/Windows/um/InputScope/ITfInputScope2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5731EAA0-6BC2-4681-A532-92FBB74D7C41")] [NativeTypeName("struct ITfInputScope2 : ITfInputScope")] [NativeInheritance("ITfInputScope")] -public unsafe partial struct ITfInputScope2 : ITfInputScope2.Interface +public unsafe partial struct ITfInputScope2 : ITfInputScope2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputScope2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorA.cs b/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorA.cs index a88348bffe..83e5244648 100644 --- a/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorA.cs +++ b/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FBF23B80-E3F0-101B-8488-00AA003E56F8")] [NativeTypeName("struct IUniformResourceLocatorA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUniformResourceLocatorA : IUniformResourceLocatorA.Interface +public unsafe partial struct IUniformResourceLocatorA : IUniformResourceLocatorA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUniformResourceLocatorA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorW.cs b/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorW.cs index 46ed29bbe9..8a6ae05f6e 100644 --- a/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorW.cs +++ b/sources/Interop/Windows/Windows/um/IntShCut/IUniformResourceLocatorW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CABB0DA0-DA57-11CF-9974-0020AFD79762")] [NativeTypeName("struct IUniformResourceLocatorW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUniformResourceLocatorW : IUniformResourceLocatorW.Interface +public unsafe partial struct IUniformResourceLocatorW : IUniformResourceLocatorW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUniformResourceLocatorW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IIsolatedAppLauncher.cs b/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IIsolatedAppLauncher.cs index e05b4c57b0..9c53861911 100644 --- a/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IIsolatedAppLauncher.cs +++ b/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IIsolatedAppLauncher.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F686878F-7B42-4CC4-96FB-F4F3B6E3D24D")] [NativeTypeName("struct IIsolatedAppLauncher : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IIsolatedAppLauncher : IIsolatedAppLauncher.Interface +public unsafe partial struct IIsolatedAppLauncher : IIsolatedAppLauncher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIsolatedAppLauncher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IsolatedAppLauncher.cs b/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IsolatedAppLauncher.cs index 0a56332ef4..a715d8b502 100644 --- a/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IsolatedAppLauncher.cs +++ b/sources/Interop/Windows/Windows/um/IsolatedAppLauncher/IsolatedAppLauncher.cs @@ -3,12 +3,16 @@ // Ported from um/IsolatedAppLauncher.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("BC812430-E75E-4FD1-9641-1F9F1E2D9A1F")] -public partial struct IsolatedAppLauncher +public unsafe partial struct IsolatedAppLauncher : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_IsolatedAppLauncher)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/AccClientDocMgr.cs b/sources/Interop/Windows/Windows/um/MSAAText/AccClientDocMgr.cs index bc3ebd40df..7a2ff22161 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/AccClientDocMgr.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/AccClientDocMgr.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FC48CC30-4F3E-4FA1-803B-AD0E196A83B1")] -public partial struct AccClientDocMgr +public unsafe partial struct AccClientDocMgr : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AccClientDocMgr)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/AccDictionary.cs b/sources/Interop/Windows/Windows/um/MSAAText/AccDictionary.cs index e254bd0a87..8728008db3 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/AccDictionary.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/AccDictionary.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6572EE16-5FE5-4331-BB6D-76A49C56E423")] -public partial struct AccDictionary +public unsafe partial struct AccDictionary : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AccDictionary)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/AccServerDocMgr.cs b/sources/Interop/Windows/Windows/um/MSAAText/AccServerDocMgr.cs index b12ee767ed..4878ce35d3 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/AccServerDocMgr.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/AccServerDocMgr.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6089A37E-EB8A-482D-BD6F-F9F46904D16D")] -public partial struct AccServerDocMgr +public unsafe partial struct AccServerDocMgr : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AccServerDocMgr)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/AccStore.cs b/sources/Interop/Windows/Windows/um/MSAAText/AccStore.cs index 71ee51649f..37cc7dab2a 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/AccStore.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/AccStore.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5440837F-4BFF-4AE5-A1B1-7722ECC6332A")] -public partial struct AccStore +public unsafe partial struct AccStore : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AccStore)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/DocWrap.cs b/sources/Interop/Windows/Windows/um/MSAAText/DocWrap.cs index 6f2eba675a..d5419d3046 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/DocWrap.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/DocWrap.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BF426F7E-7A5E-44D6-830C-A390EA9462A3")] -public partial struct DocWrap +public unsafe partial struct DocWrap : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DocWrap)); } diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IAccClientDocMgr.cs b/sources/Interop/Windows/Windows/um/MSAAText/IAccClientDocMgr.cs index 66d0d5380d..d3db7d34c5 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IAccClientDocMgr.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IAccClientDocMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4C896039-7B6D-49E6-A8C1-45116A98292B")] [NativeTypeName("struct IAccClientDocMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccClientDocMgr : IAccClientDocMgr.Interface +public unsafe partial struct IAccClientDocMgr : IAccClientDocMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccClientDocMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IAccDictionary.cs b/sources/Interop/Windows/Windows/um/MSAAText/IAccDictionary.cs index 9ff56c74c4..58432a78a8 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IAccDictionary.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IAccDictionary.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1DC4CB5F-D737-474D-ADE9-5CCFC9BC1CC9")] [NativeTypeName("struct IAccDictionary : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccDictionary : IAccDictionary.Interface +public unsafe partial struct IAccDictionary : IAccDictionary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccDictionary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IAccServerDocMgr.cs b/sources/Interop/Windows/Windows/um/MSAAText/IAccServerDocMgr.cs index 5d41895b91..660a466b6a 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IAccServerDocMgr.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IAccServerDocMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AD7C73CF-6DD5-4855-ABC2-B04BAD5B9153")] [NativeTypeName("struct IAccServerDocMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccServerDocMgr : IAccServerDocMgr.Interface +public unsafe partial struct IAccServerDocMgr : IAccServerDocMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccServerDocMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IAccStore.cs b/sources/Interop/Windows/Windows/um/MSAAText/IAccStore.cs index 4dc6707d82..056b397df4 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IAccStore.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IAccStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E2CD4A63-2B72-4D48-B739-95E4765195BA")] [NativeTypeName("struct IAccStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccStore : IAccStore.Interface +public unsafe partial struct IAccStore : IAccStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IClonableWrapper.cs b/sources/Interop/Windows/Windows/um/MSAAText/IClonableWrapper.cs index dc76cfbefd..f18e6dea31 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IClonableWrapper.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IClonableWrapper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B33E75FF-E84C-4DCA-A25C-33B8DC003374")] [NativeTypeName("struct IClonableWrapper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IClonableWrapper : IClonableWrapper.Interface +public unsafe partial struct IClonableWrapper : IClonableWrapper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClonableWrapper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ICoCreateLocally.cs b/sources/Interop/Windows/Windows/um/MSAAText/ICoCreateLocally.cs index 8f907a82af..3c73381907 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ICoCreateLocally.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ICoCreateLocally.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("03DE00AA-F272-41E3-99CB-03C5E8114EA0")] [NativeTypeName("struct ICoCreateLocally : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICoCreateLocally : ICoCreateLocally.Interface +public unsafe partial struct ICoCreateLocally : ICoCreateLocally.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoCreateLocally)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ICoCreatedLocally.cs b/sources/Interop/Windows/Windows/um/MSAAText/ICoCreatedLocally.cs index 4196b71f46..4bdc42e660 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ICoCreatedLocally.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ICoCreatedLocally.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0A53EB6C-1908-4742-8CFF-2CEE2E93F94C")] [NativeTypeName("struct ICoCreatedLocally : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICoCreatedLocally : ICoCreatedLocally.Interface +public unsafe partial struct ICoCreatedLocally : ICoCreatedLocally.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICoCreatedLocally)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IDocWrap.cs b/sources/Interop/Windows/Windows/um/MSAAText/IDocWrap.cs index efac807805..45161d29a8 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IDocWrap.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IDocWrap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DCD285FE-0BE0-43BD-99C9-AAAEC513C555")] [NativeTypeName("struct IDocWrap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDocWrap : IDocWrap.Interface +public unsafe partial struct IDocWrap : IDocWrap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocWrap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IInternalDocWrap.cs b/sources/Interop/Windows/Windows/um/MSAAText/IInternalDocWrap.cs index 81e29d1821..a20ef750fd 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IInternalDocWrap.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IInternalDocWrap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E1AA6466-9DB4-40BA-BE03-77C38E8E60B2")] [NativeTypeName("struct IInternalDocWrap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternalDocWrap : IInternalDocWrap.Interface +public unsafe partial struct IInternalDocWrap : IInternalDocWrap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternalDocWrap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPEx.cs b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPEx.cs index b98a0932a3..07b4760a1a 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPEx.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2DE3BC2-3D8E-11D3-81A9-F753FBE61A00")] [NativeTypeName("struct ITextStoreACPEx : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreACPEx : ITextStoreACPEx.Interface +public unsafe partial struct ITextStoreACPEx : ITextStoreACPEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACPEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPSinkEx.cs b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPSinkEx.cs index 8f4f81894d..73fe30bd45 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPSinkEx.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreACPSinkEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2BDF9464-41E2-43E3-950C-A6865BA25CD4")] [NativeTypeName("struct ITextStoreACPSinkEx : ITextStoreACPSink")] [NativeInheritance("ITextStoreACPSink")] -public unsafe partial struct ITextStoreACPSinkEx : ITextStoreACPSinkEx.Interface +public unsafe partial struct ITextStoreACPSinkEx : ITextStoreACPSinkEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACPSinkEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreAnchorEx.cs b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreAnchorEx.cs index 521124152d..f5c5a0dcf7 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreAnchorEx.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreAnchorEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2DE3BC1-3D8E-11D3-81A9-F753FBE61A00")] [NativeTypeName("struct ITextStoreAnchorEx : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreAnchorEx : ITextStoreAnchorEx.Interface +public unsafe partial struct ITextStoreAnchorEx : ITextStoreAnchorEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreAnchorEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreSinkAnchorEx.cs b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreSinkAnchorEx.cs index 87176f07e9..b29e47bbdc 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreSinkAnchorEx.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ITextStoreSinkAnchorEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("25642426-028D-4474-977B-111BB114FE3E")] [NativeTypeName("struct ITextStoreSinkAnchorEx : ITextStoreAnchorSink")] [NativeInheritance("ITextStoreAnchorSink")] -public unsafe partial struct ITextStoreSinkAnchorEx : ITextStoreSinkAnchorEx.Interface +public unsafe partial struct ITextStoreSinkAnchorEx : ITextStoreSinkAnchorEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreSinkAnchorEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/ITfMSAAControl.cs b/sources/Interop/Windows/Windows/um/MSAAText/ITfMSAAControl.cs index 1b765bfd62..35988409ce 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/ITfMSAAControl.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/ITfMSAAControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B5F8FB3B-393F-4F7C-84CB-504924C2705A")] [NativeTypeName("struct ITfMSAAControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMSAAControl : ITfMSAAControl.Interface +public unsafe partial struct ITfMSAAControl : ITfMSAAControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMSAAControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/IVersionInfo.cs b/sources/Interop/Windows/Windows/um/MSAAText/IVersionInfo.cs index f901e22958..c1c6317b13 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/IVersionInfo.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/IVersionInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("401518EC-DB00-4611-9B29-2A0E4B9AFA85")] [NativeTypeName("struct IVersionInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVersionInfo : IVersionInfo.Interface +public unsafe partial struct IVersionInfo : IVersionInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVersionInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MSAAText/MSAAControl.cs b/sources/Interop/Windows/Windows/um/MSAAText/MSAAControl.cs index 486307fb0c..8a30cf134b 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/MSAAControl.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/MSAAControl.cs @@ -3,12 +3,16 @@ // Ported from um/MSAAText.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("08CD963F-7A3E-4F5C-9BD8-D692BB043C5B")] -public partial struct MSAAControl +public unsafe partial struct MSAAControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_MSAAControl)); } diff --git a/sources/Interop/Windows/Windows/um/MSChapp/ENCRYPTED_LM_OWF_PASSWORD.cs b/sources/Interop/Windows/Windows/um/MSChapp/ENCRYPTED_LM_OWF_PASSWORD.cs index 720e8ea421..e58f3aa455 100644 --- a/sources/Interop/Windows/Windows/um/MSChapp/ENCRYPTED_LM_OWF_PASSWORD.cs +++ b/sources/Interop/Windows/Windows/um/MSChapp/ENCRYPTED_LM_OWF_PASSWORD.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,6 +23,7 @@ public partial struct _data_e__FixedBuffer public CYPHER_BLOCK e0; public CYPHER_BLOCK e1; + [UnscopedRef] public ref CYPHER_BLOCK this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -32,6 +34,7 @@ public ref CYPHER_BLOCK this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/MSChapp/LM_OWF_PASSWORD.cs b/sources/Interop/Windows/Windows/um/MSChapp/LM_OWF_PASSWORD.cs index 4113e50e0f..39622af520 100644 --- a/sources/Interop/Windows/Windows/um/MSChapp/LM_OWF_PASSWORD.cs +++ b/sources/Interop/Windows/Windows/um/MSChapp/LM_OWF_PASSWORD.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,6 +23,7 @@ public partial struct _data_e__FixedBuffer public CYPHER_BLOCK e0; public CYPHER_BLOCK e1; + [UnscopedRef] public ref CYPHER_BLOCK this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -32,6 +34,7 @@ public ref CYPHER_BLOCK this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrEnumItems.cs b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrEnumItems.cs index 7935d870b1..b89ed80db9 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrEnumItems.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrEnumItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6295DF2A-35EE-11D1-8707-00C04FD93327")] [NativeTypeName("struct ISyncMgrEnumItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrEnumItems : ISyncMgrEnumItems.Interface +public unsafe partial struct ISyncMgrEnumItems : ISyncMgrEnumItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrEnumItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrRegister.cs b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrRegister.cs index 7d5471ec94..8e69f81ee5 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrRegister.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrRegister.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6295DF42-35EE-11D1-8707-00C04FD93327")] [NativeTypeName("struct ISyncMgrRegister : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrRegister : ISyncMgrRegister.Interface +public unsafe partial struct ISyncMgrRegister : ISyncMgrRegister.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrRegister)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronize.cs b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronize.cs index 141f7736d2..dae6d7bbdd 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronize.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronize.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6295DF40-35EE-11D1-8707-00C04FD93327")] [NativeTypeName("struct ISyncMgrSynchronize : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSynchronize : ISyncMgrSynchronize.Interface +public unsafe partial struct ISyncMgrSynchronize : ISyncMgrSynchronize.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSynchronize)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeCallback.cs b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeCallback.cs index e09b7c8dde..44cd792a3d 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeCallback.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6295DF41-35EE-11D1-8707-00C04FD93327")] [NativeTypeName("struct ISyncMgrSynchronizeCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSynchronizeCallback : ISyncMgrSynchronizeCallback.Interface +public unsafe partial struct ISyncMgrSynchronizeCallback : ISyncMgrSynchronizeCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSynchronizeCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeInvoke.cs b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeInvoke.cs index 090b2935a0..65af4e25f8 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeInvoke.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/ISyncMgrSynchronizeInvoke.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6295DF2C-35EE-11D1-8707-00C04FD93327")] [NativeTypeName("struct ISyncMgrSynchronizeInvoke : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSynchronizeInvoke : ISyncMgrSynchronizeInvoke.Interface +public unsafe partial struct ISyncMgrSynchronizeInvoke : ISyncMgrSynchronizeInvoke.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSynchronizeInvoke)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Mobsync/SyncMgr.cs b/sources/Interop/Windows/Windows/um/Mobsync/SyncMgr.cs index 37a7300357..199babb9ae 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/SyncMgr.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/SyncMgr.cs @@ -3,12 +3,16 @@ // Ported from um/Mobsync.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6295DF27-35EE-11D1-8707-00C04FD93327")] -public partial struct SyncMgr +public unsafe partial struct SyncMgr : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncMgr)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ApplicationCache.cs b/sources/Interop/Windows/Windows/um/MsHTML/ApplicationCache.cs index 03dc02bbe3..e16e833725 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ApplicationCache.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ApplicationCache.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510829-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct ApplicationCache +public unsafe partial struct ApplicationCache : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationCache)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/BlockFormats.cs b/sources/Interop/Windows/Windows/um/MsHTML/BlockFormats.cs index 211ab3c8ce..b4c5be6738 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/BlockFormats.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/BlockFormats.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F831-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct BlockFormats +public unsafe partial struct BlockFormats : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_BlockFormats)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CClientCaps.cs b/sources/Interop/Windows/Windows/um/MsHTML/CClientCaps.cs index c8e7818b46..e6400fc08d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CClientCaps.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CClientCaps.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7E8BC44E-AEFF-11D1-89C2-00C04FB6BFC4")] -public partial struct CClientCaps +public unsafe partial struct CClientCaps : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CClientCaps)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CEventObj.cs b/sources/Interop/Windows/Windows/um/MsHTML/CEventObj.cs index 279515a985..6b12ae2543 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CEventObj.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CEventObj.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F48A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CEventObj +public unsafe partial struct CEventObj : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CEventObj)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CMimeTypes.cs b/sources/Interop/Windows/Windows/um/MsHTML/CMimeTypes.cs index 3404684e67..8cfe7e8672 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CMimeTypes.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CMimeTypes.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3FE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CMimeTypes +public unsafe partial struct CMimeTypes : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CMimeTypes)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/COpsProfile.cs b/sources/Interop/Windows/Windows/um/MsHTML/COpsProfile.cs index 28fec2b6d1..22615fa3e6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/COpsProfile.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/COpsProfile.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F402-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct COpsProfile +public unsafe partial struct COpsProfile : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_COpsProfile)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CPlugins.cs b/sources/Interop/Windows/Windows/um/MsHTML/CPlugins.cs index 975ef458b3..e3ae922b2a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CPlugins.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CPlugins.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3FF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CPlugins +public unsafe partial struct CPlugins : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CPlugins)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CPrintManagerTemplatePrinter.cs b/sources/Interop/Windows/Windows/um/MsHTML/CPrintManagerTemplatePrinter.cs index 5cb9dda086..3fbb95c68f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CPrintManagerTemplatePrinter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CPrintManagerTemplatePrinter.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("63619F54-9D71-4C23-A08D-50D7F18DB2E9")] -public partial struct CPrintManagerTemplatePrinter +public unsafe partial struct CPrintManagerTemplatePrinter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CPrintManagerTemplatePrinter)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CTemplatePrinter.cs b/sources/Interop/Windows/Windows/um/MsHTML/CTemplatePrinter.cs index 1bf0953de3..5e45f035c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CTemplatePrinter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CTemplatePrinter.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F6B3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CTemplatePrinter +public unsafe partial struct CTemplatePrinter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CTemplatePrinter)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CanvasGradient.cs b/sources/Interop/Windows/Windows/um/MsHTML/CanvasGradient.cs index 0abe98aa41..945b3751ac 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CanvasGradient.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CanvasGradient.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510715-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CanvasGradient +public unsafe partial struct CanvasGradient : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CanvasGradient)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CanvasImageData.cs b/sources/Interop/Windows/Windows/um/MsHTML/CanvasImageData.cs index 17036e6c7f..4a9c34040b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CanvasImageData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CanvasImageData.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051071B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CanvasImageData +public unsafe partial struct CanvasImageData : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CanvasImageData)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CanvasPattern.cs b/sources/Interop/Windows/Windows/um/MsHTML/CanvasPattern.cs index 8b175a89d1..4e860d78bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CanvasPattern.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CanvasPattern.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510717-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CanvasPattern +public unsafe partial struct CanvasPattern : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CanvasPattern)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CanvasRenderingContext2D.cs b/sources/Interop/Windows/Windows/um/MsHTML/CanvasRenderingContext2D.cs index 27e2bd1659..07cdc27929 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CanvasRenderingContext2D.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CanvasRenderingContext2D.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510700-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CanvasRenderingContext2D +public unsafe partial struct CanvasRenderingContext2D : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CanvasRenderingContext2D)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/CanvasTextMetrics.cs b/sources/Interop/Windows/Windows/um/MsHTML/CanvasTextMetrics.cs index dacb4b9170..25769323b3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/CanvasTextMetrics.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/CanvasTextMetrics.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510719-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct CanvasTextMetrics +public unsafe partial struct CanvasTextMetrics : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CanvasTextMetrics)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMBeforeUnloadEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMBeforeUnloadEvent.cs index 17f031fadb..2b9e4464d8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMBeforeUnloadEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMBeforeUnloadEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510764-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMBeforeUnloadEvent +public unsafe partial struct DOMBeforeUnloadEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMBeforeUnloadEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMChildrenCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMChildrenCollection.cs index e0299b6a49..3152bfe9f1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMChildrenCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMChildrenCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5AA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMChildrenCollection +public unsafe partial struct DOMChildrenCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMChildrenCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMCloseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMCloseEvent.cs index 489ed120ee..ff8237a963 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMCloseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMCloseEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510800-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMCloseEvent +public unsafe partial struct DOMCloseEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMCloseEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMCompositionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMCompositionEvent.cs index 15fbd07ab8..591623d449 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMCompositionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMCompositionEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106D9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMCompositionEvent +public unsafe partial struct DOMCompositionEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMCompositionEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMCustomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMCustomEvent.cs index e34a0215c7..7ab855df97 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMCustomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMCustomEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106DF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMCustomEvent +public unsafe partial struct DOMCustomEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMCustomEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMDocumentType.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMDocumentType.cs index bb36374368..3d3d4ee758 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMDocumentType.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMDocumentType.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510739-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMDocumentType +public unsafe partial struct DOMDocumentType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMDocumentType)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMDragEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMDragEvent.cs index e7702593ff..fbcc34f2a2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMDragEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMDragEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510762-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMDragEvent +public unsafe partial struct DOMDragEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMDragEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMEvent.cs index 5edfd0c282..765d66e23c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305104BB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMEvent +public unsafe partial struct DOMEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMException.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMException.cs index 1a2df8f201..4aeb63af4e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMException.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051072C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMException +public unsafe partial struct DOMException : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMException)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMFocusEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMFocusEvent.cs index fd78895246..d5cb07891e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMFocusEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMFocusEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106CD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMFocusEvent +public unsafe partial struct DOMFocusEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMFocusEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMKeyboardEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMKeyboardEvent.cs index d08bcc4dde..e66bb4a468 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMKeyboardEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMKeyboardEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106D7-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMKeyboardEvent +public unsafe partial struct DOMKeyboardEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMKeyboardEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSAnimationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSAnimationEvent.cs index a51b99fca9..cf50c8b8e7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSAnimationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSAnimationEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107B8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMSAnimationEvent +public unsafe partial struct DOMMSAnimationEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMSAnimationEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSManipulationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSManipulationEvent.cs index 7b18425df9..109f97db2f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSManipulationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSManipulationEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510817-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMSManipulationEvent +public unsafe partial struct DOMMSManipulationEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMSManipulationEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSTransitionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSTransitionEvent.cs index 3fd4b5ac0e..bcd36327f7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMSTransitionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMSTransitionEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107B6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMSTransitionEvent +public unsafe partial struct DOMMSTransitionEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMSTransitionEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMessageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMessageEvent.cs index 07882a06ad..53ff3a6b06 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMessageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMessageEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510721-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMessageEvent +public unsafe partial struct DOMMessageEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMessageEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseEvent.cs index 46af49b1ad..0f78cc9b50 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106CF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMouseEvent +public unsafe partial struct DOMMouseEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMouseEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseWheelEvent.cs index 31adb579b4..ae62f3a3b3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMouseWheelEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106D1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMouseWheelEvent +public unsafe partial struct DOMMouseWheelEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMouseWheelEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMMutationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMMutationEvent.cs index 07aa981e99..f34c9fa646 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMMutationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMMutationEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106DB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMMutationEvent +public unsafe partial struct DOMMutationEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMMutationEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMParser.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMParser.cs index 73e549d519..e064a0c812 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMParser.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMParser.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510782-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMParser +public unsafe partial struct DOMParser : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMParser)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMParserFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMParserFactory.cs index fe7ae1d94b..b3e0576a10 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMParserFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMParserFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510784-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMParserFactory +public unsafe partial struct DOMParserFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMParserFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMProcessingInstruction.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMProcessingInstruction.cs index daa237e72a..97039d0fb8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMProcessingInstruction.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMProcessingInstruction.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510743-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMProcessingInstruction +public unsafe partial struct DOMProcessingInstruction : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMProcessingInstruction)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMProgressEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMProgressEvent.cs index 3fe6558e11..03c7c671d5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMProgressEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMProgressEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051071F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMProgressEvent +public unsafe partial struct DOMProgressEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMProgressEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMSiteModeEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMSiteModeEvent.cs index a18620ae34..67ddd68dfb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMSiteModeEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMSiteModeEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510766-98B6-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMSiteModeEvent +public unsafe partial struct DOMSiteModeEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMSiteModeEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMStorageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMStorageEvent.cs index 6affb77c9f..d759f7ea77 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMStorageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMStorageEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510723-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMStorageEvent +public unsafe partial struct DOMStorageEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMStorageEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMTextEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMTextEvent.cs index 51e42e8596..088e378fc9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMTextEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMTextEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106D5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMTextEvent +public unsafe partial struct DOMTextEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMTextEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMUIEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMUIEvent.cs index 2be0770c6d..499942da24 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMUIEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMUIEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106CB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMUIEvent +public unsafe partial struct DOMUIEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMUIEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DOMWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DOMWheelEvent.cs index 188e723737..c4bcf956f2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DOMWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DOMWheelEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106D3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct DOMWheelEvent +public unsafe partial struct DOMWheelEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DOMWheelEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DWebBridgeEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/DWebBridgeEvents.cs index ae347ed3f7..dc345199c3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DWebBridgeEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DWebBridgeEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A6D897FF-0A95-11D1-B0BA-006008166E11")] [NativeTypeName("struct DWebBridgeEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DWebBridgeEvents : DWebBridgeEvents.Interface +public unsafe partial struct DWebBridgeEvents : DWebBridgeEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DWebBridgeEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispApplicationCache.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispApplicationCache.cs index 6f83a52262..3bd1147301 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispApplicationCache.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispApplicationCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900E4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispApplicationCache : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispApplicationCache : DispApplicationCache.Interface +public unsafe partial struct DispApplicationCache : DispApplicationCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispApplicationCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCEventObj.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCEventObj.cs index 456816443e..06743bd347 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCEventObj.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCEventObj.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F558-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCEventObj : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCEventObj : DispCEventObj.Interface +public unsafe partial struct DispCEventObj : DispCEventObj.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCEventObj)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCPlugins.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCPlugins.cs index e35e53ed18..6f7b0321bc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCPlugins.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCPlugins.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F54A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCPlugins : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCPlugins : DispCPlugins.Interface +public unsafe partial struct DispCPlugins : DispCPlugins.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCPlugins)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCPrintManagerTemplatePrinter.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCPrintManagerTemplatePrinter.cs index fc72cb3b63..dee4e14c33 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCPrintManagerTemplatePrinter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCPrintManagerTemplatePrinter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900E9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCPrintManagerTemplatePrinter : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCPrintManagerTemplatePrinter : DispCPrintManagerTemplatePrinter.Interface +public unsafe partial struct DispCPrintManagerTemplatePrinter : DispCPrintManagerTemplatePrinter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCPrintManagerTemplatePrinter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasGradient.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasGradient.cs index ab166771d4..bb62d26757 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasGradient.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasGradient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCanvasGradient : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCanvasGradient : DispCanvasGradient.Interface +public unsafe partial struct DispCanvasGradient : DispCanvasGradient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCanvasGradient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasImageData.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasImageData.cs index b3335a0b7e..3269d312ad 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasImageData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasImageData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCanvasImageData : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCanvasImageData : DispCanvasImageData.Interface +public unsafe partial struct DispCanvasImageData : DispCanvasImageData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCanvasImageData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasPattern.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasPattern.cs index b22233c097..c16e39a52c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasPattern.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasPattern.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCanvasPattern : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCanvasPattern : DispCanvasPattern.Interface +public unsafe partial struct DispCanvasPattern : DispCanvasPattern.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCanvasPattern)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasRenderingContext2D.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasRenderingContext2D.cs index b45fa97fa2..9df35a1b4b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasRenderingContext2D.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasRenderingContext2D.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590082-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCanvasRenderingContext2D : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCanvasRenderingContext2D : DispCanvasRenderingContext2D.Interface +public unsafe partial struct DispCanvasRenderingContext2D : DispCanvasRenderingContext2D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCanvasRenderingContext2D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasTextMetrics.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasTextMetrics.cs index 532acb36a8..cb10b7fea9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasTextMetrics.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispCanvasTextMetrics.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispCanvasTextMetrics : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispCanvasTextMetrics : DispCanvasTextMetrics.Interface +public unsafe partial struct DispCanvasTextMetrics : DispCanvasTextMetrics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispCanvasTextMetrics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMBeforeUnloadEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMBeforeUnloadEvent.cs index 5d4a8af884..0330238baa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMBeforeUnloadEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMBeforeUnloadEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900A8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMBeforeUnloadEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMBeforeUnloadEvent : DispDOMBeforeUnloadEvent.Interface +public unsafe partial struct DispDOMBeforeUnloadEvent : DispDOMBeforeUnloadEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMBeforeUnloadEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMChildrenCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMChildrenCollection.cs index 988434326c..35e438e1c6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMChildrenCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMChildrenCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F577-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMChildrenCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMChildrenCollection : DispDOMChildrenCollection.Interface +public unsafe partial struct DispDOMChildrenCollection : DispDOMChildrenCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMChildrenCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCloseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCloseEvent.cs index eaf957ec1b..c16b506d3f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCloseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCloseEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900DC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMCloseEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMCloseEvent : DispDOMCloseEvent.Interface +public unsafe partial struct DispDOMCloseEvent : DispDOMCloseEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMCloseEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCompositionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCompositionEvent.cs index e58e66f172..8202726d6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCompositionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCompositionEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590078-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMCompositionEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMCompositionEvent : DispDOMCompositionEvent.Interface +public unsafe partial struct DispDOMCompositionEvent : DispDOMCompositionEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMCompositionEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCustomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCustomEvent.cs index afe43f6739..70313dca6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCustomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMCustomEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059007C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMCustomEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMCustomEvent : DispDOMCustomEvent.Interface +public unsafe partial struct DispDOMCustomEvent : DispDOMCustomEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMCustomEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDocumentType.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDocumentType.cs index 5b06ff0372..b05d429ade 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDocumentType.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDocumentType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590098-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMDocumentType : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMDocumentType : DispDOMDocumentType.Interface +public unsafe partial struct DispDOMDocumentType : DispDOMDocumentType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMDocumentType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDragEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDragEvent.cs index b1013d199c..fd9f0f1d4a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDragEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMDragEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900A7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMDragEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMDragEvent : DispDOMDragEvent.Interface +public unsafe partial struct DispDOMDragEvent : DispDOMDragEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMDragEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMEvent.cs index 3096c90fdb..4a86e04619 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMEvent : DispDOMEvent.Interface +public unsafe partial struct DispDOMEvent : DispDOMEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMException.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMException.cs index 1491d80995..9af2fcb757 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590094-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMException : DispDOMException.Interface +public unsafe partial struct DispDOMException : DispDOMException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMFocusEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMFocusEvent.cs index 677e2e146c..a129d58052 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMFocusEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMFocusEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590071-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMFocusEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMFocusEvent : DispDOMFocusEvent.Interface +public unsafe partial struct DispDOMFocusEvent : DispDOMFocusEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMFocusEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMKeyboardEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMKeyboardEvent.cs index a3e86e8924..d83fb4afd6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMKeyboardEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMKeyboardEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590077-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMKeyboardEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMKeyboardEvent : DispDOMKeyboardEvent.Interface +public unsafe partial struct DispDOMKeyboardEvent : DispDOMKeyboardEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMKeyboardEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSAnimationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSAnimationEvent.cs index c00237746e..ff9099bc11 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSAnimationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSAnimationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMSAnimationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMSAnimationEvent : DispDOMMSAnimationEvent.Interface +public unsafe partial struct DispDOMMSAnimationEvent : DispDOMMSAnimationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMSAnimationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSManipulationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSManipulationEvent.cs index 4fe7a51dfe..131e60f994 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSManipulationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSManipulationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900E1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMSManipulationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMSManipulationEvent : DispDOMMSManipulationEvent.Interface +public unsafe partial struct DispDOMMSManipulationEvent : DispDOMMSManipulationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMSManipulationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSTransitionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSTransitionEvent.cs index d0f51f082d..4a7eb5f463 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSTransitionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMSTransitionEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMSTransitionEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMSTransitionEvent : DispDOMMSTransitionEvent.Interface +public unsafe partial struct DispDOMMSTransitionEvent : DispDOMMSTransitionEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMSTransitionEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMessageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMessageEvent.cs index 2af96b74b8..41895ae258 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMessageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMessageEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590092-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMessageEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMessageEvent : DispDOMMessageEvent.Interface +public unsafe partial struct DispDOMMessageEvent : DispDOMMessageEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMessageEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseEvent.cs index 14f72c036a..0278368f2a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590073-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMouseEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMouseEvent : DispDOMMouseEvent.Interface +public unsafe partial struct DispDOMMouseEvent : DispDOMMouseEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMouseEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseWheelEvent.cs index 73605f3a84..d9a5520e82 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMouseWheelEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590074-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMouseWheelEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMouseWheelEvent : DispDOMMouseWheelEvent.Interface +public unsafe partial struct DispDOMMouseWheelEvent : DispDOMMouseWheelEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMouseWheelEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMutationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMutationEvent.cs index eec274e417..f2038328e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMutationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMMutationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590079-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMMutationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMMutationEvent : DispDOMMutationEvent.Interface +public unsafe partial struct DispDOMMutationEvent : DispDOMMutationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMMutationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMParser.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMParser.cs index 456e1532a5..85ad2ee213 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMParser.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMParser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900AE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMParser : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMParser : DispDOMParser.Interface +public unsafe partial struct DispDOMParser : DispDOMParser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMParser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProcessingInstruction.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProcessingInstruction.cs index 53cd48383d..b11db9f7c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProcessingInstruction.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProcessingInstruction.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMProcessingInstruction : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMProcessingInstruction : DispDOMProcessingInstruction.Interface +public unsafe partial struct DispDOMProcessingInstruction : DispDOMProcessingInstruction.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMProcessingInstruction)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProgressEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProgressEvent.cs index 09ee8102fd..9df0ae3c5d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProgressEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMProgressEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590091-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMProgressEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMProgressEvent : DispDOMProgressEvent.Interface +public unsafe partial struct DispDOMProgressEvent : DispDOMProgressEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMProgressEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMSiteModeEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMSiteModeEvent.cs index d22a215aaf..c0d1a1ed9e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMSiteModeEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMSiteModeEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900A9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMSiteModeEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMSiteModeEvent : DispDOMSiteModeEvent.Interface +public unsafe partial struct DispDOMSiteModeEvent : DispDOMSiteModeEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMSiteModeEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMStorageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMStorageEvent.cs index efa888d8c8..8d5276f20e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMStorageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMStorageEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590093-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMStorageEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMStorageEvent : DispDOMStorageEvent.Interface +public unsafe partial struct DispDOMStorageEvent : DispDOMStorageEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMStorageEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMTextEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMTextEvent.cs index 00a9463c36..7b8553bcbd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMTextEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMTextEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590076-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMTextEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMTextEvent : DispDOMTextEvent.Interface +public unsafe partial struct DispDOMTextEvent : DispDOMTextEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMTextEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMUIEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMUIEvent.cs index de6af003be..f354db663e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMUIEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMUIEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590072-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMUIEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMUIEvent : DispDOMUIEvent.Interface +public unsafe partial struct DispDOMUIEvent : DispDOMUIEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMUIEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMWheelEvent.cs index c51711a13e..feb1ddff28 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispDOMWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispDOMWheelEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590075-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispDOMWheelEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispDOMWheelEvent : DispDOMWheelEvent.Interface +public unsafe partial struct DispDOMWheelEvent : DispDOMWheelEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispDOMWheelEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispEventException.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispEventException.cs index ec11f357f1..e165463f3d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispEventException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispEventException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590099-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispEventException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispEventException : DispEventException.Interface +public unsafe partial struct DispEventException : DispEventException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispEventException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCAttachBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCAttachBehavior.cs index abc5174aaf..7f09ee696b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCAttachBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCAttachBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F583-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCAttachBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCAttachBehavior : DispHTCAttachBehavior.Interface +public unsafe partial struct DispHTCAttachBehavior : DispHTCAttachBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCAttachBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDefaultDispatch.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDefaultDispatch.cs index d2499a19cf..9ffba53c28 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDefaultDispatch.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDefaultDispatch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F573-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCDefaultDispatch : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCDefaultDispatch : DispHTCDefaultDispatch.Interface +public unsafe partial struct DispHTCDefaultDispatch : DispHTCDefaultDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCDefaultDispatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDescBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDescBehavior.cs index 5d00f8be80..92537021f2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDescBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCDescBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F57E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCDescBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCDescBehavior : DispHTCDescBehavior.Interface +public unsafe partial struct DispHTCDescBehavior : DispHTCDescBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCDescBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCEventBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCEventBehavior.cs index 5adcd3954c..780632d542 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCEventBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCEventBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F574-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCEventBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCEventBehavior : DispHTCEventBehavior.Interface +public unsafe partial struct DispHTCEventBehavior : DispHTCEventBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCEventBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCMethodBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCMethodBehavior.cs index 5128c34d83..56b187708e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCMethodBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCMethodBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F587-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCMethodBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCMethodBehavior : DispHTCMethodBehavior.Interface +public unsafe partial struct DispHTCMethodBehavior : DispHTCMethodBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCMethodBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCPropertyBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCPropertyBehavior.cs index 5a1c26c8f3..7cbb6624d2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTCPropertyBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTCPropertyBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F57F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTCPropertyBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTCPropertyBehavior : DispHTCPropertyBehavior.Interface +public unsafe partial struct DispHTCPropertyBehavior : DispHTCPropertyBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTCPropertyBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAnchorElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAnchorElement.cs index 8cc5cf0374..3f8b498942 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAnchorElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAnchorElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F502-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAnchorElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAnchorElement : DispHTMLAnchorElement.Interface +public unsafe partial struct DispHTMLAnchorElement : DispHTMLAnchorElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAnchorElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAppBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAppBehavior.cs index 08547ef353..257c115524 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAppBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAppBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F57C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAppBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAppBehavior : DispHTMLAppBehavior.Interface +public unsafe partial struct DispHTMLAppBehavior : DispHTMLAppBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAppBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreaElement.cs index 7c51247f6d..44acfedf54 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F503-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAreaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAreaElement : DispHTMLAreaElement.Interface +public unsafe partial struct DispHTMLAreaElement : DispHTMLAreaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAreaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreasCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreasCollection.cs index 64a9aef0bd..566f9db35d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreasCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAreasCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F56A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAreasCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAreasCollection : DispHTMLAreasCollection.Interface +public unsafe partial struct DispHTMLAreasCollection : DispHTMLAreasCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAreasCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAttributeCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAttributeCollection.cs index ec0d46784f..2bde4fa24a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAttributeCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAttributeCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F56C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAttributeCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAttributeCollection : DispHTMLAttributeCollection.Interface +public unsafe partial struct DispHTMLAttributeCollection : DispHTMLAttributeCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAttributeCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAudioElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAudioElement.cs index bf0c20c858..a9952165aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAudioElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLAudioElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLAudioElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLAudioElement : DispHTMLAudioElement.Interface +public unsafe partial struct DispHTMLAudioElement : DispHTMLAudioElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLAudioElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBGsound.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBGsound.cs index f227fbe62a..ba1d34f08b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBGsound.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBGsound.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBGsound : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBGsound : DispHTMLBGsound.Interface +public unsafe partial struct DispHTMLBGsound : DispHTMLBGsound.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBGsound)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBRElement.cs index ecfc68c568..bb1beeaaaa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBRElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBRElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBRElement : DispHTMLBRElement.Interface +public unsafe partial struct DispHTMLBRElement : DispHTMLBRElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBRElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseElement.cs index 000d24a204..1964270abb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F518-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBaseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBaseElement : DispHTMLBaseElement.Interface +public unsafe partial struct DispHTMLBaseElement : DispHTMLBaseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBaseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseFontElement.cs index f595963e19..fae208c4b9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBaseFontElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F504-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBaseFontElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBaseFontElement : DispHTMLBaseFontElement.Interface +public unsafe partial struct DispHTMLBaseFontElement : DispHTMLBaseFontElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBaseFontElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBlockElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBlockElement.cs index df4582fbc0..fdc779584a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBlockElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBlockElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F506-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBlockElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBlockElement : DispHTMLBlockElement.Interface +public unsafe partial struct DispHTMLBlockElement : DispHTMLBlockElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBlockElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBody.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBody.cs index 591463c0ae..19c55e941e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBody.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLBody.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F507-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLBody : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLBody : DispHTMLBody.Interface +public unsafe partial struct DispHTMLBody : DispHTMLBody.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLBody)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLButtonElement.cs index 8863a3ae06..e5ff8d2d0b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLButtonElement : DispHTMLButtonElement.Interface +public unsafe partial struct DispHTMLButtonElement : DispHTMLButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSImportRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSImportRule.cs index 02b96e7a62..52eaae373c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSImportRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSImportRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059007E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSImportRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSImportRule : DispHTMLCSSImportRule.Interface +public unsafe partial struct DispHTMLCSSImportRule : DispHTMLCSSImportRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSImportRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaList.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaList.cs index be6efbf6b1..a6b2a12eb4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590097-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSMediaList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSMediaList : DispHTMLCSSMediaList.Interface +public unsafe partial struct DispHTMLCSSMediaList : DispHTMLCSSMediaList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSMediaList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaRule.cs index 87bf5b32b8..b0fffc35f1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSMediaRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059007F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSMediaRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSMediaRule : DispHTMLCSSMediaRule.Interface +public unsafe partial struct DispHTMLCSSMediaRule : DispHTMLCSSMediaRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSMediaRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSNamespaceRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSNamespaceRule.cs index 269abea16f..a593fc5bf6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSNamespaceRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSNamespaceRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590080-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSNamespaceRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSNamespaceRule : DispHTMLCSSNamespaceRule.Interface +public unsafe partial struct DispHTMLCSSNamespaceRule : DispHTMLCSSNamespaceRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSNamespaceRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSRule.cs index 453c50ec39..53c130fa2b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059007D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSRule : DispHTMLCSSRule.Interface +public unsafe partial struct DispHTMLCSSRule : DispHTMLCSSRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSStyleDeclaration.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSStyleDeclaration.cs index ecd6ddc4c6..fedfc0fcf5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSStyleDeclaration.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCSSStyleDeclaration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCSSStyleDeclaration : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCSSStyleDeclaration : DispHTMLCSSStyleDeclaration.Interface +public unsafe partial struct DispHTMLCSSStyleDeclaration : DispHTMLCSSStyleDeclaration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCSSStyleDeclaration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCanvasElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCanvasElement.cs index 0bd7b34c25..653709780f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCanvasElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCanvasElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059007B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCanvasElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCanvasElement : DispHTMLCanvasElement.Interface +public unsafe partial struct DispHTMLCanvasElement : DispHTMLCanvasElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCanvasElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCommentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCommentElement.cs index 1a05ab0f48..ecc67ee270 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCommentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCommentElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCommentElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCommentElement : DispHTMLCommentElement.Interface +public unsafe partial struct DispHTMLCommentElement : DispHTMLCommentElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCommentElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCurrentStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCurrentStyle.cs index 7ec2948bc8..2e3decbc45 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCurrentStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLCurrentStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F557-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLCurrentStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLCurrentStyle : DispHTMLCurrentStyle.Interface +public unsafe partial struct DispHTMLCurrentStyle : DispHTMLCurrentStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLCurrentStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDDElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDDElement.cs index 0d7d0538ac..36920e61bb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDDElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDDElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDDElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDDElement : DispHTMLDDElement.Interface +public unsafe partial struct DispHTMLDDElement : DispHTMLDDElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDDElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDListElement.cs index 0840d6d9dd..1f5a47a077 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDListElement : DispHTMLDListElement.Interface +public unsafe partial struct DispHTMLDListElement : DispHTMLDListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMAttribute.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMAttribute.cs index aa6c80b4c9..69741212bc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMAttribute.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMAttribute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F564-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDOMAttribute : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDOMAttribute : DispHTMLDOMAttribute.Interface +public unsafe partial struct DispHTMLDOMAttribute : DispHTMLDOMAttribute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDOMAttribute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMImplementation.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMImplementation.cs index 6c5cd6791d..0404ffb914 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMImplementation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMImplementation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F58F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDOMImplementation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDOMImplementation : DispHTMLDOMImplementation.Interface +public unsafe partial struct DispHTMLDOMImplementation : DispHTMLDOMImplementation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDOMImplementation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMRange.cs index fd0ded3339..1f02421c5f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDOMRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDOMRange : DispHTMLDOMRange.Interface +public unsafe partial struct DispHTMLDOMRange : DispHTMLDOMRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDOMRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMTextNode.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMTextNode.cs index e369fc6c42..41a79a29ac 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMTextNode.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDOMTextNode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F565-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDOMTextNode : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDOMTextNode : DispHTMLDOMTextNode.Interface +public unsafe partial struct DispHTMLDOMTextNode : DispHTMLDOMTextNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDOMTextNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDTElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDTElement.cs index 1cd88a898d..a91a87641d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDTElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDTElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDTElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDTElement : DispHTMLDTElement.Interface +public unsafe partial struct DispHTMLDTElement : DispHTMLDTElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDTElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDefaults.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDefaults.cs index 52d75eed9b..443e75da96 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDefaults.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDefaults.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F58C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDefaults : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDefaults : DispHTMLDefaults.Interface +public unsafe partial struct DispHTMLDefaults : DispHTMLDefaults.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDefaults)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivElement.cs index 573622f12a..75fbaa6649 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDivElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDivElement : DispHTMLDivElement.Interface +public unsafe partial struct DispHTMLDivElement : DispHTMLDivElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDivElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivPosition.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivPosition.cs index e854ecdc0c..7d634e6988 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivPosition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDivPosition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDivPosition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDivPosition : DispHTMLDivPosition.Interface +public unsafe partial struct DispHTMLDivPosition : DispHTMLDivPosition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDivPosition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocument.cs index c0c1cd53b2..a4812446bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F55F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDocument : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDocument : DispHTMLDocument.Interface +public unsafe partial struct DispHTMLDocument : DispHTMLDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfo.cs index df04c29126..be9befbafb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDocumentCompatibleInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDocumentCompatibleInfo : DispHTMLDocumentCompatibleInfo.Interface +public unsafe partial struct DispHTMLDocumentCompatibleInfo : DispHTMLDocumentCompatibleInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDocumentCompatibleInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfoCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfoCollection.cs index 0315f00f0e..6a1c229dc1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfoCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLDocumentCompatibleInfoCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLDocumentCompatibleInfoCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLDocumentCompatibleInfoCollection : DispHTMLDocumentCompatibleInfoCollection.Interface +public unsafe partial struct DispHTMLDocumentCompatibleInfoCollection : DispHTMLDocumentCompatibleInfoCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLDocumentCompatibleInfoCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLElementCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLElementCollection.cs index 8e6317dc82..ad82d70e0d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLElementCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLElementCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F56B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLElementCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLElementCollection : DispHTMLElementCollection.Interface +public unsafe partial struct DispHTMLElementCollection : DispHTMLElementCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLElementCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLEmbed.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLEmbed.cs index f72db28c57..d17348f8aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLEmbed.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLEmbed.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLEmbed : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLEmbed : DispHTMLEmbed.Interface +public unsafe partial struct DispHTMLEmbed : DispHTMLEmbed.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLEmbed)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFieldSetElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFieldSetElement.cs index 8f58feea6c..b2ba6e9a3d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFieldSetElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFieldSetElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F545-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFieldSetElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFieldSetElement : DispHTMLFieldSetElement.Interface +public unsafe partial struct DispHTMLFieldSetElement : DispHTMLFieldSetElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFieldSetElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFontElement.cs index 91e6ef62b3..c7b284d459 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFontElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F512-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFontElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFontElement : DispHTMLFontElement.Interface +public unsafe partial struct DispHTMLFontElement : DispHTMLFontElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFontElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFormElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFormElement.cs index f71a3c1196..e6eeceef68 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFormElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFormElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F510-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFormElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFormElement : DispHTMLFormElement.Interface +public unsafe partial struct DispHTMLFormElement : DispHTMLFormElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFormElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameBase.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameBase.cs index a2868bd43c..f4a75d307b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameBase.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameBase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F541-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFrameBase : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFrameBase : DispHTMLFrameBase.Interface +public unsafe partial struct DispHTMLFrameBase : DispHTMLFrameBase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFrameBase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameElement.cs index 2fb1164a85..0ef7da44e0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F513-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFrameElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFrameElement : DispHTMLFrameElement.Interface +public unsafe partial struct DispHTMLFrameElement : DispHTMLFrameElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFrameElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameSetSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameSetSite.cs index 318115132d..9d811aeca1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameSetSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLFrameSetSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F514-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLFrameSetSite : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLFrameSetSite : DispHTMLFrameSetSite.Interface +public unsafe partial struct DispHTMLFrameSetSite : DispHTMLFrameSetSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLFrameSetSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLGenericElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLGenericElement.cs index 5584cf1f5c..6b2ac9676b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLGenericElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLGenericElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F563-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLGenericElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLGenericElement : DispHTMLGenericElement.Interface +public unsafe partial struct DispHTMLGenericElement : DispHTMLGenericElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLGenericElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHRElement.cs index b530d40ecf..dd79b6ce7c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHRElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F53D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLHRElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLHRElement : DispHTMLHRElement.Interface +public unsafe partial struct DispHTMLHRElement : DispHTMLHRElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLHRElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeadElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeadElement.cs index 26e0b2b7e3..cfe34ea6ef 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeadElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeadElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F561-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLHeadElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLHeadElement : DispHTMLHeadElement.Interface +public unsafe partial struct DispHTMLHeadElement : DispHTMLHeadElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLHeadElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeaderElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeaderElement.cs index b1625e0aed..5a6010c2de 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeaderElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHeaderElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F515-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLHeaderElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLHeaderElement : DispHTMLHeaderElement.Interface +public unsafe partial struct DispHTMLHeaderElement : DispHTMLHeaderElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLHeaderElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHistory.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHistory.cs index 8de1dfb6a7..b1a997d1a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHistory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHistory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F549-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLHistory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLHistory : DispHTMLHistory.Interface +public unsafe partial struct DispHTMLHistory : DispHTMLHistory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLHistory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHtmlElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHtmlElement.cs index e8c68d6bea..a4e0042f17 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHtmlElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLHtmlElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F560-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLHtmlElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLHtmlElement : DispHTMLHtmlElement.Interface +public unsafe partial struct DispHTMLHtmlElement : DispHTMLHtmlElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLHtmlElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIFrame.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIFrame.cs index 646315a014..4edd695556 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIFrame.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLIFrame : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLIFrame : DispHTMLIFrame.Interface +public unsafe partial struct DispHTMLIFrame : DispHTMLIFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLIFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLImg.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLImg.cs index 5214c8d4e2..221a964cd1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLImg.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLImg.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLImg : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLImg : DispHTMLImg.Interface +public unsafe partial struct DispHTMLImg : DispHTMLImg.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLImg)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLInputElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLInputElement.cs index 0ca5c4c8ca..f53604857c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLInputElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLInputElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F57D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLInputElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLInputElement : DispHTMLInputElement.Interface +public unsafe partial struct DispHTMLInputElement : DispHTMLInputElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLInputElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIsIndexElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIsIndexElement.cs index 9a7b0c67cb..619f2953cb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIsIndexElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLIsIndexElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F519-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLIsIndexElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLIsIndexElement : DispHTMLIsIndexElement.Interface +public unsafe partial struct DispHTMLIsIndexElement : DispHTMLIsIndexElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLIsIndexElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLIElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLIElement.cs index 85551bda49..9da016450d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLIElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F523-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLLIElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLLIElement : DispHTMLLIElement.Interface +public unsafe partial struct DispHTMLLIElement : DispHTMLLIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLLIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLabelElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLabelElement.cs index d2b71534db..f58e65c0ca 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLabelElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLabelElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F522-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLLabelElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLLabelElement : DispHTMLLabelElement.Interface +public unsafe partial struct DispHTMLLabelElement : DispHTMLLabelElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLLabelElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLegendElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLegendElement.cs index 0577e07846..e318ce5622 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLegendElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLegendElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F546-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLLegendElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLLegendElement : DispHTMLLegendElement.Interface +public unsafe partial struct DispHTMLLegendElement : DispHTMLLegendElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLLegendElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLinkElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLinkElement.cs index d056b5c2c7..ca0a90b212 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLinkElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLinkElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F524-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLLinkElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLLinkElement : DispHTMLLinkElement.Interface +public unsafe partial struct DispHTMLLinkElement : DispHTMLLinkElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLLinkElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLListElement.cs index b550313c01..2d55e802b0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F525-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLListElement : DispHTMLListElement.Interface +public unsafe partial struct DispHTMLListElement : DispHTMLListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLocation.cs index c0b49b4701..2d16d931a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLLocation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F54E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLLocation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLLocation : DispHTMLLocation.Interface +public unsafe partial struct DispHTMLLocation : DispHTMLLocation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLLocation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframeRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframeRule.cs index 1ef6cd8fde..194d0b9f1f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframeRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframeRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900DE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMSCSSKeyframeRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMSCSSKeyframeRule : DispHTMLMSCSSKeyframeRule.Interface +public unsafe partial struct DispHTMLMSCSSKeyframeRule : DispHTMLMSCSSKeyframeRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMSCSSKeyframeRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframesRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframesRule.cs index 97ad138023..38b7f57dbb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframesRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMSCSSKeyframesRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900DF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMSCSSKeyframesRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMSCSSKeyframesRule : DispHTMLMSCSSKeyframesRule.Interface +public unsafe partial struct DispHTMLMSCSSKeyframesRule : DispHTMLMSCSSKeyframesRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMSCSSKeyframesRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMapElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMapElement.cs index ac887ae35c..5f77009dd8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMapElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMapElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F526-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMapElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMapElement : DispHTMLMapElement.Interface +public unsafe partial struct DispHTMLMapElement : DispHTMLMapElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMapElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMarqueeElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMarqueeElement.cs index aec4d18ae6..414aae7412 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMarqueeElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMarqueeElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F527-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMarqueeElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMarqueeElement : DispHTMLMarqueeElement.Interface +public unsafe partial struct DispHTMLMarqueeElement : DispHTMLMarqueeElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMarqueeElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaElement.cs index 17572f9119..7e5be5291b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590088-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMediaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMediaElement : DispHTMLMediaElement.Interface +public unsafe partial struct DispHTMLMediaElement : DispHTMLMediaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMediaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaError.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaError.cs index f97fce55e0..27df6bfa01 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMediaError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590086-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMediaError : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMediaError : DispHTMLMediaError.Interface +public unsafe partial struct DispHTMLMediaError : DispHTMLMediaError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMediaError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMetaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMetaElement.cs index 171ea090e9..d358790a4e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMetaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLMetaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F517-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLMetaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLMetaElement : DispHTMLMetaElement.Interface +public unsafe partial struct DispHTMLMetaElement : DispHTMLMetaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLMetaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespace.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespace.cs index cdc5864aa2..1e3ff9f2bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F54F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLNamespace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLNamespace : DispHTMLNamespace.Interface +public unsafe partial struct DispHTMLNamespace : DispHTMLNamespace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLNamespace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespaceCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespaceCollection.cs index 908b097d87..0dd7c55c48 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespaceCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNamespaceCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F550-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLNamespaceCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLNamespaceCollection : DispHTMLNamespaceCollection.Interface +public unsafe partial struct DispHTMLNamespaceCollection : DispHTMLNamespaceCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLNamespaceCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNavigator.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNavigator.cs index dbb1ad6506..a11b3f3121 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNavigator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNavigator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F54C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLNavigator : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLNavigator : DispHTMLNavigator.Interface +public unsafe partial struct DispHTMLNavigator : DispHTMLNavigator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLNavigator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNextIdElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNextIdElement.cs index 9f0fd51e08..cea6ed33f4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNextIdElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNextIdElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLNextIdElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLNextIdElement : DispHTMLNextIdElement.Interface +public unsafe partial struct DispHTMLNextIdElement : DispHTMLNextIdElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLNextIdElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNoShowElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNoShowElement.cs index 55967b5b20..03d56c9457 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNoShowElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLNoShowElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F528-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLNoShowElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLNoShowElement : DispHTMLNoShowElement.Interface +public unsafe partial struct DispHTMLNoShowElement : DispHTMLNoShowElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLNoShowElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOListElement.cs index 3e0a5a86e3..645e312416 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLOListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLOListElement : DispHTMLOListElement.Interface +public unsafe partial struct DispHTMLOListElement : DispHTMLOListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLOListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLObjectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLObjectElement.cs index 56e6cac173..725b3edd1d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLObjectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLObjectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F529-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLObjectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLObjectElement : DispHTMLObjectElement.Interface +public unsafe partial struct DispHTMLObjectElement : DispHTMLObjectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLObjectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOptionElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOptionElement.cs index 00a66c9d6b..fdee27497b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOptionElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLOptionElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLOptionElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLOptionElement : DispHTMLOptionElement.Interface +public unsafe partial struct DispHTMLOptionElement : DispHTMLOptionElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLOptionElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParaElement.cs index 1b76758d49..92cf78e819 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLParaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLParaElement : DispHTMLParaElement.Interface +public unsafe partial struct DispHTMLParaElement : DispHTMLParaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLParaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParamElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParamElement.cs index 3512510bd4..40b09ad6c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParamElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLParamElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F590-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLParamElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLParamElement : DispHTMLParamElement.Interface +public unsafe partial struct DispHTMLParamElement : DispHTMLParamElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLParamElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformance.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformance.cs index 13fc3abb1e..4491e76ea5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformance.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLPerformance : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLPerformance : DispHTMLPerformance.Interface +public unsafe partial struct DispHTMLPerformance : DispHTMLPerformance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLPerformance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceNavigation.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceNavigation.cs index f1b5b907f0..bb81dbb670 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceNavigation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceNavigation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900A0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLPerformanceNavigation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLPerformanceNavigation : DispHTMLPerformanceNavigation.Interface +public unsafe partial struct DispHTMLPerformanceNavigation : DispHTMLPerformanceNavigation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLPerformanceNavigation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceTiming.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceTiming.cs index 7e71da9753..032770a754 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceTiming.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPerformanceTiming.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900A1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLPerformanceTiming : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLPerformanceTiming : DispHTMLPerformanceTiming.Interface +public unsafe partial struct DispHTMLPerformanceTiming : DispHTMLPerformanceTiming.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLPerformanceTiming)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPhraseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPhraseElement.cs index 5313547ed2..7034d3e42b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPhraseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPhraseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLPhraseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLPhraseElement : DispHTMLPhraseElement.Interface +public unsafe partial struct DispHTMLPhraseElement : DispHTMLPhraseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLPhraseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPopup.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPopup.cs index 3d8ee6b26c..9068bc0d7f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPopup.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLPopup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F589-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLPopup : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLPopup : DispHTMLPopup.Interface +public unsafe partial struct DispHTMLPopup : DispHTMLPopup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLPopup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLProgressElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLProgressElement.cs index 9444f5dfa0..8369557773 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLProgressElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLProgressElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900AF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLProgressElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLProgressElement : DispHTMLProgressElement.Interface +public unsafe partial struct DispHTMLProgressElement : DispHTMLProgressElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLProgressElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRenderStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRenderStyle.cs index 7f7bacb83e..3e464d425c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRenderStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRenderStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F58B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLRenderStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLRenderStyle : DispHTMLRenderStyle.Interface +public unsafe partial struct DispHTMLRenderStyle : DispHTMLRenderStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLRenderStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRichtextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRichtextElement.cs index 2a52fbf15e..6934ea71ac 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRichtextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRichtextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F54D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLRichtextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLRichtextElement : DispHTMLRichtextElement.Interface +public unsafe partial struct DispHTMLRichtextElement : DispHTMLRichtextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLRichtextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRuleStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRuleStyle.cs index a5098ef57d..179acacd5b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRuleStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLRuleStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F55C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLRuleStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLRuleStyle : DispHTMLRuleStyle.Interface +public unsafe partial struct DispHTMLRuleStyle : DispHTMLRuleStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLRuleStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScreen.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScreen.cs index 1a1126efdd..23ecbc0a3e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScreen.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScreen.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F591-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLScreen : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLScreen : DispHTMLScreen.Interface +public unsafe partial struct DispHTMLScreen : DispHTMLScreen.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLScreen)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScriptElement.cs index 75f274a761..dd3bbcec28 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLScriptElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F530-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLScriptElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLScriptElement : DispHTMLScriptElement.Interface +public unsafe partial struct DispHTMLScriptElement : DispHTMLScriptElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLScriptElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSelectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSelectElement.cs index b3340c5f9e..44232df619 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSelectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSelectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F531-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLSelectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLSelectElement : DispHTMLSelectElement.Interface +public unsafe partial struct DispHTMLSelectElement : DispHTMLSelectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLSelectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSemanticElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSemanticElement.cs index 5372ede623..4318c08120 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSemanticElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSemanticElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLSemanticElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLSemanticElement : DispHTMLSemanticElement.Interface +public unsafe partial struct DispHTMLSemanticElement : DispHTMLSemanticElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLSemanticElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSourceElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSourceElement.cs index 0459ea3f52..1e704a2077 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSourceElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSourceElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590089-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLSourceElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLSourceElement : DispHTMLSourceElement.Interface +public unsafe partial struct DispHTMLSourceElement : DispHTMLSourceElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLSourceElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanElement.cs index d214f8e400..c8bd0cc5a2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F548-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLSpanElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLSpanElement : DispHTMLSpanElement.Interface +public unsafe partial struct DispHTMLSpanElement : DispHTMLSpanElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLSpanElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanFlow.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanFlow.cs index 4d8e7ed24e..9c43d22a08 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanFlow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLSpanFlow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F544-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLSpanFlow : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLSpanFlow : DispHTMLSpanFlow.Interface +public unsafe partial struct DispHTMLSpanFlow : DispHTMLSpanFlow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLSpanFlow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStorage.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStorage.cs index a7db4c88e0..801ad4f4fe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStorage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F59D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStorage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStorage : DispHTMLStorage.Interface +public unsafe partial struct DispHTMLStorage : DispHTMLStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyle.cs index d6bd310fae..6c800c5cda 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F55A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyle : DispHTMLStyle.Interface +public unsafe partial struct DispHTMLStyle : DispHTMLStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleElement.cs index 3479ea081f..9d6823ddbf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F511-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleElement : DispHTMLStyleElement.Interface +public unsafe partial struct DispHTMLStyleElement : DispHTMLStyleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleFontFace.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleFontFace.cs index 72e403f24a..1c312cec9a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleFontFace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleFontFace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590081-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleFontFace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleFontFace : DispHTMLStyleFontFace.Interface +public unsafe partial struct DispHTMLStyleFontFace : DispHTMLStyleFontFace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleFontFace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleMedia.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleMedia.cs index 879cd4aa93..1727f3d375 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleMedia.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleMedia.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleMedia : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleMedia : DispHTMLStyleMedia.Interface +public unsafe partial struct DispHTMLStyleMedia : DispHTMLStyleMedia.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleMedia)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheet.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheet.cs index b64f905920..bd5cf4bc85 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheet.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheet.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F58D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheet : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheet : DispHTMLStyleSheet.Interface +public unsafe partial struct DispHTMLStyleSheet : DispHTMLStyleSheet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPage.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPage.cs index 6af3071444..3ea852268e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F540-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetPage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetPage : DispHTMLStyleSheetPage.Interface +public unsafe partial struct DispHTMLStyleSheetPage : DispHTMLStyleSheetPage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetPage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPagesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPagesCollection.cs index 0dc294e11b..443ac1d539 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPagesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetPagesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F543-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetPagesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetPagesCollection : DispHTMLStyleSheetPagesCollection.Interface +public unsafe partial struct DispHTMLStyleSheetPagesCollection : DispHTMLStyleSheetPagesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetPagesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRule.cs index d5a230be77..b58e5eb14c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F50E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetRule : DispHTMLStyleSheetRule.Interface +public unsafe partial struct DispHTMLStyleSheetRule : DispHTMLStyleSheetRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesAppliedCollection.cs index 90f9d7a283..fb1483f24b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesAppliedCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetRulesAppliedCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetRulesAppliedCollection : DispHTMLStyleSheetRulesAppliedCollection.Interface +public unsafe partial struct DispHTMLStyleSheetRulesAppliedCollection : DispHTMLStyleSheetRulesAppliedCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetRulesAppliedCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesCollection.cs index 5a50170e91..bf15df7f10 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetRulesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F52F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetRulesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetRulesCollection : DispHTMLStyleSheetRulesCollection.Interface +public unsafe partial struct DispHTMLStyleSheetRulesCollection : DispHTMLStyleSheetRulesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetRulesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetsCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetsCollection.cs index 12b72f5d7c..adaf825611 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetsCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLStyleSheetsCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F547-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLStyleSheetsCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLStyleSheetsCollection : DispHTMLStyleSheetsCollection.Interface +public unsafe partial struct DispHTMLStyleSheetsCollection : DispHTMLStyleSheetsCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLStyleSheetsCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTable.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTable.cs index 9063cebce6..fa48af1e5b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F532-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTable : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTable : DispHTMLTable.Interface +public unsafe partial struct DispHTMLTable : DispHTMLTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCaption.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCaption.cs index e3a110c65a..e88f41e0e9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCaption.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCaption.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F508-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTableCaption : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTableCaption : DispHTMLTableCaption.Interface +public unsafe partial struct DispHTMLTableCaption : DispHTMLTableCaption.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTableCaption)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCell.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCell.cs index e0bd5a2b5f..f51f7c575d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCell.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCell.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F536-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTableCell : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTableCell : DispHTMLTableCell.Interface +public unsafe partial struct DispHTMLTableCell : DispHTMLTableCell.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTableCell)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCol.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCol.cs index 56549dbeac..a741dfc77f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCol.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableCol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F533-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTableCol : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTableCol : DispHTMLTableCol.Interface +public unsafe partial struct DispHTMLTableCol : DispHTMLTableCol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTableCol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableRow.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableRow.cs index 2b80b04890..5341d5a039 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableRow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableRow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F535-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTableRow : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTableRow : DispHTMLTableRow.Interface +public unsafe partial struct DispHTMLTableRow : DispHTMLTableRow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTableRow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableSection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableSection.cs index bd7e158214..b77ef2411f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableSection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTableSection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F534-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTableSection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTableSection : DispHTMLTableSection.Interface +public unsafe partial struct DispHTMLTableSection : DispHTMLTableSection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTableSection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextAreaElement.cs index c7b6af0593..01a36767c7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextAreaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F521-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTextAreaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTextAreaElement : DispHTMLTextAreaElement.Interface +public unsafe partial struct DispHTMLTextAreaElement : DispHTMLTextAreaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTextAreaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextElement.cs index 83e803b8b5..69d1815263 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F537-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTextElement : DispHTMLTextElement.Interface +public unsafe partial struct DispHTMLTextElement : DispHTMLTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTimeRanges.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTimeRanges.cs index 5d2e368e43..ff43306c0b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTimeRanges.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTimeRanges.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590087-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTimeRanges : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTimeRanges : DispHTMLTimeRanges.Interface +public unsafe partial struct DispHTMLTimeRanges : DispHTMLTimeRanges.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTimeRanges)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTitleElement.cs index 3e5497d3a9..a08818a0b2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLTitleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F516-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLTitleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLTitleElement : DispHTMLTitleElement.Interface +public unsafe partial struct DispHTMLTitleElement : DispHTMLTitleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLTitleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUListElement.cs index 66fa28dd33..66a9268ad2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F538-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLUListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLUListElement : DispHTMLUListElement.Interface +public unsafe partial struct DispHTMLUListElement : DispHTMLUListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLUListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUnknownElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUnknownElement.cs index 54cba0b5e7..efde068868 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUnknownElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUnknownElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F539-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLUnknownElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLUnknownElement : DispHTMLUnknownElement.Interface +public unsafe partial struct DispHTMLUnknownElement : DispHTMLUnknownElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLUnknownElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUrnCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUrnCollection.cs index ebc2d8864f..c843f92c93 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUrnCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLUrnCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F551-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLUrnCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLUrnCollection : DispHTMLUrnCollection.Interface +public unsafe partial struct DispHTMLUrnCollection : DispHTMLUrnCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLUrnCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLVideoElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLVideoElement.cs index 25b6fee25e..b00de5832a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLVideoElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLVideoElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059008B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLVideoElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLVideoElement : DispHTMLVideoElement.Interface +public unsafe partial struct DispHTMLVideoElement : DispHTMLVideoElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLVideoElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLW3CComputedStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLW3CComputedStyle.cs index 76770f77d1..31c09b9886 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLW3CComputedStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLW3CComputedStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590070-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLW3CComputedStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLW3CComputedStyle : DispHTMLW3CComputedStyle.Interface +public unsafe partial struct DispHTMLW3CComputedStyle : DispHTMLW3CComputedStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLW3CComputedStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindow2.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindow2.cs index 0d8c143af5..251b619ed0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindow2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindow2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F55D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLWindow2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLWindow2 : DispHTMLWindow2.Interface +public unsafe partial struct DispHTMLWindow2 : DispHTMLWindow2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLWindow2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindowProxy.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindowProxy.cs index c3df1f1c32..bbb24b0d9d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindowProxy.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWindowProxy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F55E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLWindowProxy : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLWindowProxy : DispHTMLWindowProxy.Interface +public unsafe partial struct DispHTMLWindowProxy : DispHTMLWindowProxy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLWindowProxy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndOptionElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndOptionElement.cs index 436a8512f3..7d807412cc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndOptionElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndOptionElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F598-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLWndOptionElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLWndOptionElement : DispHTMLWndOptionElement.Interface +public unsafe partial struct DispHTMLWndOptionElement : DispHTMLWndOptionElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLWndOptionElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndSelectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndSelectElement.cs index 95e3600c9e..4e64c5bdcb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndSelectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLWndSelectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F597-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLWndSelectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLWndSelectElement : DispHTMLWndSelectElement.Interface +public unsafe partial struct DispHTMLWndSelectElement : DispHTMLWndSelectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLWndSelectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLXMLHttpRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLXMLHttpRequest.cs index 0a821f3d50..8602aa245c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLXMLHttpRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispHTMLXMLHttpRequest.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F596-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispHTMLXMLHttpRequest : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispHTMLXMLHttpRequest : DispHTMLXMLHttpRequest.Interface +public unsafe partial struct DispHTMLXMLHttpRequest : DispHTMLXMLHttpRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispHTMLXMLHttpRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputButtonElement.cs index 589cf3271f..b15074a1b5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispIHTMLInputButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispIHTMLInputButtonElement : DispIHTMLInputButtonElement.Interface +public unsafe partial struct DispIHTMLInputButtonElement : DispIHTMLInputButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispIHTMLInputButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputFileElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputFileElement.cs index 87e5972b81..19dbd67f66 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputFileElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputFileElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F542-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispIHTMLInputFileElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispIHTMLInputFileElement : DispIHTMLInputFileElement.Interface +public unsafe partial struct DispIHTMLInputFileElement : DispIHTMLInputFileElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispIHTMLInputFileElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputImage.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputImage.cs index f86dcc09b4..cc45ed1170 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputImage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F51D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispIHTMLInputImage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispIHTMLInputImage : DispIHTMLInputImage.Interface +public unsafe partial struct DispIHTMLInputImage : DispIHTMLInputImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispIHTMLInputImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputTextElement.cs index 8addfef8f5..bf85351473 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLInputTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F520-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispIHTMLInputTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispIHTMLInputTextElement : DispIHTMLInputTextElement.Interface +public unsafe partial struct DispIHTMLInputTextElement : DispIHTMLInputTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispIHTMLInputTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLOptionButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLOptionButtonElement.cs index feb5d587e1..f48b2f3fcf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLOptionButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispIHTMLOptionButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F509-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispIHTMLOptionButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispIHTMLOptionButtonElement : DispIHTMLOptionButtonElement.Interface +public unsafe partial struct DispIHTMLOptionButtonElement : DispIHTMLOptionButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispIHTMLOptionButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispNodeIterator.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispNodeIterator.cs index d9bed7f691..5612ffd8d2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispNodeIterator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispNodeIterator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispNodeIterator : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispNodeIterator : DispNodeIterator.Interface +public unsafe partial struct DispNodeIterator : DispNodeIterator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispNodeIterator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispRangeException.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispRangeException.cs index c348ac93f0..f1b5678098 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispRangeException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispRangeException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590095-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispRangeException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispRangeException : DispRangeException.Interface +public unsafe partial struct DispRangeException : DispRangeException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispRangeException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispRulesApplied.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispRulesApplied.cs index 74484e756b..f8a593019d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispRulesApplied.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispRulesApplied.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispRulesApplied : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispRulesApplied : DispRulesApplied.Interface +public unsafe partial struct DispRulesApplied : DispRulesApplied.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispRulesApplied)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispRulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispRulesAppliedCollection.cs index a161b7aceb..9d550a5ef0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispRulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispRulesAppliedCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispRulesAppliedCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispRulesAppliedCollection : DispRulesAppliedCollection.Interface +public unsafe partial struct DispRulesAppliedCollection : DispRulesAppliedCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispRulesAppliedCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGAElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGAElement.cs index e780963be0..aa1c2206a5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGAElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGAElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590033-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGAElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGAElement : DispSVGAElement.Interface +public unsafe partial struct DispSVGAElement : DispSVGAElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGAElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGCircleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGCircleElement.cs index 9902629baa..2dd40cf48e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGCircleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGCircleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059000A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGCircleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGCircleElement : DispSVGCircleElement.Interface +public unsafe partial struct DispSVGCircleElement : DispSVGCircleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGCircleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGClipPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGClipPathElement.cs index 12b9e7a145..d3bff1c114 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGClipPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGClipPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059003B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGClipPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGClipPathElement : DispSVGClipPathElement.Interface +public unsafe partial struct DispSVGClipPathElement : DispSVGClipPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGClipPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDefsElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDefsElement.cs index 9207174e69..2a428f139d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDefsElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDefsElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590003-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGDefsElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGDefsElement : DispSVGDefsElement.Interface +public unsafe partial struct DispSVGDefsElement : DispSVGDefsElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGDefsElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDescElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDescElement.cs index 3d25087295..7212f6c9c6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDescElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGDescElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590005-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGDescElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGDescElement : DispSVGDescElement.Interface +public unsafe partial struct DispSVGDescElement : DispSVGDescElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGDescElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElement.cs index df1af03389..d95c223adc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590000-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGElement : DispSVGElement.Interface +public unsafe partial struct DispSVGElement : DispSVGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstance.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstance.cs index 870755a67c..924be74934 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstance.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590007-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGElementInstance : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGElementInstance : DispSVGElementInstance.Interface +public unsafe partial struct DispSVGElementInstance : DispSVGElementInstance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGElementInstance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstanceList.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstanceList.cs index b448ca8fc4..4bd34978b5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstanceList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGElementInstanceList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590008-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGElementInstanceList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGElementInstanceList : DispSVGElementInstanceList.Interface +public unsafe partial struct DispSVGElementInstanceList : DispSVGElementInstanceList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGElementInstanceList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGEllipseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGEllipseElement.cs index 05631354b0..5b03f0d490 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGEllipseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGEllipseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059000B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGEllipseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGEllipseElement : DispSVGEllipseElement.Interface +public unsafe partial struct DispSVGEllipseElement : DispSVGEllipseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGEllipseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGException.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGException.cs index 98cb02072f..a80e32c311 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590096-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGException : DispSVGException.Interface +public unsafe partial struct DispSVGException : DispSVGException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGElement.cs index b3d5b47785..58578dcc17 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590002-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGGElement : DispSVGGElement.Interface +public unsafe partial struct DispSVGGElement : DispSVGGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGradientElement.cs index e1094cf476..89425fae5a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGGradientElement : DispSVGGradientElement.Interface +public unsafe partial struct DispSVGGradientElement : DispSVGGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGImageElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGImageElement.cs index 7624878a2d..9e718a2424 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGImageElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGImageElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590027-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGImageElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGImageElement : DispSVGImageElement.Interface +public unsafe partial struct DispSVGImageElement : DispSVGImageElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGImageElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLineElement.cs index 405c390eeb..6973558f0d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLineElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059000C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGLineElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGLineElement : DispSVGLineElement.Interface +public unsafe partial struct DispSVGLineElement : DispSVGLineElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGLineElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLinearGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLinearGradientElement.cs index 70688f8357..a93af91e54 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLinearGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGLinearGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGLinearGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGLinearGradientElement : DispSVGLinearGradientElement.Interface +public unsafe partial struct DispSVGLinearGradientElement : DispSVGLinearGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGLinearGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMarkerElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMarkerElement.cs index 5c1cb48104..a6931d9dd8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMarkerElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMarkerElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590036-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGMarkerElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGMarkerElement : DispSVGMarkerElement.Interface +public unsafe partial struct DispSVGMarkerElement : DispSVGMarkerElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGMarkerElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMaskElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMaskElement.cs index d70bca8c7b..a2a8674f2c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMaskElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMaskElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059003C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGMaskElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGMaskElement : DispSVGMaskElement.Interface +public unsafe partial struct DispSVGMaskElement : DispSVGMaskElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGMaskElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMetadataElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMetadataElement.cs index c182eadf1d..669d4c3f2e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMetadataElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGMetadataElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGMetadataElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGMetadataElement : DispSVGMetadataElement.Interface +public unsafe partial struct DispSVGMetadataElement : DispSVGMetadataElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGMetadataElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathElement.cs index c0f93516d9..62ae27ad0b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590011-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathElement : DispSVGPathElement.Interface +public unsafe partial struct DispSVGPathElement : DispSVGPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcAbs.cs index de9c31ca36..0273cf54b6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590013-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegArcAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegArcAbs : DispSVGPathSegArcAbs.Interface +public unsafe partial struct DispSVGPathSegArcAbs : DispSVGPathSegArcAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegArcAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcRel.cs index 20a09d7656..945870491d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegArcRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590014-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegArcRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegArcRel : DispSVGPathSegArcRel.Interface +public unsafe partial struct DispSVGPathSegArcRel : DispSVGPathSegArcRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegArcRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegClosePath.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegClosePath.cs index 6adafe1a02..6b43163645 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegClosePath.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegClosePath.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590015-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegClosePath : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegClosePath : DispSVGPathSegClosePath.Interface +public unsafe partial struct DispSVGPathSegClosePath : DispSVGPathSegClosePath.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegClosePath)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicAbs.cs index b13cf545ad..ef420dee73 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590016-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoCubicAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoCubicAbs : DispSVGPathSegCurvetoCubicAbs.Interface +public unsafe partial struct DispSVGPathSegCurvetoCubicAbs : DispSVGPathSegCurvetoCubicAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoCubicAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicRel.cs index 873920dd27..a94ecab62b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590017-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoCubicRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoCubicRel : DispSVGPathSegCurvetoCubicRel.Interface +public unsafe partial struct DispSVGPathSegCurvetoCubicRel : DispSVGPathSegCurvetoCubicRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoCubicRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothAbs.cs index 209eee2960..120e03ef39 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590018-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoCubicSmoothAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoCubicSmoothAbs : DispSVGPathSegCurvetoCubicSmoothAbs.Interface +public unsafe partial struct DispSVGPathSegCurvetoCubicSmoothAbs : DispSVGPathSegCurvetoCubicSmoothAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoCubicSmoothAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothRel.cs index b0f55bc708..9f9270818c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoCubicSmoothRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590019-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoCubicSmoothRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoCubicSmoothRel : DispSVGPathSegCurvetoCubicSmoothRel.Interface +public unsafe partial struct DispSVGPathSegCurvetoCubicSmoothRel : DispSVGPathSegCurvetoCubicSmoothRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoCubicSmoothRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticAbs.cs index b93384d3d5..c649266674 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoQuadraticAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoQuadraticAbs : DispSVGPathSegCurvetoQuadraticAbs.Interface +public unsafe partial struct DispSVGPathSegCurvetoQuadraticAbs : DispSVGPathSegCurvetoQuadraticAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoQuadraticAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticRel.cs index d200e47031..a00b5c7514 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoQuadraticRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoQuadraticRel : DispSVGPathSegCurvetoQuadraticRel.Interface +public unsafe partial struct DispSVGPathSegCurvetoQuadraticRel : DispSVGPathSegCurvetoQuadraticRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoQuadraticRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothAbs.cs index 89f51ae8f4..30e84074af 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoQuadraticSmoothAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoQuadraticSmoothAbs : DispSVGPathSegCurvetoQuadraticSmoothAbs.Interface +public unsafe partial struct DispSVGPathSegCurvetoQuadraticSmoothAbs : DispSVGPathSegCurvetoQuadraticSmoothAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoQuadraticSmoothAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothRel.cs index 07f72577bb..022788da4d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegCurvetoQuadraticSmoothRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegCurvetoQuadraticSmoothRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegCurvetoQuadraticSmoothRel : DispSVGPathSegCurvetoQuadraticSmoothRel.Interface +public unsafe partial struct DispSVGPathSegCurvetoQuadraticSmoothRel : DispSVGPathSegCurvetoQuadraticSmoothRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegCurvetoQuadraticSmoothRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoAbs.cs index 8e61ac306e..de201ce07d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoAbs : DispSVGPathSegLinetoAbs.Interface +public unsafe partial struct DispSVGPathSegLinetoAbs : DispSVGPathSegLinetoAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalAbs.cs index 024914d24d..e39ca59ee8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059001F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoHorizontalAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoHorizontalAbs : DispSVGPathSegLinetoHorizontalAbs.Interface +public unsafe partial struct DispSVGPathSegLinetoHorizontalAbs : DispSVGPathSegLinetoHorizontalAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoHorizontalAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalRel.cs index 8f8c847591..03a8983144 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoHorizontalRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590020-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoHorizontalRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoHorizontalRel : DispSVGPathSegLinetoHorizontalRel.Interface +public unsafe partial struct DispSVGPathSegLinetoHorizontalRel : DispSVGPathSegLinetoHorizontalRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoHorizontalRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoRel.cs index 25453e264a..87e78a71ae 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590021-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoRel : DispSVGPathSegLinetoRel.Interface +public unsafe partial struct DispSVGPathSegLinetoRel : DispSVGPathSegLinetoRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalAbs.cs index 5dcbb840cf..86971a3c98 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590022-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoVerticalAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoVerticalAbs : DispSVGPathSegLinetoVerticalAbs.Interface +public unsafe partial struct DispSVGPathSegLinetoVerticalAbs : DispSVGPathSegLinetoVerticalAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoVerticalAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalRel.cs index 0f258f2631..2bbd7a1343 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegLinetoVerticalRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590023-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegLinetoVerticalRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegLinetoVerticalRel : DispSVGPathSegLinetoVerticalRel.Interface +public unsafe partial struct DispSVGPathSegLinetoVerticalRel : DispSVGPathSegLinetoVerticalRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegLinetoVerticalRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoAbs.cs index 5f6b7cf358..9b37a16b18 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590024-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegMovetoAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegMovetoAbs : DispSVGPathSegMovetoAbs.Interface +public unsafe partial struct DispSVGPathSegMovetoAbs : DispSVGPathSegMovetoAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegMovetoAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoRel.cs index e86ae1d406..16957e896f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPathSegMovetoRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590025-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPathSegMovetoRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPathSegMovetoRel : DispSVGPathSegMovetoRel.Interface +public unsafe partial struct DispSVGPathSegMovetoRel : DispSVGPathSegMovetoRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPathSegMovetoRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPatternElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPatternElement.cs index 5198fac60e..6c768252f9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPatternElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPatternElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPatternElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPatternElement : DispSVGPatternElement.Interface +public unsafe partial struct DispSVGPatternElement : DispSVGPatternElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPatternElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolygonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolygonElement.cs index f283686212..c8e91c39f8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolygonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolygonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059000D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPolygonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPolygonElement : DispSVGPolygonElement.Interface +public unsafe partial struct DispSVGPolygonElement : DispSVGPolygonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPolygonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolylineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolylineElement.cs index 12089c0aa7..7221985c87 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolylineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGPolylineElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059000E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGPolylineElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGPolylineElement : DispSVGPolylineElement.Interface +public unsafe partial struct DispSVGPolylineElement : DispSVGPolylineElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGPolylineElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRadialGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRadialGradientElement.cs index ebb90982dc..5f715c8c94 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRadialGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRadialGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGRadialGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGRadialGradientElement : DispSVGRadialGradientElement.Interface +public unsafe partial struct DispSVGRadialGradientElement : DispSVGRadialGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGRadialGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRectElement.cs index 48a118cb07..86fe2faff9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGRectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590009-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGRectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGRectElement : DispSVGRectElement.Interface +public unsafe partial struct DispSVGRectElement : DispSVGRectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGRectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSVGElement.cs index f910c09880..c4cc7d4c3b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSVGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590001-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGSVGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGSVGElement : DispSVGSVGElement.Interface +public unsafe partial struct DispSVGSVGElement : DispSVGSVGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGSVGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGScriptElement.cs index 080a9e771e..505d4c2a0c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGScriptElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590039-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGScriptElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGScriptElement : DispSVGScriptElement.Interface +public unsafe partial struct DispSVGScriptElement : DispSVGScriptElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGScriptElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStopElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStopElement.cs index ea21423bb6..14d94933af 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStopElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStopElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059002D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGStopElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGStopElement : DispSVGStopElement.Interface +public unsafe partial struct DispSVGStopElement : DispSVGStopElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGStopElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStyleElement.cs index 0713aff768..d4ae670b43 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGStyleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590029-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGStyleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGStyleElement : DispSVGStyleElement.Interface +public unsafe partial struct DispSVGStyleElement : DispSVGStyleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGStyleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSwitchElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSwitchElement.cs index af3a69804c..f4ebbc9a0f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSwitchElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSwitchElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590030-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGSwitchElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGSwitchElement : DispSVGSwitchElement.Interface +public unsafe partial struct DispSVGSwitchElement : DispSVGSwitchElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGSwitchElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSymbolElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSymbolElement.cs index 8617cada19..80f2c62240 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSymbolElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGSymbolElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590004-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGSymbolElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGSymbolElement : DispSVGSymbolElement.Interface +public unsafe partial struct DispSVGSymbolElement : DispSVGSymbolElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGSymbolElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTSpanElement.cs index 42395c22fa..fe4ecfb31d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTSpanElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059003A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTSpanElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTSpanElement : DispSVGTSpanElement.Interface +public unsafe partial struct DispSVGTSpanElement : DispSVGTSpanElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTSpanElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextContentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextContentElement.cs index d565e535f0..7504aeef10 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextContentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextContentElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590035-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTextContentElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTextContentElement : DispSVGTextContentElement.Interface +public unsafe partial struct DispSVGTextContentElement : DispSVGTextContentElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTextContentElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextElement.cs index 06144f9f4a..9f7a75b2ac 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590037-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTextElement : DispSVGTextElement.Interface +public unsafe partial struct DispSVGTextElement : DispSVGTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPathElement.cs index 01642450a4..8637c28eeb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059003D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTextPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTextPathElement : DispSVGTextPathElement.Interface +public unsafe partial struct DispSVGTextPathElement : DispSVGTextPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTextPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPositioningElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPositioningElement.cs index 6bc9b15774..8eff2e43f9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPositioningElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTextPositioningElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590038-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTextPositioningElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTextPositioningElement : DispSVGTextPositioningElement.Interface +public unsafe partial struct DispSVGTextPositioningElement : DispSVGTextPositioningElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTextPositioningElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTitleElement.cs index b5418d424f..3ef8ed4b9e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGTitleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590006-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGTitleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGTitleElement : DispSVGTitleElement.Interface +public unsafe partial struct DispSVGTitleElement : DispSVGTitleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGTitleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGUseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGUseElement.cs index e5a35f20c6..617273bff3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGUseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGUseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590010-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGUseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGUseElement : DispSVGUseElement.Interface +public unsafe partial struct DispSVGUseElement : DispSVGUseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGUseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGViewElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGViewElement.cs index 04958ee05c..a3d469ecc0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGViewElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGViewElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590034-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGViewElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGViewElement : DispSVGViewElement.Interface +public unsafe partial struct DispSVGViewElement : DispSVGViewElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGViewElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGZoomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGZoomEvent.cs index 63bcdf90ff..04e2b26249 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispSVGZoomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispSVGZoomEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30590031-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispSVGZoomEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispSVGZoomEvent : DispSVGZoomEvent.Interface +public unsafe partial struct DispSVGZoomEvent : DispSVGZoomEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispSVGZoomEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispStaticNodeList.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispStaticNodeList.cs index 5362f71c03..4396b3fa88 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispStaticNodeList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispStaticNodeList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F59B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispStaticNodeList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispStaticNodeList : DispStaticNodeList.Interface +public unsafe partial struct DispStaticNodeList : DispStaticNodeList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispStaticNodeList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispTreeWalker.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispTreeWalker.cs index 1642b24b6b..014fac3fb9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispTreeWalker.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispTreeWalker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3059009D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispTreeWalker : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispTreeWalker : DispTreeWalker.Interface +public unsafe partial struct DispTreeWalker : DispTreeWalker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispTreeWalker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeocoordinates.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeocoordinates.cs index 7b791ebfec..aff9c0ddfd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeocoordinates.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeocoordinates.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispWebGeocoordinates : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispWebGeocoordinates : DispWebGeocoordinates.Interface +public unsafe partial struct DispWebGeocoordinates : DispWebGeocoordinates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispWebGeocoordinates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeolocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeolocation.cs index d2b1ef9401..414d4ff753 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeolocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeolocation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispWebGeolocation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispWebGeolocation : DispWebGeolocation.Interface +public unsafe partial struct DispWebGeolocation : DispWebGeolocation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispWebGeolocation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeoposition.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeoposition.cs index b17543086f..d1bcbdc484 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeoposition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeoposition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900C1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispWebGeoposition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispWebGeoposition : DispWebGeoposition.Interface +public unsafe partial struct DispWebGeoposition : DispWebGeoposition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispWebGeoposition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeopositionError.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeopositionError.cs index 18ce4b0028..1839794339 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeopositionError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispWebGeopositionError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900BF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispWebGeopositionError : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispWebGeopositionError : DispWebGeopositionError.Interface +public unsafe partial struct DispWebGeopositionError : DispWebGeopositionError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispWebGeopositionError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispXDomainRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispXDomainRequest.cs index 0c122d1e69..2f3aff79ff 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispXDomainRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispXDomainRequest.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F599-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispXDomainRequest : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispXDomainRequest : DispXDomainRequest.Interface +public unsafe partial struct DispXDomainRequest : DispXDomainRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispXDomainRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispXMLHttpRequestEventTarget.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispXMLHttpRequestEventTarget.cs index 944e993312..2392990e9f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispXMLHttpRequestEventTarget.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispXMLHttpRequestEventTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900E7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispXMLHttpRequestEventTarget : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispXMLHttpRequestEventTarget : DispXMLHttpRequestEventTarget.Interface +public unsafe partial struct DispXMLHttpRequestEventTarget : DispXMLHttpRequestEventTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispXMLHttpRequestEventTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/DispXMLSerializer.cs b/sources/Interop/Windows/Windows/um/MsHTML/DispXMLSerializer.cs index 3602d387db..f8a70827f5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/DispXMLSerializer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/DispXMLSerializer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305900AD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct DispXMLSerializer : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DispXMLSerializer : DispXMLSerializer.Interface +public unsafe partial struct DispXMLSerializer : DispXMLSerializer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DispXMLSerializer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/EventException.cs b/sources/Interop/Windows/Windows/um/MsHTML/EventException.cs index b381c8a597..f3ed922256 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/EventException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/EventException.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051073B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct EventException +public unsafe partial struct EventException : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_EventException)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/FontNames.cs b/sources/Interop/Windows/Windows/um/MsHTML/FontNames.cs index 21fecc4a32..63f53682dc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/FontNames.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/FontNames.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F83A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct FontNames +public unsafe partial struct FontNames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FontNames)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/FramesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/FramesCollection.cs index 5c0b46c943..4a20888ebb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/FramesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/FramesCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F7F6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct FramesCollection +public unsafe partial struct FramesCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FramesCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCAttachBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCAttachBehavior.cs index e9dcaadb54..901a50a0a8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCAttachBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCAttachBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5F5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCAttachBehavior +public unsafe partial struct HTCAttachBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCAttachBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCDefaultDispatch.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCDefaultDispatch.cs index 87fa652933..a8d8a38fb6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCDefaultDispatch.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCDefaultDispatch.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4FC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCDefaultDispatch +public unsafe partial struct HTCDefaultDispatch : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCDefaultDispatch)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCDescBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCDescBehavior.cs index 58ec2d3398..1936a2717e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCDescBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCDescBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5DD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCDescBehavior +public unsafe partial struct HTCDescBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCDescBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCEventBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCEventBehavior.cs index 3e303c4e52..dbef6ef443 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCEventBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCEventBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4FE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCEventBehavior +public unsafe partial struct HTCEventBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCEventBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCMethodBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCMethodBehavior.cs index 30bdfb41e9..fb5d9192cb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCMethodBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCMethodBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F630-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCMethodBehavior +public unsafe partial struct HTCMethodBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCMethodBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTCPropertyBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTCPropertyBehavior.cs index 8611114c2d..30f7c1a8e0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTCPropertyBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTCPropertyBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5DE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTCPropertyBehavior +public unsafe partial struct HTCPropertyBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTCPropertyBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorElement.cs index 5be3098b60..0d4331d6c6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F248-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAnchorElement +public unsafe partial struct HTMLAnchorElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAnchorElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents.cs index f3a49507b8..3dc2e3a60a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F29D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLAnchorEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLAnchorEvents : HTMLAnchorEvents.Interface +public unsafe partial struct HTMLAnchorEvents : HTMLAnchorEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAnchorEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents2.cs index d7078a34bd..9a2ed05545 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAnchorEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F610-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLAnchorEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLAnchorEvents2 : HTMLAnchorEvents2.Interface +public unsafe partial struct HTMLAnchorEvents2 : HTMLAnchorEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAnchorEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAppBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAppBehavior.cs index d19a1812b3..cf1e152288 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAppBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAppBehavior.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5CB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAppBehavior +public unsafe partial struct HTMLAppBehavior : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAppBehavior)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaElement.cs index d8011c547d..9836aaeab4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F283-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAreaElement +public unsafe partial struct HTMLAreaElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAreaElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents.cs index c660f617d7..bb81d8e8a6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F366-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLAreaEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLAreaEvents : HTMLAreaEvents.Interface +public unsafe partial struct HTMLAreaEvents : HTMLAreaEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAreaEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents2.cs index 64cce6d17b..d2ef9bb6c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreaEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F611-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLAreaEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLAreaEvents2 : HTMLAreaEvents2.Interface +public unsafe partial struct HTMLAreaEvents2 : HTMLAreaEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAreaEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreasCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreasCollection.cs index b931d3b38e..57ae07ef1c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreasCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAreasCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4CA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAreasCollection +public unsafe partial struct HTMLAreasCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAreasCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAttributeCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAttributeCollection.cs index d05fa029c8..e1710cbf4d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAttributeCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAttributeCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4CC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAttributeCollection +public unsafe partial struct HTMLAttributeCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAttributeCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElement.cs index 98e35f15a6..4d7f505fac 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAudioElement +public unsafe partial struct HTMLAudioElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAudioElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElementFactory.cs index 3a00c777e1..adb31bccd0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLAudioElementFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107EC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLAudioElementFactory +public unsafe partial struct HTMLAudioElementFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLAudioElementFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBGsound.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBGsound.cs index 9d01d5ec0e..d89c20936c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBGsound.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBGsound.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F370-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBGsound +public unsafe partial struct HTMLBGsound : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBGsound)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBRElement.cs index bbd9e83a56..72a924427e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBRElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F280-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBRElement +public unsafe partial struct HTMLBRElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBRElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseElement.cs index 054347566c..1e34188b2d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F276-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBaseElement +public unsafe partial struct HTMLBaseElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBaseElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseFontElement.cs index a74b0622dc..dbbb4c58fe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBaseFontElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F282-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBaseFontElement +public unsafe partial struct HTMLBaseFontElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBaseFontElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBlockElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBlockElement.cs index 2e4719956b..d88d4539ec 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBlockElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBlockElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F281-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBlockElement +public unsafe partial struct HTMLBlockElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBlockElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBody.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBody.cs index 342e5b511e..49c64e0710 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLBody.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLBody.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F24A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLBody +public unsafe partial struct HTMLBody : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLBody)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElement.cs index 53698d21f7..ff0203483c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2C6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLButtonElement +public unsafe partial struct HTMLButtonElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLButtonElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents.cs index bbf31914cc..d40c19aa0e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2B3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLButtonElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLButtonElementEvents : HTMLButtonElementEvents.Interface +public unsafe partial struct HTMLButtonElementEvents : HTMLButtonElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLButtonElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents2.cs index 290d32c30f..e90b0de0a3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLButtonElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F617-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLButtonElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLButtonElementEvents2 : HTMLButtonElementEvents2.Interface +public unsafe partial struct HTMLButtonElementEvents2 : HTMLButtonElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLButtonElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSImportRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSImportRule.cs index 9667da6e92..bf86aca2b1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSImportRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSImportRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106F0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSImportRule +public unsafe partial struct HTMLCSSImportRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSImportRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaList.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaList.cs index fbedb90c7b..65b76f9455 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510732-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSMediaList +public unsafe partial struct HTMLCSSMediaList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSMediaList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaRule.cs index c8873ad313..1dad23e794 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSMediaRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106F1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSMediaRule +public unsafe partial struct HTMLCSSMediaRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSMediaRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSNamespaceRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSNamespaceRule.cs index 368e876929..27c58831e2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSNamespaceRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSNamespaceRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106F2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSNamespaceRule +public unsafe partial struct HTMLCSSNamespaceRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSNamespaceRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSRule.cs index d70e8de17b..d75ddf792c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106EF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSRule +public unsafe partial struct HTMLCSSRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSStyleDeclaration.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSStyleDeclaration.cs index 529030b03d..2ce680ed34 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSStyleDeclaration.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCSSStyleDeclaration.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510741-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCSSStyleDeclaration +public unsafe partial struct HTMLCSSStyleDeclaration : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCSSStyleDeclaration)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCanvasElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCanvasElement.cs index 7ffb65e80d..a91ba8fe9b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCanvasElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCanvasElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106E5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCanvasElement +public unsafe partial struct HTMLCanvasElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCanvasElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCommentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCommentElement.cs index 452fce57ca..ee6f4b48e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCommentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCommentElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F317-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCommentElement +public unsafe partial struct HTMLCommentElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCommentElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents.cs index 1f29bffabb..473e9c9e4e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4EA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLControlElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLControlElementEvents : HTMLControlElementEvents.Interface +public unsafe partial struct HTMLControlElementEvents : HTMLControlElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLControlElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents2.cs index 164d20df33..9bf035599d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLControlElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F612-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLControlElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLControlElementEvents2 : HTMLControlElementEvents2.Interface +public unsafe partial struct HTMLControlElementEvents2 : HTMLControlElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLControlElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCurrentStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCurrentStyle.cs index 7ceef7d37a..855c79dab3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLCurrentStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLCurrentStyle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3DC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLCurrentStyle +public unsafe partial struct HTMLCurrentStyle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLCurrentStyle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDDElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDDElement.cs index 741f1c5842..ed841c3710 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDDElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDDElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDDElement +public unsafe partial struct HTMLDDElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDDElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDListElement.cs index 768ae2ad07..369ae0de56 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDListElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDListElement +public unsafe partial struct HTMLDListElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDListElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMAttribute.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMAttribute.cs index 7534fa70b4..36a81c782e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMAttribute.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMAttribute.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4B2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDOMAttribute +public unsafe partial struct HTMLDOMAttribute : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDOMAttribute)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMImplementation.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMImplementation.cs index 2937ef7d5e..8cb52292bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMImplementation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMImplementation.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F80E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDOMImplementation +public unsafe partial struct HTMLDOMImplementation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDOMImplementation)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMRange.cs index 734ec3bd13..f436feb25b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMRange.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106C3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDOMRange +public unsafe partial struct HTMLDOMRange : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDOMRange)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMTextNode.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMTextNode.cs index 2c801fe764..5c0ce07a4f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMTextNode.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMTextNode.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4BA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDOMTextNode +public unsafe partial struct HTMLDOMTextNode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDOMTextNode)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMXmlSerializerFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMXmlSerializerFactory.cs index c4a4fedd98..bf5390f05a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMXmlSerializerFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDOMXmlSerializerFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510780-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDOMXmlSerializerFactory +public unsafe partial struct HTMLDOMXmlSerializerFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDOMXmlSerializerFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDTElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDTElement.cs index 8c6fc43677..54c94be129 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDTElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDTElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDTElement +public unsafe partial struct HTMLDTElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDTElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDefaults.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDefaults.cs index a024575319..14b97082bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDefaults.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDefaults.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F6C8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDefaults +public unsafe partial struct HTMLDefaults : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDefaults)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDialog.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDialog.cs index 21220068fb..81e750940b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDialog.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDialog.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F28A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDialog +public unsafe partial struct HTMLDialog : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDialog)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivElement.cs index a2578b5d1a..cd2e0b3025 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDivElement +public unsafe partial struct HTMLDivElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDivElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivPosition.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivPosition.cs index 79efdd7c7c..9a91b2d522 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivPosition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDivPosition.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F249-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDivPosition +public unsafe partial struct HTMLDivPosition : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDivPosition)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocument.cs index 051a6ba17f..febe38568a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocument.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("25336920-03F9-11CF-8FD0-00AA00686F13")] -public partial struct HTMLDocument +public unsafe partial struct HTMLDocument : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocument)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfo.cs index 1d8f8654c6..96eccccc8f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfo.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051041B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDocumentCompatibleInfo +public unsafe partial struct HTMLDocumentCompatibleInfo : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentCompatibleInfo)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfoCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfoCollection.cs index 3f576eb07e..7786d189e4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfoCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfoCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510419-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLDocumentCompatibleInfoCollection +public unsafe partial struct HTMLDocumentCompatibleInfoCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentCompatibleInfoCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents.cs index b153f310f8..9ffe6e4049 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F260-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLDocumentEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLDocumentEvents : HTMLDocumentEvents.Interface +public unsafe partial struct HTMLDocumentEvents : HTMLDocumentEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents2.cs index 1be08895e6..3042a044dd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F613-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLDocumentEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLDocumentEvents2 : HTMLDocumentEvents2.Interface +public unsafe partial struct HTMLDocumentEvents2 : HTMLDocumentEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents3.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents3.cs index 312b542640..be811275c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLDocumentEvents3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLDocumentEvents3 : HTMLDocumentEvents3.Interface +public unsafe partial struct HTMLDocumentEvents3 : HTMLDocumentEvents3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentEvents3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents4.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents4.cs index 83a4cffad0..b26b3c86a2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLDocumentEvents4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510737-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLDocumentEvents4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLDocumentEvents4 : HTMLDocumentEvents4.Interface +public unsafe partial struct HTMLDocumentEvents4 : HTMLDocumentEvents4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLDocumentEvents4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementCollection.cs index a134edce2e..b51b289a77 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4CB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLElementCollection +public unsafe partial struct HTMLElementCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLElementCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents.cs index a6417d7af7..eb4df55fa3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F33C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLElementEvents : HTMLElementEvents.Interface +public unsafe partial struct HTMLElementEvents : HTMLElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents2.cs index c92fa160ac..81579fff8c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F60F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLElementEvents2 : HTMLElementEvents2.Interface +public unsafe partial struct HTMLElementEvents2 : HTMLElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents3.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents3.cs index a4ff79ec2f..7bf18c0688 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F59F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLElementEvents3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLElementEvents3 : HTMLElementEvents3.Interface +public unsafe partial struct HTMLElementEvents3 : HTMLElementEvents3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLElementEvents3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents4.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents4.cs index 58022c9a40..7f3b60b0d2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLElementEvents4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051075E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLElementEvents4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLElementEvents4 : HTMLElementEvents4.Interface +public unsafe partial struct HTMLElementEvents4 : HTMLElementEvents4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLElementEvents4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLEmbed.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLEmbed.cs index 6d2f4da1e0..12b95c3820 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLEmbed.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLEmbed.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F25D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLEmbed +public unsafe partial struct HTMLEmbed : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLEmbed)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFieldSetElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFieldSetElement.cs index 56bced997d..2b5ab70306 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFieldSetElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFieldSetElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3E8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFieldSetElement +public unsafe partial struct HTMLFieldSetElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFieldSetElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFontElement.cs index 67ebb61383..9255ac14f8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFontElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFontElement +public unsafe partial struct HTMLFontElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFontElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElement.cs index 95a56e1651..f3e0902da0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F251-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFormElement +public unsafe partial struct HTMLFormElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFormElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents.cs index 5a085d75fc..657eb64ed8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F364-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLFormElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLFormElementEvents : HTMLFormElementEvents.Interface +public unsafe partial struct HTMLFormElementEvents : HTMLFormElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFormElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents2.cs index 1520737a72..bc7e4ece8e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFormElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F614-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLFormElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLFormElementEvents2 : HTMLFormElementEvents2.Interface +public unsafe partial struct HTMLFormElementEvents2 : HTMLFormElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFormElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameBase.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameBase.cs index 4b780154be..ad221836bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameBase.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameBase.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F312-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFrameBase +public unsafe partial struct HTMLFrameBase : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFrameBase)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameElement.cs index 023084b7a7..f84ae217d1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F314-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFrameElement +public unsafe partial struct HTMLFrameElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFrameElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSetSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSetSite.cs index b4bd284718..2dc0089899 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSetSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSetSite.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F31A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLFrameSetSite +public unsafe partial struct HTMLFrameSetSite : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFrameSetSite)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents.cs index abe364d62e..2e26930631 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F800-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLFrameSiteEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLFrameSiteEvents : HTMLFrameSiteEvents.Interface +public unsafe partial struct HTMLFrameSiteEvents : HTMLFrameSiteEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFrameSiteEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents2.cs index 55ae65d6cf..e038937d1f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLFrameSiteEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLFrameSiteEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLFrameSiteEvents2 : HTMLFrameSiteEvents2.Interface +public unsafe partial struct HTMLFrameSiteEvents2 : HTMLFrameSiteEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLFrameSiteEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLGenericElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLGenericElement.cs index f271fefac9..377a9bc579 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLGenericElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLGenericElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F4B8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLGenericElement +public unsafe partial struct HTMLGenericElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLGenericElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHRElement.cs index fb5d7f63aa..12ab9ad8e5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHRElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F252-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLHRElement +public unsafe partial struct HTMLHRElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLHRElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeadElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeadElement.cs index 4ca920326a..0ddf176880 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeadElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeadElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F493-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLHeadElement +public unsafe partial struct HTMLHeadElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLHeadElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeaderElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeaderElement.cs index 93465f43c6..cc482b2928 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeaderElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHeaderElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F27A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLHeaderElement +public unsafe partial struct HTMLHeaderElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLHeaderElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHistory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHistory.cs index 87752921f5..ee971d38fd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHistory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHistory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FECEAAA3-8405-11CF-8BA1-00AA00476DA6")] -public partial struct HTMLHistory +public unsafe partial struct HTMLHistory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLHistory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHtmlElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHtmlElement.cs index a97e39a7ad..4e91ae26b7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLHtmlElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLHtmlElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F491-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLHtmlElement +public unsafe partial struct HTMLHtmlElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLHtmlElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLIFrame.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLIFrame.cs index 63bbaafbb4..9c30398c6e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLIFrame.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLIFrame.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F316-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLIFrame +public unsafe partial struct HTMLIFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLIFrame)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImageElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImageElementFactory.cs index 496d5c5810..70e7783a8f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImageElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImageElementFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F38F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLImageElementFactory +public unsafe partial struct HTMLImageElementFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLImageElementFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImg.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImg.cs index 6f23d0452a..7a4b190d5e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImg.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImg.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F241-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLImg +public unsafe partial struct HTMLImg : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLImg)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents.cs index d52325cc84..131b4eccb4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F25B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLImgEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLImgEvents : HTMLImgEvents.Interface +public unsafe partial struct HTMLImgEvents : HTMLImgEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLImgEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents2.cs index db75da4a91..682f393ede 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLImgEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F616-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLImgEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLImgEvents2 : HTMLImgEvents2.Interface +public unsafe partial struct HTMLImgEvents2 : HTMLImgEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLImgEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputButtonElement.cs index 712f63cce6..5f5b73e7c3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputButtonElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2B4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLInputButtonElement +public unsafe partial struct HTMLInputButtonElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputButtonElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputElement.cs index 9693d862e2..f2bbdee88f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5D8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLInputElement +public unsafe partial struct HTMLInputElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElement.cs index 6d16d0b86b..41868cb9e5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2AE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLInputFileElement +public unsafe partial struct HTMLInputFileElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputFileElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents.cs index 40ec7936e6..e1ac175be1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2AF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputFileElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputFileElementEvents : HTMLInputFileElementEvents.Interface +public unsafe partial struct HTMLInputFileElementEvents : HTMLInputFileElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputFileElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents2.cs index 87d7012efd..bfc6177d28 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputFileElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputFileElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputFileElementEvents2 : HTMLInputFileElementEvents2.Interface +public unsafe partial struct HTMLInputFileElementEvents2 : HTMLInputFileElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputFileElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImage.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImage.cs index 6af7c7c1de..484f5867f5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImage.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2C4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLInputImage +public unsafe partial struct HTMLInputImage : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputImage)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents.cs index 307e5992ba..d4261a5020 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2C3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputImageEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputImageEvents : HTMLInputImageEvents.Interface +public unsafe partial struct HTMLInputImageEvents : HTMLInputImageEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputImageEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents2.cs index 983803449f..9ea6441e8e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputImageEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputImageEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputImageEvents2 : HTMLInputImageEvents2.Interface +public unsafe partial struct HTMLInputImageEvents2 : HTMLInputImageEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputImageEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElement.cs index ca6a3b4c50..a51520599c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2AB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLInputTextElement +public unsafe partial struct HTMLInputTextElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputTextElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents.cs index 33b6780c7f..f897ac42b4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2A7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputTextElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputTextElementEvents : HTMLInputTextElementEvents.Interface +public unsafe partial struct HTMLInputTextElementEvents : HTMLInputTextElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputTextElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents2.cs index a4990aca5f..5f9ce88327 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLInputTextElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F618-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLInputTextElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLInputTextElementEvents2 : HTMLInputTextElementEvents2.Interface +public unsafe partial struct HTMLInputTextElementEvents2 : HTMLInputTextElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLInputTextElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLIsIndexElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLIsIndexElement.cs index 30c3cc402e..37c38673b8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLIsIndexElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLIsIndexElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F278-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLIsIndexElement +public unsafe partial struct HTMLIsIndexElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLIsIndexElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLIElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLIElement.cs index c187edf94e..49a613ef50 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLIElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLIElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F273-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLLIElement +public unsafe partial struct HTMLLIElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLIElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelElement.cs index 74402d119e..9c4658d2d6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F32B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLLabelElement +public unsafe partial struct HTMLLabelElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLabelElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents.cs index ba4745149c..45391970e5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F329-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLLabelEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLLabelEvents : HTMLLabelEvents.Interface +public unsafe partial struct HTMLLabelEvents : HTMLLabelEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLabelEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents2.cs index 017fdb3225..b9271a1751 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLabelEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLLabelEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLLabelEvents2 : HTMLLabelEvents2.Interface +public unsafe partial struct HTMLLabelEvents2 : HTMLLabelEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLabelEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLegendElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLegendElement.cs index 4ea944dd42..e730b1b01b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLegendElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLegendElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3E9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLLegendElement +public unsafe partial struct HTMLLegendElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLegendElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElement.cs index 78c1f4f01f..26042637a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F277-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLLinkElement +public unsafe partial struct HTMLLinkElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLinkElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents.cs index 0553ff269d..aa46fe461b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3CC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLLinkElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLLinkElementEvents : HTMLLinkElementEvents.Interface +public unsafe partial struct HTMLLinkElementEvents : HTMLLinkElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLinkElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents2.cs index 02bb6d78cd..336bca05d0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLinkElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLLinkElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLLinkElementEvents2 : HTMLLinkElementEvents2.Interface +public unsafe partial struct HTMLLinkElementEvents2 : HTMLLinkElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLinkElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLListElement.cs index 6bdb8f8e7f..913cfcdfcf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLListElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F272-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLListElement +public unsafe partial struct HTMLListElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLListElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLocation.cs index 6f56f41a17..728bc7413b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLLocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLLocation.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("163BB1E1-6E00-11CF-837A-48DC04C10000")] -public partial struct HTMLLocation +public unsafe partial struct HTMLLocation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLLocation)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframeRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframeRule.cs index ec3e7eb40a..ae83c6537d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframeRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframeRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051080E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMSCSSKeyframeRule +public unsafe partial struct HTMLMSCSSKeyframeRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMSCSSKeyframeRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframesRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframesRule.cs index 471518a1fa..246b618cb7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframesRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMSCSSKeyframesRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051080F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMSCSSKeyframesRule +public unsafe partial struct HTMLMSCSSKeyframesRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMSCSSKeyframesRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapElement.cs index 423aa49f74..e130fffa45 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F271-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMapElement +public unsafe partial struct HTMLMapElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMapElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents.cs index 6642785402..53f544fa3a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3BA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLMapEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLMapEvents : HTMLMapEvents.Interface +public unsafe partial struct HTMLMapEvents : HTMLMapEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMapEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents2.cs index bc2181129b..e7b4ca0fbb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMapEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLMapEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLMapEvents2 : HTMLMapEvents2.Interface +public unsafe partial struct HTMLMapEvents2 : HTMLMapEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMapEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElement.cs index 29ec53f610..69028e1f6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2B9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMarqueeElement +public unsafe partial struct HTMLMarqueeElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMarqueeElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents.cs index a7783d1921..34e3c0b560 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2B8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLMarqueeElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLMarqueeElementEvents : HTMLMarqueeElementEvents.Interface +public unsafe partial struct HTMLMarqueeElementEvents : HTMLMarqueeElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMarqueeElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents2.cs index d3a0da6002..f6dbc2a12a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMarqueeElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F61F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLMarqueeElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLMarqueeElementEvents2 : HTMLMarqueeElementEvents2.Interface +public unsafe partial struct HTMLMarqueeElementEvents2 : HTMLMarqueeElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMarqueeElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaElement.cs index 809981f7ef..9000f2f2d6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMediaElement +public unsafe partial struct HTMLMediaElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMediaElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaError.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaError.cs index 85dc09ae9a..bed776aacf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMediaError.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMediaError +public unsafe partial struct HTMLMediaError : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMediaError)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMetaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMetaElement.cs index 3729c2815b..e35bd2bfc5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLMetaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLMetaElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F275-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLMetaElement +public unsafe partial struct HTMLMetaElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLMetaElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespace.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespace.cs index 1a2dbf8eaa..49431a85dc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespace.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F6BC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLNamespace +public unsafe partial struct HTMLNamespace : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNamespace)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceCollection.cs index 3e61837200..556c0086e7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F6B9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLNamespaceCollection +public unsafe partial struct HTMLNamespaceCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNamespaceCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceEvents.cs index 740b2fefd0..17643e3a83 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNamespaceEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6BD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLNamespaceEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLNamespaceEvents : HTMLNamespaceEvents.Interface +public unsafe partial struct HTMLNamespaceEvents : HTMLNamespaceEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNamespaceEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNavigator.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNavigator.cs index f092311805..3c7ad2ca5c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNavigator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNavigator.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FECEAAA6-8405-11CF-8BA1-00AA00476DA6")] -public partial struct HTMLNavigator +public unsafe partial struct HTMLNavigator : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNavigator)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNextIdElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNextIdElement.cs index 2e3ee01ec0..be5fe223b8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNextIdElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNextIdElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F279-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLNextIdElement +public unsafe partial struct HTMLNextIdElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNextIdElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNoShowElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNoShowElement.cs index a8ba414a37..848bc94f17 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLNoShowElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLNoShowElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F38B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLNoShowElement +public unsafe partial struct HTMLNoShowElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLNoShowElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOListElement.cs index 2c5842c450..d43f36c006 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOListElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F270-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLOListElement +public unsafe partial struct HTMLOListElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOListElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElement.cs index 6d9b4f98c0..543de360e2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F24E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLObjectElement +public unsafe partial struct HTMLObjectElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLObjectElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents.cs index 31f897e20a..aa08ed9e4f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3C4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLObjectElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLObjectElementEvents : HTMLObjectElementEvents.Interface +public unsafe partial struct HTMLObjectElementEvents : HTMLObjectElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLObjectElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents2.cs index d012986aac..0b69f8ed91 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLObjectElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F620-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLObjectElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLObjectElementEvents2 : HTMLObjectElementEvents2.Interface +public unsafe partial struct HTMLObjectElementEvents2 : HTMLObjectElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLObjectElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElement.cs index e554fc3532..bd8dc4d8a5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2BE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLOptionButtonElement +public unsafe partial struct HTMLOptionButtonElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOptionButtonElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents.cs index 1fa994e51b..820f39ebb6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2BD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLOptionButtonElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLOptionButtonElementEvents : HTMLOptionButtonElementEvents.Interface +public unsafe partial struct HTMLOptionButtonElementEvents : HTMLOptionButtonElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOptionButtonElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents2.cs index 868bc11f71..acd31b26e7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionButtonElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F619-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLOptionButtonElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLOptionButtonElementEvents2 : HTMLOptionButtonElementEvents2.Interface +public unsafe partial struct HTMLOptionButtonElementEvents2 : HTMLOptionButtonElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOptionButtonElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElement.cs index 09e28266a0..9b3c46cda4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F24D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLOptionElement +public unsafe partial struct HTMLOptionElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOptionElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElementFactory.cs index 07fa40f0ba..b9e66b94e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLOptionElementFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F38D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLOptionElementFactory +public unsafe partial struct HTMLOptionElementFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLOptionElementFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLParaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLParaElement.cs index 55870c1808..aa630c82c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLParaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLParaElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLParaElement +public unsafe partial struct HTMLParaElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLParaElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLParamElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLParamElement.cs index e138b46f2b..0477db14ce 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLParamElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLParamElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F83E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLParamElement +public unsafe partial struct HTMLParamElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLParamElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformance.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformance.cs index 70c47130ae..821d3728f6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformance.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051074F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLPerformance +public unsafe partial struct HTMLPerformance : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLPerformance)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceNavigation.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceNavigation.cs index d60e934432..547277c687 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceNavigation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceNavigation.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510751-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLPerformanceNavigation +public unsafe partial struct HTMLPerformanceNavigation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLPerformanceNavigation)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceTiming.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceTiming.cs index 31ad0b686e..afe063ad20 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceTiming.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPerformanceTiming.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510753-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLPerformanceTiming +public unsafe partial struct HTMLPerformanceTiming : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLPerformanceTiming)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPhraseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPhraseElement.cs index a48f89bc46..624a97714a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPhraseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPhraseElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLPhraseElement +public unsafe partial struct HTMLPhraseElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLPhraseElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPopup.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPopup.cs index 03c2d43267..f804f17212 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLPopup.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLPopup.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F667-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLPopup +public unsafe partial struct HTMLPopup : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLPopup)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLProgressElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLProgressElement.cs index 1c7b55e65a..91b19ac6a2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLProgressElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLProgressElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2D5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLProgressElement +public unsafe partial struct HTMLProgressElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLProgressElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRenderStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRenderStyle.cs index 38af442ab5..1e72c2f691 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRenderStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRenderStyle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F6AA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLRenderStyle +public unsafe partial struct HTMLRenderStyle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLRenderStyle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRichtextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRichtextElement.cs index f32583069e..41d91a03df 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRichtextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRichtextElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2DF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLRichtextElement +public unsafe partial struct HTMLRichtextElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLRichtextElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRuleStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRuleStyle.cs index 0e5b47334b..7ac4e5b204 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLRuleStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLRuleStyle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3D0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLRuleStyle +public unsafe partial struct HTMLRuleStyle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLRuleStyle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScreen.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScreen.cs index 95d51b6f28..a562d77ff5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScreen.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScreen.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F35D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLScreen +public unsafe partial struct HTMLScreen : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLScreen)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptElement.cs index 8416c43f28..a6615a78a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F28C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLScriptElement +public unsafe partial struct HTMLScriptElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLScriptElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents.cs index 4f3daccf25..8abd74b4bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3E2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLScriptEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLScriptEvents : HTMLScriptEvents.Interface +public unsafe partial struct HTMLScriptEvents : HTMLScriptEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLScriptEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents2.cs index 199cbd2257..6c127673c1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLScriptEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F621-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLScriptEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLScriptEvents2 : HTMLScriptEvents2.Interface +public unsafe partial struct HTMLScriptEvents2 : HTMLScriptEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLScriptEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElement.cs index 6dd7b9d725..0c800bdb91 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F245-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLSelectElement +public unsafe partial struct HTMLSelectElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSelectElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents.cs index da2bc1d840..8c0f413b03 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F302-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLSelectElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLSelectElementEvents : HTMLSelectElementEvents.Interface +public unsafe partial struct HTMLSelectElementEvents : HTMLSelectElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSelectElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents2.cs index a4eb8b375d..237de0902f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSelectElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F622-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLSelectElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLSelectElementEvents2 : HTMLSelectElementEvents2.Interface +public unsafe partial struct HTMLSelectElementEvents2 : HTMLSelectElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSelectElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSemanticElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSemanticElement.cs index 7cc643c3ab..cca34f74f3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSemanticElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSemanticElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107B0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLSemanticElement +public unsafe partial struct HTMLSemanticElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSemanticElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSourceElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSourceElement.cs index fd7492edcf..570ab8dd6f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSourceElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSourceElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLSourceElement +public unsafe partial struct HTMLSourceElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSourceElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanElement.cs index 12ce68433e..0aab0fdee1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3F5-98B4-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLSpanElement +public unsafe partial struct HTMLSpanElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSpanElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanFlow.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanFlow.cs index c4873808aa..06c58df412 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanFlow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLSpanFlow.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3E6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLSpanFlow +public unsafe partial struct HTMLSpanFlow : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLSpanFlow)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStorage.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStorage.cs index babc1cb301..4aebbcbd39 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStorage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStorage.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510475-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStorage +public unsafe partial struct HTMLStorage : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStorage)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyle.cs index 2311a482fd..98f4cf305e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F285-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyle +public unsafe partial struct HTMLStyle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElement.cs index e07d7b185d..440a8d7caf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F37D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleElement +public unsafe partial struct HTMLStyleElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents.cs index 36511ecd0d..0e14c267da 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3CB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLStyleElementEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLStyleElementEvents : HTMLStyleElementEvents.Interface +public unsafe partial struct HTMLStyleElementEvents : HTMLStyleElementEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleElementEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents2.cs index fdefcf10ea..aabdadc010 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleElementEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F615-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLStyleElementEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLStyleElementEvents2 : HTMLStyleElementEvents2.Interface +public unsafe partial struct HTMLStyleElementEvents2 : HTMLStyleElementEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleElementEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleFontFace.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleFontFace.cs index 88af07ed03..826b0b77e6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleFontFace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleFontFace.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3D4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleFontFace +public unsafe partial struct HTMLStyleFontFace : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleFontFace)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleMedia.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleMedia.cs index 15871e8af9..026cfcfa6c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleMedia.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleMedia.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051074C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleMedia +public unsafe partial struct HTMLStyleMedia : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleMedia)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheet.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheet.cs index df29d3d690..6af78473c9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheet.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheet.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2E4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheet +public unsafe partial struct HTMLStyleSheet : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheet)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPage.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPage.cs index 8645dcb52c..375d2615c5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPage.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F7EF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheetPage +public unsafe partial struct HTMLStyleSheetPage : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetPage)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPagesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPagesCollection.cs index fd6a85f905..b71d351959 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPagesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetPagesCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F7F1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheetPagesCollection +public unsafe partial struct HTMLStyleSheetPagesCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetPagesCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRule.cs index 4b9ad71d56..4c208cebf6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRule.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3CE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheetRule +public unsafe partial struct HTMLStyleSheetRule : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetRule)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesAppliedCollection.cs index aa32279082..0e1cc180dc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesAppliedCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EB36F845-2395-4719-B85C-D0D80E184BD9")] -public partial struct HTMLStyleSheetRulesAppliedCollection +public unsafe partial struct HTMLStyleSheetRulesAppliedCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetRulesAppliedCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesCollection.cs index 79af11635c..7fe1b11725 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetRulesCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F3CD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheetRulesCollection +public unsafe partial struct HTMLStyleSheetRulesCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetRulesCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetsCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetsCollection.cs index 4e4f04fb6c..96eb7c282b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetsCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLStyleSheetsCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F37F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLStyleSheetsCollection +public unsafe partial struct HTMLStyleSheetsCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLStyleSheetsCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTable.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTable.cs index a1f10cf75b..3bc20e47a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTable.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTable +public unsafe partial struct HTMLTable : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTable)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCaption.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCaption.cs index 8bcc771c0c..84381633e3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCaption.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCaption.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2EC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTableCaption +public unsafe partial struct HTMLTableCaption : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableCaption)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCell.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCell.cs index b9cf915289..c9383e7f94 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCell.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCell.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F246-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTableCell +public unsafe partial struct HTMLTableCell : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableCell)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCol.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCol.cs index fa8885fc78..fde15debe3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCol.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableCol.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTableCol +public unsafe partial struct HTMLTableCol : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableCol)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents.cs index 768b5b3044..4d02ab9b4a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F407-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLTableEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLTableEvents : HTMLTableEvents.Interface +public unsafe partial struct HTMLTableEvents : HTMLTableEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents2.cs index a0a6694af4..8ea5ee89f3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F623-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLTableEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLTableEvents2 : HTMLTableEvents2.Interface +public unsafe partial struct HTMLTableEvents2 : HTMLTableEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableRow.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableRow.cs index c37aebe1ef..b2d410a839 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableRow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableRow.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTableRow +public unsafe partial struct HTMLTableRow : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableRow)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableSection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableSection.cs index 6ae7ce46df..40c142eb0f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableSection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTableSection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2E9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTableSection +public unsafe partial struct HTMLTableSection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTableSection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextAreaElement.cs index 27195a8bd6..3f847ec2a9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextAreaElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2AC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTextAreaElement +public unsafe partial struct HTMLTextAreaElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTextAreaElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents.cs index 6928ab923c..20458c66a5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1FF6AA72-5842-11CF-A707-00AA00C0098D")] [NativeTypeName("struct HTMLTextContainerEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLTextContainerEvents : HTMLTextContainerEvents.Interface +public unsafe partial struct HTMLTextContainerEvents : HTMLTextContainerEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTextContainerEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents2.cs index 167bf17160..89ed6b1d76 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextContainerEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F624-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLTextContainerEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLTextContainerEvents2 : HTMLTextContainerEvents2.Interface +public unsafe partial struct HTMLTextContainerEvents2 : HTMLTextContainerEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTextContainerEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextElement.cs index bb3c15094c..4bdd38dfb0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTextElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F26A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTextElement +public unsafe partial struct HTMLTextElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTextElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTimeRanges.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTimeRanges.cs index a325b2c598..4f34af3876 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTimeRanges.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTimeRanges.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTimeRanges +public unsafe partial struct HTMLTimeRanges : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTimeRanges)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTitleElement.cs index 65891b179f..2c891d553c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLTitleElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F284-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLTitleElement +public unsafe partial struct HTMLTitleElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLTitleElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUListElement.cs index 4bf74b2a65..49ca5b8a07 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUListElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F269-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLUListElement +public unsafe partial struct HTMLUListElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLUListElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUnknownElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUnknownElement.cs index 355437ec7a..733f92a1c5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUnknownElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUnknownElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F268-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLUnknownElement +public unsafe partial struct HTMLUnknownElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLUnknownElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUrnCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUrnCollection.cs index 34821b1ef8..3c76cff7f3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLUrnCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLUrnCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F580-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLUrnCollection +public unsafe partial struct HTMLUrnCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLUrnCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLVideoElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLVideoElement.cs index c14bc3a56e..bfd360cd2a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLVideoElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLVideoElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051070F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLVideoElement +public unsafe partial struct HTMLVideoElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLVideoElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLW3CComputedStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLW3CComputedStyle.cs index a7d5f94f67..87f9e47dfb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLW3CComputedStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLW3CComputedStyle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305106C8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLW3CComputedStyle +public unsafe partial struct HTMLW3CComputedStyle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLW3CComputedStyle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindow2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindow2.cs index 4642a2ea07..fe378a8c83 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindow2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindow2.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D48A6EC6-6A4A-11CF-94A7-444553540000")] -public partial struct HTMLWindow2 +public unsafe partial struct HTMLWindow2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWindow2)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents.cs index 3a714366a1..3bd679e5bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("96A0A4E0-D062-11CF-94B6-00AA0060275C")] [NativeTypeName("struct HTMLWindowEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLWindowEvents : HTMLWindowEvents.Interface +public unsafe partial struct HTMLWindowEvents : HTMLWindowEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWindowEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents2.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents2.cs index d539db63a0..a011a7cbc6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F625-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLWindowEvents2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLWindowEvents2 : HTMLWindowEvents2.Interface +public unsafe partial struct HTMLWindowEvents2 : HTMLWindowEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWindowEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents3.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents3.cs index 1d45d15dfe..3669dbfeb2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowEvents3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5A1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLWindowEvents3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLWindowEvents3 : HTMLWindowEvents3.Interface +public unsafe partial struct HTMLWindowEvents3 : HTMLWindowEvents3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWindowEvents3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowProxy.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowProxy.cs index 7953b76e74..b0a449b773 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowProxy.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWindowProxy.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F391-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLWindowProxy +public unsafe partial struct HTMLWindowProxy : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWindowProxy)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndOptionElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndOptionElement.cs index eb1004696e..bf827cc58e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndOptionElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndOptionElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2D0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLWndOptionElement +public unsafe partial struct HTMLWndOptionElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWndOptionElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndSelectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndSelectElement.cs index ca0a65f661..cfa336d805 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndSelectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLWndSelectElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F2CF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLWndSelectElement +public unsafe partial struct HTMLWndSelectElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLWndSelectElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequest.cs index 5ff85bd321..828ff49ab4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequest.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051040B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLXMLHttpRequest +public unsafe partial struct HTMLXMLHttpRequest : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLXMLHttpRequest)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestEvents.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestEvents.cs index ad4882402d..0b5e7a3544 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestEvents.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510498-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct HTMLXMLHttpRequestEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct HTMLXMLHttpRequestEvents : HTMLXMLHttpRequestEvents.Interface +public unsafe partial struct HTMLXMLHttpRequestEvents : HTMLXMLHttpRequestEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLXMLHttpRequestEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestFactory.cs index 1b2727eaf8..f9b3541fe0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HTMLXMLHttpRequestFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051040D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HTMLXMLHttpRequestFactory +public unsafe partial struct HTMLXMLHttpRequestFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HTMLXMLHttpRequestFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/HtmlDlgSafeHelper.cs b/sources/Interop/Windows/Windows/um/MsHTML/HtmlDlgSafeHelper.cs index 600b8e50a6..4820361802 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/HtmlDlgSafeHelper.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/HtmlDlgSafeHelper.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F819-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct HtmlDlgSafeHelper +public unsafe partial struct HtmlDlgSafeHelper : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HtmlDlgSafeHelper)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IBFCacheable.cs b/sources/Interop/Windows/Windows/um/MsHTML/IBFCacheable.cs index e780093b15..ff60b678ca 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IBFCacheable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IBFCacheable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510861-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IBFCacheable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBFCacheable : IBFCacheable.Interface +public unsafe partial struct IBFCacheable : IBFCacheable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBFCacheable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IBlockFormats.cs b/sources/Interop/Windows/Windows/um/MsHTML/IBlockFormats.cs index 467ced52ad..67d04c426a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IBlockFormats.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IBlockFormats.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F830-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IBlockFormats : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBlockFormats : IBlockFormats.Interface +public unsafe partial struct IBlockFormats : IBlockFormats.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBlockFormats)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilter.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilter.cs index c79d4c1a45..24c6506096 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3EC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICSSFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICSSFilter : ICSSFilter.Interface +public unsafe partial struct ICSSFilter : ICSSFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICSSFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilterSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilterSite.cs index dbc24edb93..6da71361fc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilterSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICSSFilterSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICSSFilterSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICSSFilterSite : ICSSFilterSite.Interface +public unsafe partial struct ICSSFilterSite : ICSSFilterSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICSSFilterSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasGradient.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasGradient.cs index fd9e872c32..806544369c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasGradient.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasGradient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510714-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasGradient : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasGradient : ICanvasGradient.Interface +public unsafe partial struct ICanvasGradient : ICanvasGradient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasGradient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasImageData.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasImageData.cs index 1b924ffe0f..86a252cdb9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasImageData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasImageData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051071A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasImageData : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasImageData : ICanvasImageData.Interface +public unsafe partial struct ICanvasImageData : ICanvasImageData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasImageData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPattern.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPattern.cs index ce348bb9b7..ec6f0bad82 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPattern.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPattern.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510716-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasPattern : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasPattern : ICanvasPattern.Interface +public unsafe partial struct ICanvasPattern : ICanvasPattern.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasPattern)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArray.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArray.cs index dd8345bb94..5a912fac8d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArray.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArray.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051071C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasPixelArray : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasPixelArray : ICanvasPixelArray.Interface +public unsafe partial struct ICanvasPixelArray : ICanvasPixelArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasPixelArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArrayData.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArrayData.cs index 9b4b42f604..883d84ee00 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArrayData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasPixelArrayData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107F9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasPixelArrayData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICanvasPixelArrayData : ICanvasPixelArrayData.Interface +public unsafe partial struct ICanvasPixelArrayData : ICanvasPixelArrayData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasPixelArrayData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasRenderingContext2D.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasRenderingContext2D.cs index 508c14020b..e1609cc285 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasRenderingContext2D.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasRenderingContext2D.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasRenderingContext2D : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasRenderingContext2D : ICanvasRenderingContext2D.Interface +public unsafe partial struct ICanvasRenderingContext2D : ICanvasRenderingContext2D.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasRenderingContext2D)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasTextMetrics.cs b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasTextMetrics.cs index a0fd063c0e..5e5d896b6c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ICanvasTextMetrics.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ICanvasTextMetrics.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510718-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ICanvasTextMetrics : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ICanvasTextMetrics : ICanvasTextMetrics.Interface +public unsafe partial struct ICanvasTextMetrics : ICanvasTextMetrics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICanvasTextMetrics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IClientCaps.cs b/sources/Interop/Windows/Windows/um/MsHTML/IClientCaps.cs index 913b3c97d6..f4c80b72d4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IClientCaps.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IClientCaps.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7E8BC44D-AEFF-11D1-89C2-00C04FB6BFC4")] [NativeTypeName("struct IClientCaps : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IClientCaps : IClientCaps.Interface +public unsafe partial struct IClientCaps : IClientCaps.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClientCaps)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMBeforeUnloadEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMBeforeUnloadEvent.cs index 6cdfd708dd..0c20969a6f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMBeforeUnloadEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMBeforeUnloadEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510763-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMBeforeUnloadEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMBeforeUnloadEvent : IDOMBeforeUnloadEvent.Interface +public unsafe partial struct IDOMBeforeUnloadEvent : IDOMBeforeUnloadEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMBeforeUnloadEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCloseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCloseEvent.cs index 0466d202c9..252373a981 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCloseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCloseEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMCloseEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMCloseEvent : IDOMCloseEvent.Interface +public unsafe partial struct IDOMCloseEvent : IDOMCloseEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMCloseEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCompositionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCompositionEvent.cs index c7313b78fa..b94aa48d6c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCompositionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCompositionEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106D8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMCompositionEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMCompositionEvent : IDOMCompositionEvent.Interface +public unsafe partial struct IDOMCompositionEvent : IDOMCompositionEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMCompositionEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCustomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCustomEvent.cs index d32982b6c4..c56f316dae 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMCustomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMCustomEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106DE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMCustomEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMCustomEvent : IDOMCustomEvent.Interface +public unsafe partial struct IDOMCustomEvent : IDOMCustomEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMCustomEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMDocumentType.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMDocumentType.cs index e973a25b5e..ab65ba1137 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMDocumentType.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMDocumentType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510738-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMDocumentType : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMDocumentType : IDOMDocumentType.Interface +public unsafe partial struct IDOMDocumentType : IDOMDocumentType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMDocumentType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMDragEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMDragEvent.cs index 971c78eff3..202b7a0c0b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMDragEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMDragEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510761-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMDragEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMDragEvent : IDOMDragEvent.Interface +public unsafe partial struct IDOMDragEvent : IDOMDragEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMDragEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMEvent.cs index c7b5d37dc4..7f7fd2b97a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104BA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMEvent : IDOMEvent.Interface +public unsafe partial struct IDOMEvent : IDOMEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMEventRegistrationCallback.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMEventRegistrationCallback.cs index 7395b32219..ef414a6581 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMEventRegistrationCallback.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMEventRegistrationCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051083B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMEventRegistrationCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDOMEventRegistrationCallback : IDOMEventRegistrationCallback.Interface +public unsafe partial struct IDOMEventRegistrationCallback : IDOMEventRegistrationCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMEventRegistrationCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMException.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMException.cs index 990d2fec23..a7c178ecbf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051072B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMException : IDOMException.Interface +public unsafe partial struct IDOMException : IDOMException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMFocusEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMFocusEvent.cs index f0da1ff3f9..dfecac3371 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMFocusEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMFocusEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106CC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMFocusEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMFocusEvent : IDOMFocusEvent.Interface +public unsafe partial struct IDOMFocusEvent : IDOMFocusEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMFocusEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMKeyboardEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMKeyboardEvent.cs index cca7c72cc1..a3aca89e40 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMKeyboardEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMKeyboardEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106D6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMKeyboardEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMKeyboardEvent : IDOMKeyboardEvent.Interface +public unsafe partial struct IDOMKeyboardEvent : IDOMKeyboardEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMKeyboardEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSAnimationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSAnimationEvent.cs index 8e4099c21a..a4b95ba545 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSAnimationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSAnimationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107B7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMSAnimationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMSAnimationEvent : IDOMMSAnimationEvent.Interface +public unsafe partial struct IDOMMSAnimationEvent : IDOMMSAnimationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMSAnimationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSManipulationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSManipulationEvent.cs index 771618471d..cf3ffc1786 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSManipulationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSManipulationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510816-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMSManipulationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMSManipulationEvent : IDOMMSManipulationEvent.Interface +public unsafe partial struct IDOMMSManipulationEvent : IDOMMSManipulationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMSManipulationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSTransitionEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSTransitionEvent.cs index cb8d2c1681..8692fe7b77 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSTransitionEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMSTransitionEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107B5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMSTransitionEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMSTransitionEvent : IDOMMSTransitionEvent.Interface +public unsafe partial struct IDOMMSTransitionEvent : IDOMMSTransitionEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMSTransitionEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMessageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMessageEvent.cs index c7bfc96d92..c575152c6c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMessageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMessageEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510720-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMessageEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMessageEvent : IDOMMessageEvent.Interface +public unsafe partial struct IDOMMessageEvent : IDOMMessageEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMessageEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseEvent.cs index f103cdb1f2..ce94830917 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106CE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMouseEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMouseEvent : IDOMMouseEvent.Interface +public unsafe partial struct IDOMMouseEvent : IDOMMouseEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMouseEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseWheelEvent.cs index f59ae2a4c6..bb7a566228 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMouseWheelEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106D0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMouseWheelEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMouseWheelEvent : IDOMMouseWheelEvent.Interface +public unsafe partial struct IDOMMouseWheelEvent : IDOMMouseWheelEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMouseWheelEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMutationEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMutationEvent.cs index 8add966b68..a288129e9c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMMutationEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMMutationEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106DA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMMutationEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMMutationEvent : IDOMMutationEvent.Interface +public unsafe partial struct IDOMMutationEvent : IDOMMutationEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMMutationEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMNodeIterator.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMNodeIterator.cs index 5617163107..1d552f0208 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMNodeIterator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMNodeIterator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510746-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMNodeIterator : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMNodeIterator : IDOMNodeIterator.Interface +public unsafe partial struct IDOMNodeIterator : IDOMNodeIterator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMNodeIterator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMParser.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMParser.cs index 279a3d2daa..d676710f76 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMParser.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMParser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510781-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMParser : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMParser : IDOMParser.Interface +public unsafe partial struct IDOMParser : IDOMParser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMParser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMParserFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMParserFactory.cs index c0d8e05a28..3908776014 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMParserFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMParserFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510783-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMParserFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMParserFactory : IDOMParserFactory.Interface +public unsafe partial struct IDOMParserFactory : IDOMParserFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMParserFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMProcessingInstruction.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMProcessingInstruction.cs index 675c6bef1d..6a31ed0c15 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMProcessingInstruction.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMProcessingInstruction.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510742-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMProcessingInstruction : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMProcessingInstruction : IDOMProcessingInstruction.Interface +public unsafe partial struct IDOMProcessingInstruction : IDOMProcessingInstruction.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMProcessingInstruction)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMProgressEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMProgressEvent.cs index 330643fefc..0b129a7785 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMProgressEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMProgressEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051071E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMProgressEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMProgressEvent : IDOMProgressEvent.Interface +public unsafe partial struct IDOMProgressEvent : IDOMProgressEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMProgressEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMSiteModeEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMSiteModeEvent.cs index 5d679b8cf7..ee1720503f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMSiteModeEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMSiteModeEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510765-98B6-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMSiteModeEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMSiteModeEvent : IDOMSiteModeEvent.Interface +public unsafe partial struct IDOMSiteModeEvent : IDOMSiteModeEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMSiteModeEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMStorageEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMStorageEvent.cs index a2ff78ec23..6d07c59fc1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMStorageEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMStorageEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510722-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMStorageEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMStorageEvent : IDOMStorageEvent.Interface +public unsafe partial struct IDOMStorageEvent : IDOMStorageEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMStorageEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMTextEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMTextEvent.cs index 347b9a0852..7f352908a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMTextEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMTextEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106D4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMTextEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMTextEvent : IDOMTextEvent.Interface +public unsafe partial struct IDOMTextEvent : IDOMTextEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMTextEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMTreeWalker.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMTreeWalker.cs index db6e12256e..da12e24e39 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMTreeWalker.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMTreeWalker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510748-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMTreeWalker : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMTreeWalker : IDOMTreeWalker.Interface +public unsafe partial struct IDOMTreeWalker : IDOMTreeWalker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMTreeWalker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMUIEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMUIEvent.cs index 89674222c5..187fe0f98a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMUIEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMUIEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106CA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMUIEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMUIEvent : IDOMUIEvent.Interface +public unsafe partial struct IDOMUIEvent : IDOMUIEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMUIEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMWheelEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMWheelEvent.cs index 926ac4878d..2a5772c6c3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMWheelEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMWheelEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106D2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMWheelEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMWheelEvent : IDOMWheelEvent.Interface +public unsafe partial struct IDOMWheelEvent : IDOMWheelEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMWheelEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializer.cs index f027b6af06..83a66772e0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051077D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMXmlSerializer : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMXmlSerializer : IDOMXmlSerializer.Interface +public unsafe partial struct IDOMXmlSerializer : IDOMXmlSerializer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMXmlSerializer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializerFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializerFactory.cs index 46a22ffaaa..4abe7acf65 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializerFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDOMXmlSerializerFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051077F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDOMXmlSerializerFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDOMXmlSerializerFactory : IDOMXmlSerializerFactory.Interface +public unsafe partial struct IDOMXmlSerializerFactory : IDOMXmlSerializerFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDOMXmlSerializerFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDebugCallbackNotificationHandler.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDebugCallbackNotificationHandler.cs index 85585c668b..a518afa724 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDebugCallbackNotificationHandler.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDebugCallbackNotificationHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510842-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDebugCallbackNotificationHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDebugCallbackNotificationHandler : IDebugCallbackNotificationHandler.Interface +public unsafe partial struct IDebugCallbackNotificationHandler : IDebugCallbackNotificationHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDebugCallbackNotificationHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDeveloperConsoleMessageReceiver.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDeveloperConsoleMessageReceiver.cs index 30b33db2db..01fa5ef853 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDeveloperConsoleMessageReceiver.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDeveloperConsoleMessageReceiver.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510808-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDeveloperConsoleMessageReceiver : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDeveloperConsoleMessageReceiver : IDeveloperConsoleMessageReceiver.Interface +public unsafe partial struct IDeveloperConsoleMessageReceiver : IDeveloperConsoleMessageReceiver.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeveloperConsoleMessageReceiver)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDisplayPointer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDisplayPointer.cs index c237703663..20b75b5ec8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDisplayPointer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDisplayPointer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F69E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDisplayPointer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDisplayPointer : IDisplayPointer.Interface +public unsafe partial struct IDisplayPointer : IDisplayPointer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDisplayPointer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDisplayServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDisplayServices.cs index d5d66a7672..572211e10b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDisplayServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDisplayServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F69D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDisplayServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDisplayServices : IDisplayServices.Interface +public unsafe partial struct IDisplayServices : IDisplayServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDisplayServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentEvent.cs index d188749f66..574eb3314d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104BC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDocumentEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDocumentEvent : IDocumentEvent.Interface +public unsafe partial struct IDocumentEvent : IDocumentEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocumentEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentRange.cs index 412d70010a..668c9011fd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104AF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDocumentRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDocumentRange : IDocumentRange.Interface +public unsafe partial struct IDocumentRange : IDocumentRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocumentRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentSelector.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentSelector.cs index 6459250f1d..f76034d92d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentSelector.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentSelector.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510462-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDocumentSelector : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDocumentSelector : IDocumentSelector.Interface +public unsafe partial struct IDocumentSelector : IDocumentSelector.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocumentSelector)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentTraversal.cs b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentTraversal.cs index 52d1d00cbe..c3744b2a1e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IDocumentTraversal.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IDocumentTraversal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510744-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IDocumentTraversal : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDocumentTraversal : IDocumentTraversal.Interface +public unsafe partial struct IDocumentTraversal : IDocumentTraversal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocumentTraversal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehavior.cs index 1235fd0b93..4f78758ceb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F425-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehavior : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehavior : IElementBehavior.Interface +public unsafe partial struct IElementBehavior : IElementBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorCategory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorCategory.cs index 29056a31b3..2cc89b3d8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorCategory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorCategory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorCategory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorCategory : IElementBehaviorCategory.Interface +public unsafe partial struct IElementBehaviorCategory : IElementBehaviorCategory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorCategory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFactory.cs index ef8f690a2a..b13169df3a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F429-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorFactory : IElementBehaviorFactory.Interface +public unsafe partial struct IElementBehaviorFactory : IElementBehaviorFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFocus.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFocus.cs index c10a3069c9..3149c99210 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFocus.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorFocus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6B6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorFocus : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorFocus : IElementBehaviorFocus.Interface +public unsafe partial struct IElementBehaviorFocus : IElementBehaviorFocus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorFocus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout.cs index 20bd4ab79d..0b2a0d26c1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6BA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorLayout : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorLayout : IElementBehaviorLayout.Interface +public unsafe partial struct IElementBehaviorLayout : IElementBehaviorLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout2.cs index fc808e4f12..fa229f9be5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorLayout2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F846-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorLayout2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorLayout2 : IElementBehaviorLayout2.Interface +public unsafe partial struct IElementBehaviorLayout2 : IElementBehaviorLayout2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorLayout2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorRender.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorRender.cs index 2c64ba00f3..a2c9e1a952 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorRender.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorRender.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4AA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorRender : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorRender : IElementBehaviorRender.Interface +public unsafe partial struct IElementBehaviorRender : IElementBehaviorRender.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorRender)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSite.cs index a8372ccff5..d4e01f69d7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F427-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSite : IElementBehaviorSite.Interface +public unsafe partial struct IElementBehaviorSite : IElementBehaviorSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteCategory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteCategory.cs index 96185d0b68..24c4f935cc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteCategory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteCategory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteCategory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSiteCategory : IElementBehaviorSiteCategory.Interface +public unsafe partial struct IElementBehaviorSiteCategory : IElementBehaviorSiteCategory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteCategory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout.cs index 8c7d03b363..9c8f3aec78 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6B7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteLayout : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSiteLayout : IElementBehaviorSiteLayout.Interface +public unsafe partial struct IElementBehaviorSiteLayout : IElementBehaviorSiteLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout2.cs index 18f8ff3757..99ec0e4cb5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteLayout2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F847-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteLayout2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSiteLayout2 : IElementBehaviorSiteLayout2.Interface +public unsafe partial struct IElementBehaviorSiteLayout2 : IElementBehaviorSiteLayout2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteLayout2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM.cs index ce5b12b0a1..0c4ee340c9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F489-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteOM : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSiteOM : IElementBehaviorSiteOM.Interface +public unsafe partial struct IElementBehaviorSiteOM : IElementBehaviorSiteOM.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteOM)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM2.cs index 64ad78d8ab..e01357a813 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteOM2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F659-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteOM2 : IElementBehaviorSiteOM")] [NativeInheritance("IElementBehaviorSiteOM")] -public unsafe partial struct IElementBehaviorSiteOM2 : IElementBehaviorSiteOM2.Interface +public unsafe partial struct IElementBehaviorSiteOM2 : IElementBehaviorSiteOM2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteOM2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteRender.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteRender.cs index 7c433981a8..2d8bd530a0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteRender.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSiteRender.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSiteRender : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSiteRender : IElementBehaviorSiteRender.Interface +public unsafe partial struct IElementBehaviorSiteRender : IElementBehaviorSiteRender.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSiteRender)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSubmit.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSubmit.cs index 960c3c89fa..435b305a0e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSubmit.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementBehaviorSubmit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F646-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementBehaviorSubmit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementBehaviorSubmit : IElementBehaviorSubmit.Interface +public unsafe partial struct IElementBehaviorSubmit : IElementBehaviorSubmit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementBehaviorSubmit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespace.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespace.cs index d33dc5d457..65b403143e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F671-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementNamespace : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementNamespace : IElementNamespace.Interface +public unsafe partial struct IElementNamespace : IElementNamespace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementNamespace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory.cs index 9967e3390e..c6110d156e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F672-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementNamespaceFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementNamespaceFactory : IElementNamespaceFactory.Interface +public unsafe partial struct IElementNamespaceFactory : IElementNamespaceFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementNamespaceFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory2.cs index 2ab19d9349..a6b2df6a24 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactory2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F805-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementNamespaceFactory2 : IElementNamespaceFactory")] [NativeInheritance("IElementNamespaceFactory")] -public unsafe partial struct IElementNamespaceFactory2 : IElementNamespaceFactory2.Interface +public unsafe partial struct IElementNamespaceFactory2 : IElementNamespaceFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementNamespaceFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactoryCallback.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactoryCallback.cs index b69bc81eb1..e0447c82bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactoryCallback.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceFactoryCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7FD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementNamespaceFactoryCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementNamespaceFactoryCallback : IElementNamespaceFactoryCallback.Interface +public unsafe partial struct IElementNamespaceFactoryCallback : IElementNamespaceFactoryCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementNamespaceFactoryCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceTable.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceTable.cs index 6976906325..a941b8bd8c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceTable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementNamespaceTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F670-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementNamespaceTable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IElementNamespaceTable : IElementNamespaceTable.Interface +public unsafe partial struct IElementNamespaceTable : IElementNamespaceTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementNamespaceTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementSegment.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementSegment.cs index 663e281586..ff4875890b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementSegment.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementSegment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F68F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementSegment : ISegment")] [NativeInheritance("ISegment")] -public unsafe partial struct IElementSegment : IElementSegment.Interface +public unsafe partial struct IElementSegment : IElementSegment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementSegment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementSelector.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementSelector.cs index 6942c7dd2f..a821bbc20b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementSelector.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementSelector.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510463-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementSelector : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IElementSelector : IElementSelector.Interface +public unsafe partial struct IElementSelector : IElementSelector.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementSelector)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IElementTraversal.cs b/sources/Interop/Windows/Windows/um/MsHTML/IElementTraversal.cs index 44dc6c7f4d..387960c071 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IElementTraversal.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IElementTraversal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510736-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IElementTraversal : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IElementTraversal : IElementTraversal.Interface +public unsafe partial struct IElementTraversal : IElementTraversal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IElementTraversal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IEnumPrivacyRecords.cs b/sources/Interop/Windows/Windows/um/MsHTML/IEnumPrivacyRecords.cs index 1e31282414..7e9bc27ff7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IEnumPrivacyRecords.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IEnumPrivacyRecords.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F844-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IEnumPrivacyRecords : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumPrivacyRecords : IEnumPrivacyRecords.Interface +public unsafe partial struct IEnumPrivacyRecords : IEnumPrivacyRecords.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumPrivacyRecords)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IEventException.cs b/sources/Interop/Windows/Windows/um/MsHTML/IEventException.cs index 040d658a04..b3a14adc2f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IEventException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IEventException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051073A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IEventException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IEventException : IEventException.Interface +public unsafe partial struct IEventException : IEventException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEventException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget.cs b/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget.cs index 3cc910dcc7..7f31ad1009 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104B9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IEventTarget : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IEventTarget : IEventTarget.Interface +public unsafe partial struct IEventTarget : IEventTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEventTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget2.cs index 41ad6dde50..556a3cf320 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IEventTarget2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510839-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IEventTarget2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEventTarget2 : IEventTarget2.Interface +public unsafe partial struct IEventTarget2 : IEventTarget2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEventTarget2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IFontNames.cs b/sources/Interop/Windows/Windows/um/MsHTML/IFontNames.cs index b0c644a3ab..d2be0d5e6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IFontNames.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IFontNames.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F839-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IFontNames : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFontNames : IFontNames.Interface +public unsafe partial struct IFontNames : IFontNames.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFontNames)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IGetSVGDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/IGetSVGDocument.cs index ac4ea4af1c..fa3f2bc492 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IGetSVGDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IGetSVGDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305105AB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IGetSVGDocument : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IGetSVGDocument : IGetSVGDocument.Interface +public unsafe partial struct IGetSVGDocument : IGetSVGDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGetSVGDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior.cs index 67c7e92a23..0b31d02da0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5F4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCAttachBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCAttachBehavior : IHTCAttachBehavior.Interface +public unsafe partial struct IHTCAttachBehavior : IHTCAttachBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCAttachBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior2.cs index ecb0a45ea6..0c5e224594 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCAttachBehavior2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7EB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCAttachBehavior2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCAttachBehavior2 : IHTCAttachBehavior2.Interface +public unsafe partial struct IHTCAttachBehavior2 : IHTCAttachBehavior2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCAttachBehavior2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCDefaultDispatch.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCDefaultDispatch.cs index a13c092fe8..5c819b271d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCDefaultDispatch.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCDefaultDispatch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4FD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCDefaultDispatch : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCDefaultDispatch : IHTCDefaultDispatch.Interface +public unsafe partial struct IHTCDefaultDispatch : IHTCDefaultDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCDefaultDispatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCDescBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCDescBehavior.cs index af7e9447d7..1e0130247a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCDescBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCDescBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5DC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCDescBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCDescBehavior : IHTCDescBehavior.Interface +public unsafe partial struct IHTCDescBehavior : IHTCDescBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCDescBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCEventBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCEventBehavior.cs index 08de90bfae..bc47e8f66c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCEventBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCEventBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCEventBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCEventBehavior : IHTCEventBehavior.Interface +public unsafe partial struct IHTCEventBehavior : IHTCEventBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCEventBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCMethodBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCMethodBehavior.cs index 0db12890cb..a28967ffa8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCMethodBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCMethodBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F631-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCMethodBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCMethodBehavior : IHTCMethodBehavior.Interface +public unsafe partial struct IHTCMethodBehavior : IHTCMethodBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCMethodBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTCPropertyBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTCPropertyBehavior.cs index 7440862125..e60762b8c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTCPropertyBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTCPropertyBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5DF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTCPropertyBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTCPropertyBehavior : IHTCPropertyBehavior.Interface +public unsafe partial struct IHTCPropertyBehavior : IHTCPropertyBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTCPropertyBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement.cs index 4adb2eee53..7cb7631314 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1DA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAnchorElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAnchorElement : IHTMLAnchorElement.Interface +public unsafe partial struct IHTMLAnchorElement : IHTMLAnchorElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAnchorElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement2.cs index 5e01199630..b310658172 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F825-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAnchorElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAnchorElement2 : IHTMLAnchorElement2.Interface +public unsafe partial struct IHTMLAnchorElement2 : IHTMLAnchorElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAnchorElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement3.cs index 7b5bcdb6ba..0fc37b7c83 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAnchorElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051041D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAnchorElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAnchorElement3 : IHTMLAnchorElement3.Interface +public unsafe partial struct IHTMLAnchorElement3 : IHTMLAnchorElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAnchorElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior.cs index fcd7cd098c..1c4efd04b3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5CA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAppBehavior : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAppBehavior : IHTMLAppBehavior.Interface +public unsafe partial struct IHTMLAppBehavior : IHTMLAppBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAppBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior2.cs index c09d8bf496..00ccecbff6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5C9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAppBehavior2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAppBehavior2 : IHTMLAppBehavior2.Interface +public unsafe partial struct IHTMLAppBehavior2 : IHTMLAppBehavior2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAppBehavior2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior3.cs index 7b20104c38..8c7bcf10c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAppBehavior3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5CD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAppBehavior3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAppBehavior3 : IHTMLAppBehavior3.Interface +public unsafe partial struct IHTMLAppBehavior3 : IHTMLAppBehavior3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAppBehavior3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLApplicationCache.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLApplicationCache.cs index 5abade705f..54ba2ba395 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLApplicationCache.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLApplicationCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510828-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLApplicationCache : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLApplicationCache : IHTMLApplicationCache.Interface +public unsafe partial struct IHTMLApplicationCache : IHTMLApplicationCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLApplicationCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement.cs index 6ee110edcb..4580284b1c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F265-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreaElement : IHTMLAreaElement.Interface +public unsafe partial struct IHTMLAreaElement : IHTMLAreaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement2.cs index b3e9b270a1..19783a8f55 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreaElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051041F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreaElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreaElement2 : IHTMLAreaElement2.Interface +public unsafe partial struct IHTMLAreaElement2 : IHTMLAreaElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreaElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection.cs index 6ce705b38c..a186cb40ca 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F383-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreasCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreasCollection : IHTMLAreasCollection.Interface +public unsafe partial struct IHTMLAreasCollection : IHTMLAreasCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreasCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection2.cs index ec1e7301a6..2905fab872 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5EC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreasCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreasCollection2 : IHTMLAreasCollection2.Interface +public unsafe partial struct IHTMLAreasCollection2 : IHTMLAreasCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreasCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection3.cs index 38b1c2195d..cf2fcb2159 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F837-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreasCollection3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreasCollection3 : IHTMLAreasCollection3.Interface +public unsafe partial struct IHTMLAreasCollection3 : IHTMLAreasCollection3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreasCollection3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection4.cs index 455ed7011a..788a0b2836 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAreasCollection4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510492-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAreasCollection4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAreasCollection4 : IHTMLAreasCollection4.Interface +public unsafe partial struct IHTMLAreasCollection4 : IHTMLAreasCollection4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAreasCollection4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection.cs index f678d2fb19..da513a7c32 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4C3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAttributeCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAttributeCollection : IHTMLAttributeCollection.Interface +public unsafe partial struct IHTMLAttributeCollection : IHTMLAttributeCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAttributeCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection2.cs index ca8c1273e3..4646b2291f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F80A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAttributeCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAttributeCollection2 : IHTMLAttributeCollection2.Interface +public unsafe partial struct IHTMLAttributeCollection2 : IHTMLAttributeCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAttributeCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection3.cs index 507cf773cb..e91da4775e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510469-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAttributeCollection3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAttributeCollection3 : IHTMLAttributeCollection3.Interface +public unsafe partial struct IHTMLAttributeCollection3 : IHTMLAttributeCollection3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAttributeCollection3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection4.cs index 5d36f4431d..d9cb77e262 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAttributeCollection4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106FA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAttributeCollection4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAttributeCollection4 : IHTMLAttributeCollection4.Interface +public unsafe partial struct IHTMLAttributeCollection4 : IHTMLAttributeCollection4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAttributeCollection4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElement.cs index 904268fb57..4d05533ca8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510708-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAudioElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAudioElement : IHTMLAudioElement.Interface +public unsafe partial struct IHTMLAudioElement : IHTMLAudioElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAudioElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElementFactory.cs index bad2e3e7e0..e71191fd11 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLAudioElementFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107EB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLAudioElementFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLAudioElementFactory : IHTMLAudioElementFactory.Interface +public unsafe partial struct IHTMLAudioElementFactory : IHTMLAudioElementFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLAudioElementFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBGsound.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBGsound.cs index d9b955034c..a3e16d1980 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBGsound.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBGsound.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F369-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBGsound : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBGsound : IHTMLBGsound.Interface +public unsafe partial struct IHTMLBGsound : IHTMLBGsound.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBGsound)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBRElement.cs index 4ec08a216d..4a5e759d26 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBRElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBRElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBRElement : IHTMLBRElement.Interface +public unsafe partial struct IHTMLBRElement : IHTMLBRElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBRElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement.cs index 6dedf1e377..e3ea642fb6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F204-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBaseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBaseElement : IHTMLBaseElement.Interface +public unsafe partial struct IHTMLBaseElement : IHTMLBaseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBaseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement2.cs index db788971db..dd6058b7f7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510420-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBaseElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBaseElement2 : IHTMLBaseElement2.Interface +public unsafe partial struct IHTMLBaseElement2 : IHTMLBaseElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBaseElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseFontElement.cs index 1673c5fc08..bc8fd136c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBaseFontElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F202-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBaseFontElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBaseFontElement : IHTMLBaseFontElement.Interface +public unsafe partial struct IHTMLBaseFontElement : IHTMLBaseFontElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBaseFontElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement.cs index 42f0143ad3..d47851ad90 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F208-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBlockElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBlockElement : IHTMLBlockElement.Interface +public unsafe partial struct IHTMLBlockElement : IHTMLBlockElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBlockElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement2.cs index 32d23b1f91..0170fa2281 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F823-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBlockElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBlockElement2 : IHTMLBlockElement2.Interface +public unsafe partial struct IHTMLBlockElement2 : IHTMLBlockElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBlockElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement3.cs index b1135eb6be..c8db7c4f59 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBlockElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510494-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBlockElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBlockElement3 : IHTMLBlockElement3.Interface +public unsafe partial struct IHTMLBlockElement3 : IHTMLBlockElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBlockElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement.cs index b13a986b01..4cc3f9db33 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1D8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBodyElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBodyElement : IHTMLBodyElement.Interface +public unsafe partial struct IHTMLBodyElement : IHTMLBodyElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBodyElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement2.cs index 9e2af79cb8..ef2e2c3c44 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5C5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBodyElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBodyElement2 : IHTMLBodyElement2.Interface +public unsafe partial struct IHTMLBodyElement2 : IHTMLBodyElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBodyElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement3.cs index f33d47d664..7539b62d2f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510422-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBodyElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBodyElement3 : IHTMLBodyElement3.Interface +public unsafe partial struct IHTMLBodyElement3 : IHTMLBodyElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBodyElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement4.cs index bb577bdd27..98e721becf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510795-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBodyElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBodyElement4 : IHTMLBodyElement4.Interface +public unsafe partial struct IHTMLBodyElement4 : IHTMLBodyElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBodyElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement5.cs index 4795372c54..11417bf145 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBodyElement5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510822-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBodyElement5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBodyElement5 : IHTMLBodyElement5.Interface +public unsafe partial struct IHTMLBodyElement5 : IHTMLBodyElement5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBodyElement5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBookmarkCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBookmarkCollection.cs index ffea57fa71..3e0e0a65f3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBookmarkCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLBookmarkCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4CE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLBookmarkCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLBookmarkCollection : IHTMLBookmarkCollection.Interface +public unsafe partial struct IHTMLBookmarkCollection : IHTMLBookmarkCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLBookmarkCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement.cs index f270659e0c..800f77bfee 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2BB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLButtonElement : IHTMLButtonElement.Interface +public unsafe partial struct IHTMLButtonElement : IHTMLButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement2.cs index 857d394328..a8d8d82f31 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLButtonElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106F3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLButtonElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLButtonElement2 : IHTMLButtonElement2.Interface +public unsafe partial struct IHTMLButtonElement2 : IHTMLButtonElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLButtonElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSImportRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSImportRule.cs index 338f93bca4..e2b936f19e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSImportRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSImportRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106EA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSImportRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSImportRule : IHTMLCSSImportRule.Interface +public unsafe partial struct IHTMLCSSImportRule : IHTMLCSSImportRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSImportRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaList.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaList.cs index 3f234734cf..eb7692c1b8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510731-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSMediaList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSMediaList : IHTMLCSSMediaList.Interface +public unsafe partial struct IHTMLCSSMediaList : IHTMLCSSMediaList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSMediaList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaRule.cs index 0a8a91fe2e..c1ab128eba 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSMediaRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106EB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSMediaRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSMediaRule : IHTMLCSSMediaRule.Interface +public unsafe partial struct IHTMLCSSMediaRule : IHTMLCSSMediaRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSMediaRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSNamespaceRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSNamespaceRule.cs index fd58d2c0c1..6687b748aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSNamespaceRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSNamespaceRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSNamespaceRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSNamespaceRule : IHTMLCSSNamespaceRule.Interface +public unsafe partial struct IHTMLCSSNamespaceRule : IHTMLCSSNamespaceRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSNamespaceRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSRule.cs index c190937df7..7f710fb6a5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSRule : IHTMLCSSRule.Interface +public unsafe partial struct IHTMLCSSRule : IHTMLCSSRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration.cs index c40bc055fa..44c4c4768f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510740-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSStyleDeclaration : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSStyleDeclaration : IHTMLCSSStyleDeclaration.Interface +public unsafe partial struct IHTMLCSSStyleDeclaration : IHTMLCSSStyleDeclaration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSStyleDeclaration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration2.cs index 85401fb135..4070945cc2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107D1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSStyleDeclaration2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSStyleDeclaration2 : IHTMLCSSStyleDeclaration2.Interface +public unsafe partial struct IHTMLCSSStyleDeclaration2 : IHTMLCSSStyleDeclaration2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSStyleDeclaration2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration3.cs index 03658417d3..1926928291 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051085C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCSSStyleDeclaration3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSStyleDeclaration3 : IHTMLCSSStyleDeclaration3.Interface +public unsafe partial struct IHTMLCSSStyleDeclaration3 : IHTMLCSSStyleDeclaration3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSStyleDeclaration3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration4.cs index ca4f37f048..1374611b22 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCSSStyleDeclaration4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D6100F3B-27C8-4132-AFEA-F0E4B1E00060")] [NativeTypeName("struct IHTMLCSSStyleDeclaration4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCSSStyleDeclaration4 : IHTMLCSSStyleDeclaration4.Interface +public unsafe partial struct IHTMLCSSStyleDeclaration4 : IHTMLCSSStyleDeclaration4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCSSStyleDeclaration4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCanvasElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCanvasElement.cs index 792cef9e72..c0d40080c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCanvasElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCanvasElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCanvasElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCanvasElement : IHTMLCanvasElement.Interface +public unsafe partial struct IHTMLCanvasElement : IHTMLCanvasElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCanvasElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCaret.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCaret.cs index e7543d0278..112190c487 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCaret.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCaret.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F604-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCaret : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLCaret : IHTMLCaret.Interface +public unsafe partial struct IHTMLCaret : IHTMLCaret.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCaret)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeLog.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeLog.cs index 980b883f3c..88d492718b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeLog.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeLog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F649-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLChangeLog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLChangeLog : IHTMLChangeLog.Interface +public unsafe partial struct IHTMLChangeLog : IHTMLChangeLog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLChangeLog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangePlayback.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangePlayback.cs index 35ac1d0e92..e4635833d4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangePlayback.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangePlayback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6E0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLChangePlayback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLChangePlayback : IHTMLChangePlayback.Interface +public unsafe partial struct IHTMLChangePlayback : IHTMLChangePlayback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLChangePlayback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeSink.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeSink.cs index cb68ab0887..6322b167b9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeSink.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLChangeSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F64A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLChangeSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLChangeSink : IHTMLChangeSink.Interface +public unsafe partial struct IHTMLChangeSink : IHTMLChangeSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLChangeSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement.cs index ce086572f2..d98f3d66fe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F20C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCommentElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCommentElement : IHTMLCommentElement.Interface +public unsafe partial struct IHTMLCommentElement : IHTMLCommentElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCommentElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement2.cs index 9f93d2a60c..a229e0b754 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F813-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCommentElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCommentElement2 : IHTMLCommentElement2.Interface +public unsafe partial struct IHTMLCommentElement2 : IHTMLCommentElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCommentElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement3.cs index 2f31bcf862..a27cb0ecdc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCommentElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051073F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCommentElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCommentElement3 : IHTMLCommentElement3.Interface +public unsafe partial struct IHTMLCommentElement3 : IHTMLCommentElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCommentElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLComputedStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLComputedStyle.cs index 34c463816f..b800cb4b39 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLComputedStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLComputedStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6C3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLComputedStyle : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLComputedStyle : IHTMLComputedStyle.Interface +public unsafe partial struct IHTMLComputedStyle : IHTMLComputedStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLComputedStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlElement.cs index a98e2ac2a0..2e88a7b982 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4E9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLControlElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLControlElement : IHTMLControlElement.Interface +public unsafe partial struct IHTMLControlElement : IHTMLControlElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLControlElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange.cs index 41c8798031..eb32b45f63 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F29C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLControlRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLControlRange : IHTMLControlRange.Interface +public unsafe partial struct IHTMLControlRange : IHTMLControlRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLControlRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange2.cs index aa7ca587f1..52fafdcd53 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLControlRange2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F65E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLControlRange2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLControlRange2 : IHTMLControlRange2.Interface +public unsafe partial struct IHTMLControlRange2 : IHTMLControlRange2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLControlRange2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle.cs index ec50b2d0c8..96b7059139 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3DB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCurrentStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCurrentStyle : IHTMLCurrentStyle.Interface +public unsafe partial struct IHTMLCurrentStyle : IHTMLCurrentStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCurrentStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle2.cs index 10f5e2b5d1..8b6eb9ad95 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F658-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCurrentStyle2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCurrentStyle2 : IHTMLCurrentStyle2.Interface +public unsafe partial struct IHTMLCurrentStyle2 : IHTMLCurrentStyle2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCurrentStyle2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle3.cs index e54bf904c7..208c5e7105 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F818-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCurrentStyle3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCurrentStyle3 : IHTMLCurrentStyle3.Interface +public unsafe partial struct IHTMLCurrentStyle3 : IHTMLCurrentStyle3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCurrentStyle3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle4.cs index 7a362a84d5..bed41781f6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F33B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCurrentStyle4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCurrentStyle4 : IHTMLCurrentStyle4.Interface +public unsafe partial struct IHTMLCurrentStyle4 : IHTMLCurrentStyle4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCurrentStyle4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle5.cs index 03aea19a20..e0d47204a1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLCurrentStyle5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510481-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLCurrentStyle5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLCurrentStyle5 : IHTMLCurrentStyle5.Interface +public unsafe partial struct IHTMLCurrentStyle5 : IHTMLCurrentStyle5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLCurrentStyle5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDDElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDDElement.cs index 0a8c24c024..f6fa6b26bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDDElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDDElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDDElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDDElement : IHTMLDDElement.Interface +public unsafe partial struct IHTMLDDElement : IHTMLDDElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDDElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDListElement.cs index 1eed3daa49..08a90c4a39 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDListElement : IHTMLDListElement.Interface +public unsafe partial struct IHTMLDListElement : IHTMLDListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute.cs index 02bf8efd51..f68498a555 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4B0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMAttribute : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMAttribute : IHTMLDOMAttribute.Interface +public unsafe partial struct IHTMLDOMAttribute : IHTMLDOMAttribute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMAttribute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute2.cs index 8908e40055..2de255f222 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F810-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMAttribute2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMAttribute2 : IHTMLDOMAttribute2.Interface +public unsafe partial struct IHTMLDOMAttribute2 : IHTMLDOMAttribute2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMAttribute2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute3.cs index 60ae146f7c..0fc5c0eade 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510468-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMAttribute3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMAttribute3 : IHTMLDOMAttribute3.Interface +public unsafe partial struct IHTMLDOMAttribute3 : IHTMLDOMAttribute3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMAttribute3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute4.cs index 137e1a355b..5b91b0c33b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMAttribute4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106F9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMAttribute4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMAttribute4 : IHTMLDOMAttribute4.Interface +public unsafe partial struct IHTMLDOMAttribute4 : IHTMLDOMAttribute4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMAttribute4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection.cs index ce21ba5204..84cabf7b3a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5AB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMChildrenCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMChildrenCollection : IHTMLDOMChildrenCollection.Interface +public unsafe partial struct IHTMLDOMChildrenCollection : IHTMLDOMChildrenCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMChildrenCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection2.cs index 2e45f94853..786992c74e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMChildrenCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510791-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMChildrenCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMChildrenCollection2 : IHTMLDOMChildrenCollection2.Interface +public unsafe partial struct IHTMLDOMChildrenCollection2 : IHTMLDOMChildrenCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMChildrenCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructor.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructor.cs index 5449d97419..a8fefd01a0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructor.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051049B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMConstructor : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMConstructor : IHTMLDOMConstructor.Interface +public unsafe partial struct IHTMLDOMConstructor : IHTMLDOMConstructor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMConstructor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructorCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructorCollection.cs index e9979671dc..aa459c1608 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructorCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMConstructorCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051049C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMConstructorCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMConstructorCollection : IHTMLDOMConstructorCollection.Interface +public unsafe partial struct IHTMLDOMConstructorCollection : IHTMLDOMConstructorCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMConstructorCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation.cs index 3051ee07da..2a0615bfea 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F80D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMImplementation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMImplementation : IHTMLDOMImplementation.Interface +public unsafe partial struct IHTMLDOMImplementation : IHTMLDOMImplementation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMImplementation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation2.cs index 6c4dc42922..4bf4229c25 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMImplementation2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051073C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMImplementation2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMImplementation2 : IHTMLDOMImplementation2.Interface +public unsafe partial struct IHTMLDOMImplementation2 : IHTMLDOMImplementation2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMImplementation2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode.cs index a0e520de0e..1f5c230f17 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5DA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMNode : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMNode : IHTMLDOMNode.Interface +public unsafe partial struct IHTMLDOMNode : IHTMLDOMNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode2.cs index dc693112a2..fe63ec60fb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F80B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMNode2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMNode2 : IHTMLDOMNode2.Interface +public unsafe partial struct IHTMLDOMNode2 : IHTMLDOMNode2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMNode2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode3.cs index 451a5f8b6b..07d5430f76 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMNode3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMNode3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMNode3 : IHTMLDOMNode3.Interface +public unsafe partial struct IHTMLDOMNode3 : IHTMLDOMNode3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMNode3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMRange.cs index 190a4783ad..048f471716 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104AE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMRange : IHTMLDOMRange.Interface +public unsafe partial struct IHTMLDOMRange : IHTMLDOMRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode.cs index bb0d016c57..b76ae5941b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4B1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMTextNode : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMTextNode : IHTMLDOMTextNode.Interface +public unsafe partial struct IHTMLDOMTextNode : IHTMLDOMTextNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMTextNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode2.cs index 3af6e5260c..1e0121609c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F809-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMTextNode2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMTextNode2 : IHTMLDOMTextNode2.Interface +public unsafe partial struct IHTMLDOMTextNode2 : IHTMLDOMTextNode2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMTextNode2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode3.cs index 1aa8b8982c..9899a927ff 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDOMTextNode3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051073E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDOMTextNode3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDOMTextNode3 : IHTMLDOMTextNode3.Interface +public unsafe partial struct IHTMLDOMTextNode3 : IHTMLDOMTextNode3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDOMTextNode3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDTElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDTElement.cs index b0fa9ecdb3..d7a2e5fcb2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDTElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDTElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDTElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDTElement : IHTMLDTElement.Interface +public unsafe partial struct IHTMLDTElement : IHTMLDTElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDTElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDataTransfer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDataTransfer.cs index 41a2222721..175c9fbdab 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDataTransfer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDataTransfer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4B3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDataTransfer : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDataTransfer : IHTMLDataTransfer.Interface +public unsafe partial struct IHTMLDataTransfer : IHTMLDataTransfer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDataTransfer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDatabinding.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDatabinding.cs index 4c4f7f8f92..0b4fb19e6c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDatabinding.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDatabinding.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3F2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDatabinding : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDatabinding : IHTMLDatabinding.Interface +public unsafe partial struct IHTMLDatabinding : IHTMLDatabinding.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDatabinding)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog.cs index ba17602d39..f3ac6107dd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F216-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDialog : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDialog : IHTMLDialog.Interface +public unsafe partial struct IHTMLDialog : IHTMLDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog2.cs index 9732917c7e..07bd35d928 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5E0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDialog2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDialog2 : IHTMLDialog2.Interface +public unsafe partial struct IHTMLDialog2 : IHTMLDialog2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDialog2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog3.cs index fff5e9a009..e9b0faf374 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDialog3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F388-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDialog3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDialog3 : IHTMLDialog3.Interface +public unsafe partial struct IHTMLDialog3 : IHTMLDialog3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDialog3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivElement.cs index 5c46feb609..1a88b4c038 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F200-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDivElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDivElement : IHTMLDivElement.Interface +public unsafe partial struct IHTMLDivElement : IHTMLDivElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDivElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivPosition.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivPosition.cs index 004ad8a8e6..a00e396e88 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivPosition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDivPosition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F212-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDivPosition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDivPosition : IHTMLDivPosition.Interface +public unsafe partial struct IHTMLDivPosition : IHTMLDivPosition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDivPosition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument.cs index 2af737e547..f46781ec30 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("626FC520-A41E-11CF-A731-00A0C9082637")] [NativeTypeName("struct IHTMLDocument : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument : IHTMLDocument.Interface +public unsafe partial struct IHTMLDocument : IHTMLDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument2.cs index 1b4ba053cc..0fcdf2684d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("332C4425-26CB-11D0-B483-00C04FD90119")] [NativeTypeName("struct IHTMLDocument2 : IHTMLDocument")] [NativeInheritance("IHTMLDocument")] -public unsafe partial struct IHTMLDocument2 : IHTMLDocument2.Interface +public unsafe partial struct IHTMLDocument2 : IHTMLDocument2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument3.cs index d6450a5619..02ac7a4ee3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F485-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument3 : IHTMLDocument3.Interface +public unsafe partial struct IHTMLDocument3 : IHTMLDocument3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument4.cs index d2704b3f88..418ce2d7d3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F69A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument4 : IHTMLDocument4.Interface +public unsafe partial struct IHTMLDocument4 : IHTMLDocument4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument5.cs index f4db74dacb..54ab95b32e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F80C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument5 : IHTMLDocument5.Interface +public unsafe partial struct IHTMLDocument5 : IHTMLDocument5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument6.cs index 35fa1419b5..bf87977abb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510417-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument6 : IHTMLDocument6.Interface +public unsafe partial struct IHTMLDocument6 : IHTMLDocument6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument7.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument7.cs index 64cb7e2b36..0e8c9ed723 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument7.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104B8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument7 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument7 : IHTMLDocument7.Interface +public unsafe partial struct IHTMLDocument7 : IHTMLDocument7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument8.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument8.cs index f767cd1df5..858e644c80 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument8.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocument8.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107D0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocument8 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocument8 : IHTMLDocument8.Interface +public unsafe partial struct IHTMLDocument8 : IHTMLDocument8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocument8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfo.cs index 1dc9765d52..e51d55a4cb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051041A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocumentCompatibleInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocumentCompatibleInfo : IHTMLDocumentCompatibleInfo.Interface +public unsafe partial struct IHTMLDocumentCompatibleInfo : IHTMLDocumentCompatibleInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocumentCompatibleInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfoCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfoCollection.cs index 7be1d7d87a..b7ff6d140a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfoCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLDocumentCompatibleInfoCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510418-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLDocumentCompatibleInfoCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLDocumentCompatibleInfoCollection : IHTMLDocumentCompatibleInfoCollection.Interface +public unsafe partial struct IHTMLDocumentCompatibleInfoCollection : IHTMLDocumentCompatibleInfoCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLDocumentCompatibleInfoCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditDesigner.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditDesigner.cs index 4c9f261301..499c222a34 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditDesigner.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditDesigner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F662-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEditDesigner : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLEditDesigner : IHTMLEditDesigner.Interface +public unsafe partial struct IHTMLEditDesigner : IHTMLEditDesigner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEditDesigner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost.cs index 9a026b3e9c..b1c4f921a4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6A0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEditHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLEditHost : IHTMLEditHost.Interface +public unsafe partial struct IHTMLEditHost : IHTMLEditHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEditHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost2.cs index 60805954b8..18dc33b34d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditHost2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F848-98B5-11CF-BB82-00AA00BDCE0D")] [NativeTypeName("struct IHTMLEditHost2 : IHTMLEditHost")] [NativeInheritance("IHTMLEditHost")] -public unsafe partial struct IHTMLEditHost2 : IHTMLEditHost2.Interface +public unsafe partial struct IHTMLEditHost2 : IHTMLEditHost2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEditHost2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices.cs index 42561b604b..519e042c53 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F663-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEditServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLEditServices : IHTMLEditServices.Interface +public unsafe partial struct IHTMLEditServices : IHTMLEditServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEditServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices2.cs index 4fdb79e741..73d983c632 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEditServices2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F812-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEditServices2 : IHTMLEditServices")] [NativeInheritance("IHTMLEditServices")] -public unsafe partial struct IHTMLEditServices2 : IHTMLEditServices2.Interface +public unsafe partial struct IHTMLEditServices2 : IHTMLEditServices2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEditServices2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement.cs index 793b06c5f3..6158078041 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement : IHTMLElement.Interface +public unsafe partial struct IHTMLElement : IHTMLElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement2.cs index a8b1fd96ea..03d4992ded 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F434-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement2 : IHTMLElement2.Interface +public unsafe partial struct IHTMLElement2 : IHTMLElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement3.cs index 2c617e3970..d2f965390b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F673-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement3 : IHTMLElement3.Interface +public unsafe partial struct IHTMLElement3 : IHTMLElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement4.cs index 37dda539ae..08c04d92b8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F80F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement4 : IHTMLElement4.Interface +public unsafe partial struct IHTMLElement4 : IHTMLElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement5.cs index 7978bb61ef..475f5de940 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051045D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement5 : IHTMLElement5.Interface +public unsafe partial struct IHTMLElement5 : IHTMLElement5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement6.cs index a80d2944a8..0b973aa7cf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106F8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement6 : IHTMLElement6.Interface +public unsafe partial struct IHTMLElement6 : IHTMLElement6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement7.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement7.cs index bac373e939..2627312ba1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement7.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElement7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107AA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElement7 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElement7 : IHTMLElement7.Interface +public unsafe partial struct IHTMLElement7 : IHTMLElement7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElement7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementAppliedStyles.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementAppliedStyles.cs index 14a51e70f9..38eb33d21c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementAppliedStyles.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementAppliedStyles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104BD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementAppliedStyles : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementAppliedStyles : IHTMLElementAppliedStyles.Interface +public unsafe partial struct IHTMLElementAppliedStyles : IHTMLElementAppliedStyles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementAppliedStyles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection.cs index 3a0f655b17..7be4f31090 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F21F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementCollection : IHTMLElementCollection.Interface +public unsafe partial struct IHTMLElementCollection : IHTMLElementCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection2.cs index 280ca1b107..d94f9a369f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementCollection2 : IHTMLElementCollection2.Interface +public unsafe partial struct IHTMLElementCollection2 : IHTMLElementCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection3.cs index 762ce2a5c7..02268f69a1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F835-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementCollection3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementCollection3 : IHTMLElementCollection3.Interface +public unsafe partial struct IHTMLElementCollection3 : IHTMLElementCollection3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementCollection3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection4.cs index 2c70f93eda..3d15e960a3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementCollection4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510425-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementCollection4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementCollection4 : IHTMLElementCollection4.Interface +public unsafe partial struct IHTMLElementCollection4 : IHTMLElementCollection4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementCollection4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementDefaults.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementDefaults.cs index 383aac4221..177ba4aa28 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementDefaults.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementDefaults.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6C9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementDefaults : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLElementDefaults : IHTMLElementDefaults.Interface +public unsafe partial struct IHTMLElementDefaults : IHTMLElementDefaults.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementDefaults)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementRender.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementRender.cs index c5831ba106..24c014d2f7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementRender.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLElementRender.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F669-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLElementRender : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLElementRender : IHTMLElementRender.Interface +public unsafe partial struct IHTMLElementRender : IHTMLElementRender.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLElementRender)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement.cs index 6188981c61..e318744857 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F25F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEmbedElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEmbedElement : IHTMLEmbedElement.Interface +public unsafe partial struct IHTMLEmbedElement : IHTMLEmbedElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEmbedElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement2.cs index b9fbc43377..0e32fef0e3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEmbedElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510493-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEmbedElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEmbedElement2 : IHTMLEmbedElement2.Interface +public unsafe partial struct IHTMLEmbedElement2 : IHTMLEmbedElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEmbedElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj.cs index 023bef4aed..1afa87efe4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F32D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj : IHTMLEventObj.Interface +public unsafe partial struct IHTMLEventObj : IHTMLEventObj.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj2.cs index c2180022c1..ebd213fd4f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F48B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj2 : IHTMLEventObj2.Interface +public unsafe partial struct IHTMLEventObj2 : IHTMLEventObj2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj3.cs index 070f9632a5..ab6a283371 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F680-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj3 : IHTMLEventObj3.Interface +public unsafe partial struct IHTMLEventObj3 : IHTMLEventObj3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj4.cs index c95582d61f..8e9cfad4e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F814-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj4 : IHTMLEventObj4.Interface +public unsafe partial struct IHTMLEventObj4 : IHTMLEventObj4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj5.cs index 588acbd6d3..30bc34cc8e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510478-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj5 : IHTMLEventObj5.Interface +public unsafe partial struct IHTMLEventObj5 : IHTMLEventObj5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj6.cs index eb7af7dc2b..b9cc46888f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLEventObj6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510734-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLEventObj6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLEventObj6 : IHTMLEventObj6.Interface +public unsafe partial struct IHTMLEventObj6 : IHTMLEventObj6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLEventObj6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement.cs index 7d06626527..b3894b9058 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3E7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFieldSetElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFieldSetElement : IHTMLFieldSetElement.Interface +public unsafe partial struct IHTMLFieldSetElement : IHTMLFieldSetElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFieldSetElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement2.cs index b5552f3b87..4e28e04749 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFieldSetElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F833-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFieldSetElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFieldSetElement2 : IHTMLFieldSetElement2.Interface +public unsafe partial struct IHTMLFieldSetElement2 : IHTMLFieldSetElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFieldSetElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFiltersCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFiltersCollection.cs index d5601aff92..8b4422e562 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFiltersCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFiltersCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFiltersCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFiltersCollection : IHTMLFiltersCollection.Interface +public unsafe partial struct IHTMLFiltersCollection : IHTMLFiltersCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFiltersCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontElement.cs index cea1b8c2c0..54210fd9ab 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1D9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFontElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFontElement : IHTMLFontElement.Interface +public unsafe partial struct IHTMLFontElement : IHTMLFontElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFontElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontNamesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontNamesCollection.cs index 05683811d9..9d3ed5e1cd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontNamesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontNamesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F376-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFontNamesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFontNamesCollection : IHTMLFontNamesCollection.Interface +public unsafe partial struct IHTMLFontNamesCollection : IHTMLFontNamesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFontNamesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontSizesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontSizesCollection.cs index 87215fc8cc..0ef4a22a03 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontSizesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFontSizesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F377-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFontSizesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFontSizesCollection : IHTMLFontSizesCollection.Interface +public unsafe partial struct IHTMLFontSizesCollection : IHTMLFontSizesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFontSizesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement.cs index 45c62c55a8..6ac787551a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFormElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFormElement : IHTMLFormElement.Interface +public unsafe partial struct IHTMLFormElement : IHTMLFormElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFormElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement2.cs index 26e185eb79..ac00f78eb1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4F6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFormElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFormElement2 : IHTMLFormElement2.Interface +public unsafe partial struct IHTMLFormElement2 : IHTMLFormElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFormElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement3.cs index 0b30714499..e127276d61 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F836-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFormElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFormElement3 : IHTMLFormElement3.Interface +public unsafe partial struct IHTMLFormElement3 : IHTMLFormElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFormElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement4.cs index dd5e51e3ed..79b705c582 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFormElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051042C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFormElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFormElement4 : IHTMLFormElement4.Interface +public unsafe partial struct IHTMLFormElement4 : IHTMLFormElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFormElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase.cs index 8ddb751c2f..8550d01651 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F311-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameBase : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameBase : IHTMLFrameBase.Interface +public unsafe partial struct IHTMLFrameBase : IHTMLFrameBase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameBase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase2.cs index 10461ebd75..cc2bd37838 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6DB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameBase2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameBase2 : IHTMLFrameBase2.Interface +public unsafe partial struct IHTMLFrameBase2 : IHTMLFrameBase2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameBase2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase3.cs index 6ef7f5aa2b..9c61a46b70 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameBase3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameBase3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameBase3 : IHTMLFrameBase3.Interface +public unsafe partial struct IHTMLFrameBase3 : IHTMLFrameBase3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameBase3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement.cs index 4162941473..9ee9dc77cb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F313-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameElement : IHTMLFrameElement.Interface +public unsafe partial struct IHTMLFrameElement : IHTMLFrameElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement2.cs index 99a26bdcf2..4f2a2badea 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7F5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameElement2 : IHTMLFrameElement2.Interface +public unsafe partial struct IHTMLFrameElement2 : IHTMLFrameElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement3.cs index 6c7ef10d54..ceaba1166d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051042D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameElement3 : IHTMLFrameElement3.Interface +public unsafe partial struct IHTMLFrameElement3 : IHTMLFrameElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement.cs index 94a1b6bbcd..7953a2da82 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F319-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameSetElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameSetElement : IHTMLFrameSetElement.Interface +public unsafe partial struct IHTMLFrameSetElement : IHTMLFrameSetElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameSetElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement2.cs index ac0bfc8ef3..2cebd52da6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5C6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameSetElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameSetElement2 : IHTMLFrameSetElement2.Interface +public unsafe partial struct IHTMLFrameSetElement2 : IHTMLFrameSetElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameSetElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement3.cs index 42660ffd50..be55eb2994 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFrameSetElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510796-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLFrameSetElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFrameSetElement3 : IHTMLFrameSetElement3.Interface +public unsafe partial struct IHTMLFrameSetElement3 : IHTMLFrameSetElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFrameSetElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFramesCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFramesCollection2.cs index a661563814..40c3915ec1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFramesCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLFramesCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("332C4426-26CB-11D0-B483-00C04FD90119")] [NativeTypeName("struct IHTMLFramesCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLFramesCollection2 : IHTMLFramesCollection2.Interface +public unsafe partial struct IHTMLFramesCollection2 : IHTMLFramesCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLFramesCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLGenericElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLGenericElement.cs index bd7c042a92..b7d498abd0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLGenericElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLGenericElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4B7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLGenericElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLGenericElement : IHTMLGenericElement.Interface +public unsafe partial struct IHTMLGenericElement : IHTMLGenericElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLGenericElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHRElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHRElement.cs index b7ca7f02b5..46ca57ca89 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHRElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHRElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLHRElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLHRElement : IHTMLHRElement.Interface +public unsafe partial struct IHTMLHRElement : IHTMLHRElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLHRElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement.cs index f0fb92597f..ae0cd6ab49 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F81D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLHeadElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLHeadElement : IHTMLHeadElement.Interface +public unsafe partial struct IHTMLHeadElement : IHTMLHeadElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLHeadElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement2.cs index 3e565c664c..520d51b6c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeadElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051042F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLHeadElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLHeadElement2 : IHTMLHeadElement2.Interface +public unsafe partial struct IHTMLHeadElement2 : IHTMLHeadElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLHeadElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeaderElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeaderElement.cs index ff92b3eae8..9d07ac04aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeaderElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHeaderElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLHeaderElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLHeaderElement : IHTMLHeaderElement.Interface +public unsafe partial struct IHTMLHeaderElement : IHTMLHeaderElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLHeaderElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHtmlElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHtmlElement.cs index 0d1627efe3..7b7e0f450f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHtmlElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLHtmlElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F81C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLHtmlElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLHtmlElement : IHTMLHtmlElement.Interface +public unsafe partial struct IHTMLHtmlElement : IHTMLHtmlElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLHtmlElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement.cs index 9dfefa4416..804cb4aa52 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F315-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIFrameElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIFrameElement : IHTMLIFrameElement.Interface +public unsafe partial struct IHTMLIFrameElement : IHTMLIFrameElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIFrameElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement2.cs index 124fb08054..9a80cbd72d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4E6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIFrameElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIFrameElement2 : IHTMLIFrameElement2.Interface +public unsafe partial struct IHTMLIFrameElement2 : IHTMLIFrameElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIFrameElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement3.cs index 687e33b526..318a669ef5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIFrameElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510433-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIFrameElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIFrameElement3 : IHTMLIFrameElement3.Interface +public unsafe partial struct IHTMLIFrameElement3 : IHTMLIFrameElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIFrameElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIPrintCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIPrintCollection.cs index bf5fcdd0f1..ba9cb6e836 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIPrintCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIPrintCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6B5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIPrintCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIPrintCollection : IHTMLIPrintCollection.Interface +public unsafe partial struct IHTMLIPrintCollection : IHTMLIPrintCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIPrintCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImageElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImageElementFactory.cs index 5967a92f17..e9a0be30aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImageElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImageElementFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F38E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLImageElementFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLImageElementFactory : IHTMLImageElementFactory.Interface +public unsafe partial struct IHTMLImageElementFactory : IHTMLImageElementFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLImageElementFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement.cs index 772d4c76c1..ae3f77d136 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F240-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLImgElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLImgElement : IHTMLImgElement.Interface +public unsafe partial struct IHTMLImgElement : IHTMLImgElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLImgElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement2.cs index c9465306e0..8e5e226e02 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F826-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLImgElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLImgElement2 : IHTMLImgElement2.Interface +public unsafe partial struct IHTMLImgElement2 : IHTMLImgElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLImgElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement3.cs index f9a22d868c..f2376a2482 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510434-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLImgElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLImgElement3 : IHTMLImgElement3.Interface +public unsafe partial struct IHTMLImgElement3 : IHTMLImgElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLImgElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement4.cs index 1a7ca1aec5..019dc122e1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLImgElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107F6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLImgElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLImgElement4 : IHTMLImgElement4.Interface +public unsafe partial struct IHTMLImgElement4 : IHTMLImgElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLImgElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputButtonElement.cs index 6096851209..4fd38c96df 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2B2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputButtonElement : IHTMLInputButtonElement.Interface +public unsafe partial struct IHTMLInputButtonElement : IHTMLInputButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement.cs index 8f7fdba208..dab07402af 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5D2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputElement : IHTMLInputElement.Interface +public unsafe partial struct IHTMLInputElement : IHTMLInputElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement2.cs index 46ea356a8c..4a5f6d5243 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F821-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputElement2 : IHTMLInputElement2.Interface +public unsafe partial struct IHTMLInputElement2 : IHTMLInputElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement3.cs index a90e846701..fa5cb89f73 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510435-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputElement3 : IHTMLInputElement3.Interface +public unsafe partial struct IHTMLInputElement3 : IHTMLInputElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputFileElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputFileElement.cs index 2b7524e9c1..7c4a9afebc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputFileElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputFileElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2AD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputFileElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputFileElement : IHTMLInputFileElement.Interface +public unsafe partial struct IHTMLInputFileElement : IHTMLInputFileElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputFileElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputHiddenElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputHiddenElement.cs index 6d8c73ac6f..c474be8edb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputHiddenElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputHiddenElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2A4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputHiddenElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputHiddenElement : IHTMLInputHiddenElement.Interface +public unsafe partial struct IHTMLInputHiddenElement : IHTMLInputHiddenElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputHiddenElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputImage.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputImage.cs index b3176edd8a..a6dd750e30 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputImage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2C2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputImage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputImage : IHTMLInputImage.Interface +public unsafe partial struct IHTMLInputImage : IHTMLInputImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputRangeElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputRangeElement.cs index 22dae63571..20c87a6121 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputRangeElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputRangeElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2D4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputRangeElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputRangeElement : IHTMLInputRangeElement.Interface +public unsafe partial struct IHTMLInputRangeElement : IHTMLInputRangeElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputRangeElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement.cs index b81b3c48b1..06e0c75ce6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2A6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputTextElement : IHTMLInputTextElement.Interface +public unsafe partial struct IHTMLInputTextElement : IHTMLInputTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement2.cs index f02d534c33..6df513a699 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLInputTextElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2D2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLInputTextElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLInputTextElement2 : IHTMLInputTextElement2.Interface +public unsafe partial struct IHTMLInputTextElement2 : IHTMLInputTextElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLInputTextElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement.cs index 175093da76..8e941dd0c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F206-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIsIndexElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIsIndexElement : IHTMLIsIndexElement.Interface +public unsafe partial struct IHTMLIsIndexElement : IHTMLIsIndexElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIsIndexElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement2.cs index 70a78ed222..b2cf5b8f26 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLIsIndexElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLIsIndexElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLIsIndexElement2 : IHTMLIsIndexElement2.Interface +public unsafe partial struct IHTMLIsIndexElement2 : IHTMLIsIndexElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLIsIndexElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLIElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLIElement.cs index e6b01f4e59..38a698ae41 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLIElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1E0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLIElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLIElement : IHTMLLIElement.Interface +public unsafe partial struct IHTMLLIElement : IHTMLLIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement.cs index ee62e5212d..0280aa3fb2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F32A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLabelElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLabelElement : IHTMLLabelElement.Interface +public unsafe partial struct IHTMLLabelElement : IHTMLLabelElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLabelElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement2.cs index ee1e4af2bc..0210349b3b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLabelElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F832-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLabelElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLabelElement2 : IHTMLLabelElement2.Interface +public unsafe partial struct IHTMLLabelElement2 : IHTMLLabelElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLabelElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement.cs index 5effa993bf..8914cf05f7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3EA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLegendElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLegendElement : IHTMLLegendElement.Interface +public unsafe partial struct IHTMLLegendElement : IHTMLLegendElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLegendElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement2.cs index be5641a0ee..3dc554b588 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLegendElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F834-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLegendElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLegendElement2 : IHTMLLegendElement2.Interface +public unsafe partial struct IHTMLLegendElement2 : IHTMLLegendElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLegendElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement.cs index 3396f55260..8d47e0ef21 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F205-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLinkElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLinkElement : IHTMLLinkElement.Interface +public unsafe partial struct IHTMLLinkElement : IHTMLLinkElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLinkElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement2.cs index 4a760db14d..1554a34233 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4E5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLinkElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLinkElement2 : IHTMLLinkElement2.Interface +public unsafe partial struct IHTMLLinkElement2 : IHTMLLinkElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLinkElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement3.cs index 28be7f19de..12bb09e96f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F81E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLinkElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLinkElement3 : IHTMLLinkElement3.Interface +public unsafe partial struct IHTMLLinkElement3 : IHTMLLinkElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLinkElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement4.cs index 2e3822b424..3fc224a70e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051043A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLinkElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLinkElement4 : IHTMLLinkElement4.Interface +public unsafe partial struct IHTMLLinkElement4 : IHTMLLinkElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLinkElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement5.cs index 61b2ff514f..41390574b3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLinkElement5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510726-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLLinkElement5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLinkElement5 : IHTMLLinkElement5.Interface +public unsafe partial struct IHTMLLinkElement5 : IHTMLLinkElement5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLinkElement5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement.cs index a96a595dbf..9c488c9b97 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F20E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLListElement : IHTMLListElement.Interface +public unsafe partial struct IHTMLListElement : IHTMLListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement2.cs index 3062465a34..68c6e578f6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLListElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F822-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLListElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLListElement2 : IHTMLListElement2.Interface +public unsafe partial struct IHTMLListElement2 : IHTMLListElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLListElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLocation.cs index 29c18dc329..56b2687f8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLLocation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("163BB1E0-6E00-11CF-837A-48DC04C10000")] [NativeTypeName("struct IHTMLLocation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLLocation : IHTMLLocation.Interface +public unsafe partial struct IHTMLLocation : IHTMLLocation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLLocation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframeRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframeRule.cs index c7b2a47c7b..a55e9c4360 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframeRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframeRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051080C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMSCSSKeyframeRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMSCSSKeyframeRule : IHTMLMSCSSKeyframeRule.Interface +public unsafe partial struct IHTMLMSCSSKeyframeRule : IHTMLMSCSSKeyframeRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMSCSSKeyframeRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframesRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframesRule.cs index 5d6c652570..ff99945ba1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframesRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSCSSKeyframesRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051080D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMSCSSKeyframesRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMSCSSKeyframesRule : IHTMLMSCSSKeyframesRule.Interface +public unsafe partial struct IHTMLMSCSSKeyframesRule : IHTMLMSCSSKeyframesRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMSCSSKeyframesRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSImgElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSImgElement.cs index f33a452a09..f4731df5d5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSImgElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSImgElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510793-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMSImgElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMSImgElement : IHTMLMSImgElement.Interface +public unsafe partial struct IHTMLMSImgElement : IHTMLMSImgElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMSImgElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSMediaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSMediaElement.cs index 64319c70e4..e47eba4e6e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSMediaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMSMediaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510792-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMSMediaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMSMediaElement : IHTMLMSMediaElement.Interface +public unsafe partial struct IHTMLMSMediaElement : IHTMLMSMediaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMSMediaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMapElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMapElement.cs index 01587b74d1..7358185195 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMapElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMapElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F266-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMapElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMapElement : IHTMLMapElement.Interface +public unsafe partial struct IHTMLMapElement : IHTMLMapElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMapElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMarqueeElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMarqueeElement.cs index 99f02a47c1..0183e2efa3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMarqueeElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMarqueeElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2B5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMarqueeElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMarqueeElement : IHTMLMarqueeElement.Interface +public unsafe partial struct IHTMLMarqueeElement : IHTMLMarqueeElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMarqueeElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement.cs index 335716790b..6b6ea8d0a9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510706-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMediaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMediaElement : IHTMLMediaElement.Interface +public unsafe partial struct IHTMLMediaElement : IHTMLMediaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMediaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement2.cs index ad4e69bf03..bc61c51a82 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510809-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMediaElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMediaElement2 : IHTMLMediaElement2.Interface +public unsafe partial struct IHTMLMediaElement2 : IHTMLMediaElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMediaElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaError.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaError.cs index fe7868be00..36ff143180 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMediaError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510704-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMediaError : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMediaError : IHTMLMediaError.Interface +public unsafe partial struct IHTMLMediaError : IHTMLMediaError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMediaError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement.cs index 4b07363e86..4042046a96 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F203-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMetaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMetaElement : IHTMLMetaElement.Interface +public unsafe partial struct IHTMLMetaElement : IHTMLMetaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMetaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement2.cs index a8e0d9bda7..72f9553d2e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F81F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMetaElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMetaElement2 : IHTMLMetaElement2.Interface +public unsafe partial struct IHTMLMetaElement2 : IHTMLMetaElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMetaElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement3.cs index a664d20f5a..a33d76fa99 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMetaElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510495-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMetaElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMetaElement3 : IHTMLMetaElement3.Interface +public unsafe partial struct IHTMLMetaElement3 : IHTMLMetaElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMetaElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMimeTypesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMimeTypesCollection.cs index 9b79243678..49a4de5f3a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMimeTypesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLMimeTypesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3FC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLMimeTypesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLMimeTypesCollection : IHTMLMimeTypesCollection.Interface +public unsafe partial struct IHTMLMimeTypesCollection : IHTMLMimeTypesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLMimeTypesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLModelessInit.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLModelessInit.cs index d70fdf279e..10637d8502 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLModelessInit.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLModelessInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5E4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLModelessInit : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLModelessInit : IHTMLModelessInit.Interface +public unsafe partial struct IHTMLModelessInit : IHTMLModelessInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLModelessInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespace.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespace.cs index c0aad4e32d..941e238c56 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6BB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLNamespace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLNamespace : IHTMLNamespace.Interface +public unsafe partial struct IHTMLNamespace : IHTMLNamespace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLNamespace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespaceCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespaceCollection.cs index 0cfcac98c3..ad8171eadb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespaceCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNamespaceCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6B8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLNamespaceCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLNamespaceCollection : IHTMLNamespaceCollection.Interface +public unsafe partial struct IHTMLNamespaceCollection : IHTMLNamespaceCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLNamespaceCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNextIdElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNextIdElement.cs index dbe71ca6bf..31235e39c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNextIdElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNextIdElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F207-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLNextIdElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLNextIdElement : IHTMLNextIdElement.Interface +public unsafe partial struct IHTMLNextIdElement : IHTMLNextIdElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLNextIdElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNoShowElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNoShowElement.cs index b900cba460..50e31ed041 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNoShowElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLNoShowElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F38A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLNoShowElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLNoShowElement : IHTMLNoShowElement.Interface +public unsafe partial struct IHTMLNoShowElement : IHTMLNoShowElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLNoShowElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOListElement.cs index 5ef288fcc4..5d29ac50b4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1DE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOListElement : IHTMLOListElement.Interface +public unsafe partial struct IHTMLOListElement : IHTMLOListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement.cs index d8aed06185..794d30e69f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F24F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLObjectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLObjectElement : IHTMLObjectElement.Interface +public unsafe partial struct IHTMLObjectElement : IHTMLObjectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLObjectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement2.cs index 14582e7d02..e4f221b168 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4CD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLObjectElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLObjectElement2 : IHTMLObjectElement2.Interface +public unsafe partial struct IHTMLObjectElement2 : IHTMLObjectElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLObjectElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement3.cs index 3b58c0f107..669d630fb5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F827-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLObjectElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLObjectElement3 : IHTMLObjectElement3.Interface +public unsafe partial struct IHTMLObjectElement3 : IHTMLObjectElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLObjectElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement4.cs index 882f47c764..c81fdf96d5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051043E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLObjectElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLObjectElement4 : IHTMLObjectElement4.Interface +public unsafe partial struct IHTMLObjectElement4 : IHTMLObjectElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLObjectElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement5.cs index 996b789d26..d1bd4e0c71 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLObjectElement5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104B5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLObjectElement5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLObjectElement5 : IHTMLObjectElement5.Interface +public unsafe partial struct IHTMLObjectElement5 : IHTMLObjectElement5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLObjectElement5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOpsProfile.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOpsProfile.cs index 6794b6f152..67c5cd7912 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOpsProfile.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOpsProfile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F401-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOpsProfile : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOpsProfile : IHTMLOpsProfile.Interface +public unsafe partial struct IHTMLOpsProfile : IHTMLOpsProfile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOpsProfile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionButtonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionButtonElement.cs index 4efe42e33a..fc1f3ddf52 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionButtonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionButtonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2BC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionButtonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionButtonElement : IHTMLOptionButtonElement.Interface +public unsafe partial struct IHTMLOptionButtonElement : IHTMLOptionButtonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionButtonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement.cs index 1b6edf5385..67499bcb2f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F211-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionElement : IHTMLOptionElement.Interface +public unsafe partial struct IHTMLOptionElement : IHTMLOptionElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement3.cs index c2203d6232..02cd660f17 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F820-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionElement3 : IHTMLOptionElement3.Interface +public unsafe partial struct IHTMLOptionElement3 : IHTMLOptionElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement4.cs index 9a19b435ae..03bcf71199 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107B4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionElement4 : IHTMLOptionElement4.Interface +public unsafe partial struct IHTMLOptionElement4 : IHTMLOptionElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElementFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElementFactory.cs index 1eb0300398..7f7bce6646 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElementFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionElementFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F38C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionElementFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionElementFactory : IHTMLOptionElementFactory.Interface +public unsafe partial struct IHTMLOptionElementFactory : IHTMLOptionElementFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionElementFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionsHolder.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionsHolder.cs index 7d41fbc3b5..05f0a0d843 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionsHolder.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLOptionsHolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F378-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLOptionsHolder : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLOptionsHolder : IHTMLOptionsHolder.Interface +public unsafe partial struct IHTMLOptionsHolder : IHTMLOptionsHolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLOptionsHolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPaintSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPaintSite.cs index b01957c5f6..20b3939de7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPaintSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPaintSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6A7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPaintSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLPaintSite : IHTMLPaintSite.Interface +public unsafe partial struct IHTMLPaintSite : IHTMLPaintSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPaintSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainter.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainter.cs index b47e0f9e2e..e64dc02797 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6A6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPainter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLPainter : IHTMLPainter.Interface +public unsafe partial struct IHTMLPainter : IHTMLPainter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPainter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterEventInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterEventInfo.cs index 918ded5328..40b8121980 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterEventInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterEventInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6DF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPainterEventInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLPainterEventInfo : IHTMLPainterEventInfo.Interface +public unsafe partial struct IHTMLPainterEventInfo : IHTMLPainterEventInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPainterEventInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterOverlay.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterOverlay.cs index 25bfbb7e49..f76680a4f4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterOverlay.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPainterOverlay.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7E3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPainterOverlay : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLPainterOverlay : IHTMLPainterOverlay.Interface +public unsafe partial struct IHTMLPainterOverlay : IHTMLPainterOverlay.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPainterOverlay)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParaElement.cs index 0ba70e5f1a..dbc748a107 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1F5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLParaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLParaElement : IHTMLParaElement.Interface +public unsafe partial struct IHTMLParaElement : IHTMLParaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLParaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement.cs index 39c66b5f39..00ed0c4c9f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F83D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLParamElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLParamElement : IHTMLParamElement.Interface +public unsafe partial struct IHTMLParamElement : IHTMLParamElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLParamElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement2.cs index 07b8187aa3..bb7eb3f20d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLParamElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510444-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLParamElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLParamElement2 : IHTMLParamElement2.Interface +public unsafe partial struct IHTMLParamElement2 : IHTMLParamElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLParamElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformance.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformance.cs index b3c43b211e..015714e104 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformance.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051074E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPerformance : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPerformance : IHTMLPerformance.Interface +public unsafe partial struct IHTMLPerformance : IHTMLPerformance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPerformance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceNavigation.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceNavigation.cs index a4009e4888..fa65719a01 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceNavigation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceNavigation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510750-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPerformanceNavigation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPerformanceNavigation : IHTMLPerformanceNavigation.Interface +public unsafe partial struct IHTMLPerformanceNavigation : IHTMLPerformanceNavigation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPerformanceNavigation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceTiming.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceTiming.cs index 68a26b04ca..171914d72a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceTiming.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPerformanceTiming.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510752-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPerformanceTiming : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPerformanceTiming : IHTMLPerformanceTiming.Interface +public unsafe partial struct IHTMLPerformanceTiming : IHTMLPerformanceTiming.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPerformanceTiming)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement.cs index 5d52aeaec8..ae8cc6482f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F20A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPhraseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPhraseElement : IHTMLPhraseElement.Interface +public unsafe partial struct IHTMLPhraseElement : IHTMLPhraseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPhraseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement2.cs index 0265229ca9..e539a76951 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F824-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPhraseElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPhraseElement2 : IHTMLPhraseElement2.Interface +public unsafe partial struct IHTMLPhraseElement2 : IHTMLPhraseElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPhraseElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement3.cs index 96227f65e9..0a1522797b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPhraseElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051043D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPhraseElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPhraseElement3 : IHTMLPhraseElement3.Interface +public unsafe partial struct IHTMLPhraseElement3 : IHTMLPhraseElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPhraseElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPluginsCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPluginsCollection.cs index 688ed45900..2a2107b7ed 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPluginsCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPluginsCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3FD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPluginsCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPluginsCollection : IHTMLPluginsCollection.Interface +public unsafe partial struct IHTMLPluginsCollection : IHTMLPluginsCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPluginsCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPopup.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPopup.cs index d38c1c1181..02c199d27b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPopup.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLPopup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F666-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLPopup : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLPopup : IHTMLPopup.Interface +public unsafe partial struct IHTMLPopup : IHTMLPopup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLPopup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLProgressElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLProgressElement.cs index 1018485c69..e2e7fd4ec9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLProgressElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLProgressElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2D6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLProgressElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLProgressElement : IHTMLProgressElement.Interface +public unsafe partial struct IHTMLProgressElement : IHTMLProgressElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLProgressElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect.cs index bd2c4f356a..589ece94c3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRect : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRect : IHTMLRect.Interface +public unsafe partial struct IHTMLRect : IHTMLRect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect2.cs index a831ffd817..aa009e3742 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051076C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRect2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRect2 : IHTMLRect2.Interface +public unsafe partial struct IHTMLRect2 : IHTMLRect2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRect2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRectCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRectCollection.cs index 25644b7c9e..10fd6eb966 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRectCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRectCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRectCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRectCollection : IHTMLRectCollection.Interface +public unsafe partial struct IHTMLRectCollection : IHTMLRectCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRectCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRenderStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRenderStyle.cs index 76f1f8d95c..a94bc5724a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRenderStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRenderStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6AE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRenderStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRenderStyle : IHTMLRenderStyle.Interface +public unsafe partial struct IHTMLRenderStyle : IHTMLRenderStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRenderStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle.cs index 3222178b05..955cd73457 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3CF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle : IHTMLRuleStyle.Interface +public unsafe partial struct IHTMLRuleStyle : IHTMLRuleStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle2.cs index 5b4d85ba2d..7fdd0036b5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4AC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle2 : IHTMLRuleStyle2.Interface +public unsafe partial struct IHTMLRuleStyle2 : IHTMLRuleStyle2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle3.cs index 2571f2db79..9bad241f77 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F657-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle3 : IHTMLRuleStyle3.Interface +public unsafe partial struct IHTMLRuleStyle3 : IHTMLRuleStyle3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle4.cs index bdbdcecebd..89e634bab9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F817-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle4 : IHTMLRuleStyle4.Interface +public unsafe partial struct IHTMLRuleStyle4 : IHTMLRuleStyle4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle5.cs index fe2d80b124..6438a0c8ec 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F335-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle5 : IHTMLRuleStyle5.Interface +public unsafe partial struct IHTMLRuleStyle5 : IHTMLRuleStyle5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle6.cs index 44911fea9a..a9787b7e64 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLRuleStyle6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510471-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLRuleStyle6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLRuleStyle6 : IHTMLRuleStyle6.Interface +public unsafe partial struct IHTMLRuleStyle6 : IHTMLRuleStyle6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLRuleStyle6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen.cs index 5bba875d12..6779580aed 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F35C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScreen : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScreen : IHTMLScreen.Interface +public unsafe partial struct IHTMLScreen : IHTMLScreen.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScreen)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen2.cs index 4efe34caa0..28c1ceff42 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F84A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScreen2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScreen2 : IHTMLScreen2.Interface +public unsafe partial struct IHTMLScreen2 : IHTMLScreen2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScreen2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen3.cs index 3d7524f3b7..70239aee7a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104A1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScreen3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScreen3 : IHTMLScreen3.Interface +public unsafe partial struct IHTMLScreen3 : IHTMLScreen3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScreen3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen4.cs index a68b31503e..5b3a6b9e83 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScreen4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051076B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScreen4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScreen4 : IHTMLScreen4.Interface +public unsafe partial struct IHTMLScreen4 : IHTMLScreen4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScreen4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement.cs index 19106526c7..3a53334014 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F28B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScriptElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScriptElement : IHTMLScriptElement.Interface +public unsafe partial struct IHTMLScriptElement : IHTMLScriptElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScriptElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement2.cs index d41c4c5c8d..5b6a36d805 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F828-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScriptElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScriptElement2 : IHTMLScriptElement2.Interface +public unsafe partial struct IHTMLScriptElement2 : IHTMLScriptElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScriptElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement3.cs index ed31475757..2544fc188e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510447-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScriptElement3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScriptElement3 : IHTMLScriptElement3.Interface +public unsafe partial struct IHTMLScriptElement3 : IHTMLScriptElement3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScriptElement3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement4.cs index 72778d3391..54ef01a917 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLScriptElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510801-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLScriptElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLScriptElement4 : IHTMLScriptElement4.Interface +public unsafe partial struct IHTMLScriptElement4 : IHTMLScriptElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLScriptElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement.cs index cc405af737..1fd23e3bda 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F244-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectElement : IHTMLSelectElement.Interface +public unsafe partial struct IHTMLSelectElement : IHTMLSelectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement2.cs index 8b2bd36fa5..818152f5e1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectElement2 : IHTMLSelectElement2.Interface +public unsafe partial struct IHTMLSelectElement2 : IHTMLSelectElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement4.cs index fa34dc9b84..2116b65657 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F838-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElement4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectElement4 : IHTMLSelectElement4.Interface +public unsafe partial struct IHTMLSelectElement4 : IHTMLSelectElement4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElement4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement5.cs index 1a29e65381..5338e3f071 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051049D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElement5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectElement5 : IHTMLSelectElement5.Interface +public unsafe partial struct IHTMLSelectElement5 : IHTMLSelectElement5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElement5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement6.cs index cefa7ed4bd..c902faca72 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElement6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510760-98B6-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElement6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectElement6 : IHTMLSelectElement6.Interface +public unsafe partial struct IHTMLSelectElement6 : IHTMLSelectElement6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElement6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElementEx.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElementEx.cs index c13bab9f63..1d47f98238 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElementEx.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectElementEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2D1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectElementEx : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHTMLSelectElementEx : IHTMLSelectElementEx.Interface +public unsafe partial struct IHTMLSelectElementEx : IHTMLSelectElementEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectElementEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelection.cs index 772801e5d6..1df2d244bd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104B6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelection : IHTMLSelection.Interface +public unsafe partial struct IHTMLSelection : IHTMLSelection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject.cs index cefcb45014..fdd366718c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F25A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectionObject : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectionObject : IHTMLSelectionObject.Interface +public unsafe partial struct IHTMLSelectionObject : IHTMLSelectionObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectionObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject2.cs index 9ed28247f7..afcc5b61fc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSelectionObject2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7EC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSelectionObject2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSelectionObject2 : IHTMLSelectionObject2.Interface +public unsafe partial struct IHTMLSelectionObject2 : IHTMLSelectionObject2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSelectionObject2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSourceElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSourceElement.cs index b8d5024a44..eb363dbbc5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSourceElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSourceElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510707-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSourceElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSourceElement : IHTMLSourceElement.Interface +public unsafe partial struct IHTMLSourceElement : IHTMLSourceElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSourceElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanElement.cs index 5ac5c2d311..65eb04fc79 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3F3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSpanElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSpanElement : IHTMLSpanElement.Interface +public unsafe partial struct IHTMLSpanElement : IHTMLSpanElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSpanElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanFlow.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanFlow.cs index 572d5b8a3c..a915c32d33 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanFlow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSpanFlow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3E5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSpanFlow : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSpanFlow : IHTMLSpanFlow.Interface +public unsafe partial struct IHTMLSpanFlow : IHTMLSpanFlow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSpanFlow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage.cs index 451300ef63..1975071f66 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510474-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStorage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStorage : IHTMLStorage.Interface +public unsafe partial struct IHTMLStorage : IHTMLStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage2.cs index d9d02aa32f..02c3ac37c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStorage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510799-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStorage2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStorage2 : IHTMLStorage2.Interface +public unsafe partial struct IHTMLStorage2 : IHTMLStorage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStorage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle.cs index 79e460cbe4..8362277398 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F25E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle : IHTMLStyle.Interface +public unsafe partial struct IHTMLStyle : IHTMLStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle2.cs index 277a77bcd5..1e1e48f519 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle2 : IHTMLStyle2.Interface +public unsafe partial struct IHTMLStyle2 : IHTMLStyle2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle3.cs index 69da76d6c9..5eb4bfbb63 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F656-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle3 : IHTMLStyle3.Interface +public unsafe partial struct IHTMLStyle3 : IHTMLStyle3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle4.cs index 6c215eabef..42705ae4a5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F816-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle4 : IHTMLStyle4.Interface +public unsafe partial struct IHTMLStyle4 : IHTMLStyle4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle5.cs index 4538354df2..a768f8e5fd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F33A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle5 : IHTMLStyle5.Interface +public unsafe partial struct IHTMLStyle5 : IHTMLStyle5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle6.cs index 96aca2ecf9..898a330056 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyle6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510480-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyle6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyle6 : IHTMLStyle6.Interface +public unsafe partial struct IHTMLStyle6 : IHTMLStyle6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyle6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement.cs index 15786fdc48..e1bb80ddba 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F375-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleElement : IHTMLStyleElement.Interface +public unsafe partial struct IHTMLStyleElement : IHTMLStyleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement2.cs index 65ea3d236e..b28de16b13 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051072A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleElement2 : IHTMLStyleElement2.Interface +public unsafe partial struct IHTMLStyleElement2 : IHTMLStyleElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleEnabled.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleEnabled.cs index 97a002971d..e73b2a7f59 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleEnabled.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleEnabled.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleEnabled : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleEnabled : IHTMLStyleEnabled.Interface +public unsafe partial struct IHTMLStyleEnabled : IHTMLStyleEnabled.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleEnabled)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace.cs index fbcd561779..3831f4c3e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3D5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleFontFace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleFontFace : IHTMLStyleFontFace.Interface +public unsafe partial struct IHTMLStyleFontFace : IHTMLStyleFontFace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleFontFace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace2.cs index 10c01cefd4..7fa56f56da 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleFontFace2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106EC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleFontFace2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleFontFace2 : IHTMLStyleFontFace2.Interface +public unsafe partial struct IHTMLStyleFontFace2 : IHTMLStyleFontFace2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleFontFace2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleMedia.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleMedia.cs index 7c999e6af7..7e680a11c0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleMedia.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleMedia.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051074B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleMedia : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleMedia : IHTMLStyleMedia.Interface +public unsafe partial struct IHTMLStyleMedia : IHTMLStyleMedia.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleMedia)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet.cs index a468965a71..79ad114b4f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2E3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheet : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheet : IHTMLStyleSheet.Interface +public unsafe partial struct IHTMLStyleSheet : IHTMLStyleSheet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet2.cs index e5b5eb407a..a0887042bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F3D1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheet2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheet2 : IHTMLStyleSheet2.Interface +public unsafe partial struct IHTMLStyleSheet2 : IHTMLStyleSheet2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheet2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet3.cs index d756b7cd74..a0c9387010 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510496-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheet3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheet3 : IHTMLStyleSheet3.Interface +public unsafe partial struct IHTMLStyleSheet3 : IHTMLStyleSheet3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheet3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet4.cs index 4f032c56df..a1eeea83f5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheet4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106F4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheet4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheet4 : IHTMLStyleSheet4.Interface +public unsafe partial struct IHTMLStyleSheet4 : IHTMLStyleSheet4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheet4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage.cs index 238b167716..ae18628c1f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetPage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetPage : IHTMLStyleSheetPage.Interface +public unsafe partial struct IHTMLStyleSheetPage : IHTMLStyleSheetPage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetPage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage2.cs index 802239c11c..4bf80cf0fe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetPage2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetPage2 : IHTMLStyleSheetPage2.Interface +public unsafe partial struct IHTMLStyleSheetPage2 : IHTMLStyleSheetPage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetPage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPagesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPagesCollection.cs index c081bed33b..42da78e5d7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPagesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetPagesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7F0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetPagesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetPagesCollection : IHTMLStyleSheetPagesCollection.Interface +public unsafe partial struct IHTMLStyleSheetPagesCollection : IHTMLStyleSheetPagesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetPagesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule.cs index 81f5b14980..09b0d72525 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F357-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRule : IHTMLStyleSheetRule.Interface +public unsafe partial struct IHTMLStyleSheetRule : IHTMLStyleSheetRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule2.cs index e0e26885bb..698dcbed9e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRule2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106FD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRule2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRule2 : IHTMLStyleSheetRule2.Interface +public unsafe partial struct IHTMLStyleSheetRule2 : IHTMLStyleSheetRule2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRule2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRuleApplied.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRuleApplied.cs index 8c3a9a783f..7354b2f6b3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRuleApplied.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRuleApplied.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRuleApplied : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRuleApplied : IHTMLStyleSheetRuleApplied.Interface +public unsafe partial struct IHTMLStyleSheetRuleApplied : IHTMLStyleSheetRuleApplied.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRuleApplied)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesAppliedCollection.cs index 5581f9f329..4f646bdff9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesAppliedCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRulesAppliedCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRulesAppliedCollection : IHTMLStyleSheetRulesAppliedCollection.Interface +public unsafe partial struct IHTMLStyleSheetRulesAppliedCollection : IHTMLStyleSheetRulesAppliedCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRulesAppliedCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection.cs index 55e13138f7..efa55e79af 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2E5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRulesCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRulesCollection : IHTMLStyleSheetRulesCollection.Interface +public unsafe partial struct IHTMLStyleSheetRulesCollection : IHTMLStyleSheetRulesCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRulesCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection2.cs index 7e11f6b510..2cc00d574b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetRulesCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetRulesCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetRulesCollection2 : IHTMLStyleSheetRulesCollection2.Interface +public unsafe partial struct IHTMLStyleSheetRulesCollection2 : IHTMLStyleSheetRulesCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetRulesCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection.cs index 324090efef..86e1e2106b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F37E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetsCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetsCollection : IHTMLStyleSheetsCollection.Interface +public unsafe partial struct IHTMLStyleSheetsCollection : IHTMLStyleSheetsCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetsCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection2.cs index 81112fb22b..901b36cfa5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLStyleSheetsCollection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLStyleSheetsCollection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLStyleSheetsCollection2 : IHTMLStyleSheetsCollection2.Interface +public unsafe partial struct IHTMLStyleSheetsCollection2 : IHTMLStyleSheetsCollection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLStyleSheetsCollection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSubmitData.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSubmitData.cs index 7e4fe50772..2e0572cad1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSubmitData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLSubmitData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F645-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLSubmitData : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLSubmitData : IHTMLSubmitData.Interface +public unsafe partial struct IHTMLSubmitData : IHTMLSubmitData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLSubmitData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable.cs index b03dd9ddb7..63002892f6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F21E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTable : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTable : IHTMLTable.Interface +public unsafe partial struct IHTMLTable : IHTMLTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable2.cs index 8c8b92090d..721592f06d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4AD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTable2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTable2 : IHTMLTable2.Interface +public unsafe partial struct IHTMLTable2 : IHTMLTable2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTable2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable3.cs index 406d4a0090..c22499e260 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F829-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTable3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTable3 : IHTMLTable3.Interface +public unsafe partial struct IHTMLTable3 : IHTMLTable3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTable3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable4.cs index 0f91e1bf53..5722f14059 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTable4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106C2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTable4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTable4 : IHTMLTable4.Interface +public unsafe partial struct IHTMLTable4 : IHTMLTable4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTable4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCaption.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCaption.cs index 9801d3c872..b8f7f00c86 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCaption.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCaption.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2EB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCaption : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCaption : IHTMLTableCaption.Interface +public unsafe partial struct IHTMLTableCaption : IHTMLTableCaption.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCaption)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell.cs index 05ec1b325e..7ced48651b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F23D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCell : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCell : IHTMLTableCell.Interface +public unsafe partial struct IHTMLTableCell : IHTMLTableCell.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCell)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell2.cs index a19c641495..684b56ca48 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCell2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCell2 : IHTMLTableCell2.Interface +public unsafe partial struct IHTMLTableCell2 : IHTMLTableCell2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCell2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell3.cs index 3ce5afc4b9..90b81ee74b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCell3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106C7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCell3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCell3 : IHTMLTableCell3.Interface +public unsafe partial struct IHTMLTableCell3 : IHTMLTableCell3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCell3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol.cs index 92cf677b53..6177f2210f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F23A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCol : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCol : IHTMLTableCol.Interface +public unsafe partial struct IHTMLTableCol : IHTMLTableCol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol2.cs index dbc2fad738..8002af2784 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCol2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCol2 : IHTMLTableCol2.Interface +public unsafe partial struct IHTMLTableCol2 : IHTMLTableCol2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCol2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol3.cs index 77ac8a2272..e37eb9d0fb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableCol3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106C4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableCol3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableCol3 : IHTMLTableCol3.Interface +public unsafe partial struct IHTMLTableCol3 : IHTMLTableCol3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableCol3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow.cs index 8f8bcbbbc1..39955225f2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F23C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableRow : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableRow : IHTMLTableRow.Interface +public unsafe partial struct IHTMLTableRow : IHTMLTableRow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableRow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow2.cs index b6a93e2443..b0fe562537 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableRow2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableRow2 : IHTMLTableRow2.Interface +public unsafe partial struct IHTMLTableRow2 : IHTMLTableRow2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableRow2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow3.cs index efc15d27b1..83ccf500f8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableRow3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableRow3 : IHTMLTableRow3.Interface +public unsafe partial struct IHTMLTableRow3 : IHTMLTableRow3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableRow3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow4.cs index 042e66af76..0dde93689a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRow4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106C6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableRow4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableRow4 : IHTMLTableRow4.Interface +public unsafe partial struct IHTMLTableRow4 : IHTMLTableRow4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableRow4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRowMetrics.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRowMetrics.cs index 51e67effc7..439044c9d9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRowMetrics.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableRowMetrics.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F413-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableRowMetrics : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableRowMetrics : IHTMLTableRowMetrics.Interface +public unsafe partial struct IHTMLTableRowMetrics : IHTMLTableRowMetrics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableRowMetrics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection.cs index 091a608a6a..5f01671b8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F23B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableSection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableSection : IHTMLTableSection.Interface +public unsafe partial struct IHTMLTableSection : IHTMLTableSection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableSection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection2.cs index 78b8132ceb..c9b41c82df 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5C7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableSection2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableSection2 : IHTMLTableSection2.Interface +public unsafe partial struct IHTMLTableSection2 : IHTMLTableSection2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableSection2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection3.cs index d54ce5056d..9ad0d66531 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F82B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableSection3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableSection3 : IHTMLTableSection3.Interface +public unsafe partial struct IHTMLTableSection3 : IHTMLTableSection3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableSection3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection4.cs index a5cf535e72..21056b3d8e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTableSection4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106C5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTableSection4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTableSection4 : IHTMLTableSection4.Interface +public unsafe partial struct IHTMLTableSection4 : IHTMLTableSection4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTableSection4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement.cs index 9429f5c6b4..b6eab447fa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2AA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextAreaElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextAreaElement : IHTMLTextAreaElement.Interface +public unsafe partial struct IHTMLTextAreaElement : IHTMLTextAreaElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextAreaElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement2.cs index 07e547041a..1291d46d8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextAreaElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F2D3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextAreaElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextAreaElement2 : IHTMLTextAreaElement2.Interface +public unsafe partial struct IHTMLTextAreaElement2 : IHTMLTextAreaElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextAreaElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextContainer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextContainer.cs index 98f5854cb9..118d97c7fe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextContainer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F230-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextContainer : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextContainer : IHTMLTextContainer.Interface +public unsafe partial struct IHTMLTextContainer : IHTMLTextContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextElement.cs index 976f291fc7..8615d6d430 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F218-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextElement : IHTMLTextElement.Interface +public unsafe partial struct IHTMLTextElement : IHTMLTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics.cs index 1dd2738315..0491d22156 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F40B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextRangeMetrics : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextRangeMetrics : IHTMLTextRangeMetrics.Interface +public unsafe partial struct IHTMLTextRangeMetrics : IHTMLTextRangeMetrics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextRangeMetrics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics2.cs index 784a696291..b68e551998 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTextRangeMetrics2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTextRangeMetrics2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTextRangeMetrics2 : IHTMLTextRangeMetrics2.Interface +public unsafe partial struct IHTMLTextRangeMetrics2 : IHTMLTextRangeMetrics2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTextRangeMetrics2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges.cs index bdffb4c28c..29cd22203f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510705-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTimeRanges : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTimeRanges : IHTMLTimeRanges.Interface +public unsafe partial struct IHTMLTimeRanges : IHTMLTimeRanges.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTimeRanges)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges2.cs index 542c932e68..b1c388235d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTimeRanges2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051080B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTimeRanges2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTimeRanges2 : IHTMLTimeRanges2.Interface +public unsafe partial struct IHTMLTimeRanges2 : IHTMLTimeRanges2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTimeRanges2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTitleElement.cs index dc77b39e63..3435b8f550 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTitleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F322-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTitleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTitleElement : IHTMLTitleElement.Interface +public unsafe partial struct IHTMLTitleElement : IHTMLTitleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTitleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRange.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRange.cs index 509cfb69cd..48f303b9bc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRange.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F220-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTxtRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTxtRange : IHTMLTxtRange.Interface +public unsafe partial struct IHTMLTxtRange : IHTMLTxtRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTxtRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRangeCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRangeCollection.cs index b3e4132cd0..c7b654f37a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRangeCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLTxtRangeCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLTxtRangeCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLTxtRangeCollection : IHTMLTxtRangeCollection.Interface +public unsafe partial struct IHTMLTxtRangeCollection : IHTMLTxtRangeCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLTxtRangeCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUListElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUListElement.cs index 4b8d314157..2d6d1c297c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUListElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUListElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F1DD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLUListElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLUListElement : IHTMLUListElement.Interface +public unsafe partial struct IHTMLUListElement : IHTMLUListElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLUListElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUniqueName.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUniqueName.cs index 074c41d431..1769dde3de 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUniqueName.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUniqueName.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4D0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLUniqueName : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLUniqueName : IHTMLUniqueName.Interface +public unsafe partial struct IHTMLUniqueName : IHTMLUniqueName.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLUniqueName)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUnknownElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUnknownElement.cs index c45132a314..514de4ecbd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUnknownElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUnknownElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F209-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLUnknownElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLUnknownElement : IHTMLUnknownElement.Interface +public unsafe partial struct IHTMLUnknownElement : IHTMLUnknownElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLUnknownElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUrnCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUrnCollection.cs index 2534c0dcef..52a40e0dc1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUrnCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLUrnCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5E2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLUrnCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLUrnCollection : IHTMLUrnCollection.Interface +public unsafe partial struct IHTMLUrnCollection : IHTMLUrnCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLUrnCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLVideoElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLVideoElement.cs index 1a2caf8aaf..9d85810180 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLVideoElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLVideoElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510709-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLVideoElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLVideoElement : IHTMLVideoElement.Interface +public unsafe partial struct IHTMLVideoElement : IHTMLVideoElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLVideoElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow2.cs index 03d530acea..eb9dc9d4f3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("332C4427-26CB-11D0-B483-00C04FD90119")] [NativeTypeName("struct IHTMLWindow2 : IHTMLFramesCollection2")] [NativeInheritance("IHTMLFramesCollection2")] -public unsafe partial struct IHTMLWindow2 : IHTMLWindow2.Interface +public unsafe partial struct IHTMLWindow2 : IHTMLWindow2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow3.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow3.cs index 07e904168e..a10a2bf99b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4AE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow3 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow3 : IHTMLWindow3.Interface +public unsafe partial struct IHTMLWindow3 : IHTMLWindow3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow4.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow4.cs index 35e0439956..fde9257ca0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow4.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6CF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow4 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow4 : IHTMLWindow4.Interface +public unsafe partial struct IHTMLWindow4 : IHTMLWindow4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow5.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow5.cs index cb1388ee59..6e1b8b0afe 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow5.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051040E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow5 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow5 : IHTMLWindow5.Interface +public unsafe partial struct IHTMLWindow5 : IHTMLWindow5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow6.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow6.cs index 8b3a08d611..5bfe48022e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow6.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510453-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow6 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow6 : IHTMLWindow6.Interface +public unsafe partial struct IHTMLWindow6 : IHTMLWindow6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow7.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow7.cs index b99d63c7ae..d9698d113a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow7.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow7.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104B7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow7 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow7 : IHTMLWindow7.Interface +public unsafe partial struct IHTMLWindow7 : IHTMLWindow7.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow7)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow8.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow8.cs index 3784e7aec6..eead2f4518 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow8.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLWindow8.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107AB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLWindow8 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLWindow8 : IHTMLWindow8.Interface +public unsafe partial struct IHTMLWindow8 : IHTMLWindow8.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLWindow8)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequest.cs index 8f7c6e6a17..27fc1a4349 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequest.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510454-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLXDomainRequest : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLXDomainRequest : IHTMLXDomainRequest.Interface +public unsafe partial struct IHTMLXDomainRequest : IHTMLXDomainRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLXDomainRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequestFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequestFactory.cs index b98dd445fe..8cb51300d4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequestFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXDomainRequestFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510456-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLXDomainRequestFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLXDomainRequestFactory : IHTMLXDomainRequestFactory.Interface +public unsafe partial struct IHTMLXDomainRequestFactory : IHTMLXDomainRequestFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLXDomainRequestFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest.cs index 6908d76d25..c0e4ef28bc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051040A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLXMLHttpRequest : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLXMLHttpRequest : IHTMLXMLHttpRequest.Interface +public unsafe partial struct IHTMLXMLHttpRequest : IHTMLXMLHttpRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLXMLHttpRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest2.cs index 5982238bba..8291c57d88 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequest2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510482-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLXMLHttpRequest2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLXMLHttpRequest2 : IHTMLXMLHttpRequest2.Interface +public unsafe partial struct IHTMLXMLHttpRequest2 : IHTMLXMLHttpRequest2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLXMLHttpRequest2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequestFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequestFactory.cs index 81cb221c18..feab999934 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequestFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHTMLXMLHttpRequestFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051040C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHTMLXMLHttpRequestFactory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHTMLXMLHttpRequestFactory : IHTMLXMLHttpRequestFactory.Interface +public unsafe partial struct IHTMLXMLHttpRequestFactory : IHTMLXMLHttpRequestFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHTMLXMLHttpRequestFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHighlightRenderingServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHighlightRenderingServices.cs index 6772cba01b..e9ad21a27f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHighlightRenderingServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHighlightRenderingServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F606-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHighlightRenderingServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHighlightRenderingServices : IHighlightRenderingServices.Interface +public unsafe partial struct IHighlightRenderingServices : IHighlightRenderingServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHighlightRenderingServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHighlightSegment.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHighlightSegment.cs index fb3d65cb57..61e59ceace 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHighlightSegment.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHighlightSegment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F690-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHighlightSegment : ISegment")] [NativeInheritance("ISegment")] -public unsafe partial struct IHighlightSegment : IHighlightSegment.Interface +public unsafe partial struct IHighlightSegment : IHighlightSegment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHighlightSegment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHostBehaviorInit.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHostBehaviorInit.cs index 0d6b67edeb..609b29dff1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHostBehaviorInit.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHostBehaviorInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F842-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHostBehaviorInit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHostBehaviorInit : IHostBehaviorInit.Interface +public unsafe partial struct IHostBehaviorInit : IHostBehaviorInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHostBehaviorInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IHtmlDlgSafeHelper.cs b/sources/Interop/Windows/Windows/um/MsHTML/IHtmlDlgSafeHelper.cs index 75fe2be67d..3025f0ef0e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IHtmlDlgSafeHelper.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IHtmlDlgSafeHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F81A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IHtmlDlgSafeHelper : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IHtmlDlgSafeHelper : IHtmlDlgSafeHelper.Interface +public unsafe partial struct IHtmlDlgSafeHelper : IHtmlDlgSafeHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHtmlDlgSafeHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IICCSVGColor.cs b/sources/Interop/Windows/Windows/um/MsHTML/IICCSVGColor.cs index 22ba399ffc..901f699b60 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IICCSVGColor.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IICCSVGColor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IICCSVGColor : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IICCSVGColor : IICCSVGColor.Interface +public unsafe partial struct IICCSVGColor : IICCSVGColor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IICCSVGColor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IIE70DispatchEx.cs b/sources/Interop/Windows/Windows/um/MsHTML/IIE70DispatchEx.cs index 893ac9edcd..6ef0f5f677 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IIE70DispatchEx.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IIE70DispatchEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051046B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IIE70DispatchEx : IDispatchEx")] [NativeInheritance("IDispatchEx")] -public unsafe partial struct IIE70DispatchEx : IIE70DispatchEx.Interface +public unsafe partial struct IIE70DispatchEx : IIE70DispatchEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIE70DispatchEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IIE80DispatchEx.cs b/sources/Interop/Windows/Windows/um/MsHTML/IIE80DispatchEx.cs index 6653bfaeb4..91ea8256a9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IIE80DispatchEx.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IIE80DispatchEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051046C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IIE80DispatchEx : IDispatchEx")] [NativeInheritance("IDispatchEx")] -public unsafe partial struct IIE80DispatchEx : IIE80DispatchEx.Interface +public unsafe partial struct IIE80DispatchEx : IIE80DispatchEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIE80DispatchEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IIMEServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/IIMEServices.cs index a3bd62e419..c5759c5a7e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IIMEServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IIMEServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6CA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IIMEServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IIMEServices : IIMEServices.Interface +public unsafe partial struct IIMEServices : IIMEServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIMEServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ILineInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/ILineInfo.cs index 07fd2833da..6b1fc5cff1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ILineInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ILineInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F7E2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ILineInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILineInfo : ILineInfo.Interface +public unsafe partial struct ILineInfo : ILineInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILineInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer.cs index 7a7d589606..ef22f5aa63 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5F9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMarkupContainer : IMarkupContainer.Interface +public unsafe partial struct IMarkupContainer : IMarkupContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer2.cs index 77e4b7f592..9740dadda6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupContainer2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F648-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupContainer2 : IMarkupContainer")] [NativeInheritance("IMarkupContainer")] -public unsafe partial struct IMarkupContainer2 : IMarkupContainer2.Interface +public unsafe partial struct IMarkupContainer2 : IMarkupContainer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupContainer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer.cs index 3a86a35e9b..f3c5f9a92b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F49F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupPointer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMarkupPointer : IMarkupPointer.Interface +public unsafe partial struct IMarkupPointer : IMarkupPointer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupPointer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer2.cs index 461816e69a..d0b30eb96b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupPointer2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F675-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupPointer2 : IMarkupPointer")] [NativeInheritance("IMarkupPointer")] -public unsafe partial struct IMarkupPointer2 : IMarkupPointer2.Interface +public unsafe partial struct IMarkupPointer2 : IMarkupPointer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupPointer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices.cs index 9455ae9216..72c78d7a3b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F4A0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMarkupServices : IMarkupServices.Interface +public unsafe partial struct IMarkupServices : IMarkupServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices2.cs index a1f482f378..5ade4be433 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupServices2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F682-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupServices2 : IMarkupServices")] [NativeInheritance("IMarkupServices")] -public unsafe partial struct IMarkupServices2 : IMarkupServices2.Interface +public unsafe partial struct IMarkupServices2 : IMarkupServices2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupServices2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupTextFrags.cs b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupTextFrags.cs index 70f36baf17..5afcbec843 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IMarkupTextFrags.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IMarkupTextFrags.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F5FA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IMarkupTextFrags : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMarkupTextFrags : IMarkupTextFrags.Interface +public unsafe partial struct IMarkupTextFrags : IMarkupTextFrags.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarkupTextFrags)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/INavigatorDoNotTrack.cs b/sources/Interop/Windows/Windows/um/MsHTML/INavigatorDoNotTrack.cs index 81aa914be9..e9f081a70e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/INavigatorDoNotTrack.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/INavigatorDoNotTrack.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510804-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct INavigatorDoNotTrack : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct INavigatorDoNotTrack : INavigatorDoNotTrack.Interface +public unsafe partial struct INavigatorDoNotTrack : INavigatorDoNotTrack.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INavigatorDoNotTrack)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/INavigatorGeolocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/INavigatorGeolocation.cs index 133f0019aa..c59128eee3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/INavigatorGeolocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/INavigatorGeolocation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107CF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct INavigatorGeolocation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct INavigatorGeolocation : INavigatorGeolocation.Interface +public unsafe partial struct INavigatorGeolocation : INavigatorGeolocation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INavigatorGeolocation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IOmHistory.cs b/sources/Interop/Windows/Windows/um/MsHTML/IOmHistory.cs index 40ef8149b5..f02446fef5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IOmHistory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IOmHistory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FECEAAA2-8405-11CF-8BA1-00AA00476DA6")] [NativeTypeName("struct IOmHistory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IOmHistory : IOmHistory.Interface +public unsafe partial struct IOmHistory : IOmHistory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOmHistory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IOmNavigator.cs b/sources/Interop/Windows/Windows/um/MsHTML/IOmNavigator.cs index 5909909cc5..fdfa8b540b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IOmNavigator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IOmNavigator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FECEAAA5-8405-11CF-8BA1-00AA00476DA6")] [NativeTypeName("struct IOmNavigator : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IOmNavigator : IOmNavigator.Interface +public unsafe partial struct IOmNavigator : IOmNavigator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOmNavigator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter.cs b/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter.cs index ac2b43e318..afd88fabdd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F633BE14-9EFF-4C4D-929E-05717B21B3E6")] [NativeTypeName("struct IPrintManagerTemplatePrinter : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IPrintManagerTemplatePrinter : IPrintManagerTemplatePrinter.Interface +public unsafe partial struct IPrintManagerTemplatePrinter : IPrintManagerTemplatePrinter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintManagerTemplatePrinter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter2.cs b/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter2.cs index 6b235074d1..732db65fa8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IPrintManagerTemplatePrinter2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6403497-7493-4F09-8016-54B03E9BDA69")] [NativeTypeName("struct IPrintManagerTemplatePrinter2 : IPrintManagerTemplatePrinter")] [NativeInheritance("IPrintManagerTemplatePrinter")] -public unsafe partial struct IPrintManagerTemplatePrinter2 : IPrintManagerTemplatePrinter2.Interface +public unsafe partial struct IPrintManagerTemplatePrinter2 : IPrintManagerTemplatePrinter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPrintManagerTemplatePrinter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IRangeException.cs b/sources/Interop/Windows/Windows/um/MsHTML/IRangeException.cs index 02fcfb4317..45b21012d3 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IRangeException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IRangeException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051072D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IRangeException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRangeException : IRangeException.Interface +public unsafe partial struct IRangeException : IRangeException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRangeException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IRulesApplied.cs b/sources/Interop/Windows/Windows/um/MsHTML/IRulesApplied.cs index 761e1c419f..1bfb0497ff 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IRulesApplied.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IRulesApplied.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104BF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IRulesApplied : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRulesApplied : IRulesApplied.Interface +public unsafe partial struct IRulesApplied : IRulesApplied.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRulesApplied)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IRulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/IRulesAppliedCollection.cs index 0959224356..cba7a8cf2f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IRulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IRulesAppliedCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104BE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IRulesAppliedCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRulesAppliedCollection : IRulesAppliedCollection.Interface +public unsafe partial struct IRulesAppliedCollection : IRulesAppliedCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRulesAppliedCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAElement.cs index 71528aa718..3a5857f949 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051054B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAElement : ISVGAElement.Interface +public unsafe partial struct ISVGAElement : ISVGAElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAngle.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAngle.cs index cfb39f7cdb..a35faeb5a2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAngle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAngle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAngle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAngle : ISVGAngle.Interface +public unsafe partial struct ISVGAngle : ISVGAngle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAngle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedAngle.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedAngle.cs index 57bf038443..b9ee8f3ccf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedAngle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedAngle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedAngle : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedAngle : ISVGAnimatedAngle.Interface +public unsafe partial struct ISVGAnimatedAngle : ISVGAnimatedAngle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedAngle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedBoolean.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedBoolean.cs index 70b449bf65..e603200e1b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedBoolean.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedBoolean.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedBoolean : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedBoolean : ISVGAnimatedBoolean.Interface +public unsafe partial struct ISVGAnimatedBoolean : ISVGAnimatedBoolean.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedBoolean)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedEnumeration.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedEnumeration.cs index 66e6a26fea..09455c18b8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedEnumeration.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedEnumeration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedEnumeration : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedEnumeration : ISVGAnimatedEnumeration.Interface +public unsafe partial struct ISVGAnimatedEnumeration : ISVGAnimatedEnumeration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedEnumeration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedInteger.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedInteger.cs index d30e8e35e7..f727c9a39f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedInteger.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedInteger.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedInteger : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedInteger : ISVGAnimatedInteger.Interface +public unsafe partial struct ISVGAnimatedInteger : ISVGAnimatedInteger.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedInteger)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLength.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLength.cs index 13a67637c8..434b1bd6fb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLength.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLength.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedLength : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedLength : ISVGAnimatedLength.Interface +public unsafe partial struct ISVGAnimatedLength : ISVGAnimatedLength.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedLength)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLengthList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLengthList.cs index ac125b2934..7af348f95e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLengthList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedLengthList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedLengthList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedLengthList : ISVGAnimatedLengthList.Interface +public unsafe partial struct ISVGAnimatedLengthList : ISVGAnimatedLengthList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedLengthList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumber.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumber.cs index 376f121bcd..0337769db7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumber.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumber.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedNumber : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedNumber : ISVGAnimatedNumber.Interface +public unsafe partial struct ISVGAnimatedNumber : ISVGAnimatedNumber.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedNumber)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumberList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumberList.cs index ccba338c0c..9dfcea3452 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumberList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedNumberList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedNumberList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedNumberList : ISVGAnimatedNumberList.Interface +public unsafe partial struct ISVGAnimatedNumberList : ISVGAnimatedNumberList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedNumberList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPathData.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPathData.cs index 7f1b88c24c..bec9c9d0a7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPathData.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPathData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510511-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedPathData : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedPathData : ISVGAnimatedPathData.Interface +public unsafe partial struct ISVGAnimatedPathData : ISVGAnimatedPathData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedPathData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPoints.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPoints.cs index 52522517bf..dddb2dbafd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPoints.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPoints.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510517-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedPoints : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedPoints : ISVGAnimatedPoints.Interface +public unsafe partial struct ISVGAnimatedPoints : ISVGAnimatedPoints.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedPoints)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPreserveAspectRatio.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPreserveAspectRatio.cs index 19f952d7db..e92e003b9a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPreserveAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedPreserveAspectRatio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedPreserveAspectRatio : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedPreserveAspectRatio : ISVGAnimatedPreserveAspectRatio.Interface +public unsafe partial struct ISVGAnimatedPreserveAspectRatio : ISVGAnimatedPreserveAspectRatio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedPreserveAspectRatio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedRect.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedRect.cs index 447abadca8..751d93bd8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedRect.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedRect.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedRect : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedRect : ISVGAnimatedRect.Interface +public unsafe partial struct ISVGAnimatedRect : ISVGAnimatedRect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedRect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedString.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedString.cs index c4c7af77ee..adf5fdd94e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedString.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedString.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedString : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedString : ISVGAnimatedString.Interface +public unsafe partial struct ISVGAnimatedString : ISVGAnimatedString.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedString)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedTransformList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedTransformList.cs index 83b7ca8d78..9ce4a69f40 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedTransformList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGAnimatedTransformList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGAnimatedTransformList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGAnimatedTransformList : ISVGAnimatedTransformList.Interface +public unsafe partial struct ISVGAnimatedTransformList : ISVGAnimatedTransformList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGAnimatedTransformList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGCircleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGCircleElement.cs index a2fbfa03c1..9313e8af71 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGCircleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGCircleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510514-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGCircleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGCircleElement : ISVGCircleElement.Interface +public unsafe partial struct ISVGCircleElement : ISVGCircleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGCircleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGClipPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGClipPathElement.cs index 2223112e57..2f2c7aadc7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGClipPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGClipPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051052D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGClipPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGClipPathElement : ISVGClipPathElement.Interface +public unsafe partial struct ISVGClipPathElement : ISVGClipPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGClipPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDefsElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDefsElement.cs index 753eb632a8..f285aeff72 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDefsElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDefsElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGDefsElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGDefsElement : ISVGDefsElement.Interface +public unsafe partial struct ISVGDefsElement : ISVGDefsElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGDefsElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDescElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDescElement.cs index 959c3afc56..9bf2857695 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDescElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDescElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104EA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGDescElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGDescElement : ISVGDescElement.Interface +public unsafe partial struct ISVGDescElement : ISVGDescElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGDescElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDocument.cs index 1a1037190e..635f333c41 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGDocument : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGDocument : ISVGDocument.Interface +public unsafe partial struct ISVGDocument : ISVGDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElement.cs index 3b04488d5b..5e6d9aef13 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGElement : ISVGElement.Interface +public unsafe partial struct ISVGElement : ISVGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstance.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstance.cs index 68ffd7fda2..2365fe0e5a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstance.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104EE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGElementInstance : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGElementInstance : ISVGElementInstance.Interface +public unsafe partial struct ISVGElementInstance : ISVGElementInstance.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGElementInstance)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstanceList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstanceList.cs index b96ceeeac7..1503ac0b2a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstanceList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGElementInstanceList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104EF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGElementInstanceList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGElementInstanceList : ISVGElementInstanceList.Interface +public unsafe partial struct ISVGElementInstanceList : ISVGElementInstanceList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGElementInstanceList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGEllipseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGEllipseElement.cs index 8be15c3a30..463a81d5b6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGEllipseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGEllipseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510515-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGEllipseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGEllipseElement : ISVGEllipseElement.Interface +public unsafe partial struct ISVGEllipseElement : ISVGEllipseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGEllipseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGException.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGException.cs index 366a6bedbd..ce8eb3cb56 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGException.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051072F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGException : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGException : ISVGException.Interface +public unsafe partial struct ISVGException : ISVGException.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGException)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGExternalResourcesRequired.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGExternalResourcesRequired.cs index dcf66aca27..7c013c4350 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGExternalResourcesRequired.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGExternalResourcesRequired.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGExternalResourcesRequired : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGExternalResourcesRequired : ISVGExternalResourcesRequired.Interface +public unsafe partial struct ISVGExternalResourcesRequired : ISVGExternalResourcesRequired.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGExternalResourcesRequired)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGFitToViewBox.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGFitToViewBox.cs index 1b0bf7af69..278c711a6f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGFitToViewBox.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGFitToViewBox.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGFitToViewBox : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGFitToViewBox : ISVGFitToViewBox.Interface +public unsafe partial struct ISVGFitToViewBox : ISVGFitToViewBox.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGFitToViewBox)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGGElement.cs index c070aba9f4..94fe1ed6eb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGGElement : ISVGGElement.Interface +public unsafe partial struct ISVGGElement : ISVGGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGGradientElement.cs index 473d9eee6a..6d6f66c291 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510528-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGGradientElement : ISVGGradientElement.Interface +public unsafe partial struct ISVGGradientElement : ISVGGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGImageElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGImageElement.cs index 760e417d57..3192b5b14e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGImageElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGImageElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F0-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGImageElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGImageElement : ISVGImageElement.Interface +public unsafe partial struct ISVGImageElement : ISVGImageElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGImageElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLangSpace.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLangSpace.cs index c034512451..91f5744e6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLangSpace.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLangSpace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLangSpace : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLangSpace : ISVGLangSpace.Interface +public unsafe partial struct ISVGLangSpace : ISVGLangSpace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLangSpace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLength.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLength.cs index 681c70f9e6..444d490578 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLength.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLength.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLength : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLength : ISVGLength.Interface +public unsafe partial struct ISVGLength : ISVGLength.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLength)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLengthList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLengthList.cs index 1b50f2418f..29e1ad40cc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLengthList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLengthList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLengthList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLengthList : ISVGLengthList.Interface +public unsafe partial struct ISVGLengthList : ISVGLengthList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLengthList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLineElement.cs index 8384226796..7d575f4a05 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLineElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510516-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLineElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLineElement : ISVGLineElement.Interface +public unsafe partial struct ISVGLineElement : ISVGLineElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLineElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLinearGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLinearGradientElement.cs index e884b574d0..52b5cf0e3c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLinearGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLinearGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510529-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLinearGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLinearGradientElement : ISVGLinearGradientElement.Interface +public unsafe partial struct ISVGLinearGradientElement : ISVGLinearGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLinearGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLocatable.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLocatable.cs index fbeb8caba9..12aa87ee30 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGLocatable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGLocatable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGLocatable : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGLocatable : ISVGLocatable.Interface +public unsafe partial struct ISVGLocatable : ISVGLocatable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGLocatable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMarkerElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMarkerElement.cs index f073ed33b3..004ea42b48 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMarkerElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMarkerElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510525-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGMarkerElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGMarkerElement : ISVGMarkerElement.Interface +public unsafe partial struct ISVGMarkerElement : ISVGMarkerElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGMarkerElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMaskElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMaskElement.cs index a56dcbbec6..c9e0be693a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMaskElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMaskElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051052E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGMaskElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGMaskElement : ISVGMaskElement.Interface +public unsafe partial struct ISVGMaskElement : ISVGMaskElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGMaskElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMatrix.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMatrix.cs index 8307688528..de92166812 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMatrix.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMatrix.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F6-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGMatrix : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGMatrix : ISVGMatrix.Interface +public unsafe partial struct ISVGMatrix : ISVGMatrix.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGMatrix)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMetadataElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMetadataElement.cs index bc38413ff5..e8318699dc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGMetadataElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGMetadataElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510560-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGMetadataElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGMetadataElement : ISVGMetadataElement.Interface +public unsafe partial struct ISVGMetadataElement : ISVGMetadataElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGMetadataElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumber.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumber.cs index 2d103c6140..bdb6416f38 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumber.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumber.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGNumber : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGNumber : ISVGNumber.Interface +public unsafe partial struct ISVGNumber : ISVGNumber.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGNumber)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumberList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumberList.cs index 8490ec0311..7a85c00112 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumberList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGNumberList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104CD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGNumberList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGNumberList : ISVGNumberList.Interface +public unsafe partial struct ISVGNumberList : ISVGNumberList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGNumberList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPaint.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPaint.cs index 81f3ab4ad5..54dd0105a0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPaint.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPaint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510524-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPaint : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPaint : ISVGPaint.Interface +public unsafe partial struct ISVGPaint : ISVGPaint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPaint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathElement.cs index fc6962dc51..ddab5c12f2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510512-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathElement : ISVGPathElement.Interface +public unsafe partial struct ISVGPathElement : ISVGPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSeg.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSeg.cs index 48539aa3da..27eea7610f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSeg.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSeg.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSeg : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSeg : ISVGPathSeg.Interface +public unsafe partial struct ISVGPathSeg : ISVGPathSeg.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSeg)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcAbs.cs index 6109cab724..401b0b1280 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510506-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegArcAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegArcAbs : ISVGPathSegArcAbs.Interface +public unsafe partial struct ISVGPathSegArcAbs : ISVGPathSegArcAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegArcAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcRel.cs index 30b28722db..c028486023 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegArcRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510507-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegArcRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegArcRel : ISVGPathSegArcRel.Interface +public unsafe partial struct ISVGPathSegArcRel : ISVGPathSegArcRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegArcRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegClosePath.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegClosePath.cs index 8d61d76529..8cb766a4bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegClosePath.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegClosePath.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegClosePath : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegClosePath : ISVGPathSegClosePath.Interface +public unsafe partial struct ISVGPathSegClosePath : ISVGPathSegClosePath.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegClosePath)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicAbs.cs index 5e189689dc..7b276c431f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510502-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoCubicAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoCubicAbs : ISVGPathSegCurvetoCubicAbs.Interface +public unsafe partial struct ISVGPathSegCurvetoCubicAbs : ISVGPathSegCurvetoCubicAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoCubicAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicRel.cs index e09940bbad..61de8e4565 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510503-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoCubicRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoCubicRel : ISVGPathSegCurvetoCubicRel.Interface +public unsafe partial struct ISVGPathSegCurvetoCubicRel : ISVGPathSegCurvetoCubicRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoCubicRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothAbs.cs index a2043dbb58..d1e8d39211 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoCubicSmoothAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoCubicSmoothAbs : ISVGPathSegCurvetoCubicSmoothAbs.Interface +public unsafe partial struct ISVGPathSegCurvetoCubicSmoothAbs : ISVGPathSegCurvetoCubicSmoothAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoCubicSmoothAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothRel.cs index bda208a6e4..6c6dfb2aa9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoCubicSmoothRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoCubicSmoothRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoCubicSmoothRel : ISVGPathSegCurvetoCubicSmoothRel.Interface +public unsafe partial struct ISVGPathSegCurvetoCubicSmoothRel : ISVGPathSegCurvetoCubicSmoothRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoCubicSmoothRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticAbs.cs index 334bc739f8..2c0f8024eb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510504-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoQuadraticAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoQuadraticAbs : ISVGPathSegCurvetoQuadraticAbs.Interface +public unsafe partial struct ISVGPathSegCurvetoQuadraticAbs : ISVGPathSegCurvetoQuadraticAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoQuadraticAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticRel.cs index 526244c1fb..3dccc6581e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510505-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoQuadraticRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoQuadraticRel : ISVGPathSegCurvetoQuadraticRel.Interface +public unsafe partial struct ISVGPathSegCurvetoQuadraticRel : ISVGPathSegCurvetoQuadraticRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoQuadraticRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothAbs.cs index 20908cf836..a32e650d27 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoQuadraticSmoothAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoQuadraticSmoothAbs : ISVGPathSegCurvetoQuadraticSmoothAbs.Interface +public unsafe partial struct ISVGPathSegCurvetoQuadraticSmoothAbs : ISVGPathSegCurvetoQuadraticSmoothAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoQuadraticSmoothAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothRel.cs index 6df858ee4a..181daf31b7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegCurvetoQuadraticSmoothRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegCurvetoQuadraticSmoothRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegCurvetoQuadraticSmoothRel : ISVGPathSegCurvetoQuadraticSmoothRel.Interface +public unsafe partial struct ISVGPathSegCurvetoQuadraticSmoothRel : ISVGPathSegCurvetoQuadraticSmoothRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegCurvetoQuadraticSmoothRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoAbs.cs index 3bf0ae2307..9b91c0bd97 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510500-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoAbs : ISVGPathSegLinetoAbs.Interface +public unsafe partial struct ISVGPathSegLinetoAbs : ISVGPathSegLinetoAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalAbs.cs index c2e10758d1..871a0e145c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510508-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoHorizontalAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoHorizontalAbs : ISVGPathSegLinetoHorizontalAbs.Interface +public unsafe partial struct ISVGPathSegLinetoHorizontalAbs : ISVGPathSegLinetoHorizontalAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoHorizontalAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalRel.cs index a3609738e0..2eebb02f63 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoHorizontalRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510509-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoHorizontalRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoHorizontalRel : ISVGPathSegLinetoHorizontalRel.Interface +public unsafe partial struct ISVGPathSegLinetoHorizontalRel : ISVGPathSegLinetoHorizontalRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoHorizontalRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoRel.cs index 36531927c0..36a6d84c23 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510501-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoRel : ISVGPathSegLinetoRel.Interface +public unsafe partial struct ISVGPathSegLinetoRel : ISVGPathSegLinetoRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalAbs.cs index c63e001a4c..937d8fa852 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoVerticalAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoVerticalAbs : ISVGPathSegLinetoVerticalAbs.Interface +public unsafe partial struct ISVGPathSegLinetoVerticalAbs : ISVGPathSegLinetoVerticalAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoVerticalAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalRel.cs index 2da0a80c86..cacdddef75 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegLinetoVerticalRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051050B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegLinetoVerticalRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegLinetoVerticalRel : ISVGPathSegLinetoVerticalRel.Interface +public unsafe partial struct ISVGPathSegLinetoVerticalRel : ISVGPathSegLinetoVerticalRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegLinetoVerticalRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegList.cs index c4a5392751..503cf6032a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510510-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegList : ISVGPathSegList.Interface +public unsafe partial struct ISVGPathSegList : ISVGPathSegList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoAbs.cs index 2175679e05..010d2a9704 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoAbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FE-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegMovetoAbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegMovetoAbs : ISVGPathSegMovetoAbs.Interface +public unsafe partial struct ISVGPathSegMovetoAbs : ISVGPathSegMovetoAbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegMovetoAbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoRel.cs index 13a1a4384b..e4a4a43126 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPathSegMovetoRel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FF-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPathSegMovetoRel : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPathSegMovetoRel : ISVGPathSegMovetoRel.Interface +public unsafe partial struct ISVGPathSegMovetoRel : ISVGPathSegMovetoRel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPathSegMovetoRel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPatternElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPatternElement.cs index 4362232536..9664ceba82 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPatternElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPatternElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051052C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPatternElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPatternElement : ISVGPatternElement.Interface +public unsafe partial struct ISVGPatternElement : ISVGPatternElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPatternElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPoint.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPoint.cs index d9b4c963fa..0d110aab5e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPoint.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPoint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPoint : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPoint : ISVGPoint.Interface +public unsafe partial struct ISVGPoint : ISVGPoint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPoint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPointList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPointList.cs index 8d9564bd72..c0dadb28c4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPointList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPointList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPointList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPointList : ISVGPointList.Interface +public unsafe partial struct ISVGPointList : ISVGPointList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPointList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolygonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolygonElement.cs index b08b3b0fe8..dc0f70b251 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolygonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolygonElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510519-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPolygonElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPolygonElement : ISVGPolygonElement.Interface +public unsafe partial struct ISVGPolygonElement : ISVGPolygonElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPolygonElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolylineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolylineElement.cs index 5c52c8c459..c541445971 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolylineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPolylineElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510518-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPolylineElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPolylineElement : ISVGPolylineElement.Interface +public unsafe partial struct ISVGPolylineElement : ISVGPolylineElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPolylineElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPreserveAspectRatio.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPreserveAspectRatio.cs index ab6d38e996..2ee7d7e067 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGPreserveAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGPreserveAspectRatio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104FA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGPreserveAspectRatio : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGPreserveAspectRatio : ISVGPreserveAspectRatio.Interface +public unsafe partial struct ISVGPreserveAspectRatio : ISVGPreserveAspectRatio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGPreserveAspectRatio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRadialGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRadialGradientElement.cs index 7663646ee6..61e50f7fe1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRadialGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRadialGradientElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051052A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGRadialGradientElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGRadialGradientElement : ISVGRadialGradientElement.Interface +public unsafe partial struct ISVGRadialGradientElement : ISVGRadialGradientElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGRadialGradientElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRect.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRect.cs index d8937cda1b..facc3ee6eb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRect.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRect.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104D7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGRect : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGRect : ISVGRect.Interface +public unsafe partial struct ISVGRect : ISVGRect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGRect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRectElement.cs index bcd40bc7f1..9d770120ef 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGRectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGRectElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510513-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGRectElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGRectElement : ISVGRectElement.Interface +public unsafe partial struct ISVGRectElement : ISVGRectElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGRectElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSVGElement.cs index ea5f841c65..6d3218689b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSVGElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGSVGElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGSVGElement : ISVGSVGElement.Interface +public unsafe partial struct ISVGSVGElement : ISVGSVGElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGSVGElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGScriptElement.cs index d6555a07c2..111e4ba082 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGScriptElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051054D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGScriptElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGScriptElement : ISVGScriptElement.Interface +public unsafe partial struct ISVGScriptElement : ISVGScriptElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGScriptElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStopElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStopElement.cs index f166b00005..c8caf28d3b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStopElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStopElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051052B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGStopElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGStopElement : ISVGStopElement.Interface +public unsafe partial struct ISVGStopElement : ISVGStopElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGStopElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStringList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStringList.cs index f0df1833bf..7d4fa950a8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStringList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStringList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104C8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGStringList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGStringList : ISVGStringList.Interface +public unsafe partial struct ISVGStringList : ISVGStringList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGStringList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStylable.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStylable.cs index 050e5cbe11..7bebf82315 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStylable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStylable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGStylable : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGStylable : ISVGStylable.Interface +public unsafe partial struct ISVGStylable : ISVGStylable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGStylable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStyleElement.cs index 9e7f23de83..c493c5df18 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGStyleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGStyleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGStyleElement : ISVGStyleElement.Interface +public unsafe partial struct ISVGStyleElement : ISVGStyleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGStyleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSwitchElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSwitchElement.cs index 54d58fad40..99583470a8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSwitchElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSwitchElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGSwitchElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGSwitchElement : ISVGSwitchElement.Interface +public unsafe partial struct ISVGSwitchElement : ISVGSwitchElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGSwitchElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSymbolElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSymbolElement.cs index bc78760dd0..50a33a4cc2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGSymbolElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGSymbolElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104EC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGSymbolElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGSymbolElement : ISVGSymbolElement.Interface +public unsafe partial struct ISVGSymbolElement : ISVGSymbolElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGSymbolElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTSpanElement.cs index b346419a71..1a22123e03 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTSpanElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051051D-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTSpanElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTSpanElement : ISVGTSpanElement.Interface +public unsafe partial struct ISVGTSpanElement : ISVGTSpanElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTSpanElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTests.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTests.cs index 51660a0e7f..576b693dc1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTests.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTests.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTests : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTests : ISVGTests.Interface +public unsafe partial struct ISVGTests : ISVGTests.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTests)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextContentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextContentElement.cs index 9e5c607c31..1a960e8a00 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextContentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextContentElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051051A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTextContentElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTextContentElement : ISVGTextContentElement.Interface +public unsafe partial struct ISVGTextContentElement : ISVGTextContentElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTextContentElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextElement.cs index 5baa9ce8e3..acea09a9bf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051051C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTextElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTextElement : ISVGTextElement.Interface +public unsafe partial struct ISVGTextElement : ISVGTextElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTextElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPathElement.cs index b062d21768..0343d17924 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPathElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051051F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTextPathElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTextPathElement : ISVGTextPathElement.Interface +public unsafe partial struct ISVGTextPathElement : ISVGTextPathElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTextPathElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPositioningElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPositioningElement.cs index 3977e3fc71..a6975388c6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPositioningElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTextPositioningElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051051B-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTextPositioningElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTextPositioningElement : ISVGTextPositioningElement.Interface +public unsafe partial struct ISVGTextPositioningElement : ISVGTextPositioningElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTextPositioningElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTitleElement.cs index 450b78167f..7851d87a6d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTitleElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104EB-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTitleElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTitleElement : ISVGTitleElement.Interface +public unsafe partial struct ISVGTitleElement : ISVGTitleElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTitleElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransform.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransform.cs index 0d0b938621..ab1aebfbfd 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransform.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransform.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTransform : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTransform : ISVGTransform.Interface +public unsafe partial struct ISVGTransform : ISVGTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformList.cs index 104185adc1..de24e90b71 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104F8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTransformList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTransformList : ISVGTransformList.Interface +public unsafe partial struct ISVGTransformList : ISVGTransformList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTransformList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformable.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformable.cs index 38734bb2ec..036ddbaff4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformable.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGTransformable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104DC-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGTransformable : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGTransformable : ISVGTransformable.Interface +public unsafe partial struct ISVGTransformable : ISVGTransformable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGTransformable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGURIReference.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGURIReference.cs index 733eacff23..33ac075392 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGURIReference.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGURIReference.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGURIReference : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGURIReference : ISVGURIReference.Interface +public unsafe partial struct ISVGURIReference : ISVGURIReference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGURIReference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGUseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGUseElement.cs index 62ceecd040..63002ef181 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGUseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGUseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104ED-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGUseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGUseElement : ISVGUseElement.Interface +public unsafe partial struct ISVGUseElement : ISVGUseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGUseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewElement.cs index 1e12dede46..230c1799e5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051054C-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGViewElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGViewElement : ISVGViewElement.Interface +public unsafe partial struct ISVGViewElement : ISVGViewElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGViewElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewSpec.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewSpec.cs index 1f4d8287c1..29d375c665 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewSpec.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGViewSpec.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGViewSpec : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGViewSpec : ISVGViewSpec.Interface +public unsafe partial struct ISVGViewSpec : ISVGViewSpec.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGViewSpec)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomAndPan.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomAndPan.cs index a385bb9c15..bb7768ff51 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomAndPan.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomAndPan.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104E1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGZoomAndPan : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGZoomAndPan : ISVGZoomAndPan.Interface +public unsafe partial struct ISVGZoomAndPan : ISVGZoomAndPan.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGZoomAndPan)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomEvent.cs index 246bc859f1..161df3a2e8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISVGZoomEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051054E-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISVGZoomEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISVGZoomEvent : ISVGZoomEvent.Interface +public unsafe partial struct ISVGZoomEvent : ISVGZoomEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISVGZoomEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandler.cs b/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandler.cs index ca4c91aee8..e82339091f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3051083A-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IScriptEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IScriptEventHandler : IScriptEventHandler.Interface +public unsafe partial struct IScriptEventHandler : IScriptEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IScriptEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandlerSourceInfo.cs b/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandlerSourceInfo.cs index 07e88a27c1..f94ef8cc08 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandlerSourceInfo.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IScriptEventHandlerSourceInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510841-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IScriptEventHandlerSourceInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IScriptEventHandlerSourceInfo : IScriptEventHandlerSourceInfo.Interface +public unsafe partial struct IScriptEventHandlerSourceInfo : IScriptEventHandlerSourceInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IScriptEventHandlerSourceInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISecureUrlHost.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISecureUrlHost.cs index 9613522bd6..07892d0549 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISecureUrlHost.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISecureUrlHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C81984C4-74C8-11D2-BAA9-00C04FC2040E")] [NativeTypeName("struct ISecureUrlHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISecureUrlHost : ISecureUrlHost.Interface +public unsafe partial struct ISecureUrlHost : ISecureUrlHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISecureUrlHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISegment.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISegment.cs index e7478d82a0..e13f6e8593 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISegment.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISegment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F683-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISegment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISegment : ISegment.Interface +public unsafe partial struct ISegment : ISegment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISegment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISegmentList.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISegmentList.cs index aaa26b4a30..33aaf5165b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISegmentList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISegmentList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F605-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISegmentList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISegmentList : ISegmentList.Interface +public unsafe partial struct ISegmentList : ISegmentList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISegmentList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISegmentListIterator.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISegmentListIterator.cs index ca28492309..85d5993780 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISegmentListIterator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISegmentListIterator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F692-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISegmentListIterator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISegmentListIterator : ISegmentListIterator.Interface +public unsafe partial struct ISegmentListIterator : ISegmentListIterator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISegmentListIterator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServices.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServices.cs index dea69cf59a..c4e2e8f70a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServices.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F684-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISelectionServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISelectionServices : ISelectionServices.Interface +public unsafe partial struct ISelectionServices : ISelectionServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISelectionServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServicesListener.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServicesListener.cs index d94d7baf67..0f7bfbdc51 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServicesListener.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISelectionServicesListener.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F699-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISelectionServicesListener : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISelectionServicesListener : ISelectionServicesListener.Interface +public unsafe partial struct ISelectionServicesListener : ISelectionServicesListener.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISelectionServicesListener)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISequenceNumber.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISequenceNumber.cs index 8cfbb1ad52..c80a071c81 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISequenceNumber.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISequenceNumber.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6C1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISequenceNumber : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISequenceNumber : ISequenceNumber.Interface +public unsafe partial struct ISequenceNumber : ISequenceNumber.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISequenceNumber)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ISurfacePresenter.cs b/sources/Interop/Windows/Windows/um/MsHTML/ISurfacePresenter.cs index 34e31c2967..62fa0323bc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ISurfacePresenter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ISurfacePresenter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E2-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ISurfacePresenter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISurfacePresenter : ISurfacePresenter.Interface +public unsafe partial struct ISurfacePresenter : ISurfacePresenter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurfacePresenter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter.cs b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter.cs index 01312d1ffd..21d209f832 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F6B4-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ITemplatePrinter : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ITemplatePrinter : ITemplatePrinter.Interface +public unsafe partial struct ITemplatePrinter : ITemplatePrinter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITemplatePrinter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter2.cs b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter2.cs index d28601d001..b27add5d6b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter2.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3050F83F-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ITemplatePrinter2 : ITemplatePrinter")] [NativeInheritance("ITemplatePrinter")] -public unsafe partial struct ITemplatePrinter2 : ITemplatePrinter2.Interface +public unsafe partial struct ITemplatePrinter2 : ITemplatePrinter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITemplatePrinter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter3.cs b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter3.cs index c359f7420f..1f20472fa8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter3.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ITemplatePrinter3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305104A3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ITemplatePrinter3 : ITemplatePrinter2")] [NativeInheritance("ITemplatePrinter2")] -public unsafe partial struct ITemplatePrinter3 : ITemplatePrinter3.Interface +public unsafe partial struct ITemplatePrinter3 : ITemplatePrinter3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITemplatePrinter3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ITrackingProtection.cs b/sources/Interop/Windows/Windows/um/MsHTML/ITrackingProtection.cs index 3001ce24c1..b656cdc1ab 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ITrackingProtection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ITrackingProtection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510803-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct ITrackingProtection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITrackingProtection : ITrackingProtection.Interface +public unsafe partial struct ITrackingProtection : ITrackingProtection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITrackingProtection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotify.cs b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotify.cs index e4d1b8c0ca..2331bb4746 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotify.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107F8-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IViewObjectPresentNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IViewObjectPresentNotify : IViewObjectPresentNotify.Interface +public unsafe partial struct IViewObjectPresentNotify : IViewObjectPresentNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObjectPresentNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotifySite.cs b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotifySite.cs index 697fd53403..28557e3f77 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotifySite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentNotifySite.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107FA-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IViewObjectPresentNotifySite : IViewObjectPresentSite")] [NativeInheritance("IViewObjectPresentSite")] -public unsafe partial struct IViewObjectPresentNotifySite : IViewObjectPresentNotifySite.Interface +public unsafe partial struct IViewObjectPresentNotifySite : IViewObjectPresentNotifySite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObjectPresentNotifySite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentSite.cs b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentSite.cs index 239223215d..14d21a2bce 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentSite.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPresentSite.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E1-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IViewObjectPresentSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IViewObjectPresentSite : IViewObjectPresentSite.Interface +public unsafe partial struct IViewObjectPresentSite : IViewObjectPresentSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObjectPresentSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPrint.cs b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPrint.cs index b34fb1c595..a0f90a24bb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPrint.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IViewObjectPrint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305106E3-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IViewObjectPrint : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IViewObjectPrint : IViewObjectPrint.Interface +public unsafe partial struct IViewObjectPrint : IViewObjectPrint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObjectPrint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWBScriptControl.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWBScriptControl.cs index 00ac04ac7c..b13236086c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWBScriptControl.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWBScriptControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A5170870-0CF8-11D1-8B91-0080C744F389")] [NativeTypeName("struct IWBScriptControl : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWBScriptControl : IWBScriptControl.Interface +public unsafe partial struct IWBScriptControl : IWBScriptControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWBScriptControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWPCBlockedUrls.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWPCBlockedUrls.cs index dd5050be17..1522ee6b16 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWPCBlockedUrls.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWPCBlockedUrls.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510413-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IWPCBlockedUrls : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWPCBlockedUrls : IWPCBlockedUrls.Interface +public unsafe partial struct IWPCBlockedUrls : IWPCBlockedUrls.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWPCBlockedUrls)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWebBridge.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWebBridge.cs index 1947c46eb3..c4dd911e45 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWebBridge.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWebBridge.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE24FDAD-03C6-11D1-8B76-0080C744F389")] [NativeTypeName("struct IWebBridge : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebBridge : IWebBridge.Interface +public unsafe partial struct IWebBridge : IWebBridge.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebBridge)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeocoordinates.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeocoordinates.cs index bbc1c600a8..c2cb7392e1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeocoordinates.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeocoordinates.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107C7-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IWebGeocoordinates : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebGeocoordinates : IWebGeocoordinates.Interface +public unsafe partial struct IWebGeocoordinates : IWebGeocoordinates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebGeocoordinates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeolocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeolocation.cs index affd793255..3350d18de8 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeolocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeolocation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107C5-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IWebGeolocation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebGeolocation : IWebGeolocation.Interface +public unsafe partial struct IWebGeolocation : IWebGeolocation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebGeolocation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeoposition.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeoposition.cs index 678b176621..4efc3a2266 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeoposition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeoposition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107CD-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IWebGeoposition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebGeoposition : IWebGeoposition.Interface +public unsafe partial struct IWebGeoposition : IWebGeoposition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebGeoposition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeopositionError.cs b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeopositionError.cs index 1f44c436ea..7f60efe2d7 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IWebGeopositionError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IWebGeopositionError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("305107C9-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IWebGeopositionError : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebGeopositionError : IWebGeopositionError.Interface +public unsafe partial struct IWebGeopositionError : IWebGeopositionError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebGeopositionError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IXMLGenericParse.cs b/sources/Interop/Windows/Windows/um/MsHTML/IXMLGenericParse.cs index dc4dbacd8c..b39bf479b9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IXMLGenericParse.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IXMLGenericParse.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E4E23071-4D07-11D2-AE76-0080C73BC199")] [NativeTypeName("struct IXMLGenericParse : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXMLGenericParse : IXMLGenericParse.Interface +public unsafe partial struct IXMLGenericParse : IXMLGenericParse.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLGenericParse)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/IXMLHttpRequestEventTarget.cs b/sources/Interop/Windows/Windows/um/MsHTML/IXMLHttpRequestEventTarget.cs index f667b7222b..0227a2f487 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/IXMLHttpRequestEventTarget.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/IXMLHttpRequestEventTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30510830-98B5-11CF-BB82-00AA00BDCE0B")] [NativeTypeName("struct IXMLHttpRequestEventTarget : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLHttpRequestEventTarget : IXMLHttpRequestEventTarget.Interface +public unsafe partial struct IXMLHttpRequestEventTarget : IXMLHttpRequestEventTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLHttpRequestEventTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/MsHTML/NodeIterator.cs b/sources/Interop/Windows/Windows/um/MsHTML/NodeIterator.cs index b777f8286c..f5fb28b950 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/NodeIterator.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/NodeIterator.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510745-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct NodeIterator +public unsafe partial struct NodeIterator : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NodeIterator)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLDocument.cs b/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLDocument.cs index 0ffaee5a8b..8ad7a2b941 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLDocument.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D48A6EC9-6A4A-11CF-94A7-444553540000")] -public partial struct OldHTMLDocument +public unsafe partial struct OldHTMLDocument : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OldHTMLDocument)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLFormElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLFormElement.cs index 760d79a2f4..cf2a7ec048 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLFormElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/OldHTMLFormElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0D04D285-6BEC-11CF-8B97-00AA00476DA6")] -public partial struct OldHTMLFormElement +public unsafe partial struct OldHTMLFormElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OldHTMLFormElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/RangeException.cs b/sources/Interop/Windows/Windows/um/MsHTML/RangeException.cs index 91177c570e..9394902a4d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/RangeException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/RangeException.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051072E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct RangeException +public unsafe partial struct RangeException : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_RangeException)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/RulesApplied.cs b/sources/Interop/Windows/Windows/um/MsHTML/RulesApplied.cs index 7225b1c768..196acd52ec 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/RulesApplied.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/RulesApplied.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7C803920-7A53-4D26-98AC-FDD23E6B9E01")] -public partial struct RulesApplied +public unsafe partial struct RulesApplied : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_RulesApplied)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/RulesAppliedCollection.cs b/sources/Interop/Windows/Windows/um/MsHTML/RulesAppliedCollection.cs index 053b0bd9c5..e958dcef9d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/RulesAppliedCollection.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/RulesAppliedCollection.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("671926EE-C3CF-40AF-BE8F-1CBAEE6486E8")] -public partial struct RulesAppliedCollection +public unsafe partial struct RulesAppliedCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_RulesAppliedCollection)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAElement.cs index 492e05396f..48c2aac4ae 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105DB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAElement +public unsafe partial struct SVGAElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAngle.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAngle.cs index 0378175143..f27baf3390 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAngle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAngle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510584-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAngle +public unsafe partial struct SVGAngle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAngle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedAngle.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedAngle.cs index 9e03af70ba..7537012313 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedAngle.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedAngle.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedAngle +public unsafe partial struct SVGAnimatedAngle : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedAngle)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedBoolean.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedBoolean.cs index 9bb8179a61..3c2364b4e1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedBoolean.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedBoolean.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedBoolean +public unsafe partial struct SVGAnimatedBoolean : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedBoolean)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedEnumeration.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedEnumeration.cs index 513b20ba0e..d9dbae48f4 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedEnumeration.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedEnumeration.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedEnumeration +public unsafe partial struct SVGAnimatedEnumeration : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedEnumeration)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedInteger.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedInteger.cs index b8db038597..5042375f5a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedInteger.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedInteger.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedInteger +public unsafe partial struct SVGAnimatedInteger : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedInteger)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLength.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLength.cs index 87f1c6abe7..3fa01b1ced 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLength.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLength.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510581-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedLength +public unsafe partial struct SVGAnimatedLength : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedLength)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLengthList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLengthList.cs index 917a64ea9d..98612b2dcc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLengthList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedLengthList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510582-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedLengthList +public unsafe partial struct SVGAnimatedLengthList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedLengthList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumber.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumber.cs index d9ca727e55..7691393f7f 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumber.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumber.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510588-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedNumber +public unsafe partial struct SVGAnimatedNumber : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedNumber)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumberList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumberList.cs index cd539b5b41..3a8fb049d1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumberList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedNumberList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedNumberList +public unsafe partial struct SVGAnimatedNumberList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedNumberList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedPreserveAspectRatio.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedPreserveAspectRatio.cs index e8efadf697..2c25f17b9e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedPreserveAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedPreserveAspectRatio.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedPreserveAspectRatio +public unsafe partial struct SVGAnimatedPreserveAspectRatio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedPreserveAspectRatio)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedRect.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedRect.cs index f6475f85e4..691e77994c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedRect.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedRect.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510586-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedRect +public unsafe partial struct SVGAnimatedRect : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedRect)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedString.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedString.cs index b38144245f..e534a6b6fa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedString.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedString.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedString +public unsafe partial struct SVGAnimatedString : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedString)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedTransformList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedTransformList.cs index 62c7d969fb..dce9fecf61 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedTransformList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGAnimatedTransformList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGAnimatedTransformList +public unsafe partial struct SVGAnimatedTransformList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGAnimatedTransformList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGCircleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGCircleElement.cs index 30d0e0684a..827d281cd9 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGCircleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGCircleElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510578-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGCircleElement +public unsafe partial struct SVGCircleElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGCircleElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGClipPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGClipPathElement.cs index e8da197d62..5288b9d263 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGClipPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGClipPathElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGClipPathElement +public unsafe partial struct SVGClipPathElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGClipPathElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGDefsElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGDefsElement.cs index 3964adb43e..29a7f54bfa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGDefsElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGDefsElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510570-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGDefsElement +public unsafe partial struct SVGDefsElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGDefsElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGDescElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGDescElement.cs index 718d592e99..16d7a60303 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGDescElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGDescElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510572-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGDescElement +public unsafe partial struct SVGDescElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGDescElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGElement.cs index d906f2fee5..f68a8a8219 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510564-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGElement +public unsafe partial struct SVGElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstance.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstance.cs index 4d9af8a68c..00257a4f38 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstance.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstance.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510575-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGElementInstance +public unsafe partial struct SVGElementInstance : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGElementInstance)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstanceList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstanceList.cs index d58d8e53bd..f2546e6a73 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstanceList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGElementInstanceList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510576-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGElementInstanceList +public unsafe partial struct SVGElementInstanceList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGElementInstanceList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGEllipseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGEllipseElement.cs index 151659afe0..ae210b99ef 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGEllipseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGEllipseElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510579-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGEllipseElement +public unsafe partial struct SVGEllipseElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGEllipseElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGException.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGException.cs index fa5794cc38..6a9b351f8a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGException.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGException.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510730-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGException +public unsafe partial struct SVGException : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGException)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGGElement.cs index 32728fcbf0..a781dd927b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGGElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051056F-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGGElement +public unsafe partial struct SVGGElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGGElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGGradientElement.cs index cac2faf51c..0c12992228 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGGradientElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGGradientElement +public unsafe partial struct SVGGradientElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGGradientElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGImageElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGImageElement.cs index 1ecd5b66af..f2059b865b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGImageElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGImageElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGImageElement +public unsafe partial struct SVGImageElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGImageElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGLength.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGLength.cs index 689158fb04..77aa420470 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGLength.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGLength.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051057E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGLength +public unsafe partial struct SVGLength : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGLength)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGLengthList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGLengthList.cs index ef49ab2c2e..f8041cdb2d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGLengthList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGLengthList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510580-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGLengthList +public unsafe partial struct SVGLengthList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGLengthList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGLineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGLineElement.cs index 3eafa03af4..cf012e6e54 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGLineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGLineElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051057A-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGLineElement +public unsafe partial struct SVGLineElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGLineElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGLinearGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGLinearGradientElement.cs index aa18af8522..e772ba80ea 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGLinearGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGLinearGradientElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGLinearGradientElement +public unsafe partial struct SVGLinearGradientElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGLinearGradientElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGMarkerElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGMarkerElement.cs index 92b0c25588..ae0ecc8811 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGMarkerElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGMarkerElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105DE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGMarkerElement +public unsafe partial struct SVGMarkerElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGMarkerElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGMaskElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGMaskElement.cs index e0a223b30b..bf66d90e1d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGMaskElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGMaskElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E7-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGMaskElement +public unsafe partial struct SVGMaskElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGMaskElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGMatrix.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGMatrix.cs index bd6b76bbbb..dd03192a08 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGMatrix.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGMatrix.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105AE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGMatrix +public unsafe partial struct SVGMatrix : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGMatrix)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGMetadataElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGMetadataElement.cs index 4694dc93d9..405dad2599 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGMetadataElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGMetadataElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D7-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGMetadataElement +public unsafe partial struct SVGMetadataElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGMetadataElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGNumber.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGNumber.cs index 30741785d5..696ea0f33d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGNumber.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGNumber.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510587-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGNumber +public unsafe partial struct SVGNumber : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGNumber)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGNumberList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGNumberList.cs index 479e7a4ce0..ad34cef16e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGNumberList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGNumberList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510589-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGNumberList +public unsafe partial struct SVGNumberList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGNumberList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathElement.cs index 2753830cd9..bad118ad97 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathElement +public unsafe partial struct SVGPathElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSeg.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSeg.cs index 0cd897414a..18a5bf539e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSeg.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSeg.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSeg +public unsafe partial struct SVGPathSeg : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSeg)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcAbs.cs index d0bc29a591..5fef25cf15 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegArcAbs +public unsafe partial struct SVGPathSegArcAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegArcAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcRel.cs index a5e324ad28..475fb88731 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegArcRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegArcRel +public unsafe partial struct SVGPathSegArcRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegArcRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegClosePath.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegClosePath.cs index 87de7f4bd3..3e7e566f4d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegClosePath.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegClosePath.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegClosePath +public unsafe partial struct SVGPathSegClosePath : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegClosePath)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicAbs.cs index d0b4257abe..4ff58565ff 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoCubicAbs +public unsafe partial struct SVGPathSegCurvetoCubicAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoCubicAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicRel.cs index b5894575d7..36142bb45d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoCubicRel +public unsafe partial struct SVGPathSegCurvetoCubicRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoCubicRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothAbs.cs index 311f99d1b7..311179710b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoCubicSmoothAbs +public unsafe partial struct SVGPathSegCurvetoCubicSmoothAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoCubicSmoothAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothRel.cs index 8d88447774..c3d766ab38 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoCubicSmoothRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoCubicSmoothRel +public unsafe partial struct SVGPathSegCurvetoCubicSmoothRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoCubicSmoothRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticAbs.cs index a8e661599b..dfb2f3ea4e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoQuadraticAbs +public unsafe partial struct SVGPathSegCurvetoQuadraticAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoQuadraticAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticRel.cs index 7384805205..c4345ba152 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoQuadraticRel +public unsafe partial struct SVGPathSegCurvetoQuadraticRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoQuadraticRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothAbs.cs index f6166fef26..df8d0b289a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoQuadraticSmoothAbs +public unsafe partial struct SVGPathSegCurvetoQuadraticSmoothAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoQuadraticSmoothAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothRel.cs index 84ca078561..2ce916beae 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegCurvetoQuadraticSmoothRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegCurvetoQuadraticSmoothRel +public unsafe partial struct SVGPathSegCurvetoQuadraticSmoothRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegCurvetoQuadraticSmoothRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoAbs.cs index 9468fca5f4..20ba20f7b0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoAbs +public unsafe partial struct SVGPathSegLinetoAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalAbs.cs index dddb3c7298..6ed380fddb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C7-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoHorizontalAbs +public unsafe partial struct SVGPathSegLinetoHorizontalAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoHorizontalAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalRel.cs index c3ab3722ad..7eddc8a190 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoHorizontalRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoHorizontalRel +public unsafe partial struct SVGPathSegLinetoHorizontalRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoHorizontalRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoRel.cs index 5a305ccd9c..e255d320fc 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105C9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoRel +public unsafe partial struct SVGPathSegLinetoRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalAbs.cs index b1b6630ea1..7290c891c2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoVerticalAbs +public unsafe partial struct SVGPathSegLinetoVerticalAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoVerticalAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalRel.cs index 30654911c9..f3e8e97828 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegLinetoVerticalRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegLinetoVerticalRel +public unsafe partial struct SVGPathSegLinetoVerticalRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegLinetoVerticalRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegList.cs index b7409fbed9..4c2fb865cb 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegList +public unsafe partial struct SVGPathSegList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoAbs.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoAbs.cs index f18b8b4f71..381a0a208c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoAbs.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoAbs.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegMovetoAbs +public unsafe partial struct SVGPathSegMovetoAbs : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegMovetoAbs)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoRel.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoRel.cs index 02722d97b8..b728c8032e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoRel.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPathSegMovetoRel.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105CD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPathSegMovetoRel +public unsafe partial struct SVGPathSegMovetoRel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPathSegMovetoRel)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPatternElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPatternElement.cs index 2e423b0ced..6716789813 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPatternElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPatternElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D4-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPatternElement +public unsafe partial struct SVGPatternElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPatternElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPoint.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPoint.cs index 3abe2a5245..8803e3067b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPoint.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPoint.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105BA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPoint +public unsafe partial struct SVGPoint : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPoint)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPointList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPointList.cs index e08dcf84e7..a80fb4eaed 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPointList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPointList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPointList +public unsafe partial struct SVGPointList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPointList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPolygonElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPolygonElement.cs index afaa1e2bd3..9cb5c9690a 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPolygonElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPolygonElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051057B-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPolygonElement +public unsafe partial struct SVGPolygonElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPolygonElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPolylineElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPolylineElement.cs index ed8768be5d..3dee0812f6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPolylineElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPolylineElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051057C-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPolylineElement +public unsafe partial struct SVGPolylineElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPolylineElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGPreserveAspectRatio.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGPreserveAspectRatio.cs index b67740b1c4..0c386026af 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGPreserveAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGPreserveAspectRatio.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGPreserveAspectRatio +public unsafe partial struct SVGPreserveAspectRatio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGPreserveAspectRatio)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGRadialGradientElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGRadialGradientElement.cs index 76c211b617..b698a201ee 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGRadialGradientElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGRadialGradientElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D3-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGRadialGradientElement +public unsafe partial struct SVGRadialGradientElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGRadialGradientElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGRect.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGRect.cs index 925420300e..580d8237e2 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGRect.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGRect.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510583-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGRect +public unsafe partial struct SVGRect : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGRect)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGRectElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGRectElement.cs index 07ee0339a4..910dc8687b 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGRectElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGRectElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510577-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGRectElement +public unsafe partial struct SVGRectElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGRectElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGSVGElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGSVGElement.cs index cafc3287d9..44ffe4b170 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGSVGElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGSVGElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510574-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGSVGElement +public unsafe partial struct SVGSVGElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGSVGElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGScriptElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGScriptElement.cs index 16cf1f9a79..f88d649ce5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGScriptElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGScriptElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGScriptElement +public unsafe partial struct SVGScriptElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGScriptElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGStopElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGStopElement.cs index 85fa78548c..c094cd8ad1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGStopElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGStopElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D5-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGStopElement +public unsafe partial struct SVGStopElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGStopElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGStringList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGStringList.cs index 75b1b3e3ac..a5d4fd0880 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGStringList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGStringList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051058D-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGStringList +public unsafe partial struct SVGStringList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGStringList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGStyleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGStyleElement.cs index c713bd036d..fb57143e2d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGStyleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGStyleElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D1-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGStyleElement +public unsafe partial struct SVGStyleElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGStyleElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGSwitchElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGSwitchElement.cs index 2a7d8d3e73..9496d1e87e 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGSwitchElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGSwitchElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGSwitchElement +public unsafe partial struct SVGSwitchElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGSwitchElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGSymbolElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGSymbolElement.cs index 0e38eb1a09..a6eb9cc52d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGSymbolElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGSymbolElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510571-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGSymbolElement +public unsafe partial struct SVGSymbolElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGSymbolElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTSpanElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTSpanElement.cs index 399343a57f..a034a7afab 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTSpanElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTSpanElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E2-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTSpanElement +public unsafe partial struct SVGTSpanElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTSpanElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextContentElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextContentElement.cs index 6df5198e73..566e1a8ce6 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextContentElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextContentElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105DD-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTextContentElement +public unsafe partial struct SVGTextContentElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTextContentElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextElement.cs index 293c3f7491..772ac3daaf 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105DF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTextElement +public unsafe partial struct SVGTextElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTextElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPathElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPathElement.cs index f4988f5e29..417eb4e363 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPathElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPathElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105EB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTextPathElement +public unsafe partial struct SVGTextPathElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTextPathElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPositioningElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPositioningElement.cs index 0427bda131..3ba2a58611 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPositioningElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTextPositioningElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105E0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTextPositioningElement +public unsafe partial struct SVGTextPositioningElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTextPositioningElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTitleElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTitleElement.cs index 898714e05e..4d30522f51 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTitleElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTitleElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510573-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTitleElement +public unsafe partial struct SVGTitleElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTitleElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTransform.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTransform.cs index 50edbc5e45..2eeba7e56d 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTransform.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTransform.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105AF-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTransform +public unsafe partial struct SVGTransform : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTransform)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGTransformList.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGTransformList.cs index 8721664458..608d87b053 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGTransformList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGTransformList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105B0-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGTransformList +public unsafe partial struct SVGTransformList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGTransformList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGUseElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGUseElement.cs index bead4b2f8e..af623446e0 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGUseElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGUseElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510590-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGUseElement +public unsafe partial struct SVGUseElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGUseElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGViewElement.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGViewElement.cs index dfec852408..f5fb186296 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGViewElement.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGViewElement.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105DC-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGViewElement +public unsafe partial struct SVGViewElement : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGViewElement)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/SVGZoomEvent.cs b/sources/Interop/Windows/Windows/um/MsHTML/SVGZoomEvent.cs index a17251420f..dae90801e5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/SVGZoomEvent.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/SVGZoomEvent.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305105D9-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct SVGZoomEvent +public unsafe partial struct SVGZoomEvent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SVGZoomEvent)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/Scriptlet.cs b/sources/Interop/Windows/Windows/um/MsHTML/Scriptlet.cs index fbbc9f80c8..8b62605c22 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/Scriptlet.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/Scriptlet.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AE24FDAE-03C6-11D1-8B76-0080C744F389")] -public partial struct Scriptlet +public unsafe partial struct Scriptlet : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_Scriptlet)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/StaticNodeList.cs b/sources/Interop/Windows/Windows/um/MsHTML/StaticNodeList.cs index 40e046e957..dea7118c74 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/StaticNodeList.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/StaticNodeList.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510467-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct StaticNodeList +public unsafe partial struct StaticNodeList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_StaticNodeList)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/ThreadDialogProcParam.cs b/sources/Interop/Windows/Windows/um/MsHTML/ThreadDialogProcParam.cs index 069ed06b4f..a5ae7e2cda 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/ThreadDialogProcParam.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/ThreadDialogProcParam.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3050F5EB-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct ThreadDialogProcParam +public unsafe partial struct ThreadDialogProcParam : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ThreadDialogProcParam)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/TreeWalker.cs b/sources/Interop/Windows/Windows/um/MsHTML/TreeWalker.cs index fdb7e2554a..e323801aec 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/TreeWalker.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/TreeWalker.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510747-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct TreeWalker +public unsafe partial struct TreeWalker : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TreeWalker)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/WebGeocoordinates.cs b/sources/Interop/Windows/Windows/um/MsHTML/WebGeocoordinates.cs index 9c26781496..224ebc08ed 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/WebGeocoordinates.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/WebGeocoordinates.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107C8-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct WebGeocoordinates +public unsafe partial struct WebGeocoordinates : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebGeocoordinates)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/WebGeolocation.cs b/sources/Interop/Windows/Windows/um/MsHTML/WebGeolocation.cs index fd94c883e8..e439020663 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/WebGeolocation.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/WebGeolocation.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107C6-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct WebGeolocation +public unsafe partial struct WebGeolocation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebGeolocation)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/WebGeoposition.cs b/sources/Interop/Windows/Windows/um/MsHTML/WebGeoposition.cs index c6cbfa38d2..f535f158c5 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/WebGeoposition.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/WebGeoposition.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107CE-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct WebGeoposition +public unsafe partial struct WebGeoposition : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebGeoposition)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/WebGeopositionError.cs b/sources/Interop/Windows/Windows/um/MsHTML/WebGeopositionError.cs index b102ac92e9..e49d1371d1 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/WebGeopositionError.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/WebGeopositionError.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("305107CA-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct WebGeopositionError +public unsafe partial struct WebGeopositionError : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebGeopositionError)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequest.cs b/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequest.cs index 62b2e699af..6dc5cc1480 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequest.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequest.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510455-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct XDomainRequest +public unsafe partial struct XDomainRequest : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_XDomainRequest)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequestFactory.cs b/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequestFactory.cs index 072d17c96e..1562936f98 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequestFactory.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/XDomainRequestFactory.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510457-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct XDomainRequestFactory +public unsafe partial struct XDomainRequestFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_XDomainRequestFactory)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/XMLHttpRequestEventTarget.cs b/sources/Interop/Windows/Windows/um/MsHTML/XMLHttpRequestEventTarget.cs index 473f4d28fa..a499dfea3c 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/XMLHttpRequestEventTarget.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/XMLHttpRequestEventTarget.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("30510831-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct XMLHttpRequestEventTarget +public unsafe partial struct XMLHttpRequestEventTarget : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_XMLHttpRequestEventTarget)); } diff --git a/sources/Interop/Windows/Windows/um/MsHTML/XMLSerializer.cs b/sources/Interop/Windows/Windows/um/MsHTML/XMLSerializer.cs index 07e955439d..27d81ee4aa 100644 --- a/sources/Interop/Windows/Windows/um/MsHTML/XMLSerializer.cs +++ b/sources/Interop/Windows/Windows/um/MsHTML/XMLSerializer.cs @@ -3,12 +3,16 @@ // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3051077E-98B5-11CF-BB82-00AA00BDCE0B")] -public partial struct XMLSerializer +public unsafe partial struct XMLSerializer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_XMLSerializer)); } diff --git a/sources/Interop/Windows/Windows/um/NotificationActivationCallback/INotificationActivationCallback.cs b/sources/Interop/Windows/Windows/um/NotificationActivationCallback/INotificationActivationCallback.cs index ef16519bbc..93ce33c3bf 100644 --- a/sources/Interop/Windows/Windows/um/NotificationActivationCallback/INotificationActivationCallback.cs +++ b/sources/Interop/Windows/Windows/um/NotificationActivationCallback/INotificationActivationCallback.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct INotificationActivationCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct INotificationActivationCallback : INotificationActivationCallback.Interface +public unsafe partial struct INotificationActivationCallback : INotificationActivationCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INotificationActivationCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ObjectArray/IObjectArray.cs b/sources/Interop/Windows/Windows/um/ObjectArray/IObjectArray.cs index 174d029a22..107ca0dfb2 100644 --- a/sources/Interop/Windows/Windows/um/ObjectArray/IObjectArray.cs +++ b/sources/Interop/Windows/Windows/um/ObjectArray/IObjectArray.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("92CA9DCD-5622-4BBA-A805-5E9F541BD8C9")] [NativeTypeName("struct IObjectArray : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectArray : IObjectArray.Interface +public unsafe partial struct IObjectArray : IObjectArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ObjectArray/IObjectCollection.cs b/sources/Interop/Windows/Windows/um/ObjectArray/IObjectCollection.cs index a9e7584f2e..5d1e0bbb86 100644 --- a/sources/Interop/Windows/Windows/um/ObjectArray/IObjectCollection.cs +++ b/sources/Interop/Windows/Windows/um/ObjectArray/IObjectCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5632B1A4-E38A-400A-928A-D4CD63230295")] [NativeTypeName("struct IObjectCollection : IObjectArray")] [NativeInheritance("IObjectArray")] -public unsafe partial struct IObjectCollection : IObjectCollection.Interface +public unsafe partial struct IObjectCollection : IObjectCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSETSTG.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSETSTG.cs index 1205dc8dc2..b99db14590 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSETSTG.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSETSTG.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000013B-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumSTATPROPSETSTG : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSTATPROPSETSTG : IEnumSTATPROPSETSTG.Interface +public unsafe partial struct IEnumSTATPROPSETSTG : IEnumSTATPROPSETSTG.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSTATPROPSETSTG)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSTG.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSTG.cs index fbc86caa7a..f4a3f2a6d4 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSTG.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/IEnumSTATPROPSTG.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000139-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumSTATPROPSTG : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSTATPROPSTG : IEnumSTATPROPSTG.Interface +public unsafe partial struct IEnumSTATPROPSTG : IEnumSTATPROPSTG.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSTATPROPSTG)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertySetStorage.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertySetStorage.cs index 2f2a8393ae..0fe6d581bd 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertySetStorage.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertySetStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000013A-0000-0000-C000-000000000046")] [NativeTypeName("struct IPropertySetStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertySetStorage : IPropertySetStorage.Interface +public unsafe partial struct IPropertySetStorage : IPropertySetStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertySetStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertyStorage.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertyStorage.cs index 19ca3bfeba..d156e97168 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertyStorage.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/IPropertyStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000138-0000-0000-C000-000000000046")] [NativeTypeName("struct IPropertyStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyStorage : IPropertyStorage.Interface +public unsafe partial struct IPropertyStorage : IPropertyStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/PROPSPEC.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/PROPSPEC.cs index b777eeb592..dde3e1b338 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/PROPSPEC.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/PROPSPEC.cs @@ -3,6 +3,7 @@ // Ported from um/PropIdlBase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,22 +21,24 @@ public unsafe partial struct PROPSPEC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint propid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.propid, 1)); + return ref Anonymous.propid; } } /// + [UnscopedRef] public ref ushort* lpwstr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.lpwstr; + return ref Anonymous.lpwstr; } } diff --git a/sources/Interop/Windows/Windows/um/PropIdlBase/PROPVARIANT.cs b/sources/Interop/Windows/Windows/um/PropIdlBase/PROPVARIANT.cs index 24cf15dd48..df6af931bd 100644 --- a/sources/Interop/Windows/Windows/um/PropIdlBase/PROPVARIANT.cs +++ b/sources/Interop/Windows/Windows/um/PropIdlBase/PROPVARIANT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,782 +18,860 @@ public unsafe partial struct PROPVARIANT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort vt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.vt, 1)); + return ref Anonymous.Anonymous.vt; } } /// + [UnscopedRef] public ref ushort wReserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved1, 1)); + return ref Anonymous.Anonymous.wReserved1; } } /// + [UnscopedRef] public ref ushort wReserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved2, 1)); + return ref Anonymous.Anonymous.wReserved2; } } /// + [UnscopedRef] public ref ushort wReserved3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved3, 1)); + return ref Anonymous.Anonymous.wReserved3; } } /// + [UnscopedRef] public ref sbyte cVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cVal, 1)); + return ref Anonymous.Anonymous.Anonymous.cVal; } } /// + [UnscopedRef] public ref byte bVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.bVal, 1)); + return ref Anonymous.Anonymous.Anonymous.bVal; } } /// + [UnscopedRef] public ref short iVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.iVal, 1)); + return ref Anonymous.Anonymous.Anonymous.iVal; } } /// + [UnscopedRef] public ref ushort uiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.uiVal, 1)); + return ref Anonymous.Anonymous.Anonymous.uiVal; } } /// + [UnscopedRef] public ref int lVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.lVal, 1)); + return ref Anonymous.Anonymous.Anonymous.lVal; } } /// + [UnscopedRef] public ref uint ulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.ulVal, 1)); + return ref Anonymous.Anonymous.Anonymous.ulVal; } } /// + [UnscopedRef] public ref int intVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.intVal, 1)); + return ref Anonymous.Anonymous.Anonymous.intVal; } } /// + [UnscopedRef] public ref uint uintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.uintVal, 1)); + return ref Anonymous.Anonymous.Anonymous.uintVal; } } /// + [UnscopedRef] public ref LARGE_INTEGER hVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.hVal, 1)); + return ref Anonymous.Anonymous.Anonymous.hVal; } } /// + [UnscopedRef] public ref ULARGE_INTEGER uhVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.uhVal, 1)); + return ref Anonymous.Anonymous.Anonymous.uhVal; } } /// + [UnscopedRef] public ref float fltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.fltVal, 1)); + return ref Anonymous.Anonymous.Anonymous.fltVal; } } /// + [UnscopedRef] public ref double dblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.dblVal, 1)); + return ref Anonymous.Anonymous.Anonymous.dblVal; } } /// + [UnscopedRef] public ref short boolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.boolVal, 1)); + return ref Anonymous.Anonymous.Anonymous.boolVal; } } /// + [UnscopedRef] public ref short __OBSOLETE__VARIANT_BOOL { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_BOOL, 1)); + return ref Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_BOOL; } } /// + [UnscopedRef] public ref int scode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.scode, 1)); + return ref Anonymous.Anonymous.Anonymous.scode; } } /// + [UnscopedRef] public ref CY cyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cyVal, 1)); + return ref Anonymous.Anonymous.Anonymous.cyVal; } } /// + [UnscopedRef] public ref double date { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.date, 1)); + return ref Anonymous.Anonymous.Anonymous.date; } } /// + [UnscopedRef] public ref FILETIME filetime { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.filetime, 1)); + return ref Anonymous.Anonymous.Anonymous.filetime; } } /// + [UnscopedRef] public ref Guid* puuid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.puuid; + return ref Anonymous.Anonymous.Anonymous.puuid; } } /// + [UnscopedRef] public ref CLIPDATA* pclipdata { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pclipdata; + return ref Anonymous.Anonymous.Anonymous.pclipdata; } } /// + [UnscopedRef] public ref ushort* bstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.bstrVal; + return ref Anonymous.Anonymous.Anonymous.bstrVal; } } /// + [UnscopedRef] public ref BSTRBLOB bstrblobVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.bstrblobVal, 1)); + return ref Anonymous.Anonymous.Anonymous.bstrblobVal; } } /// + [UnscopedRef] public ref BLOB blob { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.blob, 1)); + return ref Anonymous.Anonymous.Anonymous.blob; } } /// + [UnscopedRef] public ref sbyte* pszVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pszVal; + return ref Anonymous.Anonymous.Anonymous.pszVal; } } /// + [UnscopedRef] public ref ushort* pwszVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pwszVal; + return ref Anonymous.Anonymous.Anonymous.pwszVal; } } /// + [UnscopedRef] public ref IUnknown* punkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.punkVal; + return ref Anonymous.Anonymous.Anonymous.punkVal; } } /// + [UnscopedRef] public ref IDispatch* pdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdispVal; + return ref Anonymous.Anonymous.Anonymous.pdispVal; } } /// + [UnscopedRef] public ref IStream* pStream { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pStream; + return ref Anonymous.Anonymous.Anonymous.pStream; } } /// + [UnscopedRef] public ref IStorage* pStorage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pStorage; + return ref Anonymous.Anonymous.Anonymous.pStorage; } } /// + [UnscopedRef] public ref VERSIONEDSTREAM* pVersionedStream { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pVersionedStream; + return ref Anonymous.Anonymous.Anonymous.pVersionedStream; } } /// + [UnscopedRef] public ref SAFEARRAY* parray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.parray; + return ref Anonymous.Anonymous.Anonymous.parray; } } /// + [UnscopedRef] public ref CAC cac { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cac, 1)); + return ref Anonymous.Anonymous.Anonymous.cac; } } /// + [UnscopedRef] public ref CAUB caub { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.caub, 1)); + return ref Anonymous.Anonymous.Anonymous.caub; } } /// + [UnscopedRef] public ref CAI cai { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cai, 1)); + return ref Anonymous.Anonymous.Anonymous.cai; } } /// + [UnscopedRef] public ref CAUI caui { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.caui, 1)); + return ref Anonymous.Anonymous.Anonymous.caui; } } /// + [UnscopedRef] public ref CAL cal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cal, 1)); + return ref Anonymous.Anonymous.Anonymous.cal; } } /// + [UnscopedRef] public ref CAUL caul { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.caul, 1)); + return ref Anonymous.Anonymous.Anonymous.caul; } } /// + [UnscopedRef] public ref CAH cah { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cah, 1)); + return ref Anonymous.Anonymous.Anonymous.cah; } } /// + [UnscopedRef] public ref CAUH cauh { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cauh, 1)); + return ref Anonymous.Anonymous.Anonymous.cauh; } } /// + [UnscopedRef] public ref CAFLT caflt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.caflt, 1)); + return ref Anonymous.Anonymous.Anonymous.caflt; } } /// + [UnscopedRef] public ref CADBL cadbl { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cadbl, 1)); + return ref Anonymous.Anonymous.Anonymous.cadbl; } } /// + [UnscopedRef] public ref CABOOL cabool { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cabool, 1)); + return ref Anonymous.Anonymous.Anonymous.cabool; } } /// + [UnscopedRef] public ref CASCODE cascode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cascode, 1)); + return ref Anonymous.Anonymous.Anonymous.cascode; } } /// + [UnscopedRef] public ref CACY cacy { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cacy, 1)); + return ref Anonymous.Anonymous.Anonymous.cacy; } } /// + [UnscopedRef] public ref CADATE cadate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cadate, 1)); + return ref Anonymous.Anonymous.Anonymous.cadate; } } /// + [UnscopedRef] public ref CAFILETIME cafiletime { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cafiletime, 1)); + return ref Anonymous.Anonymous.Anonymous.cafiletime; } } /// + [UnscopedRef] public ref CACLSID cauuid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cauuid, 1)); + return ref Anonymous.Anonymous.Anonymous.cauuid; } } /// + [UnscopedRef] public ref CACLIPDATA caclipdata { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.caclipdata, 1)); + return ref Anonymous.Anonymous.Anonymous.caclipdata; } } /// + [UnscopedRef] public ref CABSTR cabstr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cabstr, 1)); + return ref Anonymous.Anonymous.Anonymous.cabstr; } } /// + [UnscopedRef] public ref CABSTRBLOB cabstrblob { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cabstrblob, 1)); + return ref Anonymous.Anonymous.Anonymous.cabstrblob; } } /// + [UnscopedRef] public ref CALPSTR calpstr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.calpstr, 1)); + return ref Anonymous.Anonymous.Anonymous.calpstr; } } /// + [UnscopedRef] public ref CALPWSTR calpwstr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.calpwstr, 1)); + return ref Anonymous.Anonymous.Anonymous.calpwstr; } } /// + [UnscopedRef] public ref CAPROPVARIANT capropvar { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.capropvar, 1)); + return ref Anonymous.Anonymous.Anonymous.capropvar; } } /// + [UnscopedRef] public ref sbyte* pcVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pcVal; + return ref Anonymous.Anonymous.Anonymous.pcVal; } } /// + [UnscopedRef] public ref byte* pbVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pbVal; + return ref Anonymous.Anonymous.Anonymous.pbVal; } } /// + [UnscopedRef] public ref short* piVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.piVal; + return ref Anonymous.Anonymous.Anonymous.piVal; } } /// + [UnscopedRef] public ref ushort* puiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.puiVal; + return ref Anonymous.Anonymous.Anonymous.puiVal; } } /// + [UnscopedRef] public ref int* plVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.plVal; + return ref Anonymous.Anonymous.Anonymous.plVal; } } /// + [UnscopedRef] public ref uint* pulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pulVal; + return ref Anonymous.Anonymous.Anonymous.pulVal; } } /// + [UnscopedRef] public ref int* pintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pintVal; + return ref Anonymous.Anonymous.Anonymous.pintVal; } } /// + [UnscopedRef] public ref uint* puintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.puintVal; + return ref Anonymous.Anonymous.Anonymous.puintVal; } } /// + [UnscopedRef] public ref float* pfltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pfltVal; + return ref Anonymous.Anonymous.Anonymous.pfltVal; } } /// + [UnscopedRef] public ref double* pdblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdblVal; + return ref Anonymous.Anonymous.Anonymous.pdblVal; } } /// + [UnscopedRef] public ref short* pboolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pboolVal; + return ref Anonymous.Anonymous.Anonymous.pboolVal; } } /// + [UnscopedRef] public ref DECIMAL* pdecVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdecVal; + return ref Anonymous.Anonymous.Anonymous.pdecVal; } } /// + [UnscopedRef] public ref int* pscode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pscode; + return ref Anonymous.Anonymous.Anonymous.pscode; } } /// + [UnscopedRef] public ref CY* pcyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pcyVal; + return ref Anonymous.Anonymous.Anonymous.pcyVal; } } /// + [UnscopedRef] public ref double* pdate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdate; + return ref Anonymous.Anonymous.Anonymous.pdate; } } /// + [UnscopedRef] public ref ushort** pbstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pbstrVal; + return ref Anonymous.Anonymous.Anonymous.pbstrVal; } } /// + [UnscopedRef] public ref IUnknown** ppunkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.ppunkVal; + return ref Anonymous.Anonymous.Anonymous.ppunkVal; } } /// + [UnscopedRef] public ref IDispatch** ppdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.ppdispVal; + return ref Anonymous.Anonymous.Anonymous.ppdispVal; } } /// + [UnscopedRef] public ref SAFEARRAY** pparray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pparray; + return ref Anonymous.Anonymous.Anonymous.pparray; } } /// + [UnscopedRef] public ref PROPVARIANT* pvarVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pvarVal; + return ref Anonymous.Anonymous.Anonymous.pvarVal; } } /// + [UnscopedRef] public ref DECIMAL decVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.decVal, 1)); + return ref Anonymous.decVal; } } diff --git a/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_EX_BLOCK.cs b/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_EX_BLOCK.cs index 492eac0026..2f74b6c523 100644 --- a/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_EX_BLOCK.cs +++ b/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_EX_BLOCK.cs @@ -3,6 +3,7 @@ // Ported from um/Psapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -183,12 +184,13 @@ public nuint ReservedUlong } /// + [UnscopedRef] public ref _Anonymous_e__Union._Invalid_e__Struct Invalid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Invalid, 1)); + return ref Anonymous.Invalid; } } diff --git a/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_INFORMATION.cs b/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_INFORMATION.cs index df5eb86807..1af57cd1ca 100644 --- a/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/Psapi/PSAPI_WORKING_SET_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _WorkingSetInfo_e__FixedBuffer { public PSAPI_WORKING_SET_BLOCK e0; + [UnscopedRef] public ref PSAPI_WORKING_SET_BLOCK this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref PSAPI_WORKING_SET_BLOCK this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/RestartManager/RM_FILTER_INFO.cs b/sources/Interop/Windows/Windows/um/RestartManager/RM_FILTER_INFO.cs index fca9c678ad..f492c7f0f1 100644 --- a/sources/Interop/Windows/Windows/um/RestartManager/RM_FILTER_INFO.cs +++ b/sources/Interop/Windows/Windows/um/RestartManager/RM_FILTER_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/RestartManager.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -26,32 +27,35 @@ public unsafe partial struct RM_FILTER_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort* strFilename { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.strFilename; + return ref Anonymous.strFilename; } } /// + [UnscopedRef] public ref RM_UNIQUE_PROCESS Process { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Process, 1)); + return ref Anonymous.Process; } } /// + [UnscopedRef] public ref ushort* strServiceShortName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.strServiceShortName; + return ref Anonymous.strServiceShortName; } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_A.Manual.cs index 6b333db38c..86b451d269 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_A.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,81 +34,91 @@ public static uint SizeOf public CABINET_INFO64_A _value64; [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* CabinetPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CabinetPath; + return ref _value32.CabinetPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CabinetPath; + return ref _value64.CabinetPath; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* CabinetFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CabinetFile; + return ref _value32.CabinetFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CabinetFile; + return ref _value64.CabinetFile; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* DiskName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).DiskName; + return ref _value32.DiskName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).DiskName; + return ref _value64.DiskName; } } } [NativeTypeName("USHORT")] + [UnscopedRef] public ref ushort SetId { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.SetId, 1)); + return ref _value32.SetId; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.SetId, 1)); + return ref _value64.SetId; } } } [NativeTypeName("USHORT")] + [UnscopedRef] public ref ushort CabinetNumber { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CabinetNumber, 1)); + return ref _value32.CabinetNumber; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CabinetNumber, 1)); + return ref _value64.CabinetNumber; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_W.Manual.cs index ec9c6f886e..c00b70d2bb 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/CABINET_INFO_W.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,81 +34,91 @@ public static uint SizeOf public CABINET_INFO64_W _value64; [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* CabinetPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CabinetPath; + return ref _value32.CabinetPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CabinetPath; + return ref _value64.CabinetPath; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* CabinetFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CabinetFile; + return ref _value32.CabinetFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CabinetFile; + return ref _value64.CabinetFile; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* DiskName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).DiskName; + return ref _value32.DiskName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).DiskName; + return ref _value64.DiskName; } } } [NativeTypeName("USHORT")] + [UnscopedRef] public ref ushort SetId { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.SetId, 1)); + return ref _value32.SetId; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.SetId, 1)); + return ref _value64.SetId; } } } [NativeTypeName("USHORT")] + [UnscopedRef] public ref ushort CabinetNumber { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CabinetNumber, 1)); + return ref _value32.CabinetNumber; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CabinetNumber, 1)); + return ref _value64.CabinetNumber; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/COINSTALLER_CONTEXT_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/COINSTALLER_CONTEXT_DATA.Manual.cs index f054622db1..72b3f5d82f 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/COINSTALLER_CONTEXT_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/COINSTALLER_CONTEXT_DATA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,49 +33,55 @@ public static uint SizeOf [FieldOffset(0)] public COINSTALLER_CONTEXT_DATA64 _value64; + [UnscopedRef] public ref BOOL PostProcessing { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.PostProcessing, 1)); + return ref _value32.PostProcessing; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.PostProcessing, 1)); + return ref _value64.PostProcessing; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint InstallResult { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InstallResult, 1)); + return ref _value32.InstallResult; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InstallResult, 1)); + return ref _value64.InstallResult; } } } [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* PrivateData { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).PrivateData; + return ref _value32.PrivateData; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).PrivateData; + return ref _value64.PrivateData; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_A.Manual.cs index 3ad884757e..ab53ca0bdc 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_A.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,64 +34,72 @@ public static uint SizeOf public FILEPATHS64_A _value64; [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Target { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Target; + return ref _value32.Target; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Target; + return ref _value64.Target; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Source { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Source; + return ref _value32.Source; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Source; + return ref _value64.Source; } } } + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_A.Manual.cs index 2b357cd49e..fd76d01e01 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_A.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,112 +34,126 @@ public static uint SizeOf public FILEPATHS_SIGNERINFO64_A _value64; [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Target { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Target; + return ref _value32.Target; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Target; + return ref _value64.Target; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Source { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Source; + return ref _value32.Source; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Source; + return ref _value64.Source; } } } + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* DigitalSigner { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).DigitalSigner; + return ref _value32.DigitalSigner; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).DigitalSigner; + return ref _value64.DigitalSigner; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Version { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Version; + return ref _value32.Version; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Version; + return ref _value64.Version; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* CatalogFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CatalogFile; + return ref _value32.CatalogFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CatalogFile; + return ref _value64.CatalogFile; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_W.Manual.cs index fe4f68fbff..2c4fd7531b 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_SIGNERINFO_W.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,112 +34,126 @@ public static uint SizeOf public FILEPATHS_SIGNERINFO64_W _value64; [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Target { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Target; + return ref _value32.Target; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Target; + return ref _value64.Target; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Source { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Source; + return ref _value32.Source; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Source; + return ref _value64.Source; } } } + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* DigitalSigner { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).DigitalSigner; + return ref _value32.DigitalSigner; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).DigitalSigner; + return ref _value64.DigitalSigner; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Version { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Version; + return ref _value32.Version; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Version; + return ref _value64.Version; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* CatalogFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CatalogFile; + return ref _value32.CatalogFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CatalogFile; + return ref _value64.CatalogFile; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_W.Manual.cs index 5a21822428..6477f2fb0b 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILEPATHS_W.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,64 +34,72 @@ public static uint SizeOf public FILEPATHS64_W _value64; [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Target { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Target; + return ref _value32.Target; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Target; + return ref _value64.Target; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Source { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Source; + return ref _value32.Source; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Source; + return ref _value64.Source; } } } + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_A.Manual.cs index 7c8f234c34..704db29862 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,97 +35,109 @@ public static uint SizeOf public FILE_IN_CABINET_INFO64_A _value64; [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* NameInCabinet { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).NameInCabinet; + return ref _value32.NameInCabinet; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).NameInCabinet; + return ref _value64.NameInCabinet; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FileSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FileSize, 1)); + return ref _value32.FileSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FileSize, 1)); + return ref _value64.FileSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosDate, 1)); + return ref _value32.DosDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosDate, 1)); + return ref _value64.DosDate; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosTime { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosTime, 1)); + return ref _value32.DosTime; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosTime, 1)); + return ref _value64.DosTime; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosAttribs { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosAttribs, 1)); + return ref _value32.DosAttribs; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosAttribs, 1)); + return ref _value64.DosAttribs; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_W.Manual.cs index d3fe560295..4ac3698dc2 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/FILE_IN_CABINET_INFO_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,97 +35,109 @@ public static uint SizeOf public FILE_IN_CABINET_INFO64_W _value64; [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* NameInCabinet { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).NameInCabinet; + return ref _value32.NameInCabinet; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).NameInCabinet; + return ref _value64.NameInCabinet; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FileSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FileSize, 1)); + return ref _value32.FileSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FileSize, 1)); + return ref _value64.FileSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosDate, 1)); + return ref _value32.DosDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosDate, 1)); + return ref _value64.DosDate; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosTime { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosTime, 1)); + return ref _value32.DosTime; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosTime, 1)); + return ref _value64.DosTime; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort DosAttribs { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DosAttribs, 1)); + return ref _value32.DosAttribs; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DosAttribs, 1)); + return ref _value64.DosAttribs; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/INFCONTEXT.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/INFCONTEXT.Manual.cs index 01260e7ea9..c3d048177c 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/INFCONTEXT.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/INFCONTEXT.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,63 +34,71 @@ public static uint SizeOf public INFCONTEXT64 _value64; [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* Inf { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Inf; + return ref _value32.Inf; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Inf; + return ref _value64.Inf; } } } [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* CurrentInf { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).CurrentInf; + return ref _value32.CurrentInf; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).CurrentInf; + return ref _value64.CurrentInf; } } } + [UnscopedRef] public ref uint Section { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Section, 1)); + return ref _value32.Section; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Section, 1)); + return ref _value64.Section; } } } + [UnscopedRef] public ref uint Line { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Line, 1)); + return ref _value32.Line; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Line, 1)); + return ref _value64.Line; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_A.Manual.cs index 67976871a6..9f31834531 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_A.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,97 +34,109 @@ public static uint SizeOf public SOURCE_MEDIA64_A _value64; [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Reserved; + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Reserved; + return ref _value64.Reserved; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Tagfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Tagfile; + return ref _value32.Tagfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Tagfile; + return ref _value64.Tagfile; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* Description { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Description; + return ref _value32.Description; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Description; + return ref _value64.Description; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourcePath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourcePath; + return ref _value32.SourcePath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourcePath; + return ref _value64.SourcePath; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourceFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceFile; + return ref _value32.SourceFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceFile; + return ref _value64.SourceFile; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_W.Manual.cs index 6655c1aa0f..407c4b0532 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SOURCE_MEDIA_W.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,97 +34,109 @@ public static uint SizeOf public SOURCE_MEDIA64_W _value64; [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Reserved; + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Reserved; + return ref _value64.Reserved; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Tagfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Tagfile; + return ref _value32.Tagfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Tagfile; + return ref _value64.Tagfile; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* Description { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).Description; + return ref _value32.Description; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).Description; + return ref _value64.Description; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourcePath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourcePath; + return ref _value32.SourcePath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourcePath; + return ref _value64.SourcePath; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourceFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceFile; + return ref _value32.SourceFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceFile; + return ref _value64.SourceFile; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V2.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V2.Manual.cs index 236776531c..0eb7663164 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V2.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V2.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,21 +36,23 @@ public partial struct SP_ALTPLATFORM_INFO32_V2 [NativeTypeName("DWORD")] public uint FirstValidatedMinorVersion; + [UnscopedRef] public ref ushort Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } + [UnscopedRef] public ref ushort Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V3.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V3.Manual.cs index f6378cdbbb..b240a47702 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V3.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO32_V3.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -43,21 +44,23 @@ public partial struct SP_ALTPLATFORM_INFO32_V3 [NativeTypeName("DWORD")] public uint BuildNumber; + [UnscopedRef] public ref ushort Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } + [UnscopedRef] public ref ushort Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V2.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V2.Manual.cs index 45ef31c95d..83813eb7ef 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V2.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V2.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,21 +35,23 @@ public partial struct SP_ALTPLATFORM_INFO64_V2 [NativeTypeName("DWORD")] public uint FirstValidatedMinorVersion; + [UnscopedRef] public ref ushort Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } + [UnscopedRef] public ref ushort Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V3.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V3.Manual.cs index c3c240163e..801e3e3b71 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V3.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO64_V3.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -42,21 +43,23 @@ public partial struct SP_ALTPLATFORM_INFO64_V3 [NativeTypeName("DWORD")] public uint BuildNumber; + [UnscopedRef] public ref ushort Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } + [UnscopedRef] public ref ushort Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V1.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V1.Manual.cs index 7c084e83aa..36fa2c51b0 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V1.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V1.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,97 +34,109 @@ public static uint SizeOf public SP_ALTPLATFORM_INFO64_V1 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Platform { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Platform, 1)); + return ref _value32.Platform; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Platform, 1)); + return ref _value64.Platform; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MajorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MajorVersion, 1)); + return ref _value32.MajorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MajorVersion, 1)); + return ref _value64.MajorVersion; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MinorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MinorVersion, 1)); + return ref _value32.MinorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MinorVersion, 1)); + return ref _value64.MinorVersion; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort ProcessorArchitecture { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ProcessorArchitecture, 1)); + return ref _value32.ProcessorArchitecture; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ProcessorArchitecture, 1)); + return ref _value64.ProcessorArchitecture; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V2.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V2.Manual.cs index d06be6f737..07cfae7d05 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V2.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V2.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,119 +34,135 @@ public static uint SizeOf public SP_ALTPLATFORM_INFO64_V2 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Platform { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Platform, 1)); + return ref _value32.Platform; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Platform, 1)); + return ref _value64.Platform; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MajorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MajorVersion, 1)); + return ref _value32.MajorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MajorVersion, 1)); + return ref _value64.MajorVersion; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MinorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MinorVersion, 1)); + return ref _value32.MinorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MinorVersion, 1)); + return ref _value64.MinorVersion; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort ProcessorArchitecture { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ProcessorArchitecture, 1)); + return ref _value32.ProcessorArchitecture; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ProcessorArchitecture, 1)); + return ref _value64.ProcessorArchitecture; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FirstValidatedMajorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FirstValidatedMajorVersion, 1)); + return ref _value32.FirstValidatedMajorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FirstValidatedMajorVersion, 1)); + return ref _value64.FirstValidatedMajorVersion; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FirstValidatedMinorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FirstValidatedMinorVersion, 1)); + return ref _value32.FirstValidatedMinorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FirstValidatedMinorVersion, 1)); + return ref _value64.FirstValidatedMinorVersion; } } } + [UnscopedRef] public ref ushort Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -158,8 +176,10 @@ public ref ushort Reserved } } + [UnscopedRef] public ref ushort Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -172,5 +192,4 @@ public ref ushort Flags } } } - } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V3.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V3.Manual.cs index 20a7f68996..30f30e5952 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V3.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ALTPLATFORM_INFO_V3.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,166 +34,188 @@ public static uint SizeOf public SP_ALTPLATFORM_INFO64_V3 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Platform { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Platform, 1)); + return ref _value32.Platform; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Platform, 1)); + return ref _value64.Platform; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MajorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MajorVersion, 1)); + return ref _value32.MajorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MajorVersion, 1)); + return ref _value64.MajorVersion; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint MinorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.MinorVersion, 1)); + return ref _value32.MinorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.MinorVersion, 1)); + return ref _value64.MinorVersion; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort ProcessorArchitecture { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ProcessorArchitecture, 1)); + return ref _value32.ProcessorArchitecture; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ProcessorArchitecture, 1)); + return ref _value64.ProcessorArchitecture; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FirstValidatedMajorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FirstValidatedMajorVersion, 1)); + return ref _value32.FirstValidatedMajorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FirstValidatedMajorVersion, 1)); + return ref _value64.FirstValidatedMajorVersion; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FirstValidatedMinorVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FirstValidatedMinorVersion, 1)); + return ref _value32.FirstValidatedMinorVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FirstValidatedMinorVersion, 1)); + return ref _value64.FirstValidatedMinorVersion; } } } + [UnscopedRef] public ref byte ProductType { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ProductType, 1)); + return ref _value32.ProductType; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ProductType, 1)); + return ref _value64.ProductType; } } } [NativeTypeName("WORD")] + [UnscopedRef] public ref ushort SuiteMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.SuiteMask, 1)); + return ref _value32.SuiteMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.SuiteMask, 1)); + return ref _value64.SuiteMask; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint BuildNumber { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.BuildNumber, 1)); + return ref _value32.BuildNumber; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.BuildNumber, 1)); + return ref _value64.BuildNumber; } } } + [UnscopedRef] public ref ushort Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -205,8 +229,10 @@ public ref ushort Reserved } } + [UnscopedRef] public ref ushort Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -219,5 +245,4 @@ public ref ushort Flags } } } - } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_A.Manual.cs index dc8dd9fa0b..3d78fe8d47 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_BACKUP_QUEUE_PARAMS64_V1_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } @@ -64,17 +68,19 @@ public Span FullInfPath } } + [UnscopedRef] public ref int FilenameOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FilenameOffset, 1)); + return ref _value32.FilenameOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FilenameOffset, 1)); + return ref _value64.FilenameOffset; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_W.Manual.cs index a716391657..dfd9a1f93f 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V1_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_BACKUP_QUEUE_PARAMS64_V1_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } @@ -64,17 +68,19 @@ public Span FullInfPath } } + [UnscopedRef] public ref int FilenameOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FilenameOffset, 1)); + return ref _value32.FilenameOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FilenameOffset, 1)); + return ref _value64.FilenameOffset; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_A.Manual.cs index 84670fcaf5..281410687d 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,24 +35,28 @@ public static uint SizeOf public SP_BACKUP_QUEUE_PARAMS64_V2_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span FullInfPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -64,24 +70,28 @@ public Span FullInfPath } } + [UnscopedRef] public ref int FilenameOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FilenameOffset, 1)); + return ref _value32.FilenameOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FilenameOffset, 1)); + return ref _value64.FilenameOffset; } } } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span ReinstallInstance { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_W.Manual.cs index 30e2ef61da..20ca582772 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_BACKUP_QUEUE_PARAMS_V2_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,24 +35,28 @@ public static uint SizeOf public SP_BACKUP_QUEUE_PARAMS64_V2_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("WCHAR [260]")] + [UnscopedRef] public Span FullInfPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -64,24 +70,28 @@ public Span FullInfPath } } + [UnscopedRef] public ref int FilenameOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FilenameOffset, 1)); + return ref _value32.FilenameOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FilenameOffset, 1)); + return ref _value64.FilenameOffset; } } } [NativeTypeName("WCHAR [260]")] + [UnscopedRef] public Span ReinstallInstance { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSIMAGELIST_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSIMAGELIST_DATA.Manual.cs index f6abf50775..15baaa0782 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSIMAGELIST_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSIMAGELIST_DATA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,48 +34,54 @@ public static uint SizeOf public SP_CLASSIMAGELIST_DATA64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HIMAGELIST ImageList { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ImageList, 1)); + return ref _value32.ImageList; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ImageList, 1)); + return ref _value64.ImageList; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSINSTALL_HEADER.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSINSTALL_HEADER.Manual.cs index 6a4ffb58cb..d4045df323 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSINSTALL_HEADER.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_CLASSINSTALL_HEADER.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,33 +34,37 @@ public static uint SizeOf public SP_CLASSINSTALL_HEADER64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DI_FUNCTION")] + [UnscopedRef] public ref uint InstallFunction { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InstallFunction, 1)); + return ref _value32.InstallFunction; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InstallFunction, 1)); + return ref _value64.InstallFunction; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DETECTDEVICE_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DETECTDEVICE_PARAMS.Manual.cs index 558cf70325..524c8160b0 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DETECTDEVICE_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DETECTDEVICE_PARAMS.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,49 +33,55 @@ public static uint SizeOf [FieldOffset(0)] public SP_DETECTDEVICE_PARAMS64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("PDETECT_PROGRESS_NOTIFY")] + [UnscopedRef] public ref delegate* unmanaged DetectProgressNotify { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).DetectProgressNotify; + return ref _value32.DetectProgressNotify; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).DetectProgressNotify; + return ref _value64.DetectProgressNotify; } } } [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* ProgressNotifyParam { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).ProgressNotifyParam; + return ref _value32.ProgressNotifyParam; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).ProgressNotifyParam; + return ref _value64.ProgressNotifyParam; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DATA.Manual.cs index 11877a0d01..f0453d53dd 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DATA.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,64 +35,72 @@ public static uint SizeOf public SP_DEVICE_INTERFACE_DATA64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref Guid InterfaceClassGuid { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InterfaceClassGuid, 1)); + return ref _value32.InterfaceClassGuid; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InterfaceClassGuid, 1)); + return ref _value64.InterfaceClassGuid; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_A.Manual.cs index 764951799b..90221ee8bd 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_DEVICE_INTERFACE_DETAIL_DATA64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_W.Manual.cs index b9d38540a8..8f2b13f0c8 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVICE_INTERFACE_DETAIL_DATA_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_DEVICE_INTERFACE_DETAIL_DATA64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_DATA.Manual.cs index 876b03f5ff..9e11fd531c 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_DATA.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,64 +35,72 @@ public static uint SizeOf public SP_DEVINFO_DATA64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref Guid ClassGuid { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassGuid, 1)); + return ref _value32.ClassGuid; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassGuid, 1)); + return ref _value64.ClassGuid; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DevInst { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DevInst, 1)); + return ref _value32.DevInst; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DevInst, 1)); + return ref _value64.DevInst; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_A.Manual.cs index 3ae44acb4f..53825e689e 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,47 +35,53 @@ public static uint SizeOf public SP_DEVINFO_LIST_DETAIL_DATA64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref Guid ClassGuid { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassGuid, 1)); + return ref _value32.ClassGuid; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassGuid, 1)); + return ref _value64.ClassGuid; } } } + [UnscopedRef] public ref HANDLE RemoteMachineHandle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.RemoteMachineHandle, 1)); + return ref _value32.RemoteMachineHandle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.RemoteMachineHandle, 1)); + return ref _value64.RemoteMachineHandle; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_W.Manual.cs index 700207743e..9862854459 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINFO_LIST_DETAIL_DATA_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,47 +35,53 @@ public static uint SizeOf public SP_DEVINFO_LIST_DETAIL_DATA64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref Guid ClassGuid { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassGuid, 1)); + return ref _value32.ClassGuid; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassGuid, 1)); + return ref _value64.ClassGuid; } } } + [UnscopedRef] public ref HANDLE RemoteMachineHandle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.RemoteMachineHandle, 1)); + return ref _value32.RemoteMachineHandle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.RemoteMachineHandle, 1)); + return ref _value64.RemoteMachineHandle; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_A.Manual.cs index e1b9790471..a375b3ee65 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,143 +35,161 @@ public static uint SizeOf public SP_DEVINSTALL_PARAMS64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FlagsEx { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FlagsEx, 1)); + return ref _value32.FlagsEx; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FlagsEx, 1)); + return ref _value64.FlagsEx; } } } + [UnscopedRef] public ref HWND hwndParent { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwndParent, 1)); + return ref _value32.hwndParent; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwndParent, 1)); + return ref _value64.hwndParent; } } } [NativeTypeName("PSP_FILE_CALLBACK_W")] + [UnscopedRef] public ref delegate* unmanaged InstallMsgHandler { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).InstallMsgHandler; + return ref _value32.InstallMsgHandler; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).InstallMsgHandler; + return ref _value64.InstallMsgHandler; } } } [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* InstallMsgHandlerContext { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).InstallMsgHandlerContext; + return ref _value32.InstallMsgHandlerContext; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).InstallMsgHandlerContext; + return ref _value64.InstallMsgHandlerContext; } } } + [UnscopedRef] public ref HSPFILEQ FileQueue { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FileQueue, 1)); + return ref _value32.FileQueue; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FileQueue, 1)); + return ref _value64.FileQueue; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint ClassInstallReserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassInstallReserved, 1)); + return ref _value32.ClassInstallReserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassInstallReserved, 1)); + return ref _value64.ClassInstallReserved; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_W.Manual.cs index 8eb6cf99ff..c26ae677cf 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DEVINSTALL_PARAMS_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,143 +35,161 @@ public static uint SizeOf public SP_DEVINSTALL_PARAMS64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FlagsEx { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FlagsEx, 1)); + return ref _value32.FlagsEx; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FlagsEx, 1)); + return ref _value64.FlagsEx; } } } + [UnscopedRef] public ref HWND hwndParent { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwndParent, 1)); + return ref _value32.hwndParent; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwndParent, 1)); + return ref _value64.hwndParent; } } } [NativeTypeName("PSP_FILE_CALLBACK_W")] + [UnscopedRef] public ref delegate* unmanaged InstallMsgHandler { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).InstallMsgHandler; + return ref _value32.InstallMsgHandler; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).InstallMsgHandler; + return ref _value64.InstallMsgHandler; } } } [NativeTypeName("PVOID")] + [UnscopedRef] public ref void* InstallMsgHandlerContext { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).InstallMsgHandlerContext; + return ref _value32.InstallMsgHandlerContext; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).InstallMsgHandlerContext; + return ref _value64.InstallMsgHandlerContext; } } } + [UnscopedRef] public ref HSPFILEQ FileQueue { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FileQueue, 1)); + return ref _value32.FileQueue; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FileQueue, 1)); + return ref _value64.FileQueue; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint ClassInstallReserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassInstallReserved, 1)); + return ref _value32.ClassInstallReserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassInstallReserved, 1)); + return ref _value64.ClassInstallReserved; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_A.Manual.cs index e3fd4769ac..8bfae61938 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,49 +35,55 @@ public static uint SizeOf public SP_DRVINFO_DATA64_V1_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DriverType { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverType, 1)); + return ref _value32.DriverType; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverType, 1)); + return ref _value64.DriverType; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_W.Manual.cs index 9345c97cf0..29d58a59ee 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V1_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,49 +35,55 @@ public static uint SizeOf public SP_DRVINFO_DATA64_V1_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DriverType { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverType, 1)); + return ref _value32.DriverType; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverType, 1)); + return ref _value64.DriverType; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_A.Manual.cs index 006ae67077..df99be1f7c 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,49 +35,55 @@ public static uint SizeOf public SP_DRVINFO_DATA64_V2_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DriverType { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverType, 1)); + return ref _value32.DriverType; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverType, 1)); + return ref _value64.DriverType; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } @@ -128,33 +136,37 @@ public Span ProviderName } } + [UnscopedRef] public ref FILETIME DriverDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverDate, 1)); + return ref _value32.DriverDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverDate, 1)); + return ref _value64.DriverDate; } } } [NativeTypeName("DWORDLONG")] + [UnscopedRef] public ref ulong DriverVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverVersion, 1)); + return ref _value32.DriverVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverVersion, 1)); + return ref _value64.DriverVersion; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_W.Manual.cs index 96741452d9..b723853570 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DATA_V2_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,49 +35,55 @@ public static uint SizeOf public SP_DRVINFO_DATA64_V2_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DriverType { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverType, 1)); + return ref _value32.DriverType; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverType, 1)); + return ref _value64.DriverType; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } @@ -128,33 +136,37 @@ public Span ProviderName } } + [UnscopedRef] public ref FILETIME DriverDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverDate, 1)); + return ref _value32.DriverDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverDate, 1)); + return ref _value64.DriverDate; } } } [NativeTypeName("DWORDLONG")] + [UnscopedRef] public ref ulong DriverVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DriverVersion, 1)); + return ref _value32.DriverVersion; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DriverVersion, 1)); + return ref _value64.DriverVersion; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_A.Manual.cs index 129c24aa66..9c7fb98a1a 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,80 +35,90 @@ public static uint SizeOf public SP_DRVINFO_DETAIL_DATA64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref FILETIME InfDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InfDate, 1)); + return ref _value32.InfDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InfDate, 1)); + return ref _value64.InfDate; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CompatIDsOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CompatIDsOffset, 1)); + return ref _value32.CompatIDsOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CompatIDsOffset, 1)); + return ref _value64.CompatIDsOffset; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CompatIDsLength { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CompatIDsLength, 1)); + return ref _value32.CompatIDsLength; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CompatIDsLength, 1)); + return ref _value64.CompatIDsLength; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_W.Manual.cs index 0000135668..3c39e9d13d 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINFO_DETAIL_DATA_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,80 +35,90 @@ public static uint SizeOf public SP_DRVINFO_DETAIL_DATA64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref FILETIME InfDate { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InfDate, 1)); + return ref _value32.InfDate; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InfDate, 1)); + return ref _value64.InfDate; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CompatIDsOffset { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CompatIDsOffset, 1)); + return ref _value32.CompatIDsOffset; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CompatIDsOffset, 1)); + return ref _value64.CompatIDsOffset; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CompatIDsLength { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CompatIDsLength, 1)); + return ref _value32.CompatIDsLength; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CompatIDsLength, 1)); + return ref _value64.CompatIDsLength; } } } [NativeTypeName("ULONG_PTR")] + [UnscopedRef] public ref nuint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINSTALL_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINSTALL_PARAMS.Manual.cs index a529420bae..cd008090b3 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINSTALL_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_DRVINSTALL_PARAMS.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,81 +34,91 @@ public static uint SizeOf public SP_DRVINSTALL_PARAMS64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Rank { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Rank, 1)); + return ref _value32.Rank; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Rank, 1)); + return ref _value64.Rank; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("DWORD_PTR")] + [UnscopedRef] public ref nuint PrivateData { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.PrivateData, 1)); + return ref _value32.PrivateData; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.PrivateData, 1)); + return ref _value64.PrivateData; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Reserved { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Reserved, 1)); + return ref _value32.Reserved; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Reserved, 1)); + return ref _value64.Reserved; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ENABLECLASS_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ENABLECLASS_PARAMS.Manual.cs index 008a783626..22424fd133 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ENABLECLASS_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ENABLECLASS_PARAMS.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,48 +34,54 @@ public static uint SizeOf [FieldOffset(0)] public SP_ENABLECLASS_PARAMS64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } + [UnscopedRef] public ref Guid ClassGuid { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ClassGuid, 1)); + return ref _value32.ClassGuid; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ClassGuid, 1)); + return ref _value64.ClassGuid; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint EnableMessage { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.EnableMessage, 1)); + return ref _value32.EnableMessage; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.EnableMessage, 1)); + return ref _value64.EnableMessage; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_A.Manual.cs index 5f8b85f248..9046e4a236 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_A.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,191 +34,215 @@ public static uint SizeOf public SP_FILE_COPY_PARAMS64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HSPFILEQ QueueHandle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.QueueHandle, 1)); + return ref _value32.QueueHandle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.QueueHandle, 1)); + return ref _value64.QueueHandle; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourceRootPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceRootPath; + return ref _value32.SourceRootPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceRootPath; + return ref _value64.SourceRootPath; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourcePath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourcePath; + return ref _value32.SourcePath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourcePath; + return ref _value64.SourcePath; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourceFilename { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceFilename; + return ref _value32.SourceFilename; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceFilename; + return ref _value64.SourceFilename; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourceDescription { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceDescription; + return ref _value32.SourceDescription; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceDescription; + return ref _value64.SourceDescription; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SourceTagfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceTagfile; + return ref _value32.SourceTagfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceTagfile; + return ref _value64.SourceTagfile; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* TargetDirectory { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).TargetDirectory; + return ref _value32.TargetDirectory; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).TargetDirectory; + return ref _value64.TargetDirectory; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* TargetFilename { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).TargetFilename; + return ref _value32.TargetFilename; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).TargetFilename; + return ref _value64.TargetFilename; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CopyStyle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CopyStyle, 1)); + return ref _value32.CopyStyle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CopyStyle, 1)); + return ref _value64.CopyStyle; } } } + [UnscopedRef] public ref HINF LayoutInf { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.LayoutInf, 1)); + return ref _value32.LayoutInf; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.LayoutInf, 1)); + return ref _value64.LayoutInf; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* SecurityDescriptor { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SecurityDescriptor; + return ref _value32.SecurityDescriptor; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SecurityDescriptor; + return ref _value64.SecurityDescriptor; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_W.Manual.cs index a86fdf3d2d..c7c8d92224 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_FILE_COPY_PARAMS_W.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,191 +34,215 @@ public static uint SizeOf public SP_FILE_COPY_PARAMS64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HSPFILEQ QueueHandle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.QueueHandle, 1)); + return ref _value32.QueueHandle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.QueueHandle, 1)); + return ref _value64.QueueHandle; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourceRootPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceRootPath; + return ref _value32.SourceRootPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceRootPath; + return ref _value64.SourceRootPath; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourcePath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourcePath; + return ref _value32.SourcePath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourcePath; + return ref _value64.SourcePath; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourceFilename { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceFilename; + return ref _value32.SourceFilename; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceFilename; + return ref _value64.SourceFilename; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourceDescription { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceDescription; + return ref _value32.SourceDescription; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceDescription; + return ref _value64.SourceDescription; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SourceTagfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SourceTagfile; + return ref _value32.SourceTagfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SourceTagfile; + return ref _value64.SourceTagfile; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* TargetDirectory { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).TargetDirectory; + return ref _value32.TargetDirectory; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).TargetDirectory; + return ref _value64.TargetDirectory; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* TargetFilename { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).TargetFilename; + return ref _value32.TargetFilename; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).TargetFilename; + return ref _value64.TargetFilename; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint CopyStyle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.CopyStyle, 1)); + return ref _value32.CopyStyle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.CopyStyle, 1)); + return ref _value64.CopyStyle; } } } + [UnscopedRef] public ref HINF LayoutInf { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.LayoutInf, 1)); + return ref _value32.LayoutInf; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.LayoutInf, 1)); + return ref _value64.LayoutInf; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* SecurityDescriptor { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).SecurityDescriptor; + return ref _value32.SecurityDescriptor; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).SecurityDescriptor; + return ref _value64.SecurityDescriptor; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_INFORMATION.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_INFORMATION.Manual.cs index 8121fd585a..8a33ada39f 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_INFORMATION.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_INFORMATION.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,33 +35,37 @@ public static uint SizeOf public SP_INF_INFORMATION64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint InfStyle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InfStyle, 1)); + return ref _value32.InfStyle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InfStyle, 1)); + return ref _value64.InfStyle; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint InfCount { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.InfCount, 1)); + return ref _value32.InfCount; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.InfCount, 1)); + return ref _value64.InfCount; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_A.Manual.cs index 856356a3ee..7ce67e2e22 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,24 +35,28 @@ public static uint SizeOf public SP_INF_SIGNER_INFO64_V1_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span CatalogFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -65,8 +71,10 @@ public Span CatalogFile } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span DigitalSigner { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -81,8 +89,10 @@ public Span DigitalSigner } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span DigitalSignerVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_W.Manual.cs index ef4ea5ccda..0d622f11d4 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V1_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_INF_SIGNER_INFO64_V1_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_A.Manual.cs index 8295c628c0..136f71f0ae 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_INF_SIGNER_INFO64_V2_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } @@ -97,17 +101,19 @@ public Span DigitalSignerVersion } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint SignerScore { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.SignerScore, 1)); + return ref _value32.SignerScore; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.SignerScore, 1)); + return ref _value64.SignerScore; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_W.Manual.cs index 42577eaa74..265df597fc 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INF_SIGNER_INFO_V2_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_INF_SIGNER_INFO64_V2_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } @@ -97,17 +101,19 @@ public Span DigitalSignerVersion } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint SignerScore { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.SignerScore, 1)); + return ref _value32.SignerScore; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.SignerScore, 1)); + return ref _value64.SignerScore; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA.Manual.cs index 6d0dc60af1..8df84e7f73 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,40 +34,46 @@ public static uint SizeOf [FieldOffset(0)] public SP_INSTALLWIZARD_DATA64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("HPROPSHEETPAGE [20]")] + [UnscopedRef] public Span DynamicPages { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -81,81 +88,90 @@ public Span DynamicPages } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint NumDynamicPages { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.NumDynamicPages, 1)); + return ref _value32.NumDynamicPages; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.NumDynamicPages, 1)); + return ref _value64.NumDynamicPages; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint DynamicPageFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DynamicPageFlags, 1)); + return ref _value32.DynamicPageFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DynamicPageFlags, 1)); + return ref _value64.DynamicPageFlags; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint PrivateFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.PrivateFlags, 1)); + return ref _value32.PrivateFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.PrivateFlags, 1)); + return ref _value64.PrivateFlags; } } } + [UnscopedRef] public ref LPARAM PrivateData { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.PrivateData, 1)); + return ref _value32.PrivateData; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.PrivateData, 1)); + return ref _value64.PrivateData; } } } + [UnscopedRef] public ref HWND hwndWizardDlg { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwndWizardDlg, 1)); + return ref _value32.hwndWizardDlg; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwndWizardDlg, 1)); + return ref _value64.hwndWizardDlg; } } } - } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA32.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA32.Manual.cs index 33b621f43c..13c3a9b67b 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA32.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA32.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -57,6 +58,7 @@ public partial struct _DynamicPages_e__FixedBuffer public HPROPSHEETPAGE e18; public HPROPSHEETPAGE e19; + [UnscopedRef] public ref HPROPSHEETPAGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -67,6 +69,7 @@ public ref HPROPSHEETPAGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 20); } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA64.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA64.Manual.cs index d401397a50..56fc8b379d 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA64.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_INSTALLWIZARD_DATA64.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -55,6 +56,7 @@ public partial struct _DynamicPages_e__FixedBuffer public HPROPSHEETPAGE e18; public HPROPSHEETPAGE e19; + [UnscopedRef] public ref HPROPSHEETPAGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -65,6 +67,7 @@ public ref HPROPSHEETPAGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 20); } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA.Manual.cs index ca9c483e18..54ad79957f 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,40 +34,46 @@ public static uint SizeOf [FieldOffset(0)] public SP_NEWDEVICEWIZARD_DATA64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Flags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Flags, 1)); + return ref _value32.Flags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Flags, 1)); + return ref _value64.Flags; } } } [NativeTypeName("HPROPSHEETPAGE [20]")] + [UnscopedRef] public Span DynamicPages { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -81,34 +88,37 @@ public Span DynamicPages } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint NumDynamicPages { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.NumDynamicPages, 1)); + return ref _value32.NumDynamicPages; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.NumDynamicPages, 1)); + return ref _value64.NumDynamicPages; } } } + [UnscopedRef] public ref HWND hwndWizardDlg { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwndWizardDlg, 1)); + return ref _value32.hwndWizardDlg; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwndWizardDlg, 1)); + return ref _value64.hwndWizardDlg; } } } - } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA32.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA32.Manual.cs index ad0d5aad0c..cf280a252e 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA32.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA32.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,6 +50,7 @@ public partial struct _DynamicPages_e__FixedBuffer public HPROPSHEETPAGE e18; public HPROPSHEETPAGE e19; + [UnscopedRef] public ref HPROPSHEETPAGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref HPROPSHEETPAGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 20); } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA64.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA64.Manual.cs index f1fae08b34..2a9c336d5e 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA64.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_NEWDEVICEWIZARD_DATA64.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -47,6 +48,7 @@ public partial struct _DynamicPages_e__FixedBuffer public HPROPSHEETPAGE e18; public HPROPSHEETPAGE e19; + [UnscopedRef] public ref HPROPSHEETPAGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -57,6 +59,7 @@ public ref HPROPSHEETPAGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 20); } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_A.Manual.cs index 6ae3415287..9c672a0705 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_A.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_ORIGINAL_FILE_INFO64_A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_W.Manual.cs index 7aed898de6..6c0a481c03 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_ORIGINAL_FILE_INFO_W.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,17 +35,19 @@ public static uint SizeOf public SP_ORIGINAL_FILE_INFO64_W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_A.Manual.cs index 7cdf1c9052..20b74d2662 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_A.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,17 +34,19 @@ public static uint SizeOf [FieldOffset(0)] public SP_POWERMESSAGEWAKE_PARAMS64_A _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_W.Manual.cs index ded5e4a94b..bf7d9a9456 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_POWERMESSAGEWAKE_PARAMS_W.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,24 +34,28 @@ public static uint SizeOf [FieldOffset(0)] public SP_POWERMESSAGEWAKE_PARAMS64_W _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("WCHAR [512]")] + [UnscopedRef] public Span PowerMessageWake { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPCHANGE_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPCHANGE_PARAMS.Manual.cs index ce2c68f58f..d9295f653c 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPCHANGE_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPCHANGE_PARAMS.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,65 +33,73 @@ public static uint SizeOf [FieldOffset(0)] public SP_PROPCHANGE_PARAMS64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint StateChange { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.StateChange, 1)); + return ref _value32.StateChange; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.StateChange, 1)); + return ref _value64.StateChange; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Scope { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Scope, 1)); + return ref _value32.Scope; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Scope, 1)); + return ref _value64.Scope; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint HwProfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.HwProfile, 1)); + return ref _value32.HwProfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.HwProfile, 1)); + return ref _value64.HwProfile; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPSHEETPAGE_REQUEST.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPSHEETPAGE_REQUEST.Manual.cs index 82f50b29ed..615e092db8 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPSHEETPAGE_REQUEST.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_PROPSHEETPAGE_REQUEST.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,48 +34,54 @@ public static uint SizeOf public SP_PROPSHEETPAGE_REQUEST64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint PageRequested { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.PageRequested, 1)); + return ref _value32.PageRequested; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.PageRequested, 1)); + return ref _value64.PageRequested; } } } + [UnscopedRef] public ref HDEVINFO DeviceInfoSet { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.DeviceInfoSet, 1)); + return ref _value32.DeviceInfoSet; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.DeviceInfoSet, 1)); + return ref _value64.DeviceInfoSet; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSA.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSA.Manual.cs index b94c52eaaf..69c0ed2ab7 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,65 +34,73 @@ public static uint SizeOf public SP_REGISTER_CONTROL_STATUS64A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* FileName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).FileName; + return ref _value32.FileName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).FileName; + return ref _value64.FileName; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FailureCode { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FailureCode, 1)); + return ref _value32.FailureCode; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FailureCode, 1)); + return ref _value64.FailureCode; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSW.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSW.Manual.cs index 9b0d2cc022..f0d50b9b10 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REGISTER_CONTROL_STATUSW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,65 +34,73 @@ public static uint SizeOf public SP_REGISTER_CONTROL_STATUS64W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* FileName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).FileName; + return ref _value32.FileName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).FileName; + return ref _value64.FileName; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Win32Error { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Win32Error, 1)); + return ref _value32.Win32Error; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Win32Error, 1)); + return ref _value64.Win32Error; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint FailureCode { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.FailureCode, 1)); + return ref _value32.FailureCode; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.FailureCode, 1)); + return ref _value64.FailureCode; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REMOVEDEVICE_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REMOVEDEVICE_PARAMS.Manual.cs index 4e4ac77c09..ba80de9dc0 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_REMOVEDEVICE_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_REMOVEDEVICE_PARAMS.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,49 +33,55 @@ public static uint SizeOf [FieldOffset(0)] public SP_REMOVEDEVICE_PARAMS64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Scope { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Scope, 1)); + return ref _value32.Scope; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Scope, 1)); + return ref _value64.Scope; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint HwProfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.HwProfile, 1)); + return ref _value32.HwProfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.HwProfile, 1)); + return ref _value64.HwProfile; } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_A.Manual.cs index 67230d20f4..65cebd5b5c 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_A.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,17 +34,19 @@ public static uint SizeOf [FieldOffset(0)] public SP_SELECTDEVICE_PARAMS64_A _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_W.Manual.cs index 7b8a214c05..698caba69e 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_SELECTDEVICE_PARAMS_W.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,17 +34,19 @@ public static uint SizeOf [FieldOffset(0)] public SP_SELECTDEVICE_PARAMS64_W _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_A.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_A.Manual.cs index e8064aa635..d60ac227f1 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_A.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,17 +34,19 @@ public static uint SizeOf [FieldOffset(0)] public SP_TROUBLESHOOTER_PARAMS64_A _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_W.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_W.Manual.cs index 4ded77043d..8600673227 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_TROUBLESHOOTER_PARAMS_W.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,17 +34,19 @@ public static uint SizeOf [FieldOffset(0)] public SP_TROUBLESHOOTER_PARAMS64_W _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SP_UNREMOVEDEVICE_PARAMS.Manual.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SP_UNREMOVEDEVICE_PARAMS.Manual.cs index 54fcc0c1e1..fb408ea75f 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/SP_UNREMOVEDEVICE_PARAMS.Manual.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SP_UNREMOVEDEVICE_PARAMS.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,49 +33,55 @@ public static uint SizeOf [FieldOffset(0)] public SP_UNREMOVEDEVICE_PARAMS64 _value64; + [UnscopedRef] public ref SP_CLASSINSTALL_HEADER ClassInstallHeader { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value32.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value32.ClassInstallHeader); } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref _value64.ClassInstallHeader), 1)); + return ref Unsafe.As(ref _value64.ClassInstallHeader); } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint Scope { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.Scope, 1)); + return ref _value32.Scope; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.Scope, 1)); + return ref _value64.Scope; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint HwProfile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.HwProfile, 1)); + return ref _value32.HwProfile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.HwProfile, 1)); + return ref _value64.HwProfile; } } } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/AccessibilityDockingService.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/AccessibilityDockingService.cs index 7598099899..65a7069516 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/AccessibilityDockingService.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/AccessibilityDockingService.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("29CE1D46-B481-4AA0-A08A-D3EBC8ACA402")] -public partial struct AccessibilityDockingService +public unsafe partial struct AccessibilityDockingService : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AccessibilityDockingService)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/AlphabeticalCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/AlphabeticalCategorizer.cs index 1057051092..5937165fae 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/AlphabeticalCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/AlphabeticalCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3C2654C6-7372-4F6B-B310-55D6128F49D2")] -public partial struct AlphabeticalCategorizer +public unsafe partial struct AlphabeticalCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AlphabeticalCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ApplicationAssociationRegistrationUI.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ApplicationAssociationRegistrationUI.cs index 5dfd41003b..670df9786d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ApplicationAssociationRegistrationUI.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ApplicationAssociationRegistrationUI.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1968106D-F3B5-44CF-890E-116FCB9ECEF1")] -public partial struct ApplicationAssociationRegistrationUI +public unsafe partial struct ApplicationAssociationRegistrationUI : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationAssociationRegistrationUI)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/AttachmentServices.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/AttachmentServices.cs index 64059a2430..3dad2eb153 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/AttachmentServices.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/AttachmentServices.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4125DD96-E03A-4103-8F70-E0597D803B9C")] -public partial struct AttachmentServices +public unsafe partial struct AttachmentServices : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AttachmentServices)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/CDBurn.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/CDBurn.cs index 046ad76629..46d62f6c99 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/CDBurn.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/CDBurn.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FBEB8A05-BEEE-4442-804E-409D6C4515E9")] -public partial struct CDBurn +public unsafe partial struct CDBurn : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CDBurn)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/DesktopGadget.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/DesktopGadget.cs index 54105fa0c6..d72b1baecf 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/DesktopGadget.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/DesktopGadget.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("924CCC1B-6562-4C85-8657-D177925222B6")] -public partial struct DesktopGadget +public unsafe partial struct DesktopGadget : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DesktopGadget)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/DocPropShellExtension.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/DocPropShellExtension.cs index add75c7302..b86488ba87 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/DocPropShellExtension.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/DocPropShellExtension.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("883373C3-BF89-11D1-BE35-080036B11A03")] -public partial struct DocPropShellExtension +public unsafe partial struct DocPropShellExtension : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DocPropShellExtension)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ExecuteFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ExecuteFolder.cs index d95d1b267f..d0dc1203d1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ExecuteFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ExecuteFolder.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("11DBB47C-A525-400B-9E80-A54615A090C0")] -public partial struct ExecuteFolder +public unsafe partial struct ExecuteFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ExecuteFolder)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ExplorerBrowser.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ExplorerBrowser.cs index 2055ed78ad..7a8392263f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ExplorerBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ExplorerBrowser.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("71F96385-DDD6-48D3-A0C1-AE06E8B055FB")] -public partial struct ExplorerBrowser +public unsafe partial struct ExplorerBrowser : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ExplorerBrowser)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/FSCopyHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/FSCopyHandler.cs index 0d0d248a3e..846e6010bd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/FSCopyHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/FSCopyHandler.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D197380A-0A79-4DC8-A033-ED882C2FA14B")] -public partial struct FSCopyHandler +public unsafe partial struct FSCopyHandler : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FSCopyHandler)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/FolderViewHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/FolderViewHost.cs index 214470ee80..ca1d498e15 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/FolderViewHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/FolderViewHost.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("20B1CB23-6968-4EB9-B7D4-A66D00D07CEE")] -public partial struct FolderViewHost +public unsafe partial struct FolderViewHost : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderViewHost)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingService.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingService.cs index c13b6acec2..b0d2828e2b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingService.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingService.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAccessibilityDockingService : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAccessibilityDockingService : IAccessibilityDockingService.Interface +public unsafe partial struct IAccessibilityDockingService : IAccessibilityDockingService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccessibilityDockingService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingServiceCallback.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingServiceCallback.cs index d78d9185d4..f7ddcb8258 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingServiceCallback.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingServiceCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("157733FD-A592-42E5-B594-248468C5A81B")] [NativeTypeName("struct IAccessibilityDockingServiceCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccessibilityDockingServiceCallback : IAccessibilityDockingServiceCallback.Interface +public unsafe partial struct IAccessibilityDockingServiceCallback : IAccessibilityDockingServiceCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccessibilityDockingServiceCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibleObject.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibleObject.cs index bfda090660..e51538600d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibleObject.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibleObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("95A391C5-9ED4-4C28-8401-AB9E06719E11")] [NativeTypeName("struct IAccessibleObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAccessibleObject : IAccessibleObject.Interface +public unsafe partial struct IAccessibleObject : IAccessibleObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAccessibleObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IApplicationAssociationRegistrationUI.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IApplicationAssociationRegistrationUI.cs index 4527b80e06..5c4fc73a99 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IApplicationAssociationRegistrationUI.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IApplicationAssociationRegistrationUI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1F76A169-F994-40AC-8FC8-0959E8874710")] [NativeTypeName("struct IApplicationAssociationRegistrationUI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationAssociationRegistrationUI : IApplicationAssociationRegistrationUI.Interface +public unsafe partial struct IApplicationAssociationRegistrationUI : IApplicationAssociationRegistrationUI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationAssociationRegistrationUI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IAutoCompleteDropDown.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IAutoCompleteDropDown.cs index 8413e4aad2..124b3a69a0 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IAutoCompleteDropDown.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IAutoCompleteDropDown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3CD141F4-3C6A-11D2-BCAA-00C04FD929DB")] [NativeTypeName("struct IAutoCompleteDropDown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAutoCompleteDropDown : IAutoCompleteDropDown.Interface +public unsafe partial struct IAutoCompleteDropDown : IAutoCompleteDropDown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAutoCompleteDropDown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IBandHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IBandHost.cs index 03f5d7cb7d..265b04921f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IBandHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IBandHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B9075C7C-D48E-403F-AB99-D6C77A1084AC")] [NativeTypeName("struct IBandHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBandHost : IBandHost.Interface +public unsafe partial struct IBandHost : IBandHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBandHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurn.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurn.cs index 1b3e69d9d9..f50e80eb72 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurn.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurn.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3D73A659-E5D0-4D42-AFC0-5121BA425C8D")] [NativeTypeName("struct ICDBurn : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICDBurn : ICDBurn.Interface +public unsafe partial struct ICDBurn : ICDBurn.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICDBurn)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurnExt.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurnExt.cs index ae433ce320..507f54b13f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurnExt.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ICDBurnExt.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2271DCCA-74FC-4414-8FB7-C56B05ACE2D7")] [NativeTypeName("struct ICDBurnExt : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICDBurnExt : ICDBurnExt.Interface +public unsafe partial struct ICDBurnExt : ICDBurnExt.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICDBurnExt)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ICommDlgBrowser3.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ICommDlgBrowser3.cs index d5e97d80d8..0965ade517 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ICommDlgBrowser3.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ICommDlgBrowser3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C8AD25A1-3294-41EE-8165-71174BD01C57")] [NativeTypeName("struct ICommDlgBrowser3 : ICommDlgBrowser2")] [NativeInheritance("ICommDlgBrowser2")] -public unsafe partial struct ICommDlgBrowser3 : ICommDlgBrowser3.Interface +public unsafe partial struct ICommDlgBrowser3 : ICommDlgBrowser3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICommDlgBrowser3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IComputerInfoChangeNotify.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IComputerInfoChangeNotify.cs index 48e84e3e35..2ebda3bbdd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IComputerInfoChangeNotify.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IComputerInfoChangeNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0DF60D92-6818-46D6-B358-D66170DDE466")] [NativeTypeName("struct IComputerInfoChangeNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IComputerInfoChangeNotify : IComputerInfoChangeNotify.Interface +public unsafe partial struct IComputerInfoChangeNotify : IComputerInfoChangeNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IComputerInfoChangeNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IDeskBand2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IDeskBand2.cs index 310ec1fc0f..7ea3855a11 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IDeskBand2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IDeskBand2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79D16DE4-ABEE-4021-8D9D-9169B261D657")] [NativeTypeName("struct IDeskBand2 : IDeskBand")] [NativeInheritance("IDeskBand")] -public unsafe partial struct IDeskBand2 : IDeskBand2.Interface +public unsafe partial struct IDeskBand2 : IDeskBand2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeskBand2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IDesktopGadget.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IDesktopGadget.cs index 365419f57a..89e2702155 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IDesktopGadget.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IDesktopGadget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C1646BC4-F298-4F91-A204-EB2DD1709D1A")] [NativeTypeName("struct IDesktopGadget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDesktopGadget : IDesktopGadget.Interface +public unsafe partial struct IDesktopGadget : IDesktopGadget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDesktopGadget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IDragSourceHelper2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IDragSourceHelper2.cs index 82b661138b..e6f91fc6f9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IDragSourceHelper2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IDragSourceHelper2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83E07D0D-0C5F-4163-BF1A-60B274051E40")] [NativeTypeName("struct IDragSourceHelper2 : IDragSourceHelper")] [NativeInheritance("IDragSourceHelper")] -public unsafe partial struct IDragSourceHelper2 : IDragSourceHelper2.Interface +public unsafe partial struct IDragSourceHelper2 : IDragSourceHelper2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDragSourceHelper2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IDynamicHWHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IDynamicHWHandler.cs index 061a017eab..6ddf07e92f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IDynamicHWHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IDynamicHWHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC2601D7-059E-42FC-A09D-2AFD21B6D5F7")] [NativeTypeName("struct IDynamicHWHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDynamicHWHandler : IDynamicHWHandler.Interface +public unsafe partial struct IDynamicHWHandler : IDynamicHWHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDynamicHWHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IENamespaceTreeControl.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IENamespaceTreeControl.cs index 6ebe88f283..47672ecc70 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IENamespaceTreeControl.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IENamespaceTreeControl.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("ACE52D03-E5CD-4B20-82FF-E71B11BEAE1D")] -public partial struct IENamespaceTreeControl +public unsafe partial struct IENamespaceTreeControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IENamespaceTreeControl)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumReadyCallback.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumReadyCallback.cs index 65a0752741..9740577ed0 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumReadyCallback.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumReadyCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("61E00D45-8FFF-4E60-924E-6537B61612DD")] [NativeTypeName("struct IEnumReadyCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumReadyCallback : IEnumReadyCallback.Interface +public unsafe partial struct IEnumReadyCallback : IEnumReadyCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumReadyCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumerableView.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumerableView.cs index 9db881b1e1..a1bec77bd1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumerableView.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IEnumerableView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8C8BF236-1AEC-495F-9894-91D57C3C686F")] [NativeTypeName("struct IEnumerableView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumerableView : IEnumerableView.Interface +public unsafe partial struct IEnumerableView : IEnumerableView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumerableView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialog2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialog2.cs index 121c6dde53..c5c3caaa8d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialog2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialog2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("61744FC7-85B5-4791-A9B0-272276309B13")] [NativeTypeName("struct IFileDialog2 : IFileDialog")] [NativeInheritance("IFileDialog")] -public unsafe partial struct IFileDialog2 : IFileDialog2.Interface +public unsafe partial struct IFileDialog2 : IFileDialog2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileDialog2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialogControlEvents.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialogControlEvents.cs index 8da7007743..5edf668616 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialogControlEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IFileDialogControlEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36116642-D713-4B97-9B83-7484A9D00433")] [NativeTypeName("struct IFileDialogControlEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileDialogControlEvents : IFileDialogControlEvents.Interface +public unsafe partial struct IFileDialogControlEvents : IFileDialogControlEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileDialogControlEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderBandPriv.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderBandPriv.cs index 3991e2ad1d..3fc8cedd81 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderBandPriv.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderBandPriv.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("47C01F95-E185-412C-B5C5-4F27DF965AEA")] [NativeTypeName("struct IFolderBandPriv : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderBandPriv : IFolderBandPriv.Interface +public unsafe partial struct IFolderBandPriv : IFolderBandPriv.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderBandPriv)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewHost.cs index 8cf2dc6280..c6d14ecbc5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1EA58F02-D55A-411D-B09E-9E65AC21605B")] [NativeTypeName("struct IFolderViewHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderViewHost : IFolderViewHost.Interface +public unsafe partial struct IFolderViewHost : IFolderViewHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderViewHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewOptions.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewOptions.cs index 8fa082d71a..d68466cd14 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewOptions.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IFolderViewOptions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3CC974D2-B302-4D36-AD3E-06D93F695D3F")] [NativeTypeName("struct IFolderViewOptions : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderViewOptions : IFolderViewOptions.Interface +public unsafe partial struct IFolderViewOptions : IFolderViewOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderViewOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler.cs index 2aed7790ec..1f9d028faa 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C1FB73D0-EC3A-4BA2-B512-8CDB9187B6D1")] [NativeTypeName("struct IHWEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHWEventHandler : IHWEventHandler.Interface +public unsafe partial struct IHWEventHandler : IHWEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHWEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler2.cs index d4f3d42d1c..062b364e52 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IHWEventHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CFCC809F-295D-42E8-9FFC-424B33C487E6")] [NativeTypeName("struct IHWEventHandler2 : IHWEventHandler")] [NativeInheritance("IHWEventHandler")] -public unsafe partial struct IHWEventHandler2 : IHWEventHandler2.Interface +public unsafe partial struct IHWEventHandler2 : IHWEventHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHWEventHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IImageRecompress.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IImageRecompress.cs index e0cfd3f223..bdcc2ee944 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IImageRecompress.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IImageRecompress.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("505F1513-6B3E-4892-A272-59F8889A4D3E")] [NativeTypeName("struct IImageRecompress : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IImageRecompress : IImageRecompress.Interface +public unsafe partial struct IImageRecompress : IImageRecompress.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IImageRecompress)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IInsertItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IInsertItem.cs index 6bfb85574f..4b026dbd02 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IInsertItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IInsertItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D2B57227-3D23-4B95-93C0-492BD454C356")] [NativeTypeName("struct IInsertItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInsertItem : IInsertItem.Interface +public unsafe partial struct IInsertItem : IInsertItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInsertItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeAccessible.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeAccessible.cs index 893311b27b..c87548ac20 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeAccessible.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeAccessible.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71F312DE-43ED-4190-8477-E9536B82350B")] [NativeTypeName("struct INameSpaceTreeAccessible : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeAccessible : INameSpaceTreeAccessible.Interface +public unsafe partial struct INameSpaceTreeAccessible : INameSpaceTreeAccessible.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeAccessible)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControl2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControl2.cs index 7d8fff1b27..880458b424 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControl2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControl2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7CC7AED8-290E-49BC-8945-C1401CC9306C")] [NativeTypeName("struct INameSpaceTreeControl2 : INameSpaceTreeControl")] [NativeInheritance("INameSpaceTreeControl")] -public unsafe partial struct INameSpaceTreeControl2 : INameSpaceTreeControl2.Interface +public unsafe partial struct INameSpaceTreeControl2 : INameSpaceTreeControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlCustomDraw.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlCustomDraw.cs index 0bb7f3ab42..539ef618a2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlCustomDraw.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlCustomDraw.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2D3BA758-33EE-42D5-BB7B-5F3431D86C78")] [NativeTypeName("struct INameSpaceTreeControlCustomDraw : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeControlCustomDraw : INameSpaceTreeControlCustomDraw.Interface +public unsafe partial struct INameSpaceTreeControlCustomDraw : INameSpaceTreeControlCustomDraw.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControlCustomDraw)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlDropHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlDropHandler.cs index 0f154d38eb..aa3ba3b755 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlDropHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlDropHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F9C665D6-C2F2-4C19-BF33-8322D7352F51")] [NativeTypeName("struct INameSpaceTreeControlDropHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeControlDropHandler : INameSpaceTreeControlDropHandler.Interface +public unsafe partial struct INameSpaceTreeControlDropHandler : INameSpaceTreeControlDropHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControlDropHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlEvents.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlEvents.cs index c42f5b2c3e..b459335b46 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/INameSpaceTreeControlEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("93D77985-B3D8-4484-8318-672CDDA002CE")] [NativeTypeName("struct INameSpaceTreeControlEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeControlEvents : INameSpaceTreeControlEvents.Interface +public unsafe partial struct INameSpaceTreeControlEvents : INameSpaceTreeControlEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControlEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IPreviousVersionsInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IPreviousVersionsInfo.cs index 2d0b07e7d9..9643e84302 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IPreviousVersionsInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IPreviousVersionsInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("76E54780-AD74-48E3-A695-3BA9A0AFF10D")] [NativeTypeName("struct IPreviousVersionsInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPreviousVersionsInfo : IPreviousVersionsInfo.Interface +public unsafe partial struct IPreviousVersionsInfo : IPreviousVersionsInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPreviousVersionsInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IPublishingWizard.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IPublishingWizard.cs index d82bfbd8c0..0e4663b3d1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IPublishingWizard.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IPublishingWizard.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA9198BB-CCEC-472D-BEED-19A4F6733F7A")] [NativeTypeName("struct IPublishingWizard : IWizardExtension")] [NativeInheritance("IWizardExtension")] -public unsafe partial struct IPublishingWizard : IPublishingWizard.Interface +public unsafe partial struct IPublishingWizard : IPublishingWizard.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPublishingWizard)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCancelAutoPlay.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCancelAutoPlay.cs index e0c2cba7e5..caa3f74fa6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCancelAutoPlay.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCancelAutoPlay.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DDEFE873-6997-4E68-BE26-39B633ADBE12")] [NativeTypeName("struct IQueryCancelAutoPlay : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueryCancelAutoPlay : IQueryCancelAutoPlay.Interface +public unsafe partial struct IQueryCancelAutoPlay : IQueryCancelAutoPlay.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryCancelAutoPlay)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCodePage.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCodePage.cs index b1bfb297dc..8e5d3e47d2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCodePage.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IQueryCodePage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C7B236CE-EE80-11D0-985F-006008059382")] [NativeTypeName("struct IQueryCodePage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueryCodePage : IQueryCodePage.Interface +public unsafe partial struct IQueryCodePage : IQueryCodePage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryCodePage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IResultsFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IResultsFolder.cs index a31c7e1c1c..ea36e5f313 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IResultsFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IResultsFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("96E5AE6D-6AE1-4B1C-900C-C6480EAA8828")] [NativeTypeName("struct IResultsFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IResultsFolder : IResultsFolder.Interface +public unsafe partial struct IResultsFolder : IResultsFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IResultsFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ISearchBoxInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ISearchBoxInfo.cs index 6213acc465..5985ec0e28 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ISearchBoxInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ISearchBoxInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6AF6E03F-D664-4EF4-9626-F7E0ED36755E")] [NativeTypeName("struct ISearchBoxInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISearchBoxInfo : ISearchBoxInfo.Interface +public unsafe partial struct ISearchBoxInfo : ISearchBoxInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISearchBoxInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IShellRunDll.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IShellRunDll.cs index 9ef22cc614..3d18b26c03 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IShellRunDll.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IShellRunDll.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FCE4BDE0-4B68-4B80-8E9C-7426315A7388")] [NativeTypeName("struct IShellRunDll : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellRunDll : IShellRunDll.Interface +public unsafe partial struct IShellRunDll : IShellRunDll.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellRunDll)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IShellView3.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IShellView3.cs index 8925cc6c2b..f4adf17a30 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IShellView3.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IShellView3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EC39FA88-F8AF-41C5-8421-38BED28F4673")] [NativeTypeName("struct IShellView3 : IShellView2")] [NativeInheritance("IShellView2")] -public unsafe partial struct IShellView3 : IShellView3.Interface +public unsafe partial struct IShellView3 : IShellView3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellView3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IStartMenuPinnedList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IStartMenuPinnedList.cs index 61fe3948f6..4f64a3097a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IStartMenuPinnedList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IStartMenuPinnedList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4CD19ADA-25A5-4A32-B3B7-347BEE5BE36B")] [NativeTypeName("struct IStartMenuPinnedList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStartMenuPinnedList : IStartMenuPinnedList.Interface +public unsafe partial struct IStartMenuPinnedList : IStartMenuPinnedList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStartMenuPinnedList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderBanners.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderBanners.cs index aa77d64bbc..68a1f2fca5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderBanners.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderBanners.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5EFB46D7-47C0-4B68-ACDA-DED47C90EC91")] [NativeTypeName("struct IStorageProviderBanners : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStorageProviderBanners : IStorageProviderBanners.Interface +public unsafe partial struct IStorageProviderBanners : IStorageProviderBanners.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageProviderBanners)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderCopyHook.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderCopyHook.cs index a23dec136a..247c9c6144 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderCopyHook.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IStorageProviderCopyHook.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BF992A9-AF7A-4DBA-B2E5-4D080B1ECBC6")] [NativeTypeName("struct IStorageProviderCopyHook : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStorageProviderCopyHook : IStorageProviderCopyHook.Interface +public unsafe partial struct IStorageProviderCopyHook : IStorageProviderCopyHook.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageProviderCopyHook)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamAsync.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamAsync.cs index 0691e47e82..8c6e83e63d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamAsync.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamAsync.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FE0B6665-E0CA-49B9-A178-2B5CB48D92A5")] [NativeTypeName("struct IStreamAsync : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct IStreamAsync : IStreamAsync.Interface +public unsafe partial struct IStreamAsync : IStreamAsync.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamAsync)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamUnbufferedInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamUnbufferedInfo.cs index 599130075d..ebac373802 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamUnbufferedInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IStreamUnbufferedInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8A68FDDA-1FDC-4C20-8CEB-416643B5A625")] [NativeTypeName("struct IStreamUnbufferedInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStreamUnbufferedInfo : IStreamUnbufferedInfo.Interface +public unsafe partial struct IStreamUnbufferedInfo : IStreamUnbufferedInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamUnbufferedInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ITrayDeskBand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ITrayDeskBand.cs index 0d920b64fe..b8b3c51107 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ITrayDeskBand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ITrayDeskBand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6D67E846-5B9C-4DB8-9CBC-DDE12F4254F1")] [NativeTypeName("struct ITrayDeskBand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITrayDeskBand : ITrayDeskBand.Interface +public unsafe partial struct ITrayDeskBand : ITrayDeskBand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITrayDeskBand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IUseToBrowseItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IUseToBrowseItem.cs index 5b8c7b3e7c..cfe0801ffb 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IUseToBrowseItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IUseToBrowseItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("05EDDA5C-98A3-4717-8ADB-C5E7DA991EB1")] [NativeTypeName("struct IUseToBrowseItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IUseToBrowseItem : IUseToBrowseItem.Interface +public unsafe partial struct IUseToBrowseItem : IUseToBrowseItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUseToBrowseItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserAccountChangeCallback.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserAccountChangeCallback.cs index c0e9530df2..c2dd6f2a3d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserAccountChangeCallback.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserAccountChangeCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A561E69A-B4B8-4113-91A5-64C6BCCA3430")] [NativeTypeName("struct IUserAccountChangeCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUserAccountChangeCallback : IUserAccountChangeCallback.Interface +public unsafe partial struct IUserAccountChangeCallback : IUserAccountChangeCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserAccountChangeCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotification2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotification2.cs index 8d1ab4dced..2561eecc95 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotification2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotification2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("215913CC-57EB-4FAB-AB5A-E5FA7BEA2A6C")] [NativeTypeName("struct IUserNotification2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUserNotification2 : IUserNotification2.Interface +public unsafe partial struct IUserNotification2 : IUserNotification2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserNotification2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotificationCallback.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotificationCallback.cs index 23ff6a74e7..e71a2e0ad8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotificationCallback.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IUserNotificationCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("19108294-0441-4AFF-8013-FA0A730B0BEA")] [NativeTypeName("struct IUserNotificationCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUserNotificationCallback : IUserNotificationCallback.Interface +public unsafe partial struct IUserNotificationCallback : IUserNotificationCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserNotificationCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IVisualProperties.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IVisualProperties.cs index 0800707809..fa0e62b90b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IVisualProperties.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IVisualProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E693CF68-D967-4112-8763-99172AEE5E5A")] [NativeTypeName("struct IVisualProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVisualProperties : IVisualProperties.Interface +public unsafe partial struct IVisualProperties : IVisualProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVisualProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IWebWizardExtension.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IWebWizardExtension.cs index ebf80fdd4e..41c376d11c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IWebWizardExtension.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IWebWizardExtension.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E6B3F66-98D1-48C0-A222-FBDE74E2FBC5")] [NativeTypeName("struct IWebWizardExtension : IWizardExtension")] [NativeInheritance("IWizardExtension")] -public unsafe partial struct IWebWizardExtension : IWebWizardExtension.Interface +public unsafe partial struct IWebWizardExtension : IWebWizardExtension.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebWizardExtension)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardExtension.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardExtension.cs index e5a26ee233..bab7e992ea 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardExtension.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardExtension.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C02EA696-86CC-491E-9B23-74394A0444A8")] [NativeTypeName("struct IWizardExtension : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWizardExtension : IWizardExtension.Interface +public unsafe partial struct IWizardExtension : IWizardExtension.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWizardExtension)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardSite.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardSite.cs index 5b03b695a4..fa68a97fb7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardSite.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IWizardSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("88960F5B-422F-4E7B-8013-73415381C3C3")] [NativeTypeName("struct IWizardSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWizardSite : IWizardSite.Interface +public unsafe partial struct IWizardSite : IWizardSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWizardSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ImageProperties.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ImageProperties.cs index a5620b0d67..30fe27d368 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ImageProperties.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ImageProperties.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7AB770C7-0E23-4D7A-8AA2-19BFAD479829")] -public partial struct ImageProperties +public unsafe partial struct ImageProperties : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ImageProperties)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/ImageRecompress.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/ImageRecompress.cs index ea6ed51680..a2214464e2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/ImageRecompress.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/ImageRecompress.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6E33091C-D2F8-4740-B55E-2E11D1477A2C")] -public partial struct ImageRecompress +public unsafe partial struct ImageRecompress : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ImageRecompress)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/InternetPrintOrdering.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/InternetPrintOrdering.cs index 01ab153d20..3c64b7f3e9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/InternetPrintOrdering.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/InternetPrintOrdering.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("ADD36AA8-751A-4579-A266-D66F5202CCBB")] -public partial struct InternetPrintOrdering +public unsafe partial struct InternetPrintOrdering : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_InternetPrintOrdering)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/MergedCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/MergedCategorizer.cs index 08ad86744a..21938d5c04 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/MergedCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/MergedCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8E827C11-33E7-4BC1-B242-8CD9A1C2B304")] -public partial struct MergedCategorizer +public unsafe partial struct MergedCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_MergedCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/NamespaceTreeControl.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/NamespaceTreeControl.cs index 01f50f4d15..5599707689 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/NamespaceTreeControl.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/NamespaceTreeControl.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AE054212-3535-4430-83ED-D501AA6680E6")] -public partial struct NamespaceTreeControl +public unsafe partial struct NamespaceTreeControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NamespaceTreeControl)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/PreviousVersions.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/PreviousVersions.cs index 4d188a3fba..42c76a8598 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/PreviousVersions.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/PreviousVersions.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("596AB062-B4D2-4215-9F74-E9109B0A8153")] -public partial struct PreviousVersions +public unsafe partial struct PreviousVersions : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PreviousVersions)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/PublishDropTarget.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/PublishDropTarget.cs index 947a8b2e20..725e160b35 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/PublishDropTarget.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/PublishDropTarget.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CC6EEFFB-43F6-46C5-9619-51D571967F7D")] -public partial struct PublishDropTarget +public unsafe partial struct PublishDropTarget : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PublishDropTarget)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/PublishingWizard.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/PublishingWizard.cs index 010c0032cb..c1bd3b6344 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/PublishingWizard.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/PublishingWizard.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6B33163C-76A5-4B6C-BF21-45DE9CD503A1")] -public partial struct PublishingWizard +public unsafe partial struct PublishingWizard : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PublishingWizard)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/QueryCancelAutoPlay.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/QueryCancelAutoPlay.cs index 125f6aefb0..a9abaf88eb 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/QueryCancelAutoPlay.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/QueryCancelAutoPlay.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("331F1768-05A9-4DDD-B86E-DAE34DDC998A")] -public partial struct QueryCancelAutoPlay +public unsafe partial struct QueryCancelAutoPlay : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_QueryCancelAutoPlay)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/StartMenuPin.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/StartMenuPin.cs index dd3c9312db..461b6e32c7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/StartMenuPin.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/StartMenuPin.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A2A9545D-A0C2-42B4-9708-A0B2BADD77C8")] -public partial struct StartMenuPin +public unsafe partial struct StartMenuPin : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_StartMenuPin)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/StorageProviderBanners.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/StorageProviderBanners.cs index c9dc96d43e..6e3172163a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/StorageProviderBanners.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/StorageProviderBanners.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7CCDF9F4-E576-455A-8BC7-F6EC68D6F063")] -public partial struct StorageProviderBanners +public unsafe partial struct StorageProviderBanners : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_StorageProviderBanners)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/TimeCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/TimeCategorizer.cs index 85974ed2c5..46ea56c39f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/TimeCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/TimeCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3BB4118F-DDFD-4D30-A348-9FB5D6BF1AFE")] -public partial struct TimeCategorizer +public unsafe partial struct TimeCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TimeCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/TrayBandSiteService.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/TrayBandSiteService.cs index 90a07dc025..8ceef4cae8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/TrayBandSiteService.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/TrayBandSiteService.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F60AD0A0-E5E1-45CB-B51A-E15B9F8B2934")] -public partial struct TrayBandSiteService +public unsafe partial struct TrayBandSiteService : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TrayBandSiteService)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/TrayDeskBand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/TrayDeskBand.cs index 9960a88d0b..07031f2a7f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/TrayDeskBand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/TrayDeskBand.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E6442437-6C68-4F52-94DD-2CFED267EFB9")] -public partial struct TrayDeskBand +public unsafe partial struct TrayDeskBand : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TrayDeskBand)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/VirtualDesktopManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/VirtualDesktopManager.cs index 3095967404..3699bd2c7a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/VirtualDesktopManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/VirtualDesktopManager.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AA509086-5CA9-4C25-8F95-589D3C07B48A")] -public partial struct VirtualDesktopManager +public unsafe partial struct VirtualDesktopManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_VirtualDesktopManager)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/WebWizardHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/WebWizardHost.cs index a4a4ee0a81..a31fac7327 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/WebWizardHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/WebWizardHost.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C827F149-55C1-4D28-935E-57E47CAED973")] -public partial struct WebWizardHost +public unsafe partial struct WebWizardHost : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WebWizardHost)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppShellVerbHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppShellVerbHandler.cs index 4dbb353f08..c66e09e48e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppShellVerbHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppShellVerbHandler.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4ED3A719-CEA8-4BD9-910D-E252F997AFC2")] -public partial struct AppShellVerbHandler +public unsafe partial struct AppShellVerbHandler : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppShellVerbHandler)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppStartupLink.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppStartupLink.cs index 578504ac8d..e51543dd00 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppStartupLink.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppStartupLink.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("273EB5E7-88B0-4843-BFEF-E2C81D43AAE5")] -public partial struct AppStartupLink +public unsafe partial struct AppStartupLink : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppStartupLink)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppVisibility.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppVisibility.cs index 34f5ea3cf1..f60c24fcc1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppVisibility.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/AppVisibility.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7E5FE3D9-985F-4908-91F9-EE19F9FD1514")] -public partial struct AppVisibility +public unsafe partial struct AppVisibility : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AppVisibility)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationActivationManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationActivationManager.cs index 3124b9d046..eeb197e32a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationActivationManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationActivationManager.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")] -public partial struct ApplicationActivationManager +public unsafe partial struct ApplicationActivationManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationActivationManager)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationAssociationRegistration.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationAssociationRegistration.cs index 84c7615f1f..45602438d1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationAssociationRegistration.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationAssociationRegistration.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("591209C7-767B-42B2-9FBA-44EE4615F2C7")] -public partial struct ApplicationAssociationRegistration +public unsafe partial struct ApplicationAssociationRegistration : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationAssociationRegistration)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDesignModeSettings.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDesignModeSettings.cs index 51e0d04ba7..6c93a21e4d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDesignModeSettings.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDesignModeSettings.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("958A6FB5-DCB2-4FAF-AAFD-7FB054AD1A3B")] -public partial struct ApplicationDesignModeSettings +public unsafe partial struct ApplicationDesignModeSettings : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationDesignModeSettings)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDestinations.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDestinations.cs index da7f19e22b..e9fe3d4a74 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDestinations.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDestinations.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("86C14003-4D6B-4EF3-A7B4-0506663B2E68")] -public partial struct ApplicationDestinations +public unsafe partial struct ApplicationDestinations : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationDestinations)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDocumentLists.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDocumentLists.cs index 8384da7bd4..02c250135c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDocumentLists.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ApplicationDocumentLists.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("86BEC222-30F2-47E0-9F25-60D11CD75C28")] -public partial struct ApplicationDocumentLists +public unsafe partial struct ApplicationDocumentLists : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ApplicationDocumentLists)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DefFolderMenu.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DefFolderMenu.cs index 3f522e0a40..7daf89c8b9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DefFolderMenu.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DefFolderMenu.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C63382BE-7933-48D0-9AC8-85FB46BE2FDD")] -public partial struct DefFolderMenu +public unsafe partial struct DefFolderMenu : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DefFolderMenu)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DesktopWallpaper.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DesktopWallpaper.cs index 4a2ef60076..738501e186 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DesktopWallpaper.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DesktopWallpaper.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C2CF3110-460E-4FC1-B9D0-8A1C0C9CC4BD")] -public partial struct DesktopWallpaper +public unsafe partial struct DesktopWallpaper : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DesktopWallpaper)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DestinationList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DestinationList.cs index aa0ceb53a6..e1db8c10db 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DestinationList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DestinationList.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("77F10CF0-3DB5-4966-B520-B7C54FD35ED6")] -public partial struct DestinationList +public unsafe partial struct DestinationList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DestinationList)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveSizeCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveSizeCategorizer.cs index fc22c3648b..5ef72720e6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveSizeCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveSizeCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("94357B53-CA29-4B78-83AE-E8FE7409134F")] -public partial struct DriveSizeCategorizer +public unsafe partial struct DriveSizeCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DriveSizeCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveTypeCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveTypeCategorizer.cs index 6b1fae5541..b9e75dd959 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveTypeCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DriveTypeCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B0A8F3CF-4333-4BAB-8873-1CCB1CADA48B")] -public partial struct DriveTypeCategorizer +public unsafe partial struct DriveTypeCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DriveTypeCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/EnumerableObjectCollection.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/EnumerableObjectCollection.cs index c8b2e8c3c6..95544449fd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/EnumerableObjectCollection.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/EnumerableObjectCollection.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2D3468C1-36A7-43B6-AC24-D3F02FD9607A")] -public partial struct EnumerableObjectCollection +public unsafe partial struct EnumerableObjectCollection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_EnumerableObjectCollection)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ExecuteUnknown.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ExecuteUnknown.cs index 5fc9a5d4e7..1f561ca048 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ExecuteUnknown.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ExecuteUnknown.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E44E9428-BDBC-4987-A099-40DC8FD255E7")] -public partial struct ExecuteUnknown +public unsafe partial struct ExecuteUnknown : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ExecuteUnknown)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOpenDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOpenDialog.cs index 1e2663a73c..d8ec0fd284 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOpenDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOpenDialog.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7")] -public partial struct FileOpenDialog +public unsafe partial struct FileOpenDialog : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FileOpenDialog)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOperation.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOperation.cs index fe7dd93c95..aec8a03e31 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOperation.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileOperation.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3AD05575-8857-4850-9277-11B85BDB8E09")] -public partial struct FileOperation +public unsafe partial struct FileOperation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FileOperation)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileSaveDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileSaveDialog.cs index 1dad7831f6..57f09402da 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileSaveDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FileSaveDialog.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C0B4E2F3-BA21-4773-8DBA-335EC946EB8B")] -public partial struct FileSaveDialog +public unsafe partial struct FileSaveDialog : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FileSaveDialog)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FrameworkInputPane.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FrameworkInputPane.cs index 9b26b5eb1e..17f1805448 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FrameworkInputPane.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FrameworkInputPane.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D5120AA3-46BA-44C5-822D-CA8092C1FC72")] -public partial struct FrameworkInputPane +public unsafe partial struct FrameworkInputPane : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FrameworkInputPane)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FreeSpaceCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FreeSpaceCategorizer.cs index 21c815874a..9204ee0463 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FreeSpaceCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FreeSpaceCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B5607793-24AC-44C7-82E2-831726AA6CB7")] -public partial struct FreeSpaceCategorizer +public unsafe partial struct FreeSpaceCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FreeSpaceCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/HomeGroup.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/HomeGroup.cs index 7f49f261d4..a05b8fdc3a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/HomeGroup.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/HomeGroup.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DE77BA04-3C92-4D11-A1A5-42352A53E0E3")] -public partial struct HomeGroup +public unsafe partial struct HomeGroup : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_HomeGroup)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgress.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgress.cs index 8f7d48fd63..d542fadeaa 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgress.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgress.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("49FF1173-EADC-446D-9285-156453A6431C")] [NativeTypeName("struct IActionProgress : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActionProgress : IActionProgress.Interface +public unsafe partial struct IActionProgress : IActionProgress.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActionProgress)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgressDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgressDialog.cs index c95e7efe82..0ab5756ebb 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgressDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IActionProgressDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("49FF1172-EADC-446D-9285-156453A6431C")] [NativeTypeName("struct IActionProgressDialog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActionProgressDialog : IActionProgressDialog.Interface +public unsafe partial struct IActionProgressDialog : IActionProgressDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActionProgressDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppActivationUIInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppActivationUIInfo.cs index 60d7a6fc58..ee8510ab1d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppActivationUIInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppActivationUIInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ABAD189D-9FA3-4278-B3CA-8CA448A88DCB")] [NativeTypeName("struct IAppActivationUIInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppActivationUIInfo : IAppActivationUIInfo.Interface +public unsafe partial struct IAppActivationUIInfo : IAppActivationUIInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppActivationUIInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibility.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibility.cs index 746c44a299..7e9c93bd96 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibility.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibility.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2246EA2D-CAEA-4444-A3C4-6DE827E44313")] [NativeTypeName("struct IAppVisibility : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppVisibility : IAppVisibility.Interface +public unsafe partial struct IAppVisibility : IAppVisibility.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppVisibility)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibilityEvents.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibilityEvents.cs index 7c097dd7d9..f820346566 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibilityEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAppVisibilityEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6584CE6B-7D82-49C2-89C9-C6BC02BA8C38")] [NativeTypeName("struct IAppVisibilityEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppVisibilityEvents : IAppVisibilityEvents.Interface +public unsafe partial struct IAppVisibilityEvents : IAppVisibilityEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppVisibilityEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationActivationManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationActivationManager.cs index 7643be0a25..3546d8853f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationActivationManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationActivationManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2E941141-7F97-4756-BA1D-9DECDE894A3D")] [NativeTypeName("struct IApplicationActivationManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationActivationManager : IApplicationActivationManager.Interface +public unsafe partial struct IApplicationActivationManager : IApplicationActivationManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationActivationManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationAssociationRegistration.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationAssociationRegistration.cs index 80f0c2f379..389a8e4884 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationAssociationRegistration.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationAssociationRegistration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4E530B0A-E611-4C77-A3AC-9031D022281B")] [NativeTypeName("struct IApplicationAssociationRegistration : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationAssociationRegistration : IApplicationAssociationRegistration.Interface +public unsafe partial struct IApplicationAssociationRegistration : IApplicationAssociationRegistration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationAssociationRegistration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings.cs index 0f4026be00..cccd3fbaf5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2A3DEE9A-E31D-46D6-8508-BCC597DB3557")] [NativeTypeName("struct IApplicationDesignModeSettings : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationDesignModeSettings : IApplicationDesignModeSettings.Interface +public unsafe partial struct IApplicationDesignModeSettings : IApplicationDesignModeSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationDesignModeSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings2.cs index 72f15c2d10..ca2ab4817c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDesignModeSettings2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("490514E1-675A-4D6E-A58D-E54901B4CA2F")] [NativeTypeName("struct IApplicationDesignModeSettings2 : IApplicationDesignModeSettings")] [NativeInheritance("IApplicationDesignModeSettings")] -public unsafe partial struct IApplicationDesignModeSettings2 : IApplicationDesignModeSettings2.Interface +public unsafe partial struct IApplicationDesignModeSettings2 : IApplicationDesignModeSettings2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationDesignModeSettings2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDestinations.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDestinations.cs index e16ad0c190..f0aed3e10b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDestinations.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDestinations.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("12337D35-94C6-48A0-BCE7-6A9C69D4D600")] [NativeTypeName("struct IApplicationDestinations : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationDestinations : IApplicationDestinations.Interface +public unsafe partial struct IApplicationDestinations : IApplicationDestinations.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationDestinations)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDocumentLists.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDocumentLists.cs index 54275b5f1d..d0be2ae06f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDocumentLists.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IApplicationDocumentLists.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3C594F9F-9F30-47A1-979A-C9E83D3D0A06")] [NativeTypeName("struct IApplicationDocumentLists : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IApplicationDocumentLists : IApplicationDocumentLists.Interface +public unsafe partial struct IApplicationDocumentLists : IApplicationDocumentLists.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApplicationDocumentLists)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandler.cs index af267d13fa..1160e2971d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F04061AC-1659-4A3F-A954-775AA57FC083")] [NativeTypeName("struct IAssocHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAssocHandler : IAssocHandler.Interface +public unsafe partial struct IAssocHandler : IAssocHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAssocHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandlerInvoker.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandlerInvoker.cs index cac0499e29..ae0f6bfbc0 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandlerInvoker.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAssocHandlerInvoker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("92218CAB-ECAA-4335-8133-807FD234C2EE")] [NativeTypeName("struct IAssocHandlerInvoker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAssocHandlerInvoker : IAssocHandlerInvoker.Interface +public unsafe partial struct IAssocHandlerInvoker : IAssocHandlerInvoker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAssocHandlerInvoker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAttachmentExecute.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAttachmentExecute.cs index 944d003818..035eda8373 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAttachmentExecute.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IAttachmentExecute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("73DB1241-1E85-4581-8E4F-A81E1D0F8C57")] [NativeTypeName("struct IAttachmentExecute : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAttachmentExecute : IAttachmentExecute.Interface +public unsafe partial struct IAttachmentExecute : IAttachmentExecute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAttachmentExecute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBandSite.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBandSite.cs index 0528fc71c6..8d5965726a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBandSite.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBandSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4CF504B0-DE96-11D0-8B3F-00A0C911E8E5")] [NativeTypeName("struct IBandSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBandSite : IBandSite.Interface +public unsafe partial struct IBandSite : IBandSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBandSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBannerNotificationHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBannerNotificationHandler.cs index acbc4673b1..48bf1efa27 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBannerNotificationHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBannerNotificationHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8D7B2BA7-DB05-46A8-823C-D2B6DE08EE91")] [NativeTypeName("struct IBannerNotificationHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBannerNotificationHandler : IBannerNotificationHandler.Interface +public unsafe partial struct IBannerNotificationHandler : IBannerNotificationHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBannerNotificationHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBrowserFrameOptions.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBrowserFrameOptions.cs index a9959206cc..eb3ef269f2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBrowserFrameOptions.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IBrowserFrameOptions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("10DF43C8-1DBE-11D3-8B34-006097DF5BD4")] [NativeTypeName("struct IBrowserFrameOptions : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBrowserFrameOptions : IBrowserFrameOptions.Interface +public unsafe partial struct IBrowserFrameOptions : IBrowserFrameOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBrowserFrameOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategorizer.cs index 73ded2003c..e660cc16a9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategorizer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3B14589-9174-49A8-89A3-06A1AE2B9BA7")] [NativeTypeName("struct ICategorizer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICategorizer : ICategorizer.Interface +public unsafe partial struct ICategorizer : ICategorizer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICategorizer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategoryProvider.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategoryProvider.cs index 29d46dcc27..7767044003 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategoryProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICategoryProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9AF64809-5864-4C26-A720-C1F78C086EE3")] [NativeTypeName("struct ICategoryProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICategoryProvider : ICategoryProvider.Interface +public unsafe partial struct ICategoryProvider : ICategoryProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICategoryProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IColumnManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IColumnManager.cs index 2df368e206..e8d8a7cfce 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IColumnManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IColumnManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8EC27BB-3F3B-4042-B10A-4ACFD924D453")] [NativeTypeName("struct IColumnManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IColumnManager : IColumnManager.Interface +public unsafe partial struct IColumnManager : IColumnManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IColumnManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser.cs index 1f3f0d2446..c2f10d1af6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F1-0000-0000-C000-000000000046")] [NativeTypeName("struct ICommDlgBrowser : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICommDlgBrowser : ICommDlgBrowser.Interface +public unsafe partial struct ICommDlgBrowser : ICommDlgBrowser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICommDlgBrowser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser2.cs index a575d5a888..37fbfda348 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICommDlgBrowser2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("10339516-2894-11D2-9039-00C04F8EEB3E")] [NativeTypeName("struct ICommDlgBrowser2 : ICommDlgBrowser")] [NativeInheritance("ICommDlgBrowser")] -public unsafe partial struct ICommDlgBrowser2 : ICommDlgBrowser2.Interface +public unsafe partial struct ICommDlgBrowser2 : ICommDlgBrowser2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICommDlgBrowser2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContactManagerInterop.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContactManagerInterop.cs index 50a0a10134..f02aa95bbd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContactManagerInterop.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContactManagerInterop.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("99EACBA7-E073-43B6-A896-55AFE48A0833")] [NativeTypeName("struct IContactManagerInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContactManagerInterop : IContactManagerInterop.Interface +public unsafe partial struct IContactManagerInterop : IContactManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContactManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu.cs index d1b02f88ed..785ddbfead 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E4-0000-0000-C000-000000000046")] [NativeTypeName("struct IContextMenu : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContextMenu : IContextMenu.Interface +public unsafe partial struct IContextMenu : IContextMenu.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContextMenu)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu2.cs index e42a6f0ba8..cf62ac1fae 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F4-0000-0000-C000-000000000046")] [NativeTypeName("struct IContextMenu2 : IContextMenu")] [NativeInheritance("IContextMenu")] -public unsafe partial struct IContextMenu2 : IContextMenu2.Interface +public unsafe partial struct IContextMenu2 : IContextMenu2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContextMenu2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu3.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu3.cs index fbc3a844e3..0f8da6844c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu3.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenu3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BCFCE0A0-EC17-11D0-8D10-00A0C90F2719")] [NativeTypeName("struct IContextMenu3 : IContextMenu2")] [NativeInheritance("IContextMenu2")] -public unsafe partial struct IContextMenu3 : IContextMenu3.Interface +public unsafe partial struct IContextMenu3 : IContextMenu3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContextMenu3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuCB.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuCB.cs index c7648fea50..90af1bbc32 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuCB.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuCB.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3409E930-5A39-11D1-83FA-00A0C90DC849")] [NativeTypeName("struct IContextMenuCB : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContextMenuCB : IContextMenuCB.Interface +public unsafe partial struct IContextMenuCB : IContextMenuCB.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContextMenuCB)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuSite.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuSite.cs index 24437caf3e..43144a6c1a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuSite.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IContextMenuSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0811AEBE-0B87-4C54-9E72-548CF649016B")] [NativeTypeName("struct IContextMenuSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContextMenuSite : IContextMenuSite.Interface +public unsafe partial struct IContextMenuSite : IContextMenuSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContextMenuSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreateProcessInputs.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreateProcessInputs.cs index 60b663d081..642ca82fd7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreateProcessInputs.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreateProcessInputs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F6EF6140-E26F-4D82-BAC4-E9BA5FD239A8")] [NativeTypeName("struct ICreateProcessInputs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateProcessInputs : ICreateProcessInputs.Interface +public unsafe partial struct ICreateProcessInputs : ICreateProcessInputs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateProcessInputs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreatingProcess.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreatingProcess.cs index 5ce74cb2bc..e9905c045e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreatingProcess.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICreatingProcess.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C2B937A9-3110-4398-8A56-F34C6342D244")] [NativeTypeName("struct ICreatingProcess : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreatingProcess : ICreatingProcess.Interface +public unsafe partial struct ICreatingProcess : ICreatingProcess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreatingProcess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICurrentItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICurrentItem.cs index 94818d185c..b8c18d35d3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICurrentItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICurrentItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("240A7174-D653-4A1D-A6D3-D4943CFBFE3D")] [NativeTypeName("struct ICurrentItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct ICurrentItem : ICurrentItem.Interface +public unsafe partial struct ICurrentItem : ICurrentItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICurrentItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICustomDestinationList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICustomDestinationList.cs index cdf717f19f..d558a425c5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICustomDestinationList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ICustomDestinationList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6332DEBF-87B5-4670-90C0-5E57B408A49E")] [NativeTypeName("struct ICustomDestinationList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICustomDestinationList : ICustomDestinationList.Interface +public unsafe partial struct ICustomDestinationList : ICustomDestinationList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICustomDestinationList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataObjectProvider.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataObjectProvider.cs index f545614996..3704786b7f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataObjectProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataObjectProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3D25F6D6-4B2A-433C-9184-7C33AD35D001")] [NativeTypeName("struct IDataObjectProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDataObjectProvider : IDataObjectProvider.Interface +public unsafe partial struct IDataObjectProvider : IDataObjectProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataObjectProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataTransferManagerInterop.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataTransferManagerInterop.cs index c6e3541c2a..79f201b064 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataTransferManagerInterop.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDataTransferManagerInterop.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3A3DCD6C-3EAB-43DC-BCDE-45671CE800C8")] [NativeTypeName("struct IDataTransferManagerInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDataTransferManagerInterop : IDataTransferManagerInterop.Interface +public unsafe partial struct IDataTransferManagerInterop : IDataTransferManagerInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataTransferManagerInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultExtractIconInit.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultExtractIconInit.cs index d1b901c5e3..c0678efa8e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultExtractIconInit.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultExtractIconInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("41DED17D-D6B3-4261-997D-88C60E4B1D58")] [NativeTypeName("struct IDefaultExtractIconInit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDefaultExtractIconInit : IDefaultExtractIconInit.Interface +public unsafe partial struct IDefaultExtractIconInit : IDefaultExtractIconInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDefaultExtractIconInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultFolderMenuInitialize.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultFolderMenuInitialize.cs index 7129a7615f..6754b2f6e4 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultFolderMenuInitialize.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDefaultFolderMenuInitialize.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7690AA79-F8FC-4615-A327-36F7D18F5D91")] [NativeTypeName("struct IDefaultFolderMenuInitialize : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDefaultFolderMenuInitialize : IDefaultFolderMenuInitialize.Interface +public unsafe partial struct IDefaultFolderMenuInitialize : IDefaultFolderMenuInitialize.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDefaultFolderMenuInitialize)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateFolder.cs index f6f1e2660a..854e320a9e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ADD8BA80-002B-11D0-8F0F-00C04FD7D062")] [NativeTypeName("struct IDelegateFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDelegateFolder : IDelegateFolder.Interface +public unsafe partial struct IDelegateFolder : IDelegateFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDelegateFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateItem.cs index 9aaf2d37ca..a4a7866b3b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDelegateItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3C5A1C94-C951-4CB7-BB6D-3B93F30CCE93")] [NativeTypeName("struct IDelegateItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IDelegateItem : IDelegateItem.Interface +public unsafe partial struct IDelegateItem : IDelegateItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDelegateItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBand.cs index 1a7fa31e15..670ecb0b89 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB0FE172-1A3A-11D0-89B3-00A0C90A90AC")] [NativeTypeName("struct IDeskBand : IDockingWindow")] [NativeInheritance("IDockingWindow")] -public unsafe partial struct IDeskBand : IDeskBand.Interface +public unsafe partial struct IDeskBand : IDeskBand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeskBand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBandInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBandInfo.cs index 0d6953eb5f..58911dfd81 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBandInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBandInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("77E425FC-CBF9-4307-BA6A-BB5727745661")] [NativeTypeName("struct IDeskBandInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDeskBandInfo : IDeskBandInfo.Interface +public unsafe partial struct IDeskBandInfo : IDeskBandInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeskBandInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBar.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBar.cs index 4a9f2a7caa..4420b9ee4a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBar.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDeskBar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB0FE173-1A3A-11D0-89B3-00A0C90A90AC")] [NativeTypeName("struct IDeskBar : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IDeskBar : IDeskBar.Interface +public unsafe partial struct IDeskBar : IDeskBar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeskBar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDesktopWallpaper.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDesktopWallpaper.cs index 0ec8188283..9fad1f4b86 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDesktopWallpaper.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDesktopWallpaper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B92B56A9-8B55-4E14-9A89-0199BBB6F93B")] [NativeTypeName("struct IDesktopWallpaper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDesktopWallpaper : IDesktopWallpaper.Interface +public unsafe partial struct IDesktopWallpaper : IDesktopWallpaper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDesktopWallpaper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDestinationStreamFactory.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDestinationStreamFactory.cs index 40bcbb2098..670ff1a12b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDestinationStreamFactory.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDestinationStreamFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8A87781B-39A7-4A1F-AAB3-A39B9C34A7D9")] [NativeTypeName("struct IDestinationStreamFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDestinationStreamFactory : IDestinationStreamFactory.Interface +public unsafe partial struct IDestinationStreamFactory : IDestinationStreamFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDestinationStreamFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDisplayItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDisplayItem.cs index b9a4afa6e5..42ec7a97c7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDisplayItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDisplayItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6FD5997-9F6B-4888-8703-94E80E8CDE3F")] [NativeTypeName("struct IDisplayItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IDisplayItem : IDisplayItem.Interface +public unsafe partial struct IDisplayItem : IDisplayItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDisplayItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDockingWindow.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDockingWindow.cs index a91a0a7d24..1221b1e610 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDockingWindow.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDockingWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("012DD920-7B26-11D0-8CA9-00A0C92DBFE8")] [NativeTypeName("struct IDockingWindow : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IDockingWindow : IDockingWindow.Interface +public unsafe partial struct IDockingWindow : IDockingWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDockingWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDragSourceHelper.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDragSourceHelper.cs index c93a7d348b..b7438f9c66 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDragSourceHelper.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDragSourceHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DE5BF786-477A-11D2-839D-00C04FD918D0")] [NativeTypeName("struct IDragSourceHelper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDragSourceHelper : IDragSourceHelper.Interface +public unsafe partial struct IDragSourceHelper : IDragSourceHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDragSourceHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDropTargetHelper.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDropTargetHelper.cs index 477f6752ca..52c151bdcf 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDropTargetHelper.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IDropTargetHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4657278B-411B-11D2-839A-00C04FD918D0")] [NativeTypeName("struct IDropTargetHelper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDropTargetHelper : IDropTargetHelper.Interface +public unsafe partial struct IDropTargetHelper : IDropTargetHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDropTargetHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumAssocHandlers.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumAssocHandlers.cs index 499a9598d8..48fe4e0528 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumAssocHandlers.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumAssocHandlers.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("973810AE-9599-4B88-9E4D-6EE98C9552DA")] [NativeTypeName("struct IEnumAssocHandlers : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumAssocHandlers : IEnumAssocHandlers.Interface +public unsafe partial struct IEnumAssocHandlers : IEnumAssocHandlers.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumAssocHandlers)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExplorerCommand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExplorerCommand.cs index f9af3bd8ff..cad8e10337 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExplorerCommand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExplorerCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A88826F8-186F-4987-AADE-EA0CEF8FBFE8")] [NativeTypeName("struct IEnumExplorerCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumExplorerCommand : IEnumExplorerCommand.Interface +public unsafe partial struct IEnumExplorerCommand : IEnumExplorerCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumExplorerCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExtraSearch.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExtraSearch.cs index 561ffbefff..767e9acb46 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExtraSearch.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumExtraSearch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E700BE1-9DB6-11D1-A1CE-00C04FD75D13")] [NativeTypeName("struct IEnumExtraSearch : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumExtraSearch : IEnumExtraSearch.Interface +public unsafe partial struct IEnumExtraSearch : IEnumExtraSearch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumExtraSearch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumFullIDList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumFullIDList.cs index 48bcc20c6f..a446a78320 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumFullIDList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumFullIDList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D0191542-7954-4908-BC06-B2360BBE45BA")] [NativeTypeName("struct IEnumFullIDList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumFullIDList : IEnumFullIDList.Interface +public unsafe partial struct IEnumFullIDList : IEnumFullIDList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumFullIDList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumIDList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumIDList.cs index 8298acc25c..9f773a3c8f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumIDList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumIDList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F2-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumIDList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumIDList : IEnumIDList.Interface +public unsafe partial struct IEnumIDList : IEnumIDList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumIDList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumObjects.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumObjects.cs index 756894fbb7..bc2a09b7cc 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumObjects.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumObjects.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C1C7E2E-2D0E-4059-831E-1E6F82335C2E")] [NativeTypeName("struct IEnumObjects : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumObjects : IEnumObjects.Interface +public unsafe partial struct IEnumObjects : IEnumObjects.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumObjects)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumResources.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumResources.cs index 9c2bdf5629..07e4d74851 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumResources.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumResources.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2DD81FE3-A83C-4DA9-A330-47249D345BA1")] [NativeTypeName("struct IEnumResources : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumResources : IEnumResources.Interface +public unsafe partial struct IEnumResources : IEnumResources.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumResources)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumShellItems.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumShellItems.cs index ae71ea0ac6..5289774673 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumShellItems.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEnumShellItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70629033-E363-4A28-A567-0DB78006E6D7")] [NativeTypeName("struct IEnumShellItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumShellItems : IEnumShellItems.Interface +public unsafe partial struct IEnumShellItems : IEnumShellItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumShellItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommand.cs index 3491d01613..e0908e1146 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7F9185B0-CB92-43C5-80A9-92277A4F7B54")] [NativeTypeName("struct IExecuteCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExecuteCommand : IExecuteCommand.Interface +public unsafe partial struct IExecuteCommand : IExecuteCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExecuteCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandApplicationHostEnvironment.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandApplicationHostEnvironment.cs index d3eefa3830..59a5bad9e2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandApplicationHostEnvironment.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandApplicationHostEnvironment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("18B21AA9-E184-4FF0-9F5E-F882D03771B3")] [NativeTypeName("struct IExecuteCommandApplicationHostEnvironment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExecuteCommandApplicationHostEnvironment : IExecuteCommandApplicationHostEnvironment.Interface +public unsafe partial struct IExecuteCommandApplicationHostEnvironment : IExecuteCommandApplicationHostEnvironment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExecuteCommandApplicationHostEnvironment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandHost.cs index 00b4320c05..8e840ed037 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExecuteCommandHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4B6832A2-5F04-4C9D-B89D-727A15D103E7")] [NativeTypeName("struct IExecuteCommandHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExecuteCommandHost : IExecuteCommandHost.Interface +public unsafe partial struct IExecuteCommandHost : IExecuteCommandHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExecuteCommandHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowser.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowser.cs index a9ac039a42..f8dbbbbe69 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DFD3B6B5-C10C-4BE9-85F6-A66969F402F6")] [NativeTypeName("struct IExplorerBrowser : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerBrowser : IExplorerBrowser.Interface +public unsafe partial struct IExplorerBrowser : IExplorerBrowser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerBrowser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowserEvents.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowserEvents.cs index f7b54abea4..983b46058f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowserEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerBrowserEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("361BBDC7-E6EE-4E13-BE58-58E2240C810F")] [NativeTypeName("struct IExplorerBrowserEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerBrowserEvents : IExplorerBrowserEvents.Interface +public unsafe partial struct IExplorerBrowserEvents : IExplorerBrowserEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerBrowserEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommand.cs index 540ac0a545..2595c9ed2b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A08CE4D0-FA25-44AB-B57C-C7B1C323E0B9")] [NativeTypeName("struct IExplorerCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerCommand : IExplorerCommand.Interface +public unsafe partial struct IExplorerCommand : IExplorerCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandProvider.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandProvider.cs index b18bd5255a..94c16f22f3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("64961751-0835-43C0-8FFE-D57686530E64")] [NativeTypeName("struct IExplorerCommandProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerCommandProvider : IExplorerCommandProvider.Interface +public unsafe partial struct IExplorerCommandProvider : IExplorerCommandProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerCommandProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandState.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandState.cs index b4572d5a55..c972b588fc 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandState.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerCommandState.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BDDACB60-7657-47AE-8445-D23E1ACF82AE")] [NativeTypeName("struct IExplorerCommandState : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerCommandState : IExplorerCommandState.Interface +public unsafe partial struct IExplorerCommandState : IExplorerCommandState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerCommandState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerPaneVisibility.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerPaneVisibility.cs index 3ad8ded709..c9de0c208e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerPaneVisibility.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExplorerPaneVisibility.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E07010EC-BC17-44C0-97B0-46C7C95B9EDC")] [NativeTypeName("struct IExplorerPaneVisibility : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExplorerPaneVisibility : IExplorerPaneVisibility.Interface +public unsafe partial struct IExplorerPaneVisibility : IExplorerPaneVisibility.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExplorerPaneVisibility)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage.cs index 718f6d793f..1020bd7e63 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB2E617C-0920-11D1-9A0B-00C04FC2D6C1")] [NativeTypeName("struct IExtractImage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExtractImage : IExtractImage.Interface +public unsafe partial struct IExtractImage : IExtractImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExtractImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage2.cs index 8acc773808..528578638a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IExtractImage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("953BB1EE-93B4-11D1-98A3-00C04FB687DA")] [NativeTypeName("struct IExtractImage2 : IExtractImage")] [NativeInheritance("IExtractImage")] -public unsafe partial struct IExtractImage2 : IExtractImage2.Interface +public unsafe partial struct IExtractImage2 : IExtractImage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExtractImage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialog.cs index 838104a99d..59e51257c6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("42F85136-DB7E-439C-85F1-E4075D135FC8")] [NativeTypeName("struct IFileDialog : IModalWindow")] [NativeInheritance("IModalWindow")] -public unsafe partial struct IFileDialog : IFileDialog.Interface +public unsafe partial struct IFileDialog : IFileDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogCustomize.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogCustomize.cs index 3ab75699f3..7be1ccf91d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogCustomize.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogCustomize.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E6FDD21A-163F-4975-9C8C-A69F1BA37034")] [NativeTypeName("struct IFileDialogCustomize : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileDialogCustomize : IFileDialogCustomize.Interface +public unsafe partial struct IFileDialogCustomize : IFileDialogCustomize.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileDialogCustomize)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogEvents.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogEvents.cs index 41ae4ee460..6cdb6ab4c8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileDialogEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("973510DB-7D7F-452B-8975-74A85828D354")] [NativeTypeName("struct IFileDialogEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileDialogEvents : IFileDialogEvents.Interface +public unsafe partial struct IFileDialogEvents : IFileDialogEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileDialogEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileIsInUse.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileIsInUse.cs index 746f35436b..3217252104 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileIsInUse.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileIsInUse.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("64A1CBF0-3A1A-4461-9158-376969693950")] [NativeTypeName("struct IFileIsInUse : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileIsInUse : IFileIsInUse.Interface +public unsafe partial struct IFileIsInUse : IFileIsInUse.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileIsInUse)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOpenDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOpenDialog.cs index 55ecd72fab..7510675896 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOpenDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOpenDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D57C7288-D4AD-4768-BE02-9D969532D960")] [NativeTypeName("struct IFileOpenDialog : IFileDialog")] [NativeInheritance("IFileDialog")] -public unsafe partial struct IFileOpenDialog : IFileOpenDialog.Interface +public unsafe partial struct IFileOpenDialog : IFileOpenDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileOpenDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation.cs index bd90bc3932..3f1efab397 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("947AAB5F-0A5C-4C13-B4D6-4BF7836FC9F8")] [NativeTypeName("struct IFileOperation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileOperation : IFileOperation.Interface +public unsafe partial struct IFileOperation : IFileOperation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileOperation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation2.cs index e3cd8fd689..31ac1cad4c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperation2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CD8F23C1-8F61-4916-909D-55BDD0918753")] [NativeTypeName("struct IFileOperation2 : IFileOperation")] [NativeInheritance("IFileOperation")] -public unsafe partial struct IFileOperation2 : IFileOperation2.Interface +public unsafe partial struct IFileOperation2 : IFileOperation2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileOperation2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperationProgressSink.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperationProgressSink.cs index 91f7c414ec..53c1e80701 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperationProgressSink.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileOperationProgressSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("04B0F1A7-9490-44BC-96E1-4296A31252E2")] [NativeTypeName("struct IFileOperationProgressSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileOperationProgressSink : IFileOperationProgressSink.Interface +public unsafe partial struct IFileOperationProgressSink : IFileOperationProgressSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileOperationProgressSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSaveDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSaveDialog.cs index f22cfb1c31..1d1b6aae3a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSaveDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSaveDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB")] [NativeTypeName("struct IFileSaveDialog : IFileDialog")] [NativeInheritance("IFileDialog")] -public unsafe partial struct IFileSaveDialog : IFileSaveDialog.Interface +public unsafe partial struct IFileSaveDialog : IFileSaveDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSaveDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSyncMergeHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSyncMergeHandler.cs index b3b2c066c2..b6efa0e7d2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSyncMergeHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSyncMergeHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D97B5AAC-C792-433C-975D-35C4EADC7A9D")] [NativeTypeName("struct IFileSyncMergeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileSyncMergeHandler : IFileSyncMergeHandler.Interface +public unsafe partial struct IFileSyncMergeHandler : IFileSyncMergeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSyncMergeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData.cs index 60182f338a..e76cf9c514 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("01E18D10-4D8B-11D2-855D-006008059367")] [NativeTypeName("struct IFileSystemBindData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileSystemBindData : IFileSystemBindData.Interface +public unsafe partial struct IFileSystemBindData : IFileSystemBindData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemBindData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData2.cs index 007ea0af90..4e5a89feef 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFileSystemBindData2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3ACF075F-71DB-4AFA-81F0-3FC4FDF2A5B8")] [NativeTypeName("struct IFileSystemBindData2 : IFileSystemBindData")] [NativeInheritance("IFileSystemBindData")] -public unsafe partial struct IFileSystemBindData2 : IFileSystemBindData2.Interface +public unsafe partial struct IFileSystemBindData2 : IFileSystemBindData2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemBindData2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilter.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilter.cs index 3326ad1bc5..c2b305d68d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilter.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9CC22886-DC8E-11D2-B1D0-00C04F8EEB3E")] [NativeTypeName("struct IFolderFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderFilter : IFolderFilter.Interface +public unsafe partial struct IFolderFilter : IFolderFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilterSite.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilterSite.cs index f4ff256179..883d1d4e66 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilterSite.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderFilterSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C0A651F5-B48B-11D2-B5ED-006097C686F6")] [NativeTypeName("struct IFolderFilterSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderFilterSite : IFolderFilterSite.Interface +public unsafe partial struct IFolderFilterSite : IFolderFilterSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderFilterSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView.cs index 43889e9807..caedcb0c3c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CDE725B0-CCC9-4519-917E-325D72FAB4CE")] [NativeTypeName("struct IFolderView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderView : IFolderView.Interface +public unsafe partial struct IFolderView : IFolderView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView2.cs index cf62f910d6..d34eecfbcf 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderView2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1AF3A467-214F-4298-908E-06B03E0B39F9")] [NativeTypeName("struct IFolderView2 : IFolderView")] [NativeInheritance("IFolderView")] -public unsafe partial struct IFolderView2 : IFolderView2.Interface +public unsafe partial struct IFolderView2 : IFolderView2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderView2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderViewSettings.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderViewSettings.cs index 2a89a94db6..e52138ea2f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderViewSettings.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFolderViewSettings.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE8C987D-8797-4ED3-BE72-2A47DD938DB0")] [NativeTypeName("struct IFolderViewSettings : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFolderViewSettings : IFolderViewSettings.Interface +public unsafe partial struct IFolderViewSettings : IFolderViewSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderViewSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPane.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPane.cs index 4389cc02f7..bf9ece988d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPane.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPane.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5752238B-24F0-495A-82F1-2FD593056796")] [NativeTypeName("struct IFrameworkInputPane : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFrameworkInputPane : IFrameworkInputPane.Interface +public unsafe partial struct IFrameworkInputPane : IFrameworkInputPane.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFrameworkInputPane)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPaneHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPaneHandler.cs index bc60d53bb1..017697a4b0 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPaneHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IFrameworkInputPaneHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("226C537B-1E76-4D9E-A760-33DB29922F18")] [NativeTypeName("struct IFrameworkInputPaneHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFrameworkInputPaneHandler : IFrameworkInputPaneHandler.Interface +public unsafe partial struct IFrameworkInputPaneHandler : IFrameworkInputPaneHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFrameworkInputPaneHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IGetServiceIds.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IGetServiceIds.cs index 9e51317019..ac252630e1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IGetServiceIds.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IGetServiceIds.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4A073526-6103-4E21-B7BC-F519D1524E5D")] [NativeTypeName("struct IGetServiceIds : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGetServiceIds : IGetServiceIds.Interface +public unsafe partial struct IGetServiceIds : IGetServiceIds.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGetServiceIds)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerActivationHost.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerActivationHost.cs index cf00d12674..94b037f9ba 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerActivationHost.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerActivationHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("35094A87-8BB1-4237-96C6-C417EEBDB078")] [NativeTypeName("struct IHandlerActivationHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHandlerActivationHost : IHandlerActivationHost.Interface +public unsafe partial struct IHandlerActivationHost : IHandlerActivationHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHandlerActivationHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo.cs index f054214a06..71059dfd4a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("997706EF-F880-453B-8118-39E1A2D2655A")] [NativeTypeName("struct IHandlerInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHandlerInfo : IHandlerInfo.Interface +public unsafe partial struct IHandlerInfo : IHandlerInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHandlerInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo2.cs index 367dd74d9a..5005761112 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHandlerInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("31CCA04C-04D3-4EA9-90DE-97B15E87A532")] [NativeTypeName("struct IHandlerInfo2 : IHandlerInfo")] [NativeInheritance("IHandlerInfo")] -public unsafe partial struct IHandlerInfo2 : IHandlerInfo2.Interface +public unsafe partial struct IHandlerInfo2 : IHandlerInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHandlerInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHomeGroup.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHomeGroup.cs index e0bf62fb5b..cdf2589344 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHomeGroup.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IHomeGroup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7A3BD1D9-35A9-4FB3-A467-F48CAC35E2D0")] [NativeTypeName("struct IHomeGroup : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHomeGroup : IHomeGroup.Interface +public unsafe partial struct IHomeGroup : IHomeGroup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHomeGroup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIOCancelInformation.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIOCancelInformation.cs index 1b8236089a..260c4c93df 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIOCancelInformation.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIOCancelInformation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F5B0BF81-8CB5-4B1B-9449-1A159E0C733C")] [NativeTypeName("struct IIOCancelInformation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IIOCancelInformation : IIOCancelInformation.Interface +public unsafe partial struct IIOCancelInformation : IIOCancelInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIOCancelInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIdentityName.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIdentityName.cs index fac54b7af7..55d6051d91 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIdentityName.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IIdentityName.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7D903FCA-D6F9-4810-8332-946C0177E247")] [NativeTypeName("struct IIdentityName : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IIdentityName : IIdentityName.Interface +public unsafe partial struct IIdentityName : IIdentityName.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIdentityName)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeCommand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeCommand.cs index 30742cf1ee..8dbf530063 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeCommand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85075ACF-231F-40EA-9610-D26B7B58F638")] [NativeTypeName("struct IInitializeCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeCommand : IInitializeCommand.Interface +public unsafe partial struct IInitializeCommand : IInitializeCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeNetworkFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeNetworkFolder.cs index e96ed5d073..5a17b8f72c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeNetworkFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeNetworkFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6E0F9881-42A8-4F2A-97F8-8AF4E026D92D")] [NativeTypeName("struct IInitializeNetworkFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeNetworkFolder : IInitializeNetworkFolder.Interface +public unsafe partial struct IInitializeNetworkFolder : IInitializeNetworkFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeNetworkFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithBindCtx.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithBindCtx.cs index e11f0e2738..1bf680ced8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithBindCtx.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithBindCtx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71C0D2BC-726D-45CC-A6C0-2E31C1DB2159")] [NativeTypeName("struct IInitializeWithBindCtx : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithBindCtx : IInitializeWithBindCtx.Interface +public unsafe partial struct IInitializeWithBindCtx : IInitializeWithBindCtx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithBindCtx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithItem.cs index 34872ede86..4af3198497 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7F73BE3F-FB79-493C-A6C7-7EE14E245841")] [NativeTypeName("struct IInitializeWithItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithItem : IInitializeWithItem.Interface +public unsafe partial struct IInitializeWithItem : IInitializeWithItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithPropertyStore.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithPropertyStore.cs index 4b8315c3e8..d8c12d58f4 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithPropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithPropertyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C3E12EB5-7D8D-44F8-B6DD-0E77B34D6DE4")] [NativeTypeName("struct IInitializeWithPropertyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithPropertyStore : IInitializeWithPropertyStore.Interface +public unsafe partial struct IInitializeWithPropertyStore : IInitializeWithPropertyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithPropertyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithWindow.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithWindow.cs index e5f8c3a06d..0f610d4ab1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithWindow.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInitializeWithWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3E68D4BD-7135-4D10-8018-9FB6D9F33FA1")] [NativeTypeName("struct IInitializeWithWindow : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithWindow : IInitializeWithWindow.Interface +public unsafe partial struct IInitializeWithWindow : IInitializeWithWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject.cs index 5cc90f996d..a766d417fe 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("68284FAA-6A48-11D0-8C78-00C04FD918B4")] [NativeTypeName("struct IInputObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInputObject : IInputObject.Interface +public unsafe partial struct IInputObject : IInputObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject2.cs index c9448a3a92..be6dde8119 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObject2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6915C085-510B-44CD-94AF-28DFA56CF92B")] [NativeTypeName("struct IInputObject2 : IInputObject")] [NativeInheritance("IInputObject")] -public unsafe partial struct IInputObject2 : IInputObject2.Interface +public unsafe partial struct IInputObject2 : IInputObject2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputObject2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObjectSite.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObjectSite.cs index 6febccd657..6ffbddfca0 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObjectSite.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IInputObjectSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F1DB8392-7331-11D0-8C99-00A0C92DBFE8")] [NativeTypeName("struct IInputObjectSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInputObjectSite : IInputObjectSite.Interface +public unsafe partial struct IInputObjectSite : IInputObjectSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputObjectSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IItemNameLimits.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IItemNameLimits.cs index 4e33b9baa2..a573caafd5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IItemNameLimits.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IItemNameLimits.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1DF0D7F1-B267-4D28-8B10-12E23202A5C4")] [NativeTypeName("struct IItemNameLimits : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IItemNameLimits : IItemNameLimits.Interface +public unsafe partial struct IItemNameLimits : IItemNameLimits.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IItemNameLimits)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolder.cs index f9b968e4c1..de3554ebbc 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3AA7AF7E-9B36-420C-A8E3-F77D4674A488")] [NativeTypeName("struct IKnownFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKnownFolder : IKnownFolder.Interface +public unsafe partial struct IKnownFolder : IKnownFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKnownFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolderManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolderManager.cs index 21a150bd1c..bac16cb014 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolderManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IKnownFolderManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8BE2D872-86AA-4D47-B776-32CCA40C7018")] [NativeTypeName("struct IKnownFolderManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKnownFolderManager : IKnownFolderManager.Interface +public unsafe partial struct IKnownFolderManager : IKnownFolderManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKnownFolderManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceAppUserModelId.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceAppUserModelId.cs index 1c83920a30..55ba87625d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceAppUserModelId.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceAppUserModelId.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("989191AC-28FF-4CF0-9584-E0D078BC2396")] [NativeTypeName("struct ILaunchSourceAppUserModelId : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchSourceAppUserModelId : ILaunchSourceAppUserModelId.Interface +public unsafe partial struct ILaunchSourceAppUserModelId : ILaunchSourceAppUserModelId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchSourceAppUserModelId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceViewSizePreference.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceViewSizePreference.cs index 47a4608e94..7091db73c4 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceViewSizePreference.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchSourceViewSizePreference.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E5AA01F7-1FB8-4830-8720-4E6734CBD5F3")] [NativeTypeName("struct ILaunchSourceViewSizePreference : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchSourceViewSizePreference : ILaunchSourceViewSizePreference.Interface +public unsafe partial struct ILaunchSourceViewSizePreference : ILaunchSourceViewSizePreference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchSourceViewSizePreference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetMonitor.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetMonitor.cs index 5f33bd37c0..ec9815affc 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetMonitor.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetMonitor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("266FBC7E-490D-46ED-A96B-2274DB252003")] [NativeTypeName("struct ILaunchTargetMonitor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchTargetMonitor : ILaunchTargetMonitor.Interface +public unsafe partial struct ILaunchTargetMonitor : ILaunchTargetMonitor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchTargetMonitor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetViewSizePreference.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetViewSizePreference.cs index 77c70c0b66..bb71d6c7f7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetViewSizePreference.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchTargetViewSizePreference.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2F0666C6-12F7-4360-B511-A394A0553725")] [NativeTypeName("struct ILaunchTargetViewSizePreference : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchTargetViewSizePreference : ILaunchTargetViewSizePreference.Interface +public unsafe partial struct ILaunchTargetViewSizePreference : ILaunchTargetViewSizePreference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchTargetViewSizePreference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContext.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContext.cs index 742beba0d5..3f8cb70d16 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContext.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1791E8F6-21C7-4340-882A-A6A93E3FD73B")] [NativeTypeName("struct ILaunchUIContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchUIContext : ILaunchUIContext.Interface +public unsafe partial struct ILaunchUIContext : ILaunchUIContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchUIContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContextProvider.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContextProvider.cs index df3375bf1c..6c4aa64d64 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContextProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ILaunchUIContextProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0D12C4C8-A3D9-4E24-94C1-0E20C5A956C4")] [NativeTypeName("struct ILaunchUIContextProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILaunchUIContextProvider : ILaunchUIContextProvider.Interface +public unsafe partial struct ILaunchUIContextProvider : ILaunchUIContextProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILaunchUIContextProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuBand.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuBand.cs index 6f55e99550..be6e18461e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuBand.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuBand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("568804CD-CBD7-11D0-9816-00C04FD91972")] [NativeTypeName("struct IMenuBand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMenuBand : IMenuBand.Interface +public unsafe partial struct IMenuBand : IMenuBand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMenuBand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuPopup.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuPopup.cs index 4cc91cc1a8..c3ac770d32 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuPopup.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IMenuPopup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D1E7AFEB-6A2E-11D0-8C78-00C04FD918B4")] [NativeTypeName("struct IMenuPopup : IDeskBar")] [NativeInheritance("IDeskBar")] -public unsafe partial struct IMenuPopup : IMenuPopup.Interface +public unsafe partial struct IMenuPopup : IMenuPopup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMenuPopup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IModalWindow.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IModalWindow.cs index c1db83dde3..17db0c7fb3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IModalWindow.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IModalWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B4DB1657-70D7-485E-8E3E-6FCB5A5C1802")] [NativeTypeName("struct IModalWindow : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IModalWindow : IModalWindow.Interface +public unsafe partial struct IModalWindow : IModalWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IModalWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControl.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControl.cs index 64eda1afd2..8b9465c139 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControl.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("028212A3-B627-47E9-8856-C14265554E4F")] [NativeTypeName("struct INameSpaceTreeControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeControl : INameSpaceTreeControl.Interface +public unsafe partial struct INameSpaceTreeControl : INameSpaceTreeControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControlFolderCapabilities.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControlFolderCapabilities.cs index 32f442512c..58c3e25f84 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControlFolderCapabilities.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INameSpaceTreeControlFolderCapabilities.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E9701183-E6B3-4FF2-8568-813615FEC7BE")] [NativeTypeName("struct INameSpaceTreeControlFolderCapabilities : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INameSpaceTreeControlFolderCapabilities : INameSpaceTreeControlFolderCapabilities.Interface +public unsafe partial struct INameSpaceTreeControlFolderCapabilities : INameSpaceTreeControlFolderCapabilities.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INameSpaceTreeControlFolderCapabilities)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalk.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalk.cs index 897a0ee817..d1aa96a2c6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalk.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalk.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("57CED8A7-3F4A-432C-9350-30F24483F74F")] [NativeTypeName("struct INamespaceWalk : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INamespaceWalk : INamespaceWalk.Interface +public unsafe partial struct INamespaceWalk : INamespaceWalk.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INamespaceWalk)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB.cs index 0beaee317e..523d79abda 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D92995F8-CF5E-4A76-BF59-EAD39EA2B97E")] [NativeTypeName("struct INamespaceWalkCB : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INamespaceWalkCB : INamespaceWalkCB.Interface +public unsafe partial struct INamespaceWalkCB : INamespaceWalkCB.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INamespaceWalkCB)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB2.cs index ab1e94ece1..8bdd48a875 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INamespaceWalkCB2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7AC7492B-C38E-438A-87DB-68737844FF70")] [NativeTypeName("struct INamespaceWalkCB2 : INamespaceWalkCB")] [NativeInheritance("INamespaceWalkCB")] -public unsafe partial struct INamespaceWalkCB2 : INamespaceWalkCB2.Interface +public unsafe partial struct INamespaceWalkCB2 : INamespaceWalkCB2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INamespaceWalkCB2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INetworkFolderInternal.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INetworkFolderInternal.cs index 3c5a5fbab7..0944ff1314 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INetworkFolderInternal.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INetworkFolderInternal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CEB38218-C971-47BB-A703-F0BC99CCDB81")] [NativeTypeName("struct INetworkFolderInternal : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INetworkFolderInternal : INetworkFolderInternal.Interface +public unsafe partial struct INetworkFolderInternal : INetworkFolderInternal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INetworkFolderInternal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewMenuClient.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewMenuClient.cs index aff18a0ad5..41237ee5f3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewMenuClient.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewMenuClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DCB07FDC-3BB5-451C-90BE-966644FED7B0")] [NativeTypeName("struct INewMenuClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INewMenuClient : INewMenuClient.Interface +public unsafe partial struct INewMenuClient : INewMenuClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INewMenuClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewWindowManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewWindowManager.cs index b69ef9389f..cfb92328b1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewWindowManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/INewWindowManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D2BC4C84-3F72-4A52-A604-7BCBF3982CBB")] [NativeTypeName("struct INewWindowManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INewWindowManager : INewWindowManager.Interface +public unsafe partial struct INewWindowManager : INewWindowManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INewWindowManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectProvider.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectProvider.cs index 0861949aeb..de374fe23c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A6087428-3BE3-4D73-B308-7C04A540BF1A")] [NativeTypeName("struct IObjectProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectProvider : IObjectProvider.Interface +public unsafe partial struct IObjectProvider : IObjectProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithAppUserModelID.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithAppUserModelID.cs index ebff2a48e0..d15917387c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithAppUserModelID.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithAppUserModelID.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36DB0196-9665-46D1-9BA7-D3709EECF9ED")] [NativeTypeName("struct IObjectWithAppUserModelID : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithAppUserModelID : IObjectWithAppUserModelID.Interface +public unsafe partial struct IObjectWithAppUserModelID : IObjectWithAppUserModelID.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithAppUserModelID)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithBackReferences.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithBackReferences.cs index afc09e4ab3..0fa1810eb8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithBackReferences.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithBackReferences.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("321A6A6A-D61F-4BF3-97AE-14BE2986BB36")] [NativeTypeName("struct IObjectWithBackReferences : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithBackReferences : IObjectWithBackReferences.Interface +public unsafe partial struct IObjectWithBackReferences : IObjectWithBackReferences.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithBackReferences)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithCancelEvent.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithCancelEvent.cs index d15dcfefa9..7880823dce 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithCancelEvent.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithCancelEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F279B885-0AE9-4B85-AC06-DDECF9408941")] [NativeTypeName("struct IObjectWithCancelEvent : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithCancelEvent : IObjectWithCancelEvent.Interface +public unsafe partial struct IObjectWithCancelEvent : IObjectWithCancelEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithCancelEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithFolderEnumMode.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithFolderEnumMode.cs index 8607a7c38d..a5b6a9e86d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithFolderEnumMode.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithFolderEnumMode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6A9D9026-0E6E-464C-B000-42ECC07DE673")] [NativeTypeName("struct IObjectWithFolderEnumMode : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithFolderEnumMode : IObjectWithFolderEnumMode.Interface +public unsafe partial struct IObjectWithFolderEnumMode : IObjectWithFolderEnumMode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithFolderEnumMode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithProgID.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithProgID.cs index 5152115510..f3d8fb03c5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithProgID.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithProgID.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71E806FB-8DEE-46FC-BF8C-7748A8A1AE13")] [NativeTypeName("struct IObjectWithProgID : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithProgID : IObjectWithProgID.Interface +public unsafe partial struct IObjectWithProgID : IObjectWithProgID.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithProgID)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithSelection.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithSelection.cs index 0b2306250f..f57ba61538 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithSelection.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IObjectWithSelection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C9CD5BB-98E9-4491-A60F-31AACC72B83C")] [NativeTypeName("struct IObjectWithSelection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithSelection : IObjectWithSelection.Interface +public unsafe partial struct IObjectWithSelection : IObjectWithSelection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithSelection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenControlPanel.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenControlPanel.cs index a54eda395a..978ad4b165 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenControlPanel.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenControlPanel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D11AD862-66DE-4DF4-BF6C-1F5621996AF1")] [NativeTypeName("struct IOpenControlPanel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOpenControlPanel : IOpenControlPanel.Interface +public unsafe partial struct IOpenControlPanel : IOpenControlPanel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOpenControlPanel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenSearchSource.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenSearchSource.cs index f8532025b5..c9930567fd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenSearchSource.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOpenSearchSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F0EE7333-E6FC-479B-9F25-A860C234A38E")] [NativeTypeName("struct IOpenSearchSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOpenSearchSource : IOpenSearchSource.Interface +public unsafe partial struct IOpenSearchSource : IOpenSearchSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOpenSearchSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOperationsProgressDialog.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOperationsProgressDialog.cs index 65e6c6b81c..c71c57b427 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOperationsProgressDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IOperationsProgressDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0C9FB851-E5C9-43EB-A370-F0677B13874C")] [NativeTypeName("struct IOperationsProgressDialog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOperationsProgressDialog : IOperationsProgressDialog.Interface +public unsafe partial struct IOperationsProgressDialog : IOperationsProgressDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOperationsProgressDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings.cs index 9bab9f4acd..cad9f09ae2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F27C3930-8029-4AD1-94E3-3DBA417810C1")] [NativeTypeName("struct IPackageDebugSettings : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPackageDebugSettings : IPackageDebugSettings.Interface +public unsafe partial struct IPackageDebugSettings : IPackageDebugSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPackageDebugSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings2.cs index d17249728a..acb648906d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageDebugSettings2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6E3194BB-AB82-4D22-93F5-FABDA40E7B16")] [NativeTypeName("struct IPackageDebugSettings2 : IPackageDebugSettings")] [NativeInheritance("IPackageDebugSettings")] -public unsafe partial struct IPackageDebugSettings2 : IPackageDebugSettings2.Interface +public unsafe partial struct IPackageDebugSettings2 : IPackageDebugSettings2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPackageDebugSettings2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageExecutionStateChangeNotification.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageExecutionStateChangeNotification.cs index 4dea653419..7e7db8b402 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageExecutionStateChangeNotification.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPackageExecutionStateChangeNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1BB12A62-2AD8-432B-8CCF-0C2C52AFCD5B")] [NativeTypeName("struct IPackageExecutionStateChangeNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPackageExecutionStateChangeNotification : IPackageExecutionStateChangeNotification.Interface +public unsafe partial struct IPackageExecutionStateChangeNotification : IPackageExecutionStateChangeNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPackageExecutionStateChangeNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParentAndItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParentAndItem.cs index 0830cab6b8..8de98cbec4 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParentAndItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParentAndItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B3A4B685-B685-4805-99D9-5DEAD2873236")] [NativeTypeName("struct IParentAndItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IParentAndItem : IParentAndItem.Interface +public unsafe partial struct IParentAndItem : IParentAndItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IParentAndItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParseAndCreateItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParseAndCreateItem.cs index b4e904680b..5b944354ea 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParseAndCreateItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IParseAndCreateItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("67EFED0E-E827-4408-B493-78F3982B685C")] [NativeTypeName("struct IParseAndCreateItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IParseAndCreateItem : IParseAndCreateItem.Interface +public unsafe partial struct IParseAndCreateItem : IParseAndCreateItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IParseAndCreateItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder.cs index c41025987d..465afb746b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214EA-0000-0000-C000-000000000046")] [NativeTypeName("struct IPersistFolder : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistFolder : IPersistFolder.Interface +public unsafe partial struct IPersistFolder : IPersistFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder2.cs index f1bfaca377..c4335025b2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1AC3D9F0-175C-11D1-95BE-00609797EA4F")] [NativeTypeName("struct IPersistFolder2 : IPersistFolder")] [NativeInheritance("IPersistFolder")] -public unsafe partial struct IPersistFolder2 : IPersistFolder2.Interface +public unsafe partial struct IPersistFolder2 : IPersistFolder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistFolder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder3.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder3.cs index 9e0669d140..1969eea8b9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder3.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistFolder3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CEF04FDF-FE72-11D2-87A5-00C04F6837CF")] [NativeTypeName("struct IPersistFolder3 : IPersistFolder2")] [NativeInheritance("IPersistFolder2")] -public unsafe partial struct IPersistFolder3 : IPersistFolder3.Interface +public unsafe partial struct IPersistFolder3 : IPersistFolder3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistFolder3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistIDList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistIDList.cs index 6b2f98e51d..dfbf39c691 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistIDList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPersistIDList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1079ACFC-29BD-11D3-8E0D-00C04F6837D5")] [NativeTypeName("struct IPersistIDList : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistIDList : IPersistIDList.Interface +public unsafe partial struct IPersistIDList : IPersistIDList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistIDList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandler.cs index b12248d0bc..bdb7541751 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8895B1C6-B41F-4C1C-A562-0D564250836F")] [NativeTypeName("struct IPreviewHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPreviewHandler : IPreviewHandler.Interface +public unsafe partial struct IPreviewHandler : IPreviewHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPreviewHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerFrame.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerFrame.cs index d672ce93e5..5cf0f6ca34 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerFrame.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FEC87AAF-35F9-447A-ADB7-20234491401A")] [NativeTypeName("struct IPreviewHandlerFrame : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPreviewHandlerFrame : IPreviewHandlerFrame.Interface +public unsafe partial struct IPreviewHandlerFrame : IPreviewHandlerFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPreviewHandlerFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerVisuals.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerVisuals.cs index b9283825d0..0e5cdeed1e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerVisuals.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewHandlerVisuals.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("196BF9A5-B346-4EF0-AA1E-5DCDB76768B1")] [NativeTypeName("struct IPreviewHandlerVisuals : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPreviewHandlerVisuals : IPreviewHandlerVisuals.Interface +public unsafe partial struct IPreviewHandlerVisuals : IPreviewHandlerVisuals.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPreviewHandlerVisuals)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewItem.cs index 81dfef75b9..d6682b811b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPreviewItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36149969-0A8F-49C8-8B00-4AECB20222FB")] [NativeTypeName("struct IPreviewItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IPreviewItem : IPreviewItem.Interface +public unsafe partial struct IPreviewItem : IPreviewItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPreviewItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IProfferService.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IProfferService.cs index 46411a204d..877a9a8648 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IProfferService.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IProfferService.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CB728B20-F786-11CE-92AD-00AA00A74CD0")] [NativeTypeName("struct IProfferService : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProfferService : IProfferService.Interface +public unsafe partial struct IProfferService : IProfferService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProfferService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyKeyStore.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyKeyStore.cs index 670dd28eda..ff527ff05a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyKeyStore.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyKeyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("75BD59AA-F23B-4963-ABA4-0B355752A91B")] [NativeTypeName("struct IPropertyKeyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyKeyStore : IPropertyKeyStore.Interface +public unsafe partial struct IPropertyKeyStore : IPropertyKeyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyKeyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyUI.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyUI.cs index ddbc4dfd9a..b035831583 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyUI.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IPropertyUI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("757A7D9F-919A-4118-99D7-DBB208C8CC66")] [NativeTypeName("struct IPropertyUI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyUI : IPropertyUI.Interface +public unsafe partial struct IPropertyUI : IPropertyUI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyUI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IQueryContinue.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IQueryContinue.cs index 121d4a74f0..b118fe844e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IQueryContinue.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IQueryContinue.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7307055C-B24A-486B-9F25-163E597A28A9")] [NativeTypeName("struct IQueryContinue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueryContinue : IQueryContinue.Interface +public unsafe partial struct IQueryContinue : IQueryContinue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryContinue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRegTreeItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRegTreeItem.cs index 158d27883a..40096c4945 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRegTreeItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRegTreeItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A9521922-0812-4D44-9EC3-7FD38C726F3D")] [NativeTypeName("struct IRegTreeItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRegTreeItem : IRegTreeItem.Interface +public unsafe partial struct IRegTreeItem : IRegTreeItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRegTreeItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRelatedItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRelatedItem.cs index d6630ccc3d..521ff3d03c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRelatedItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRelatedItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A73CE67A-8AB1-44F1-8D43-D2FCBF6B1CD0")] [NativeTypeName("struct IRelatedItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRelatedItem : IRelatedItem.Interface +public unsafe partial struct IRelatedItem : IRelatedItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRelatedItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRemoteComputer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRemoteComputer.cs index 283faefac8..d5dbc3fb7d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRemoteComputer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRemoteComputer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214FE-0000-0000-C000-000000000046")] [NativeTypeName("struct IRemoteComputer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRemoteComputer : IRemoteComputer.Interface +public unsafe partial struct IRemoteComputer : IRemoteComputer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRemoteComputer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IResolveShellLink.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IResolveShellLink.cs index 9bafcdda11..c8e1e55218 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IResolveShellLink.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IResolveShellLink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5CD52983-9449-11D2-963A-00C04F79ADF0")] [NativeTypeName("struct IResolveShellLink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IResolveShellLink : IResolveShellLink.Interface +public unsafe partial struct IResolveShellLink : IResolveShellLink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IResolveShellLink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRunnableTask.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRunnableTask.cs index c84621ee97..ccc829c575 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRunnableTask.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IRunnableTask.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85788D00-6807-11D0-B810-00C04FD706EC")] [NativeTypeName("struct IRunnableTask : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRunnableTask : IRunnableTask.Interface +public unsafe partial struct IRunnableTask : IRunnableTask.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRunnableTask)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISearchFolderItemFactory.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISearchFolderItemFactory.cs index f7f06f0485..02ded82bba 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISearchFolderItemFactory.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISearchFolderItemFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A0FFBC28-5482-4366-BE27-3E81E78E06C2")] [NativeTypeName("struct ISearchFolderItemFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISearchFolderItemFactory : ISearchFolderItemFactory.Interface +public unsafe partial struct ISearchFolderItemFactory : ISearchFolderItemFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISearchFolderItemFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISharingConfigurationManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISharingConfigurationManager.cs index 50afce4e78..fa6d27ec60 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISharingConfigurationManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISharingConfigurationManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B4CD448A-9C86-4466-9201-2E62105B87AE")] [NativeTypeName("struct ISharingConfigurationManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISharingConfigurationManager : ISharingConfigurationManager.Interface +public unsafe partial struct ISharingConfigurationManager : ISharingConfigurationManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISharingConfigurationManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellBrowser.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellBrowser.cs index 72071ca177..0300a1d75e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellBrowser.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellBrowser.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E2-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellBrowser : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IShellBrowser : IShellBrowser.Interface +public unsafe partial struct IShellBrowser : IShellBrowser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellBrowser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellExtInit.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellExtInit.cs index 2d8806d965..7b0a80b5b8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellExtInit.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellExtInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E8-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellExtInit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellExtInit : IShellExtInit.Interface +public unsafe partial struct IShellExtInit : IShellExtInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellExtInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder.cs index 2032daa841..34625b3512 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E6-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellFolder : IShellFolder.Interface +public unsafe partial struct IShellFolder : IShellFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder2.cs index 47ccdc83f1..98df0ba281 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellFolder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("93F2F68C-1D1B-11D3-A30E-00C04F79ABD1")] [NativeTypeName("struct IShellFolder2 : IShellFolder")] [NativeInheritance("IShellFolder")] -public unsafe partial struct IShellFolder2 : IShellFolder2.Interface +public unsafe partial struct IShellFolder2 : IShellFolder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIcon.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIcon.cs index 6413b5b74a..bebbe65b2f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIcon.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIcon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E5-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellIcon : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellIcon : IShellIcon.Interface +public unsafe partial struct IShellIcon : IShellIcon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellIcon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIconOverlayIdentifier.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIconOverlayIdentifier.cs index 78810e0128..dc1a4f70c9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIconOverlayIdentifier.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellIconOverlayIdentifier.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0C6C4200-C589-11D0-999A-00C04FD655E1")] [NativeTypeName("struct IShellIconOverlayIdentifier : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellIconOverlayIdentifier : IShellIconOverlayIdentifier.Interface +public unsafe partial struct IShellIconOverlayIdentifier : IShellIconOverlayIdentifier.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellIconOverlayIdentifier)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem.cs index e2722c99d6..1b8c05e9a5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("43826D1E-E718-42EE-BC55-A1E261C37BFE")] [NativeTypeName("struct IShellItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellItem : IShellItem.Interface +public unsafe partial struct IShellItem : IShellItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem2.cs index 250aed9b9f..e7d05edeb5 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItem2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7E9FB0D3-919F-4307-AB2E-9B1860310C93")] [NativeTypeName("struct IShellItem2 : IShellItem")] [NativeInheritance("IShellItem")] -public unsafe partial struct IShellItem2 : IShellItem2.Interface +public unsafe partial struct IShellItem2 : IShellItem2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItem2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemArray.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemArray.cs index 232f45bc60..f8d7a99744 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemArray.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemArray.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B63EA76D-1F85-456F-A19C-48159EFA858B")] [NativeTypeName("struct IShellItemArray : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellItemArray : IShellItemArray.Interface +public unsafe partial struct IShellItemArray : IShellItemArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItemArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemFilter.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemFilter.cs index 971f26bd44..840d376f46 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemFilter.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2659B475-EEB8-48B7-8F07-B378810F48CF")] [NativeTypeName("struct IShellItemFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellItemFilter : IShellItemFilter.Interface +public unsafe partial struct IShellItemFilter : IShellItemFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItemFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemImageFactory.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemImageFactory.cs index e12fa81732..1ee77f7af8 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemImageFactory.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemImageFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BCC18B79-BA16-442F-80C4-8A59C30C463B")] [NativeTypeName("struct IShellItemImageFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellItemImageFactory : IShellItemImageFactory.Interface +public unsafe partial struct IShellItemImageFactory : IShellItemImageFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItemImageFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemResources.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemResources.cs index 44e042276e..abfa9f8f2b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemResources.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellItemResources.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FF5693BE-2CE0-4D48-B5C5-40817D1ACDB9")] [NativeTypeName("struct IShellItemResources : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellItemResources : IShellItemResources.Interface +public unsafe partial struct IShellItemResources : IShellItemResources.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellItemResources)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLibrary.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLibrary.cs index 421c4b7d40..2ed1b01240 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLibrary.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLibrary.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("11A66EFA-382E-451A-9234-1E0E12EF3085")] [NativeTypeName("struct IShellLibrary : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellLibrary : IShellLibrary.Interface +public unsafe partial struct IShellLibrary : IShellLibrary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLibrary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkA.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkA.cs index 573cd5c0f0..65b129dfd6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkA.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214EE-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellLinkA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellLinkA : IShellLinkA.Interface +public unsafe partial struct IShellLinkA : IShellLinkA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLinkA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkDataList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkDataList.cs index 338a2aa0e5..418a3caf31 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkDataList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkDataList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("45E2B4AE-B1C3-11D0-B92F-00A0C90312E1")] [NativeTypeName("struct IShellLinkDataList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellLinkDataList : IShellLinkDataList.Interface +public unsafe partial struct IShellLinkDataList : IShellLinkDataList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLinkDataList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkW.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkW.cs index 058c742e4f..696a65384f 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkW.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellLinkW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F9-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellLinkW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellLinkW : IShellLinkW.Interface +public unsafe partial struct IShellLinkW : IShellLinkW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLinkW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenu.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenu.cs index 601f1137cb..a7b9cf243e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenu.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenu.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EE1F7637-E138-11D1-8379-00C04FD918D0")] [NativeTypeName("struct IShellMenu : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellMenu : IShellMenu.Interface +public unsafe partial struct IShellMenu : IShellMenu.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellMenu)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenuCallback.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenuCallback.cs index e32b77152c..f7e8e5f02a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenuCallback.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellMenuCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4CA300A1-9B8D-11D1-8B22-00C04FD918D0")] [NativeTypeName("struct IShellMenuCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellMenuCallback : IShellMenuCallback.Interface +public unsafe partial struct IShellMenuCallback : IShellMenuCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellMenuCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellPropSheetExt.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellPropSheetExt.cs index 915eb4ab6b..45b17992c9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellPropSheetExt.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellPropSheetExt.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E9-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellPropSheetExt : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellPropSheetExt : IShellPropSheetExt.Interface +public unsafe partial struct IShellPropSheetExt : IShellPropSheetExt.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellPropSheetExt)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellTaskScheduler.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellTaskScheduler.cs index 61f1510d7d..68246c56e4 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellTaskScheduler.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellTaskScheduler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6CCB7BE0-6807-11D0-B810-00C04FD706EC")] [NativeTypeName("struct IShellTaskScheduler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellTaskScheduler : IShellTaskScheduler.Interface +public unsafe partial struct IShellTaskScheduler : IShellTaskScheduler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellTaskScheduler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView.cs index 4ed7b7a7b9..0973e527e6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E3-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellView : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IShellView : IShellView.Interface +public unsafe partial struct IShellView : IShellView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView2.cs index 496d4bc840..3ce6440f21 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IShellView2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("88E39E80-3578-11CF-AE69-08002B2E1262")] [NativeTypeName("struct IShellView2 : IShellView")] [NativeInheritance("IShellView")] -public unsafe partial struct IShellView2 : IShellView2.Interface +public unsafe partial struct IShellView2 : IShellView2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellView2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISortColumnArray.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISortColumnArray.cs index 3a665c75ab..886520019a 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISortColumnArray.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISortColumnArray.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6DFC60FB-F2E9-459B-BEB5-288F1A7C7D54")] [NativeTypeName("struct ISortColumnArray : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISortColumnArray : ISortColumnArray.Interface +public unsafe partial struct ISortColumnArray : ISortColumnArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISortColumnArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISuspensionDependencyManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISuspensionDependencyManager.cs index 7605e2fbf9..01ec0c268b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISuspensionDependencyManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ISuspensionDependencyManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("52B83A42-2543-416A-81D9-C0DE7969C8B3")] [NativeTypeName("struct ISuspensionDependencyManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISuspensionDependencyManager : ISuspensionDependencyManager.Interface +public unsafe partial struct ISuspensionDependencyManager : ISuspensionDependencyManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISuspensionDependencyManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList.cs index f9a38cf236..1dd4bdf467 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56FDF342-FD6D-11D0-958A-006097C9A090")] [NativeTypeName("struct ITaskbarList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITaskbarList : ITaskbarList.Interface +public unsafe partial struct ITaskbarList : ITaskbarList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITaskbarList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList2.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList2.cs index 71eb7c614a..dc2bfbbbb3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList2.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("602D4995-B13A-429B-A66E-1935E44F4317")] [NativeTypeName("struct ITaskbarList2 : ITaskbarList")] [NativeInheritance("ITaskbarList")] -public unsafe partial struct ITaskbarList2 : ITaskbarList2.Interface +public unsafe partial struct ITaskbarList2 : ITaskbarList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITaskbarList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList3.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList3.cs index e39fb2a959..013a563ec6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList3.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF")] [NativeTypeName("struct ITaskbarList3 : ITaskbarList2")] [NativeInheritance("ITaskbarList2")] -public unsafe partial struct ITaskbarList3 : ITaskbarList3.Interface +public unsafe partial struct ITaskbarList3 : ITaskbarList3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITaskbarList3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList4.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList4.cs index d51f443357..db828b38f3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList4.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITaskbarList4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C43DC798-95D1-4BEA-9030-BB99E2983A1A")] [NativeTypeName("struct ITaskbarList4 : ITaskbarList3")] [NativeInheritance("ITaskbarList3")] -public unsafe partial struct ITaskbarList4 : ITaskbarList4.Interface +public unsafe partial struct ITaskbarList4 : ITaskbarList4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITaskbarList4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IThumbnailHandlerFactory.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IThumbnailHandlerFactory.cs index c7163d9eb8..d924deec2b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IThumbnailHandlerFactory.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IThumbnailHandlerFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E35B4B2E-00DA-4BC1-9F13-38BC11F5D417")] [NativeTypeName("struct IThumbnailHandlerFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IThumbnailHandlerFactory : IThumbnailHandlerFactory.Interface +public unsafe partial struct IThumbnailHandlerFactory : IThumbnailHandlerFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailHandlerFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferAdviseSink.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferAdviseSink.cs index e35bb938f3..03db8a76d1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferAdviseSink.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferAdviseSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D594D0D8-8DA7-457B-B3B4-CE5DBAAC0B88")] [NativeTypeName("struct ITransferAdviseSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITransferAdviseSink : ITransferAdviseSink.Interface +public unsafe partial struct ITransferAdviseSink : ITransferAdviseSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITransferAdviseSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferDestination.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferDestination.cs index 5d209d7a12..d69626c768 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferDestination.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferDestination.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("48ADDD32-3CA5-4124-ABE3-B5A72531B207")] [NativeTypeName("struct ITransferDestination : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITransferDestination : ITransferDestination.Interface +public unsafe partial struct ITransferDestination : ITransferDestination.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITransferDestination)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferMediumItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferMediumItem.cs index b4cd20aae0..9bf370e3e2 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferMediumItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferMediumItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("77F295D5-2D6F-4E19-B8AE-322F3E721AB5")] [NativeTypeName("struct ITransferMediumItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct ITransferMediumItem : ITransferMediumItem.Interface +public unsafe partial struct ITransferMediumItem : ITransferMediumItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITransferMediumItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferSource.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferSource.cs index 8cf46917c5..b6c505ab6e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferSource.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ITransferSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00ADB003-BDE9-45C6-8E29-D09F9353E108")] [NativeTypeName("struct ITransferSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITransferSource : ITransferSource.Interface +public unsafe partial struct ITransferSource : ITransferSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITransferSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUpdateIDList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUpdateIDList.cs index 065cf5139c..cc28e51086 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUpdateIDList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUpdateIDList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6589B6D2-5F8D-4B9E-B7E0-23CDD9717D8C")] [NativeTypeName("struct IUpdateIDList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUpdateIDList : IUpdateIDList.Interface +public unsafe partial struct IUpdateIDList : IUpdateIDList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUpdateIDList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUserNotification.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUserNotification.cs index 19844c5afb..264e983855 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUserNotification.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IUserNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BA9711BA-5893-4787-A7E1-41277151550B")] [NativeTypeName("struct IUserNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUserNotification : IUserNotification.Interface +public unsafe partial struct IUserNotification : IUserNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IViewStateIdentityItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IViewStateIdentityItem.cs index b10cf1d915..5d286ce3e7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IViewStateIdentityItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IViewStateIdentityItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9D264146-A94F-4195-9F9F-3BB12CE0C955")] [NativeTypeName("struct IViewStateIdentityItem : IRelatedItem")] [NativeInheritance("IRelatedItem")] -public unsafe partial struct IViewStateIdentityItem : IViewStateIdentityItem.Interface +public unsafe partial struct IViewStateIdentityItem : IViewStateIdentityItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewStateIdentityItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IVirtualDesktopManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IVirtualDesktopManager.cs index 3ebb4ab54c..4cbdc13224 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IVirtualDesktopManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IVirtualDesktopManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A5CD92FF-29BE-454C-8D04-D82879FB3F1B")] [NativeTypeName("struct IVirtualDesktopManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVirtualDesktopManager : IVirtualDesktopManager.Interface +public unsafe partial struct IVirtualDesktopManager : IVirtualDesktopManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVirtualDesktopManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/KnownFolderManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/KnownFolderManager.cs index 4878a696f3..c0cc3d6bd6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/KnownFolderManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/KnownFolderManager.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4DF0C730-DF9D-4AE3-9153-AA6B82E9795A")] -public partial struct KnownFolderManager +public unsafe partial struct KnownFolderManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_KnownFolderManager)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/MailRecipient.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/MailRecipient.cs index 97299b4f7f..24947995ff 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/MailRecipient.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/MailRecipient.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9E56BE60-C50F-11CF-9A2C-00A0C90A90CE")] -public partial struct MailRecipient +public unsafe partial struct MailRecipient : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_MailRecipient)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NamespaceWalker.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NamespaceWalker.cs index 1858e098a8..1c0fd7c06d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NamespaceWalker.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NamespaceWalker.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("72EB61E0-8672-4303-9175-F2E4C68B2E7C")] -public partial struct NamespaceWalker +public unsafe partial struct NamespaceWalker : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NamespaceWalker)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkConnections.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkConnections.cs index c6e3922b4d..fcc6aab223 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkConnections.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkConnections.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7007ACC7-3202-11D1-AAD2-00805FC1270E")] -public partial struct NetworkConnections +public unsafe partial struct NetworkConnections : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NetworkConnections)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkExplorerFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkExplorerFolder.cs index a8db76e1e0..ac84e197b1 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkExplorerFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkExplorerFolder.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F02C1A0D-BE21-4350-88B0-7367FC96EF3C")] -public partial struct NetworkExplorerFolder +public unsafe partial struct NetworkExplorerFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NetworkExplorerFolder)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkPlaces.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkPlaces.cs index 939e11503e..f9da8a6272 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkPlaces.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/NetworkPlaces.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("208D2C60-3AEA-1069-A2D7-08002B30309D")] -public partial struct NetworkPlaces +public unsafe partial struct NetworkPlaces : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NetworkPlaces)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/OpenControlPanel.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/OpenControlPanel.cs index cfeb690b8a..3902df9696 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/OpenControlPanel.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/OpenControlPanel.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("06622D85-6856-4460-8DE1-A81921B41C4B")] -public partial struct OpenControlPanel +public unsafe partial struct OpenControlPanel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OpenControlPanel)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/PackageDebugSettings.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/PackageDebugSettings.cs index 40c502d9cd..aba6186cdb 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/PackageDebugSettings.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/PackageDebugSettings.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B1AEC16F-2383-4852-B0E9-8F0B1DC66B4D")] -public partial struct PackageDebugSettings +public unsafe partial struct PackageDebugSettings : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PackageDebugSettings)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/PropertiesUI.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/PropertiesUI.cs index c897e52fa1..1aca3a0b1c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/PropertiesUI.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/PropertiesUI.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D912F8CF-0396-4915-884E-FB425D32943B")] -public partial struct PropertiesUI +public unsafe partial struct PropertiesUI : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PropertiesUI)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ScheduledTasks.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ScheduledTasks.cs index e3afb105ab..9fd3ecb0d9 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ScheduledTasks.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ScheduledTasks.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D6277990-4C6A-11CF-8D87-00AA0060F5BF")] -public partial struct ScheduledTasks +public unsafe partial struct ScheduledTasks : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ScheduledTasks)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SearchFolderItemFactory.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SearchFolderItemFactory.cs index 03b0efff0c..8d3f4189b7 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SearchFolderItemFactory.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SearchFolderItemFactory.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("14010E02-BBBD-41F0-88E3-EDA371216584")] -public partial struct SearchFolderItemFactory +public unsafe partial struct SearchFolderItemFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SearchFolderItemFactory)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SharingConfigurationManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SharingConfigurationManager.cs index a07df4d377..d3d6077c41 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SharingConfigurationManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SharingConfigurationManager.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("49F371E1-8C5C-4D9C-9A3B-54A6827F513C")] -public partial struct SharingConfigurationManager +public unsafe partial struct SharingConfigurationManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SharingConfigurationManager)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellDesktop.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellDesktop.cs index 865609b407..f083c514ac 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellDesktop.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellDesktop.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00021400-0000-0000-C000-000000000046")] -public partial struct ShellDesktop +public unsafe partial struct ShellDesktop : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellDesktop)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellFSFolder.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellFSFolder.cs index c87457d5f1..7e96523483 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellFSFolder.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellFSFolder.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F3364BA0-65B9-11CE-A9BA-00AA004AE837")] -public partial struct ShellFSFolder +public unsafe partial struct ShellFSFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellFSFolder)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellItem.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellItem.cs index 89f70d8076..11edfc37fd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellItem.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellItem.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9AC9FBE1-E0A2-4AD6-B4EE-E212013EA917")] -public partial struct ShellItem +public unsafe partial struct ShellItem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellItem)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLibrary.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLibrary.cs index b06bfb2aea..c4999ab2cd 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLibrary.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLibrary.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D9B3211D-E57F-4426-AAEF-30A806ADD397")] -public partial struct ShellLibrary +public unsafe partial struct ShellLibrary : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellLibrary)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLink.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLink.cs index bd5b0e3179..22facc0ca3 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLink.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ShellLink.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00021401-0000-0000-C000-000000000046")] -public partial struct ShellLink +public unsafe partial struct ShellLink : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellLink)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SizeCategorizer.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SizeCategorizer.cs index e7bd99150d..1b4bc7915c 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SizeCategorizer.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SizeCategorizer.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("55D7B852-F6D1-42F2-AA75-8728A1B2D264")] -public partial struct SizeCategorizer +public unsafe partial struct SizeCategorizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SizeCategorizer)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SuspensionDependencyManager.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SuspensionDependencyManager.cs index c9f000cf69..d48a5d04b6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SuspensionDependencyManager.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SuspensionDependencyManager.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6B273FC5-61FD-4918-95A2-C3B5E9D7F581")] -public partial struct SuspensionDependencyManager +public unsafe partial struct SuspensionDependencyManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SuspensionDependencyManager)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/TaskbarList.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/TaskbarList.cs index 621ed8aede..d832de9cc6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/TaskbarList.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/TaskbarList.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("56FDF344-FD6D-11D0-958A-006097C9A090")] -public partial struct TaskbarList +public unsafe partial struct TaskbarList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TaskbarList)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/UserNotification.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/UserNotification.cs index 5c53f9b784..b65577a24d 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/UserNotification.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/UserNotification.cs @@ -3,12 +3,16 @@ // Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0010890E-8789-413C-ADBC-48F5B511B3AF")] -public partial struct UserNotification +public unsafe partial struct UserNotification : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_UserNotification)); } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs index 8b5cdb37cb..3d8e12c32b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs @@ -143,13 +143,13 @@ public static void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION* pKFD) public static extern HRESULT SHAssocEnumHandlersForProtocolByApplication([NativeTypeName("PCWSTR")] ushort* protocol, [NativeTypeName("const IID &")] Guid* riid, void** enumHandlers); [NativeTypeName("#define CMDSTR_NEWFOLDERA \"NewFolder\"")] - public static ReadOnlySpan CMDSTR_NEWFOLDERA => new byte[] { 0x4E, 0x65, 0x77, 0x46, 0x6F, 0x6C, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan CMDSTR_NEWFOLDERA => "NewFolder"u8; [NativeTypeName("#define CMDSTR_VIEWLISTA \"ViewList\"")] - public static ReadOnlySpan CMDSTR_VIEWLISTA => new byte[] { 0x56, 0x69, 0x65, 0x77, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan CMDSTR_VIEWLISTA => "ViewList"u8; [NativeTypeName("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")] - public static ReadOnlySpan CMDSTR_VIEWDETAILSA => new byte[] { 0x56, 0x69, 0x65, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6C, 0x73, 0x00 }; + public static ReadOnlySpan CMDSTR_VIEWDETAILSA => "ViewDetails"u8; [NativeTypeName("#define CMDSTR_NEWFOLDERW L\"NewFolder\"")] public const string CMDSTR_NEWFOLDERW = "NewFolder"; diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/DFConstraint.cs b/sources/Interop/Windows/Windows/um/ShlDisp/DFConstraint.cs index d5cb0cd5fe..f3c76115a3 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/DFConstraint.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/DFConstraint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4A3DF050-23BD-11D2-939F-00A0C91EEDBA")] [NativeTypeName("struct DFConstraint : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DFConstraint : DFConstraint.Interface +public unsafe partial struct DFConstraint : DFConstraint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DFConstraint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/DShellFolderViewEvents.cs b/sources/Interop/Windows/Windows/um/ShlDisp/DShellFolderViewEvents.cs index f7afb8cc47..65fbf492cf 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/DShellFolderViewEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/DShellFolderViewEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("62112AA2-EBE4-11CF-A5FB-0020AFE7292D")] [NativeTypeName("struct DShellFolderViewEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DShellFolderViewEvents : DShellFolderViewEvents.Interface +public unsafe partial struct DShellFolderViewEvents : DShellFolderViewEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DShellFolderViewEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FileSearchBand.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FileSearchBand.cs index 125ad1b76a..a5dc4a0bf3 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FileSearchBand.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FileSearchBand.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C4EE31F3-4768-11D2-BE5C-00A0C9A83DA1")] -public partial struct FileSearchBand +public unsafe partial struct FileSearchBand : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FileSearchBand)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/Folder.cs b/sources/Interop/Windows/Windows/um/ShlDisp/Folder.cs index 97305feb82..ed59d8ffcb 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/Folder.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/Folder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BBCBDE60-C3FF-11CE-8350-444553540000")] [NativeTypeName("struct Folder : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct Folder : Folder.Interface +public unsafe partial struct Folder : Folder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_Folder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/Folder2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/Folder2.cs index a82d5645e6..c50401d9ef 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/Folder2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/Folder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F0D2D8EF-3890-11D2-BF8B-00C04FB93661")] [NativeTypeName("struct Folder2 : Folder")] [NativeInheritance("Folder")] -public unsafe partial struct Folder2 : Folder2.Interface +public unsafe partial struct Folder2 : Folder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_Folder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/Folder3.cs b/sources/Interop/Windows/Windows/um/ShlDisp/Folder3.cs index a29db903ef..2ced64da39 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/Folder3.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/Folder3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7AE5F64-C4D7-4D7F-9307-4D24EE54B841")] [NativeTypeName("struct Folder3 : Folder2")] [NativeInheritance("Folder2")] -public unsafe partial struct Folder3 : Folder3.Interface +public unsafe partial struct Folder3 : Folder3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_Folder3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem.cs index d9900a18d0..84f0b5d706 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FAC32C80-CBE4-11CE-8350-444553540000")] [NativeTypeName("struct FolderItem : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct FolderItem : FolderItem.Interface +public unsafe partial struct FolderItem : FolderItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem2.cs index bfd8f645c7..6c5e7c3452 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItem2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EDC817AA-92B8-11D1-B075-00C04FC33AA5")] [NativeTypeName("struct FolderItem2 : FolderItem")] [NativeInheritance("FolderItem")] -public unsafe partial struct FolderItem2 : FolderItem2.Interface +public unsafe partial struct FolderItem2 : FolderItem2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItem2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerb.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerb.cs index c4972bc117..2becc6df89 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerb.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerb.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08EC3E00-50B0-11CF-960C-0080C7F4EE85")] [NativeTypeName("struct FolderItemVerb : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct FolderItemVerb : FolderItemVerb.Interface +public unsafe partial struct FolderItemVerb : FolderItemVerb.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItemVerb)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerbs.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerbs.cs index 3d94b9c94e..651a3323bc 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerbs.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItemVerbs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1F8352C0-50B0-11CF-960C-0080C7F4EE85")] [NativeTypeName("struct FolderItemVerbs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct FolderItemVerbs : FolderItemVerbs.Interface +public unsafe partial struct FolderItemVerbs : FolderItemVerbs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItemVerbs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems.cs index 26a0a10ffe..10bfdd8fdd 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("744129E0-CBE5-11CE-8350-444553540000")] [NativeTypeName("struct FolderItems : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct FolderItems : FolderItems.Interface +public unsafe partial struct FolderItems : FolderItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems2.cs index f11643f3b5..28b02afe3e 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C94F0AD0-F363-11D2-A327-00C04F8EEC7F")] [NativeTypeName("struct FolderItems2 : FolderItems")] [NativeInheritance("FolderItems")] -public unsafe partial struct FolderItems2 : FolderItems2.Interface +public unsafe partial struct FolderItems2 : FolderItems2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItems2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems3.cs b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems3.cs index bff0d1fe99..a338a2f403 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems3.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/FolderItems3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EAA7C309-BBEC-49D5-821D-64D966CB667F")] [NativeTypeName("struct FolderItems3 : FolderItems2")] [NativeInheritance("FolderItems2")] -public unsafe partial struct FolderItems3 : FolderItems3.Interface +public unsafe partial struct FolderItems3 : FolderItems3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FolderItems3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete.cs index 09eca0262d..6f2d8ac7b3 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00BB2762-6A77-11D0-A535-00C04FD7D062")] [NativeTypeName("struct IAutoComplete : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAutoComplete : IAutoComplete.Interface +public unsafe partial struct IAutoComplete : IAutoComplete.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAutoComplete)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete2.cs index 4ab02a252b..8b3cd9463b 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IAutoComplete2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EAC04BC0-3791-11D2-BB95-0060977B464C")] [NativeTypeName("struct IAutoComplete2 : IAutoComplete")] [NativeInheritance("IAutoComplete")] -public unsafe partial struct IAutoComplete2 : IAutoComplete2.Interface +public unsafe partial struct IAutoComplete2 : IAutoComplete2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAutoComplete2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IDataObjectAsyncCapability.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IDataObjectAsyncCapability.cs index 536391f7d8..3bc0b45c06 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IDataObjectAsyncCapability.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IDataObjectAsyncCapability.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IDataObjectAsyncCapability : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IDataObjectAsyncCapability : IDataObjectAsyncCapability.Interface +public unsafe partial struct IDataObjectAsyncCapability : IDataObjectAsyncCapability.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataObjectAsyncCapability)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IEnumACString.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IEnumACString.cs index 36a867111a..c3aa2f1425 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IEnumACString.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IEnumACString.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8E74C210-CF9D-4EAF-A403-7356428F0A5A")] [NativeTypeName("struct IEnumACString : IEnumString")] [NativeInheritance("IEnumString")] -public unsafe partial struct IEnumACString : IEnumACString.Interface +public unsafe partial struct IEnumACString : IEnumACString.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumACString)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IFileSearchBand.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IFileSearchBand.cs index 9527746596..33fd539161 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IFileSearchBand.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IFileSearchBand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2D91EEA1-9932-11D2-BE86-00A0C9A83DA1")] [NativeTypeName("struct IFileSearchBand : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFileSearchBand : IFileSearchBand.Interface +public unsafe partial struct IFileSearchBand : IFileSearchBand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSearchBand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IFolderViewOC.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IFolderViewOC.cs index 0efab06642..d2be6a8341 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IFolderViewOC.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IFolderViewOC.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9BA05970-F6A8-11CF-A442-00A0C90A8F39")] [NativeTypeName("struct IFolderViewOC : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFolderViewOC : IFolderViewOC.Interface +public unsafe partial struct IFolderViewOC : IFolderViewOC.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFolderViewOC)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/INewWDEvents.cs b/sources/Interop/Windows/Windows/um/ShlDisp/INewWDEvents.cs index 138d9a5c8e..4a35372188 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/INewWDEvents.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/INewWDEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0751C551-7568-41C9-8E5B-E22E38919236")] [NativeTypeName("struct INewWDEvents : IWebWizardHost")] [NativeInheritance("IWebWizardHost")] -public unsafe partial struct INewWDEvents : INewWDEvents.Interface +public unsafe partial struct INewWDEvents : INewWDEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INewWDEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch.cs index 0e65a03e5e..90360446bb 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8F015C0-C278-11CE-A49E-444553540000")] [NativeTypeName("struct IShellDispatch : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellDispatch : IShellDispatch.Interface +public unsafe partial struct IShellDispatch : IShellDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch2.cs index c4c3410f98..f381620190 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A4C6892C-3BA9-11D2-9DEA-00C04FB16162")] [NativeTypeName("struct IShellDispatch2 : IShellDispatch")] [NativeInheritance("IShellDispatch")] -public unsafe partial struct IShellDispatch2 : IShellDispatch2.Interface +public unsafe partial struct IShellDispatch2 : IShellDispatch2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch3.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch3.cs index d70567c738..ce4fe546ca 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch3.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("177160CA-BB5A-411C-841D-BD38FACDEAA0")] [NativeTypeName("struct IShellDispatch3 : IShellDispatch2")] [NativeInheritance("IShellDispatch2")] -public unsafe partial struct IShellDispatch3 : IShellDispatch3.Interface +public unsafe partial struct IShellDispatch3 : IShellDispatch3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch4.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch4.cs index 1898dd2bb5..23aefc9bf3 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch4.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EFD84B2D-4BCF-4298-BE25-EB542A59FBDA")] [NativeTypeName("struct IShellDispatch4 : IShellDispatch3")] [NativeInheritance("IShellDispatch3")] -public unsafe partial struct IShellDispatch4 : IShellDispatch4.Interface +public unsafe partial struct IShellDispatch4 : IShellDispatch4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch5.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch5.cs index 43c6a9b4a7..1c6f773a0b 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch5.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch5.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("866738B9-6CF2-4DE8-8767-F794EBE74F4E")] [NativeTypeName("struct IShellDispatch5 : IShellDispatch4")] [NativeInheritance("IShellDispatch4")] -public unsafe partial struct IShellDispatch5 : IShellDispatch5.Interface +public unsafe partial struct IShellDispatch5 : IShellDispatch5.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch5)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch6.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch6.cs index 2947ca1c8a..a087e0cb8f 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch6.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellDispatch6.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("286E6F1B-7113-4355-9562-96B7E9D64C54")] [NativeTypeName("struct IShellDispatch6 : IShellDispatch5")] [NativeInheritance("IShellDispatch5")] -public unsafe partial struct IShellDispatch6 : IShellDispatch6.Interface +public unsafe partial struct IShellDispatch6 : IShellDispatch6.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDispatch6)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual.cs index 0e451d2df2..3034626ea3 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E7A1AF80-4D96-11CF-960C-0080C7F4EE85")] [NativeTypeName("struct IShellFolderViewDual : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellFolderViewDual : IShellFolderViewDual.Interface +public unsafe partial struct IShellFolderViewDual : IShellFolderViewDual.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderViewDual)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual2.cs index f692ad215e..2f18a9c382 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("31C147B6-0ADE-4A3C-B514-DDF932EF6D17")] [NativeTypeName("struct IShellFolderViewDual2 : IShellFolderViewDual")] [NativeInheritance("IShellFolderViewDual")] -public unsafe partial struct IShellFolderViewDual2 : IShellFolderViewDual2.Interface +public unsafe partial struct IShellFolderViewDual2 : IShellFolderViewDual2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderViewDual2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual3.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual3.cs index 7611d6643c..74217bba92 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual3.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellFolderViewDual3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("29EC8E6C-46D3-411F-BAAA-611A6C9CAC66")] [NativeTypeName("struct IShellFolderViewDual3 : IShellFolderViewDual2")] [NativeInheritance("IShellFolderViewDual2")] -public unsafe partial struct IShellFolderViewDual3 : IShellFolderViewDual3.Interface +public unsafe partial struct IShellFolderViewDual3 : IShellFolderViewDual3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderViewDual3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual.cs index df8ba60aad..ba286fdb53 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("88A05C00-F000-11CE-8350-444553540000")] [NativeTypeName("struct IShellLinkDual : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IShellLinkDual : IShellLinkDual.Interface +public unsafe partial struct IShellLinkDual : IShellLinkDual.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLinkDual)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual2.cs index 99ee402215..8186840d38 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IShellLinkDual2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("317EE249-F12E-11D2-B1E4-00C04F8EEB3E")] [NativeTypeName("struct IShellLinkDual2 : IShellLinkDual")] [NativeInheritance("IShellLinkDual")] -public unsafe partial struct IShellLinkDual2 : IShellLinkDual2.Interface +public unsafe partial struct IShellLinkDual2 : IShellLinkDual2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellLinkDual2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost.cs index 9b21bd26c7..e226df2d11 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("18BCC359-4990-4BFB-B951-3C83702BE5F9")] [NativeTypeName("struct IWebWizardHost : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWebWizardHost : IWebWizardHost.Interface +public unsafe partial struct IWebWizardHost : IWebWizardHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebWizardHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost2.cs b/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost2.cs index 7a4b6c005e..c13bb9093b 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost2.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/IWebWizardHost2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F9C013DC-3C23-4041-8E39-CFB402F7EA59")] [NativeTypeName("struct IWebWizardHost2 : IWebWizardHost")] [NativeInheritance("IWebWizardHost")] -public unsafe partial struct IWebWizardHost2 : IWebWizardHost2.Interface +public unsafe partial struct IWebWizardHost2 : IWebWizardHost2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWebWizardHost2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/Shell.cs b/sources/Interop/Windows/Windows/um/ShlDisp/Shell.cs index f0e3ffa298..1b791f7f11 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/Shell.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/Shell.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("13709620-C279-11CE-A49E-444553540000")] -public partial struct Shell +public unsafe partial struct Shell : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_Shell)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/ShellDispatchInproc.cs b/sources/Interop/Windows/Windows/um/ShlDisp/ShellDispatchInproc.cs index 8d06e52b55..e035192f97 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/ShellDispatchInproc.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/ShellDispatchInproc.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0A89A860-D7B1-11CE-8350-444553540000")] -public partial struct ShellDispatchInproc +public unsafe partial struct ShellDispatchInproc : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellDispatchInproc)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderItem.cs b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderItem.cs index 0b6fc27fbd..c747249eab 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderItem.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderItem.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2FE352EA-FD1F-11D2-B1F4-00C04F8EEB3E")] -public partial struct ShellFolderItem +public unsafe partial struct ShellFolderItem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellFolderItem)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderView.cs b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderView.cs index 9bae825baa..11b47a54c7 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderView.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderView.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("62112AA1-EBE4-11CF-A5FB-0020AFE7292D")] -public partial struct ShellFolderView +public unsafe partial struct ShellFolderView : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellFolderView)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderViewOC.cs b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderViewOC.cs index fbd68f58c9..c38261b061 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderViewOC.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/ShellFolderViewOC.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9BA05971-F6A8-11CF-A442-00A0C90A8F39")] -public partial struct ShellFolderViewOC +public unsafe partial struct ShellFolderViewOC : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellFolderViewOC)); } diff --git a/sources/Interop/Windows/Windows/um/ShlDisp/ShellLinkObject.cs b/sources/Interop/Windows/Windows/um/ShlDisp/ShellLinkObject.cs index d223fa90af..7464a0633e 100644 --- a/sources/Interop/Windows/Windows/um/ShlDisp/ShellLinkObject.cs +++ b/sources/Interop/Windows/Windows/um/ShlDisp/ShellLinkObject.cs @@ -3,12 +3,16 @@ // Ported from um/ShlDisp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("11219420-1768-11D1-95BE-00609797EA4F")] -public partial struct ShellLinkObject +public unsafe partial struct ShellLinkObject : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellLinkObject)); } diff --git a/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs b/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs index 4a05f5258e..cab6219984 100644 --- a/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs +++ b/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs @@ -10,5 +10,5 @@ namespace TerraFX.Interop.Windows; public static partial class STR { [NativeTypeName("#define STR_MYDOCS_CLSID \"{450D8FBA-AD25-11D0-98A8-0800361B1103}\"")] - public static ReadOnlySpan STR_MYDOCS_CLSID => new byte[] { 0x7B, 0x34, 0x35, 0x30, 0x44, 0x38, 0x46, 0x42, 0x41, 0x2D, 0x41, 0x44, 0x32, 0x35, 0x2D, 0x31, 0x31, 0x44, 0x30, 0x2D, 0x39, 0x38, 0x41, 0x38, 0x2D, 0x30, 0x38, 0x30, 0x30, 0x33, 0x36, 0x31, 0x42, 0x31, 0x31, 0x30, 0x33, 0x7D, 0x00 }; + public static ReadOnlySpan STR_MYDOCS_CLSID => "{450D8FBA-AD25-11D0-98A8-0800361B1103}"u8; } diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IADesktopP2.cs b/sources/Interop/Windows/Windows/um/ShlObj/IADesktopP2.cs index 46a163bb71..aab087158a 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IADesktopP2.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IADesktopP2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B22754E2-4574-11D1-9888-006097DEACF9")] [NativeTypeName("struct IADesktopP2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IADesktopP2 : IADesktopP2.Interface +public unsafe partial struct IADesktopP2 : IADesktopP2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IADesktopP2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IActiveDesktopP.cs b/sources/Interop/Windows/Windows/um/ShlObj/IActiveDesktopP.cs index 752c615087..5b4f37060e 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IActiveDesktopP.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IActiveDesktopP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("52502EE0-EC80-11D0-89AB-00C04FC2972D")] [NativeTypeName("struct IActiveDesktopP : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActiveDesktopP : IActiveDesktopP.Interface +public unsafe partial struct IActiveDesktopP : IActiveDesktopP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActiveDesktopP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IBanneredBar.cs b/sources/Interop/Windows/Windows/um/ShlObj/IBanneredBar.cs index 34034548e6..19a6a5c0f3 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IBanneredBar.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IBanneredBar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("596A9A94-013E-11D1-8D34-00A0C90F2719")] [NativeTypeName("struct IBanneredBar : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBanneredBar : IBanneredBar.Interface +public unsafe partial struct IBanneredBar : IBanneredBar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBanneredBar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IColumnProvider.cs b/sources/Interop/Windows/Windows/um/ShlObj/IColumnProvider.cs index 41b9ed1933..f60a387478 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IColumnProvider.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IColumnProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E8025004-1C42-11D2-BE2C-00A0C9A83DA1")] [NativeTypeName("struct IColumnProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IColumnProvider : IColumnProvider.Interface +public unsafe partial struct IColumnProvider : IColumnProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IColumnProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookA.cs b/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookA.cs index 7c95fd77df..1b73705d8f 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214EF-0000-0000-C000-000000000046")] [NativeTypeName("struct ICopyHookA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICopyHookA : ICopyHookA.Interface +public unsafe partial struct ICopyHookA : ICopyHookA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICopyHookA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookW.cs b/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookW.cs index 10d0a35c19..4ca6b66784 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookW.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/ICopyHookW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214FC-0000-0000-C000-000000000046")] [NativeTypeName("struct ICopyHookW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICopyHookW : ICopyHookW.Interface +public unsafe partial struct ICopyHookW : ICopyHookW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICopyHookW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/ICurrentWorkingDirectory.cs b/sources/Interop/Windows/Windows/um/ShlObj/ICurrentWorkingDirectory.cs index 8b930e9489..d181bcd4a2 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/ICurrentWorkingDirectory.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/ICurrentWorkingDirectory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("91956D21-9276-11D1-921A-006097DF5BD4")] [NativeTypeName("struct ICurrentWorkingDirectory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICurrentWorkingDirectory : ICurrentWorkingDirectory.Interface +public unsafe partial struct ICurrentWorkingDirectory : ICurrentWorkingDirectory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICurrentWorkingDirectory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IDeskBarClient.cs b/sources/Interop/Windows/Windows/um/ShlObj/IDeskBarClient.cs index 92dedb4ada..4fc3a96808 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IDeskBarClient.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IDeskBarClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB0FE175-1A3A-11D0-89B3-00A0C90A90AC")] [NativeTypeName("struct IDeskBarClient : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IDeskBarClient : IDeskBarClient.Interface +public unsafe partial struct IDeskBarClient : IDeskBarClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeskBarClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IDocViewSite.cs b/sources/Interop/Windows/Windows/um/ShlObj/IDocViewSite.cs index 423659a108..c62678830d 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IDocViewSite.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IDocViewSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("87D605E0-C511-11CF-89A9-00A0C9054129")] [NativeTypeName("struct IDocViewSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDocViewSite : IDocViewSite.Interface +public unsafe partial struct IDocViewSite : IDocViewSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDocViewSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IDockingWindowFrame.cs b/sources/Interop/Windows/Windows/um/ShlObj/IDockingWindowFrame.cs index d8c082d8e4..367ed2b8df 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IDockingWindowFrame.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IDockingWindowFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("47D2657A-7B27-11D0-8CA9-00A0C92DBFE8")] [NativeTypeName("struct IDockingWindowFrame : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IDockingWindowFrame : IDockingWindowFrame.Interface +public unsafe partial struct IDockingWindowFrame : IDockingWindowFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDockingWindowFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IInitializeObject.cs b/sources/Interop/Windows/Windows/um/ShlObj/IInitializeObject.cs index 32a42ec2b2..62506bdc7a 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IInitializeObject.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IInitializeObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4622AD16-FF23-11D0-8D34-00A0C90F2719")] [NativeTypeName("struct IInitializeObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeObject : IInitializeObject.Interface +public unsafe partial struct IInitializeObject : IInitializeObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookA.cs b/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookA.cs index 1764e95c52..da543e5b44 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214E1-0000-0000-C000-000000000046")] [NativeTypeName("struct INewShortcutHookA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INewShortcutHookA : INewShortcutHookA.Interface +public unsafe partial struct INewShortcutHookA : INewShortcutHookA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INewShortcutHookA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookW.cs b/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookW.cs index 6b0cfd4103..1a9376d7f4 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookW.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/INewShortcutHookW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F7-0000-0000-C000-000000000046")] [NativeTypeName("struct INewShortcutHookW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INewShortcutHookW : INewShortcutHookW.Interface +public unsafe partial struct INewShortcutHookW : INewShortcutHookW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INewShortcutHookW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IShellFolderBand.cs b/sources/Interop/Windows/Windows/um/ShlObj/IShellFolderBand.cs index aef9d6b800..d590c80030 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IShellFolderBand.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IShellFolderBand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7FE80CC8-C247-11D0-B93A-00A0C90312E1")] [NativeTypeName("struct IShellFolderBand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellFolderBand : IShellFolderBand.Interface +public unsafe partial struct IShellFolderBand : IShellFolderBand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderBand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj/IThumbnailCapture.cs b/sources/Interop/Windows/Windows/um/ShlObj/IThumbnailCapture.cs index 5b8d6f0f88..d1e5660752 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/IThumbnailCapture.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/IThumbnailCapture.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4EA39266-7211-409F-B622-F63DBD16C533")] [NativeTypeName("struct IThumbnailCapture : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IThumbnailCapture : IThumbnailCapture.Interface +public unsafe partial struct IThumbnailCapture : IThumbnailCapture.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailCapture)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/AUTO_SCROLL_DATA.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/AUTO_SCROLL_DATA.cs index 3c8337a7bf..55afea30fd 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/AUTO_SCROLL_DATA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/AUTO_SCROLL_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,6 +40,7 @@ public partial struct _pts_e__FixedBuffer public POINT e1; public POINT e2; + [UnscopedRef] public ref POINT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref POINT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORA.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORA.cs index 740e7857a4..0d22f94801 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -26,6 +27,7 @@ public partial struct _fgd_e__FixedBuffer { public FILEDESCRIPTORA e0; + [UnscopedRef] public ref FILEDESCRIPTORA this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -36,6 +38,7 @@ public ref FILEDESCRIPTORA this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORW.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORW.cs index cd484e9ecf..2dcd658de8 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORW.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/FILEGROUPDESCRIPTORW.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -26,6 +27,7 @@ public partial struct _fgd_e__FixedBuffer { public FILEDESCRIPTORW e0; + [UnscopedRef] public ref FILEDESCRIPTORW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -36,6 +38,7 @@ public ref FILEDESCRIPTORW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IACList.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IACList.cs index e6c66ec4b2..16c08817d8 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IACList.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IACList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("77A130B0-94FD-11D0-A544-00C04FD7D062")] [NativeTypeName("struct IACList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IACList : IACList.Interface +public unsafe partial struct IACList : IACList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IACList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IACList2.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IACList2.cs index 2deab00e12..e32b35955b 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IACList2.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IACList2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("470141A0-5186-11D2-BBB6-0060977B464C")] [NativeTypeName("struct IACList2 : IACList")] [NativeInheritance("IACList")] -public unsafe partial struct IACList2 : IACList2.Interface +public unsafe partial struct IACList2 : IACList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IACList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IDockingWindowSite.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IDockingWindowSite.cs index af9c5441dc..48fae7cd6b 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IDockingWindowSite.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IDockingWindowSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2A342FC2-7B26-11D0-8CA9-00A0C92DBFE8")] [NativeTypeName("struct IDockingWindowSite : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IDockingWindowSite : IDockingWindowSite.Interface +public unsafe partial struct IDockingWindowSite : IDockingWindowSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDockingWindowSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconA.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconA.cs index 9efbbeab73..b662d80bcb 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214EB-0000-0000-C000-000000000046")] [NativeTypeName("struct IExtractIconA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExtractIconA : IExtractIconA.Interface +public unsafe partial struct IExtractIconA : IExtractIconA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExtractIconA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconW.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconW.cs index 68dc221e4f..0f8bfda9da 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconW.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IExtractIconW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214FA-0000-0000-C000-000000000046")] [NativeTypeName("struct IExtractIconW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExtractIconW : IExtractIconW.Interface +public unsafe partial struct IExtractIconW : IExtractIconW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExtractIconW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/INamedPropertyBag.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/INamedPropertyBag.cs index 806656912b..6264f7a461 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/INamedPropertyBag.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/INamedPropertyBag.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FB700430-952C-11D1-946F-000000000000")] [NativeTypeName("struct INamedPropertyBag : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INamedPropertyBag : INamedPropertyBag.Interface +public unsafe partial struct INamedPropertyBag : INamedPropertyBag.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INamedPropertyBag)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IObjMgr.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IObjMgr.cs index e7644edbf2..08ca1fbed7 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IObjMgr.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IObjMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00BB2761-6A77-11D0-A535-00C04FD7D062")] [NativeTypeName("struct IObjMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjMgr : IObjMgr.Interface +public unsafe partial struct IObjMgr : IObjMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IProgressDialog.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IProgressDialog.cs index 20dd6a0bc5..c6c4be4a4c 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IProgressDialog.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IProgressDialog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EBBC7C04-315E-11D2-B62F-006097DF5BD4")] [NativeTypeName("struct IProgressDialog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProgressDialog : IProgressDialog.Interface +public unsafe partial struct IProgressDialog : IProgressDialog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProgressDialog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IQueryInfo.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IQueryInfo.cs index facc01ee69..d3238bc76a 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IQueryInfo.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IQueryInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00021500-0000-0000-C000-000000000046")] [NativeTypeName("struct IQueryInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueryInfo : IQueryInfo.Interface +public unsafe partial struct IQueryInfo : IQueryInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/ISearchContext.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/ISearchContext.cs index c40e09204f..a938cc73e2 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/ISearchContext.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/ISearchContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("09F656A2-41AF-480C-88F7-16CC0D164615")] [NativeTypeName("struct ISearchContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISearchContext : ISearchContext.Interface +public unsafe partial struct ISearchContext : ISearchContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISearchContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellChangeNotify.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellChangeNotify.cs index 7959e973ca..c280ec6847 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellChangeNotify.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellChangeNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D82BE2B1-5764-11D0-A96E-00C04FD705A2")] [NativeTypeName("struct IShellChangeNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellChangeNotify : IShellChangeNotify.Interface +public unsafe partial struct IShellChangeNotify : IShellChangeNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellChangeNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellDetails.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellDetails.cs index b10b6e1124..97ba743289 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellDetails.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellDetails.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214EC-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellDetails : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellDetails : IShellDetails.Interface +public unsafe partial struct IShellDetails : IShellDetails.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellDetails)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookA.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookA.cs index 2fd19eda4b..adae0d4091 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookA.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214F5-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellExecuteHookA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellExecuteHookA : IShellExecuteHookA.Interface +public unsafe partial struct IShellExecuteHookA : IShellExecuteHookA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellExecuteHookA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookW.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookW.cs index c36fc62742..8283e17ee8 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookW.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellExecuteHookW.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000214FB-0000-0000-C000-000000000046")] [NativeTypeName("struct IShellExecuteHookW : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellExecuteHookW : IShellExecuteHookW.Interface +public unsafe partial struct IShellExecuteHookW : IShellExecuteHookW.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellExecuteHookW)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderView.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderView.cs index 0d3f88df75..71b551a7d0 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderView.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("37A378C0-F82D-11CE-AE65-08002B2E1262")] [NativeTypeName("struct IShellFolderView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellFolderView : IShellFolderView.Interface +public unsafe partial struct IShellFolderView : IShellFolderView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderViewCB.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderViewCB.cs index 6abd78f67c..82640a40b5 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderViewCB.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellFolderViewCB.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2047E320-F2A9-11CE-AE65-08002B2E1262")] [NativeTypeName("struct IShellFolderViewCB : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellFolderViewCB : IShellFolderViewCB.Interface +public unsafe partial struct IShellFolderViewCB : IShellFolderViewCB.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellFolderViewCB)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlay.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlay.cs index fa24d3e32c..207e0c2e58 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlay.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlay.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7D688A70-C613-11D0-999B-00C04FD655E1")] [NativeTypeName("struct IShellIconOverlay : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellIconOverlay : IShellIconOverlay.Interface +public unsafe partial struct IShellIconOverlay : IShellIconOverlay.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellIconOverlay)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlayManager.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlayManager.cs index 8301a4cfd8..e87d9377a8 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlayManager.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IShellIconOverlayManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F10B5E34-DD3B-42A7-AA7D-2F4EC54BB09B")] [NativeTypeName("struct IShellIconOverlayManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellIconOverlayManager : IShellIconOverlayManager.Interface +public unsafe partial struct IShellIconOverlayManager : IShellIconOverlayManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellIconOverlayManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook.cs index f1f6ce6c83..384b990363 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AC60F6A0-0FD9-11D0-99CB-00C04FD64497")] [NativeTypeName("struct IURLSearchHook : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IURLSearchHook : IURLSearchHook.Interface +public unsafe partial struct IURLSearchHook : IURLSearchHook.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IURLSearchHook)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook2.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook2.cs index 51a024d1b4..6eac8cd87e 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook2.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/IURLSearchHook2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5EE44DA4-6D32-46E3-86BC-07540DEDD0E0")] [NativeTypeName("struct IURLSearchHook2 : IURLSearchHook")] [NativeInheritance("IURLSearchHook")] -public unsafe partial struct IURLSearchHook2 : IURLSearchHook2.Interface +public unsafe partial struct IURLSearchHook2 : IURLSearchHook2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IURLSearchHook2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/NRESARRAY.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/NRESARRAY.cs index 82dc04d57d..57bc74a27b 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/NRESARRAY.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/NRESARRAY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _nr_e__FixedBuffer { public NETRESOURCEW e0; + [UnscopedRef] public ref NETRESOURCEW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref NETRESOURCEW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/NT_CONSOLE_PROPS.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/NT_CONSOLE_PROPS.cs index ba3c6e48e4..5ea72af42c 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/NT_CONSOLE_PROPS.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/NT_CONSOLE_PROPS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -103,6 +104,7 @@ public partial struct _ColorTable_e__FixedBuffer public COLORREF e14; public COLORREF e15; + [UnscopedRef] public ref COLORREF this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -113,6 +115,7 @@ public ref COLORREF this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/QCMINFO_IDMAP.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/QCMINFO_IDMAP.cs index 957e3d0243..e0d201571e 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/QCMINFO_IDMAP.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/QCMINFO_IDMAP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _pIdList_e__FixedBuffer { public QCMINFO_IDMAP_PLACEMENT e0; + [UnscopedRef] public ref QCMINFO_IDMAP_PLACEMENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref QCMINFO_IDMAP_PLACEMENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/IQueryAssociations.cs b/sources/Interop/Windows/Windows/um/Shlwapi/IQueryAssociations.cs index 385cc1f840..73ca765556 100644 --- a/sources/Interop/Windows/Windows/um/Shlwapi/IQueryAssociations.cs +++ b/sources/Interop/Windows/Windows/um/Shlwapi/IQueryAssociations.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C46CA590-3C3F-11D2-BEE6-0000F805CA57")] [NativeTypeName("struct IQueryAssociations : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueryAssociations : IQueryAssociations.Interface +public unsafe partial struct IQueryAssociations : IQueryAssociations.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryAssociations)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs b/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs index 5c6092aef1..5445c9fd90 100644 --- a/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs +++ b/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs @@ -10,13 +10,13 @@ namespace TerraFX.Interop.Windows; public static partial class SZ { [NativeTypeName("#define SZ_CONTENTTYPE_HTMLA \"text/html\"")] - public static ReadOnlySpan SZ_CONTENTTYPE_HTMLA => new byte[] { 0x74, 0x65, 0x78, 0x74, 0x2F, 0x68, 0x74, 0x6D, 0x6C, 0x00 }; + public static ReadOnlySpan SZ_CONTENTTYPE_HTMLA => "text/html"u8; [NativeTypeName("#define SZ_CONTENTTYPE_HTMLW L\"text/html\"")] public const string SZ_CONTENTTYPE_HTMLW = "text/html"; [NativeTypeName("#define SZ_CONTENTTYPE_CDFA \"application/x-cdf\"")] - public static ReadOnlySpan SZ_CONTENTTYPE_CDFA => new byte[] { 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x78, 0x2D, 0x63, 0x64, 0x66, 0x00 }; + public static ReadOnlySpan SZ_CONTENTTYPE_CDFA => "application/x-cdf"u8; [NativeTypeName("#define SZ_CONTENTTYPE_CDFW L\"application/x-cdf\"")] public const string SZ_CONTENTTYPE_CDFW = "application/x-cdf"; diff --git a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_CREATE_INFO.cs b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_CREATE_INFO.cs index 3470c6198b..b671b9f7e6 100644 --- a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_CREATE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_CREATE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/SoftPub.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -30,22 +31,24 @@ public unsafe partial struct WTD_GENERIC_CHAIN_POLICY_CREATE_INFO public void* pvReserved; /// + [UnscopedRef] public ref uint cbStruct { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbStruct, 1)); + return ref Anonymous.cbStruct; } } /// + [UnscopedRef] public ref uint cbSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbSize, 1)); + return ref Anonymous.cbSize; } } diff --git a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_DATA.cs b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_DATA.cs index 836beff6e9..50393ab868 100644 --- a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_DATA.cs +++ b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_DATA.cs @@ -3,6 +3,7 @@ // Ported from um/SoftPub.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,22 +32,24 @@ public unsafe partial struct WTD_GENERIC_CHAIN_POLICY_DATA public void* pvPolicyArg; /// + [UnscopedRef] public ref uint cbStruct { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbStruct, 1)); + return ref Anonymous.cbStruct; } } /// + [UnscopedRef] public ref uint cbSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbSize, 1)); + return ref Anonymous.cbSize; } } diff --git a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO.cs b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO.cs index 06de62e515..20de603fe8 100644 --- a/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO.cs +++ b/sources/Interop/Windows/Windows/um/SoftPub/WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/SoftPub.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -40,22 +41,24 @@ public unsafe partial struct WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO public WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO** rgpCounterSigner; /// + [UnscopedRef] public ref uint cbStruct { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbStruct, 1)); + return ref Anonymous.cbStruct; } } /// + [UnscopedRef] public ref uint cbSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbSize, 1)); + return ref Anonymous.cbSize; } } diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/IAudioFormatEnumerator.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/IAudioFormatEnumerator.cs index 24035d49a4..53f36ea24e 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/IAudioFormatEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/IAudioFormatEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DCDAA858-895A-4A22-A5EB-67BDA506096D")] [NativeTypeName("struct IAudioFormatEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioFormatEnumerator : IAudioFormatEnumerator.Interface +public unsafe partial struct IAudioFormatEnumerator : IAudioFormatEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioFormatEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioClient.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioClient.cs index f3d51c978e..dd812a78a0 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioClient.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BBF8E066-AAAA-49BE-9A4D-FD2A858EA27F")] [NativeTypeName("struct ISpatialAudioClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpatialAudioClient : ISpatialAudioClient.Interface +public unsafe partial struct ISpatialAudioClient : ISpatialAudioClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObject.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObject.cs index 400c89bb63..4f09b830b1 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObject.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DDE28967-521B-46E5-8F00-BD6F2BC8AB1D")] [NativeTypeName("struct ISpatialAudioObject : ISpatialAudioObjectBase")] [NativeInheritance("ISpatialAudioObjectBase")] -public unsafe partial struct ISpatialAudioObject : ISpatialAudioObject.Interface +public unsafe partial struct ISpatialAudioObject : ISpatialAudioObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectBase.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectBase.cs index 7e5dd00d6a..75ae58c74c 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectBase.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectBase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CCE0B8F2-8D4D-4EFB-A8CF-3D6ECF1C30E0")] [NativeTypeName("struct ISpatialAudioObjectBase : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpatialAudioObjectBase : ISpatialAudioObjectBase.Interface +public unsafe partial struct ISpatialAudioObjectBase : ISpatialAudioObjectBase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectBase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStream.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStream.cs index 3e4efb4135..636468b5e5 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStream.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BAB5F473-B423-477B-85F5-B5A332A04153")] [NativeTypeName("struct ISpatialAudioObjectRenderStream : ISpatialAudioObjectRenderStreamBase")] [NativeInheritance("ISpatialAudioObjectRenderStreamBase")] -public unsafe partial struct ISpatialAudioObjectRenderStream : ISpatialAudioObjectRenderStream.Interface +public unsafe partial struct ISpatialAudioObjectRenderStream : ISpatialAudioObjectRenderStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectRenderStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamBase.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamBase.cs index ca60668e18..5e08c79c4f 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamBase.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamBase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FEAAF403-C1D8-450D-AA05-E0CCEE7502A8")] [NativeTypeName("struct ISpatialAudioObjectRenderStreamBase : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpatialAudioObjectRenderStreamBase : ISpatialAudioObjectRenderStreamBase.Interface +public unsafe partial struct ISpatialAudioObjectRenderStreamBase : ISpatialAudioObjectRenderStreamBase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectRenderStreamBase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamNotify.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamNotify.cs index a9936c953f..19c3def61a 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamNotify.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/ISpatialAudioObjectRenderStreamNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DDDF83E6-68D7-4C70-883F-A1836AFB4A50")] [NativeTypeName("struct ISpatialAudioObjectRenderStreamNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpatialAudioObjectRenderStreamNotify : ISpatialAudioObjectRenderStreamNotify.Interface +public unsafe partial struct ISpatialAudioObjectRenderStreamNotify : ISpatialAudioObjectRenderStreamNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectRenderStreamNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectForHrtf.cs b/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectForHrtf.cs index 554f349b6c..2b7e8d971f 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectForHrtf.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectForHrtf.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioObjectForHrtf : ISpatialAudioObjectBase")] [NativeInheritance("ISpatialAudioObjectBase")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioObjectForHrtf : ISpatialAudioObjectForHrtf.Interface +public unsafe partial struct ISpatialAudioObjectForHrtf : ISpatialAudioObjectForHrtf.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectForHrtf)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectRenderStreamForHrtf.cs b/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectRenderStreamForHrtf.cs index f10ed86ed2..ce9cc1ca50 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectRenderStreamForHrtf.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioHrtf/ISpatialAudioObjectRenderStreamForHrtf.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioObjectRenderStreamForHrtf : ISpatialAudioObjectRenderStreamBase")] [NativeInheritance("ISpatialAudioObjectRenderStreamBase")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioObjectRenderStreamForHrtf : ISpatialAudioObjectRenderStreamForHrtf.Interface +public unsafe partial struct ISpatialAudioObjectRenderStreamForHrtf : ISpatialAudioObjectRenderStreamForHrtf.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectRenderStreamForHrtf)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataClient.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataClient.cs index ab510ee69e..c44efcdc3d 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataClient.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataClient.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataClient : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataClient : ISpatialAudioMetadataClient.Interface +public unsafe partial struct ISpatialAudioMetadataClient : ISpatialAudioMetadataClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataCopier.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataCopier.cs index a1ddd47e80..13bad40716 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataCopier.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataCopier.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataCopier : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataCopier : ISpatialAudioMetadataCopier.Interface +public unsafe partial struct ISpatialAudioMetadataCopier : ISpatialAudioMetadataCopier.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataCopier)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItems.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItems.cs index 44d0ee8340..b143120576 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItems.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItems.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataItems : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataItems : ISpatialAudioMetadataItems.Interface +public unsafe partial struct ISpatialAudioMetadataItems : ISpatialAudioMetadataItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItemsBuffer.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItemsBuffer.cs index 339e1bb6e7..110ca7e1a0 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItemsBuffer.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataItemsBuffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataItemsBuffer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataItemsBuffer : ISpatialAudioMetadataItemsBuffer.Interface +public unsafe partial struct ISpatialAudioMetadataItemsBuffer : ISpatialAudioMetadataItemsBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataItemsBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataReader.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataReader.cs index 129cd92003..e18630c4ef 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataReader.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataReader.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataReader : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataReader : ISpatialAudioMetadataReader.Interface +public unsafe partial struct ISpatialAudioMetadataReader : ISpatialAudioMetadataReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataWriter.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataWriter.cs index 3cca277a87..e9be352d7b 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataWriter.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioMetadataWriter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioMetadataWriter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioMetadataWriter : ISpatialAudioMetadataWriter.Interface +public unsafe partial struct ISpatialAudioMetadataWriter : ISpatialAudioMetadataWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioMetadataWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataCommands.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataCommands.cs index 09c289230c..aa99ccaaaa 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataCommands.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataCommands.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioObjectForMetadataCommands : ISpatialAudioObjectBase")] [NativeInheritance("ISpatialAudioObjectBase")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioObjectForMetadataCommands : ISpatialAudioObjectForMetadataCommands.Interface +public unsafe partial struct ISpatialAudioObjectForMetadataCommands : ISpatialAudioObjectForMetadataCommands.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectForMetadataCommands)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataItems.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataItems.cs index e377d5a9db..18aa4760d3 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataItems.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectForMetadataItems.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioObjectForMetadataItems : ISpatialAudioObjectBase")] [NativeInheritance("ISpatialAudioObjectBase")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioObjectForMetadataItems : ISpatialAudioObjectForMetadataItems.Interface +public unsafe partial struct ISpatialAudioObjectForMetadataItems : ISpatialAudioObjectForMetadataItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectForMetadataItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectRenderStreamForMetadata.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectRenderStreamForMetadata.cs index 5a56cba839..dd18e33f53 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectRenderStreamForMetadata.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/ISpatialAudioObjectRenderStreamForMetadata.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ISpatialAudioObjectRenderStreamForMetadata : ISpatialAudioObjectRenderStreamBase")] [NativeInheritance("ISpatialAudioObjectRenderStreamBase")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct ISpatialAudioObjectRenderStreamForMetadata : ISpatialAudioObjectRenderStreamForMetadata.Interface +public unsafe partial struct ISpatialAudioObjectRenderStreamForMetadata : ISpatialAudioObjectRenderStreamForMetadata.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpatialAudioObjectRenderStreamForMetadata)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderHandler.cs b/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderHandler.cs index 0a19d76b2e..ec10ba7f8b 100644 --- a/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderHandler.cs +++ b/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("162C6FB5-44D3-435B-903D-E613FA093FB5")] [NativeTypeName("struct IStorageProviderHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStorageProviderHandler : IStorageProviderHandler.Interface +public unsafe partial struct IStorageProviderHandler : IStorageProviderHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageProviderHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderPropertyHandler.cs b/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderPropertyHandler.cs index 38e9259425..1053d8c8db 100644 --- a/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderPropertyHandler.cs +++ b/sources/Interop/Windows/Windows/um/StorageProvider/IStorageProviderPropertyHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("301DFBE5-524C-4B0F-8B2D-21C40B3A2988")] [NativeTypeName("struct IStorageProviderPropertyHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStorageProviderPropertyHandler : IStorageProviderPropertyHandler.Interface +public unsafe partial struct IStorageProviderPropertyHandler : IStorageProviderPropertyHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorageProviderPropertyHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition.cs b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition.cs index 2726637faa..f654c0e02d 100644 --- a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition.cs +++ b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0FC988D4-C935-4B97-A973-46282EA175C8")] [NativeTypeName("struct ICondition : IPersistStream")] [NativeInheritance("IPersistStream")] -public unsafe partial struct ICondition : ICondition.Interface +public unsafe partial struct ICondition : ICondition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICondition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition2.cs b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition2.cs index 842ab43b74..dcf4b0c120 100644 --- a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition2.cs +++ b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/ICondition2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0DB8851D-2E5B-47EB-9208-D28C325A01D7")] [NativeTypeName("struct ICondition2 : ICondition")] [NativeInheritance("ICondition")] -public unsafe partial struct ICondition2 : ICondition2.Interface +public unsafe partial struct ICondition2 : ICondition2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICondition2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/IRichChunk.cs b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/IRichChunk.cs index 528d009d77..336b9f757b 100644 --- a/sources/Interop/Windows/Windows/um/StructuredQueryCondition/IRichChunk.cs +++ b/sources/Interop/Windows/Windows/um/StructuredQueryCondition/IRichChunk.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4FDEF69C-DBC9-454E-9910-B34F3C64B510")] [NativeTypeName("struct IRichChunk : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRichChunk : IRichChunk.Interface +public unsafe partial struct IRichChunk : IRichChunk.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRichChunk)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ConflictFolder.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ConflictFolder.cs index 3dc0c8898f..327caf3025 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ConflictFolder.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ConflictFolder.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("289978AC-A101-4341-A817-21EBA7FD046D")] -public partial struct ConflictFolder +public unsafe partial struct ConflictFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ConflictFolder)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrConflict.cs b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrConflict.cs index 84faae7bdb..5e8fc6fd0f 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrConflict.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrConflict.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("82705914-DDA3-4893-BA99-49DE6C8C8036")] [NativeTypeName("struct IEnumSyncMgrConflict : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSyncMgrConflict : IEnumSyncMgrConflict.Interface +public unsafe partial struct IEnumSyncMgrConflict : IEnumSyncMgrConflict.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSyncMgrConflict)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrEvents.cs b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrEvents.cs index fbf2753d20..1c42b4fa38 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrEvents.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C81A1D4E-8CF7-4683-80E0-BCAE88D677B6")] [NativeTypeName("struct IEnumSyncMgrEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSyncMgrEvents : IEnumSyncMgrEvents.Interface +public unsafe partial struct IEnumSyncMgrEvents : IEnumSyncMgrEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSyncMgrEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrSyncItems.cs b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrSyncItems.cs index 985a31a2a3..66176429f5 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrSyncItems.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/IEnumSyncMgrSyncItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("54B3ABF3-F085-4181-B546-E29C403C726B")] [NativeTypeName("struct IEnumSyncMgrSyncItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSyncMgrSyncItems : IEnumSyncMgrSyncItems.Interface +public unsafe partial struct IEnumSyncMgrSyncItems : IEnumSyncMgrSyncItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSyncMgrSyncItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflict.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflict.cs index 1bd16d4dfc..31b347b2b6 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflict.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflict.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9C204249-C443-4BA4-85ED-C972681DB137")] [NativeTypeName("struct ISyncMgrConflict : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflict : ISyncMgrConflict.Interface +public unsafe partial struct ISyncMgrConflict : ISyncMgrConflict.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflict)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictFolder.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictFolder.cs index 3871af90e7..337e478d03 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictFolder.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictFolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("59287F5E-BC81-4FCA-A7F1-E5A8ECDB1D69")] [NativeTypeName("struct ISyncMgrConflictFolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictFolder : ISyncMgrConflictFolder.Interface +public unsafe partial struct ISyncMgrConflictFolder : ISyncMgrConflictFolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictFolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictItems.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictItems.cs index 41350b8933..5fc06f45df 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictItems.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9C7EAD52-8023-4936-A4DB-D2A9A99E436A")] [NativeTypeName("struct ISyncMgrConflictItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictItems : ISyncMgrConflictItems.Interface +public unsafe partial struct ISyncMgrConflictItems : ISyncMgrConflictItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictPresenter.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictPresenter.cs index e529e290a9..a9446f6fae 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictPresenter.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictPresenter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0B4F5353-FD2B-42CD-8763-4779F2D508A3")] [NativeTypeName("struct ISyncMgrConflictPresenter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictPresenter : ISyncMgrConflictPresenter.Interface +public unsafe partial struct ISyncMgrConflictPresenter : ISyncMgrConflictPresenter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictPresenter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolutionItems.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolutionItems.cs index 2c91c15078..a894b7d470 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolutionItems.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolutionItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("458725B9-129D-4135-A998-9CEAFEC27007")] [NativeTypeName("struct ISyncMgrConflictResolutionItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictResolutionItems : ISyncMgrConflictResolutionItems.Interface +public unsafe partial struct ISyncMgrConflictResolutionItems : ISyncMgrConflictResolutionItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictResolutionItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolveInfo.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolveInfo.cs index d73c6de643..eec2c7c117 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolveInfo.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictResolveInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C405A219-25A2-442E-8743-B845A2CEE93F")] [NativeTypeName("struct ISyncMgrConflictResolveInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictResolveInfo : ISyncMgrConflictResolveInfo.Interface +public unsafe partial struct ISyncMgrConflictResolveInfo : ISyncMgrConflictResolveInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictResolveInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictStore.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictStore.cs index 69ad596869..8134441413 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictStore.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrConflictStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CF8FC579-C396-4774-85F1-D908A831156E")] [NativeTypeName("struct ISyncMgrConflictStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrConflictStore : ISyncMgrConflictStore.Interface +public unsafe partial struct ISyncMgrConflictStore : ISyncMgrConflictStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrConflictStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrControl.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrControl.cs index d5de80cf5f..ba817602de 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrControl.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B63616C-36B2-46BC-959F-C1593952D19B")] [NativeTypeName("struct ISyncMgrControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrControl : ISyncMgrControl.Interface +public unsafe partial struct ISyncMgrControl : ISyncMgrControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEvent.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEvent.cs index 48e50a733b..8e5bda3fc2 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEvent.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FEE0EF8B-46BD-4DB4-B7E6-FF2C687313BC")] [NativeTypeName("struct ISyncMgrEvent : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrEvent : ISyncMgrEvent.Interface +public unsafe partial struct ISyncMgrEvent : ISyncMgrEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventLinkUIOperation.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventLinkUIOperation.cs index 050dee45f7..f1f73f37e1 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventLinkUIOperation.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventLinkUIOperation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("64522E52-848B-4015-89CE-5A36F00B94FF")] [NativeTypeName("struct ISyncMgrEventLinkUIOperation : ISyncMgrUIOperation")] [NativeInheritance("ISyncMgrUIOperation")] -public unsafe partial struct ISyncMgrEventLinkUIOperation : ISyncMgrEventLinkUIOperation.Interface +public unsafe partial struct ISyncMgrEventLinkUIOperation : ISyncMgrEventLinkUIOperation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrEventLinkUIOperation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventStore.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventStore.cs index e70d060989..525ca4873d 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventStore.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrEventStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("37E412F9-016E-44C2-81FF-DB3ADD774266")] [NativeTypeName("struct ISyncMgrEventStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrEventStore : ISyncMgrEventStore.Interface +public unsafe partial struct ISyncMgrEventStore : ISyncMgrEventStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrEventStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandler.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandler.cs index 8f1064fa40..1410d0f8e9 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandler.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("04EC2E43-AC77-49F9-9B98-0307EF7A72A2")] [NativeTypeName("struct ISyncMgrHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrHandler : ISyncMgrHandler.Interface +public unsafe partial struct ISyncMgrHandler : ISyncMgrHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerCollection.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerCollection.cs index 52ac62b800..87f63c35bc 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerCollection.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7F337A3-D20B-45CB-9ED7-87D094CA5045")] [NativeTypeName("struct ISyncMgrHandlerCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrHandlerCollection : ISyncMgrHandlerCollection.Interface +public unsafe partial struct ISyncMgrHandlerCollection : ISyncMgrHandlerCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrHandlerCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerInfo.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerInfo.cs index a8a368242d..ff4d552a0c 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerInfo.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrHandlerInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4FF1D798-ECF7-4524-AA81-1E362A0AEF3A")] [NativeTypeName("struct ISyncMgrHandlerInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrHandlerInfo : ISyncMgrHandlerInfo.Interface +public unsafe partial struct ISyncMgrHandlerInfo : ISyncMgrHandlerInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrHandlerInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrResolutionHandler.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrResolutionHandler.cs index e8cb7526df..0aca10b366 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrResolutionHandler.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrResolutionHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("40A3D052-8BFF-4C4B-A338-D4A395700DE9")] [NativeTypeName("struct ISyncMgrResolutionHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrResolutionHandler : ISyncMgrResolutionHandler.Interface +public unsafe partial struct ISyncMgrResolutionHandler : ISyncMgrResolutionHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrResolutionHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrScheduleWizardUIOperation.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrScheduleWizardUIOperation.cs index 4101ded2e5..60bb360062 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrScheduleWizardUIOperation.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrScheduleWizardUIOperation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("459A6C84-21D2-4DDC-8A53-F023A46066F2")] [NativeTypeName("struct ISyncMgrScheduleWizardUIOperation : ISyncMgrUIOperation")] [NativeInheritance("ISyncMgrUIOperation")] -public unsafe partial struct ISyncMgrScheduleWizardUIOperation : ISyncMgrScheduleWizardUIOperation.Interface +public unsafe partial struct ISyncMgrScheduleWizardUIOperation : ISyncMgrScheduleWizardUIOperation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrScheduleWizardUIOperation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSessionCreator.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSessionCreator.cs index 30adea7972..5b2632d935 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSessionCreator.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSessionCreator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("17F48517-F305-4321-A08D-B25A834918FD")] [NativeTypeName("struct ISyncMgrSessionCreator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSessionCreator : ISyncMgrSessionCreator.Interface +public unsafe partial struct ISyncMgrSessionCreator : ISyncMgrSessionCreator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSessionCreator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncCallback.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncCallback.cs index e5909f0776..f41c03952a 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncCallback.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("884CCD87-B139-4937-A4BA-4F8E19513FBE")] [NativeTypeName("struct ISyncMgrSyncCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSyncCallback : ISyncMgrSyncCallback.Interface +public unsafe partial struct ISyncMgrSyncCallback : ISyncMgrSyncCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSyncCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItem.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItem.cs index e3d7000df3..3d7636dad3 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItem.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B20B24CE-2593-4F04-BD8B-7AD6C45051CD")] [NativeTypeName("struct ISyncMgrSyncItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSyncItem : ISyncMgrSyncItem.Interface +public unsafe partial struct ISyncMgrSyncItem : ISyncMgrSyncItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSyncItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemContainer.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemContainer.cs index db33d0bf22..02243a15e5 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemContainer.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("90701133-BE32-4129-A65C-99E616CAFFF4")] [NativeTypeName("struct ISyncMgrSyncItemContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSyncItemContainer : ISyncMgrSyncItemContainer.Interface +public unsafe partial struct ISyncMgrSyncItemContainer : ISyncMgrSyncItemContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSyncItemContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemInfo.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemInfo.cs index 021d7ddd9c..6cb9fd5e0b 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemInfo.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncItemInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E7FD9502-BE0C-4464-90A1-2B5277031232")] [NativeTypeName("struct ISyncMgrSyncItemInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSyncItemInfo : ISyncMgrSyncItemInfo.Interface +public unsafe partial struct ISyncMgrSyncItemInfo : ISyncMgrSyncItemInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSyncItemInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncResult.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncResult.cs index f64bad7e77..8df660ca3a 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncResult.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrSyncResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2B90F17E-5A3E-4B33-BB7F-1BC48056B94D")] [NativeTypeName("struct ISyncMgrSyncResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrSyncResult : ISyncMgrSyncResult.Interface +public unsafe partial struct ISyncMgrSyncResult : ISyncMgrSyncResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrSyncResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrUIOperation.cs b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrUIOperation.cs index 7e7903a21d..3907504f2b 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrUIOperation.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/ISyncMgrUIOperation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FC7CFA47-DFE1-45B5-A049-8CFD82BEC271")] [NativeTypeName("struct ISyncMgrUIOperation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISyncMgrUIOperation : ISyncMgrUIOperation.Interface +public unsafe partial struct ISyncMgrUIOperation : ISyncMgrUIOperation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISyncMgrUIOperation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SimpleConflictPresenter.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SimpleConflictPresenter.cs index c9ab9ebc9c..ab011939f7 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SimpleConflictPresenter.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SimpleConflictPresenter.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7A0F6AB7-ED84-46B6-B47E-02AA159A152B")] -public partial struct SimpleConflictPresenter +public unsafe partial struct SimpleConflictPresenter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SimpleConflictPresenter)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrClient.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrClient.cs index 3115144ef2..4c35704abc 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrClient.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrClient.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1202DB60-1DAC-42C5-AED5-1ABDD432248E")] -public partial struct SyncMgrClient +public unsafe partial struct SyncMgrClient : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncMgrClient)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrControl.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrControl.cs index fef927e611..dab87ab108 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrControl.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrControl.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1A1F4206-0688-4E7F-BE03-D82EC69DF9A5")] -public partial struct SyncMgrControl +public unsafe partial struct SyncMgrControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncMgrControl)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrFolder.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrFolder.cs index 6dc5c17061..2777450cdd 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrFolder.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrFolder.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF")] -public partial struct SyncMgrFolder +public unsafe partial struct SyncMgrFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncMgrFolder)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrScheduleWizard.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrScheduleWizard.cs index 0dfc20e1bc..57a92c3e82 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrScheduleWizard.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncMgrScheduleWizard.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8D8B8E30-C451-421B-8553-D2976AFA648C")] -public partial struct SyncMgrScheduleWizard +public unsafe partial struct SyncMgrScheduleWizard : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncMgrScheduleWizard)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncResultsFolder.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncResultsFolder.cs index 70506a2bb6..e93763b8c0 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncResultsFolder.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncResultsFolder.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("71D99464-3B6B-475C-B241-E15883207529")] -public partial struct SyncResultsFolder +public unsafe partial struct SyncResultsFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncResultsFolder)); } diff --git a/sources/Interop/Windows/Windows/um/SyncMgr/SyncSetupFolder.cs b/sources/Interop/Windows/Windows/um/SyncMgr/SyncSetupFolder.cs index 5126d3afa1..424dc0c22f 100644 --- a/sources/Interop/Windows/Windows/um/SyncMgr/SyncSetupFolder.cs +++ b/sources/Interop/Windows/Windows/um/SyncMgr/SyncSetupFolder.cs @@ -3,12 +3,16 @@ // Ported from um/SyncMgr.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2E9E59C0-B437-4981-A647-9C34B9B90891")] -public partial struct SyncSetupFolder +public unsafe partial struct SyncSetupFolder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SyncSetupFolder)); } diff --git a/sources/Interop/Windows/Windows/um/TextStor/IAnchor.cs b/sources/Interop/Windows/Windows/um/TextStor/IAnchor.cs index 707925ad10..0566f095a9 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/IAnchor.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/IAnchor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0FEB7E34-5A60-4356-8EF7-ABDEC2FF7CF8")] [NativeTypeName("struct IAnchor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAnchor : IAnchor.Interface +public unsafe partial struct IAnchor : IAnchor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAnchor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP.cs b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP.cs index c5c3948d1f..ec5e72594e 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("28888FE3-C2A0-483A-A3EA-8CB1CE51FF3D")] [NativeTypeName("struct ITextStoreACP : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreACP : ITextStoreACP.Interface +public unsafe partial struct ITextStoreACP : ITextStoreACP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP2.cs b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP2.cs index f9dfae34b7..47b850973b 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP2.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACP2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITextStoreACP2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ITextStoreACP2 : ITextStoreACP2.Interface +public unsafe partial struct ITextStoreACP2 : ITextStoreACP2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACP2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACPSink.cs b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACPSink.cs index b3b7538ca9..154112ddd4 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACPSink.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreACPSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("22D44C94-A419-4542-A272-AE26093ECECF")] [NativeTypeName("struct ITextStoreACPSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreACPSink : ITextStoreACPSink.Interface +public unsafe partial struct ITextStoreACPSink : ITextStoreACPSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACPSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchor.cs b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchor.cs index bca3259aa0..f788ab27bb 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchor.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B2077B0-5F18-4DEC-BEE9-3CC722F5DFE0")] [NativeTypeName("struct ITextStoreAnchor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreAnchor : ITextStoreAnchor.Interface +public unsafe partial struct ITextStoreAnchor : ITextStoreAnchor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreAnchor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchorSink.cs b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchorSink.cs index 641b55ae6b..4d6c754617 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchorSink.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/ITextStoreAnchorSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E905-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITextStoreAnchorSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreAnchorSink : ITextStoreAnchorSink.Interface +public unsafe partial struct ITextStoreAnchorSink : ITextStoreAnchorSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreAnchorSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator.cs index cd85dbc645..92d173b3fd 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7815CBBA-DDF7-478C-A46C-7B6C738B7978")] [NativeTypeName("struct IUIAnimationInterpolator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationInterpolator : IUIAnimationInterpolator.Interface +public unsafe partial struct IUIAnimationInterpolator : IUIAnimationInterpolator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationInterpolator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator2.cs index cf73dd8093..2ceb718202 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationInterpolator2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA76AFF8-EA22-4A23-A0EF-A6A966703518")] [NativeTypeName("struct IUIAnimationInterpolator2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationInterpolator2 : IUIAnimationInterpolator2.Interface +public unsafe partial struct IUIAnimationInterpolator2 : IUIAnimationInterpolator2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationInterpolator2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationLoopIterationChangeHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationLoopIterationChangeHandler2.cs index 170f06db3a..0692b652b4 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationLoopIterationChangeHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationLoopIterationChangeHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2D3B15A4-4762-47AB-A030-B23221DF3AE0")] [NativeTypeName("struct IUIAnimationLoopIterationChangeHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationLoopIterationChangeHandler2 : IUIAnimationLoopIterationChangeHandler2.Interface +public unsafe partial struct IUIAnimationLoopIterationChangeHandler2 : IUIAnimationLoopIterationChangeHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationLoopIterationChangeHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager.cs index 9cf53c5f39..b59fb8c3b5 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9169896C-AC8D-4E7D-94E5-67FA4DC2F2E8")] [NativeTypeName("struct IUIAnimationManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationManager : IUIAnimationManager.Interface +public unsafe partial struct IUIAnimationManager : IUIAnimationManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager2.cs index 4b3c657196..bf337a2991 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManager2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8B6F7D4-4109-4D3F-ACEE-879926968CB1")] [NativeTypeName("struct IUIAnimationManager2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationManager2 : IUIAnimationManager2.Interface +public unsafe partial struct IUIAnimationManager2 : IUIAnimationManager2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationManager2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler.cs index 40038fdbbd..022664f4ba 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("783321ED-78A3-4366-B574-6AF607A64788")] [NativeTypeName("struct IUIAnimationManagerEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationManagerEventHandler : IUIAnimationManagerEventHandler.Interface +public unsafe partial struct IUIAnimationManagerEventHandler : IUIAnimationManagerEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationManagerEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler2.cs index 397a183281..2836ed6f32 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationManagerEventHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F6E022BA-BFF3-42EC-9033-E073F33E83C3")] [NativeTypeName("struct IUIAnimationManagerEventHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationManagerEventHandler2 : IUIAnimationManagerEventHandler2.Interface +public unsafe partial struct IUIAnimationManagerEventHandler2 : IUIAnimationManagerEventHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationManagerEventHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPrimitiveInterpolation.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPrimitiveInterpolation.cs index 0b80b85b39..0cd8e613e6 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPrimitiveInterpolation.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPrimitiveInterpolation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BAB20D63-4361-45DA-A24F-AB8508846B5B")] [NativeTypeName("struct IUIAnimationPrimitiveInterpolation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationPrimitiveInterpolation : IUIAnimationPrimitiveInterpolation.Interface +public unsafe partial struct IUIAnimationPrimitiveInterpolation : IUIAnimationPrimitiveInterpolation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationPrimitiveInterpolation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison.cs index f317bbd6e6..453b009fbf 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83FA9B74-5F86-4618-BC6A-A2FAC19B3F44")] [NativeTypeName("struct IUIAnimationPriorityComparison : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationPriorityComparison : IUIAnimationPriorityComparison.Interface +public unsafe partial struct IUIAnimationPriorityComparison : IUIAnimationPriorityComparison.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationPriorityComparison)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison2.cs index 238d692544..e7f919f294 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationPriorityComparison2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B6D7A37-4621-467C-8B05-70131DE62DDB")] [NativeTypeName("struct IUIAnimationPriorityComparison2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationPriorityComparison2 : IUIAnimationPriorityComparison2.Interface +public unsafe partial struct IUIAnimationPriorityComparison2 : IUIAnimationPriorityComparison2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationPriorityComparison2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard.cs index c687600e02..b8ef078691 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A8FF128F-9BF9-4AF1-9E67-E5E410DEFB84")] [NativeTypeName("struct IUIAnimationStoryboard : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationStoryboard : IUIAnimationStoryboard.Interface +public unsafe partial struct IUIAnimationStoryboard : IUIAnimationStoryboard.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationStoryboard)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard2.cs index 3b8ef484ef..1f842c7b5c 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboard2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE289CD2-12D4-4945-9419-9E41BE034DF2")] [NativeTypeName("struct IUIAnimationStoryboard2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationStoryboard2 : IUIAnimationStoryboard2.Interface +public unsafe partial struct IUIAnimationStoryboard2 : IUIAnimationStoryboard2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationStoryboard2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler.cs index 09bf5a6f49..592413341a 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3D5C9008-EC7C-4364-9F8A-9AF3C58CBAE6")] [NativeTypeName("struct IUIAnimationStoryboardEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationStoryboardEventHandler : IUIAnimationStoryboardEventHandler.Interface +public unsafe partial struct IUIAnimationStoryboardEventHandler : IUIAnimationStoryboardEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationStoryboardEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler2.cs index 8503bdb1af..c34c8c466c 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationStoryboardEventHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BAC5F55A-BA7C-414C-B599-FBF850F553C6")] [NativeTypeName("struct IUIAnimationStoryboardEventHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationStoryboardEventHandler2 : IUIAnimationStoryboardEventHandler2.Interface +public unsafe partial struct IUIAnimationStoryboardEventHandler2 : IUIAnimationStoryboardEventHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationStoryboardEventHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimer.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimer.cs index 409b997859..440b47e6e6 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimer.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6B0EFAD1-A053-41D6-9085-33A689144665")] [NativeTypeName("struct IUIAnimationTimer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTimer : IUIAnimationTimer.Interface +public unsafe partial struct IUIAnimationTimer : IUIAnimationTimer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTimer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerClientEventHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerClientEventHandler.cs index 83a2204dd1..101772bdc6 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerClientEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerClientEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BEDB4DB6-94FA-4BFB-A47F-EF2D9E408C25")] [NativeTypeName("struct IUIAnimationTimerClientEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTimerClientEventHandler : IUIAnimationTimerClientEventHandler.Interface +public unsafe partial struct IUIAnimationTimerClientEventHandler : IUIAnimationTimerClientEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTimerClientEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerEventHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerEventHandler.cs index 8d23d8a4b4..bc211f1ab1 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerEventHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerEventHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("274A7DEA-D771-4095-ABBD-8DF7ABD23CE3")] [NativeTypeName("struct IUIAnimationTimerEventHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTimerEventHandler : IUIAnimationTimerEventHandler.Interface +public unsafe partial struct IUIAnimationTimerEventHandler : IUIAnimationTimerEventHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTimerEventHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerUpdateHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerUpdateHandler.cs index 2c378d18c4..5c674664e8 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerUpdateHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTimerUpdateHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("195509B7-5D5E-4E3E-B278-EE3759B367AD")] [NativeTypeName("struct IUIAnimationTimerUpdateHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTimerUpdateHandler : IUIAnimationTimerUpdateHandler.Interface +public unsafe partial struct IUIAnimationTimerUpdateHandler : IUIAnimationTimerUpdateHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTimerUpdateHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition.cs index e6e1c02fde..6de052dd2f 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC6CE252-F731-41CF-B610-614B6CA049AD")] [NativeTypeName("struct IUIAnimationTransition : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransition : IUIAnimationTransition.Interface +public unsafe partial struct IUIAnimationTransition : IUIAnimationTransition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition2.cs index 99694afd50..4e02108d08 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransition2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("62FF9123-A85A-4E9B-A218-435A93E268FD")] [NativeTypeName("struct IUIAnimationTransition2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransition2 : IUIAnimationTransition2.Interface +public unsafe partial struct IUIAnimationTransition2 : IUIAnimationTransition2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransition2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory.cs index 3bd2c55581..a93096c24d 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FCD91E03-3E3B-45AD-BBB1-6DFC8153743D")] [NativeTypeName("struct IUIAnimationTransitionFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransitionFactory : IUIAnimationTransitionFactory.Interface +public unsafe partial struct IUIAnimationTransitionFactory : IUIAnimationTransitionFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransitionFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory2.cs index dc085ad027..456c02ce95 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionFactory2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("937D4916-C1A6-42D5-88D8-30344D6EFE31")] [NativeTypeName("struct IUIAnimationTransitionFactory2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransitionFactory2 : IUIAnimationTransitionFactory2.Interface +public unsafe partial struct IUIAnimationTransitionFactory2 : IUIAnimationTransitionFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransitionFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary.cs index 030e19a100..fe0a7b9425 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CA5A14B1-D24F-48B8-8FE4-C78169BA954E")] [NativeTypeName("struct IUIAnimationTransitionLibrary : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransitionLibrary : IUIAnimationTransitionLibrary.Interface +public unsafe partial struct IUIAnimationTransitionLibrary : IUIAnimationTransitionLibrary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransitionLibrary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary2.cs index 2163c53b84..e4e7db755a 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationTransitionLibrary2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("03CFAE53-9580-4EE3-B363-2ECE51B4AF6A")] [NativeTypeName("struct IUIAnimationTransitionLibrary2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationTransitionLibrary2 : IUIAnimationTransitionLibrary2.Interface +public unsafe partial struct IUIAnimationTransitionLibrary2 : IUIAnimationTransitionLibrary2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationTransitionLibrary2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable.cs index f4643eb46b..d05e826ac7 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8CEEB155-2849-4CE5-9448-91FF70E1E4D9")] [NativeTypeName("struct IUIAnimationVariable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariable : IUIAnimationVariable.Interface +public unsafe partial struct IUIAnimationVariable : IUIAnimationVariable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable2.cs index 3417de0970..21de9193ec 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariable2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("4914B304-96AB-44D9-9E77-D5109B7E7466")] [NativeTypeName("struct IUIAnimationVariable2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariable2 : IUIAnimationVariable2.Interface +public unsafe partial struct IUIAnimationVariable2 : IUIAnimationVariable2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariable2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler.cs index 72501e9e90..80fe407cff 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6358B7BA-87D2-42D5-BF71-82E919DD5862")] [NativeTypeName("struct IUIAnimationVariableChangeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariableChangeHandler : IUIAnimationVariableChangeHandler.Interface +public unsafe partial struct IUIAnimationVariableChangeHandler : IUIAnimationVariableChangeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariableChangeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler2.cs index fd22228256..a8e9632c22 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableChangeHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("63ACC8D2-6EAE-4BB0-B879-586DD8CFBE42")] [NativeTypeName("struct IUIAnimationVariableChangeHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariableChangeHandler2 : IUIAnimationVariableChangeHandler2.Interface +public unsafe partial struct IUIAnimationVariableChangeHandler2 : IUIAnimationVariableChangeHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariableChangeHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableCurveChangeHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableCurveChangeHandler2.cs index bc6556d0bb..b2c3f667c9 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableCurveChangeHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableCurveChangeHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("72895E91-0145-4C21-9192-5AAB40EDDF80")] [NativeTypeName("struct IUIAnimationVariableCurveChangeHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariableCurveChangeHandler2 : IUIAnimationVariableCurveChangeHandler2.Interface +public unsafe partial struct IUIAnimationVariableCurveChangeHandler2 : IUIAnimationVariableCurveChangeHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariableCurveChangeHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler.cs index 81dfebaba5..90f0aea523 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB3E1550-356E-44B0-99DA-85AC6017865E")] [NativeTypeName("struct IUIAnimationVariableIntegerChangeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariableIntegerChangeHandler : IUIAnimationVariableIntegerChangeHandler.Interface +public unsafe partial struct IUIAnimationVariableIntegerChangeHandler : IUIAnimationVariableIntegerChangeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariableIntegerChangeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler2.cs index edba41068a..543b07369e 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/IUIAnimationVariableIntegerChangeHandler2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("829B6CF1-4F3A-4412-AE09-B243EB4C6B58")] [NativeTypeName("struct IUIAnimationVariableIntegerChangeHandler2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUIAnimationVariableIntegerChangeHandler2 : IUIAnimationVariableIntegerChangeHandler2.Interface +public unsafe partial struct IUIAnimationVariableIntegerChangeHandler2 : IUIAnimationVariableIntegerChangeHandler2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIAnimationVariableIntegerChangeHandler2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager.cs index 2043aa4390..baedda88f5 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("4C1FC63A-695C-47E8-A339-1A194BE3D0B8")] -public partial struct UIAnimationManager +public unsafe partial struct UIAnimationManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationManager)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager2.cs index 45d3648e65..c4e8470a4b 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationManager2.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("D25D8842-8884-4A4A-B321-091314379BDD")] -public partial struct UIAnimationManager2 +public unsafe partial struct UIAnimationManager2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationManager2)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTimer.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTimer.cs index a28c3d9d27..a6d0af1468 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTimer.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTimer.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("BFCD4A0C-06B6-4384-B768-0DAA792C380E")] -public partial struct UIAnimationTimer +public unsafe partial struct UIAnimationTimer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationTimer)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory.cs index 233b346ab6..883658d03b 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("8A9B1CDD-FCD7-419C-8B44-42FD17DB1887")] -public partial struct UIAnimationTransitionFactory +public unsafe partial struct UIAnimationTransitionFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationTransitionFactory)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory2.cs index 652335101e..8959d977a4 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionFactory2.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("84302F97-7F7B-4040-B190-72AC9D18E420")] -public partial struct UIAnimationTransitionFactory2 +public unsafe partial struct UIAnimationTransitionFactory2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationTransitionFactory2)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary.cs index 9c7f425dca..42cb65b311 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("1D6322AD-AA85-4EF5-A828-86D71067D145")] -public partial struct UIAnimationTransitionLibrary +public unsafe partial struct UIAnimationTransitionLibrary : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationTransitionLibrary)); } diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary2.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary2.cs index b837da065c..c0aeedc5e7 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary2.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UIAnimationTransitionLibrary2.cs @@ -3,12 +3,16 @@ // Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("812F944A-C5C8-4CD9-B0A6-B3DA802F228D")] -public partial struct UIAnimationTransitionLibrary2 +public unsafe partial struct UIAnimationTransitionLibrary2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_UIAnimationTransitionLibrary2)); } diff --git a/sources/Interop/Windows/Windows/um/Unknwnbase/AsyncIUnknown.cs b/sources/Interop/Windows/Windows/um/Unknwnbase/AsyncIUnknown.cs index 3d860b121d..78923bf3b9 100644 --- a/sources/Interop/Windows/Windows/um/Unknwnbase/AsyncIUnknown.cs +++ b/sources/Interop/Windows/Windows/um/Unknwnbase/AsyncIUnknown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000E0000-0000-0000-C000-000000000046")] [NativeTypeName("struct AsyncIUnknown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIUnknown : AsyncIUnknown.Interface +public unsafe partial struct AsyncIUnknown : AsyncIUnknown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIUnknown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Unknwnbase/IClassFactory.cs b/sources/Interop/Windows/Windows/um/Unknwnbase/IClassFactory.cs index 9c1b1df468..860ba7e896 100644 --- a/sources/Interop/Windows/Windows/um/Unknwnbase/IClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/Unknwnbase/IClassFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000001-0000-0000-C000-000000000046")] [NativeTypeName("struct IClassFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IClassFactory : IClassFactory.Interface +public unsafe partial struct IClassFactory : IClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/Unknwnbase/IUnknown.cs b/sources/Interop/Windows/Windows/um/Unknwnbase/IUnknown.cs index 9d645e1bce..3851677833 100644 --- a/sources/Interop/Windows/Windows/um/Unknwnbase/IUnknown.cs +++ b/sources/Interop/Windows/Windows/um/Unknwnbase/IUnknown.cs @@ -6,13 +6,16 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00000000-0000-0000-C000-000000000046")] -public unsafe partial struct IUnknown : IUnknown.Interface +public unsafe partial struct IUnknown : IUnknown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnknown)); + public void** lpVtbl; /// @@ -41,7 +44,7 @@ public uint Release() return ((delegate* unmanaged)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); } - public interface Interface + public interface Interface : INativeGuid { [VtblIndex(0)] HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject); diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IEnumWbemClassObject.cs b/sources/Interop/Windows/Windows/um/WbemCli/IEnumWbemClassObject.cs index 7a4e6b5584..264516f29f 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IEnumWbemClassObject.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IEnumWbemClassObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("027947E1-D731-11CE-A357-000000000001")] [NativeTypeName("struct IEnumWbemClassObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumWbemClassObject : IEnumWbemClassObject.Interface +public unsafe partial struct IEnumWbemClassObject : IEnumWbemClassObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumWbemClassObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IMofCompiler.cs b/sources/Interop/Windows/Windows/um/WbemCli/IMofCompiler.cs index 22b5313cb3..c82ce0903e 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IMofCompiler.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IMofCompiler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6DAF974E-2E37-11D2-AEC9-00C04FB68820")] [NativeTypeName("struct IMofCompiler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMofCompiler : IMofCompiler.Interface +public unsafe partial struct IMofCompiler : IMofCompiler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMofCompiler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IUnsecuredApartment.cs b/sources/Interop/Windows/Windows/um/WbemCli/IUnsecuredApartment.cs index e4338ae7c7..7e4615d9be 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IUnsecuredApartment.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IUnsecuredApartment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1CFABA8C-1523-11D1-AD79-00C04FD8FDFF")] [NativeTypeName("struct IUnsecuredApartment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUnsecuredApartment : IUnsecuredApartment.Interface +public unsafe partial struct IUnsecuredApartment : IUnsecuredApartment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnsecuredApartment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestore.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestore.cs index bffa327325..bf94c06d12 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestore.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C49E32C7-BC8B-11D2-85D4-00105A1F8304")] [NativeTypeName("struct IWbemBackupRestore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemBackupRestore : IWbemBackupRestore.Interface +public unsafe partial struct IWbemBackupRestore : IWbemBackupRestore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemBackupRestore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestoreEx.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestoreEx.cs index 7ee0196550..f6de100daf 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestoreEx.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemBackupRestoreEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A359DEC5-E813-4834-8A2A-BA7F1D777D76")] [NativeTypeName("struct IWbemBackupRestoreEx : IWbemBackupRestore")] [NativeInheritance("IWbemBackupRestore")] -public unsafe partial struct IWbemBackupRestoreEx : IWbemBackupRestoreEx.Interface +public unsafe partial struct IWbemBackupRestoreEx : IWbemBackupRestoreEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemBackupRestoreEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemCallResult.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemCallResult.cs index df8e30dc42..5199b12a05 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemCallResult.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemCallResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("44ACA675-E8FC-11D0-A07C-00C04FB68820")] [NativeTypeName("struct IWbemCallResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemCallResult : IWbemCallResult.Interface +public unsafe partial struct IWbemCallResult : IWbemCallResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemCallResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemClassObject.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemClassObject.cs index 56f993726c..6bb234c1c6 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemClassObject.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemClassObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC12A681-737F-11CF-884D-00AA004B2E24")] [NativeTypeName("struct IWbemClassObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemClassObject : IWbemClassObject.Interface +public unsafe partial struct IWbemClassObject : IWbemClassObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemClassObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemConfigureRefresher.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemConfigureRefresher.cs index 9ef9be91a7..371752e7ad 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemConfigureRefresher.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemConfigureRefresher.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("49353C92-516B-11D1-AEA6-00C04FB68820")] [NativeTypeName("struct IWbemConfigureRefresher : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemConfigureRefresher : IWbemConfigureRefresher.Interface +public unsafe partial struct IWbemConfigureRefresher : IWbemConfigureRefresher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemConfigureRefresher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemContext.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemContext.cs index 410b5e5e31..b7b30ad7c2 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemContext.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("44ACA674-E8FC-11D0-A07C-00C04FB68820")] [NativeTypeName("struct IWbemContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemContext : IWbemContext.Interface +public unsafe partial struct IWbemContext : IWbemContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemHiPerfEnum.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemHiPerfEnum.cs index 184665bd25..60bbe0d673 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemHiPerfEnum.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemHiPerfEnum.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2705C288-79AE-11D2-B348-00105A1F8177")] [NativeTypeName("struct IWbemHiPerfEnum : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemHiPerfEnum : IWbemHiPerfEnum.Interface +public unsafe partial struct IWbemHiPerfEnum : IWbemHiPerfEnum.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemHiPerfEnum)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemLocator.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemLocator.cs index 8dfe9a4efc..ddc5da280c 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemLocator.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemLocator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC12A687-737F-11CF-884D-00AA004B2E24")] [NativeTypeName("struct IWbemLocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemLocator : IWbemLocator.Interface +public unsafe partial struct IWbemLocator : IWbemLocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemLocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectAccess.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectAccess.cs index 308c27e714..d835fe65dc 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectAccess.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectAccess.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("49353C9A-516B-11D1-AEA6-00C04FB68820")] [NativeTypeName("struct IWbemObjectAccess : IWbemClassObject")] [NativeInheritance("IWbemClassObject")] -public unsafe partial struct IWbemObjectAccess : IWbemObjectAccess.Interface +public unsafe partial struct IWbemObjectAccess : IWbemObjectAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemObjectAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSink.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSink.cs index 94165db879..eb7481a1bb 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSink.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7C857801-7381-11CF-884D-00AA004B2E24")] [NativeTypeName("struct IWbemObjectSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemObjectSink : IWbemObjectSink.Interface +public unsafe partial struct IWbemObjectSink : IWbemObjectSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemObjectSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSinkEx.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSinkEx.cs index 872d631ca6..856ddafea6 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSinkEx.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectSinkEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E7D35CFA-348B-485E-B524-252725D697CA")] [NativeTypeName("struct IWbemObjectSinkEx : IWbemObjectSink")] [NativeInheritance("IWbemObjectSink")] -public unsafe partial struct IWbemObjectSinkEx : IWbemObjectSinkEx.Interface +public unsafe partial struct IWbemObjectSinkEx : IWbemObjectSinkEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemObjectSinkEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectTextSrc.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectTextSrc.cs index e62a8b69cf..28fa345a6d 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectTextSrc.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemObjectTextSrc.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BFBF883A-CAD7-11D3-A11B-00105A1F515A")] [NativeTypeName("struct IWbemObjectTextSrc : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemObjectTextSrc : IWbemObjectTextSrc.Interface +public unsafe partial struct IWbemObjectTextSrc : IWbemObjectTextSrc.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemObjectTextSrc)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemQualifierSet.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemQualifierSet.cs index dc602f1223..3901c63893 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemQualifierSet.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemQualifierSet.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC12A680-737F-11CF-884D-00AA004B2E24")] [NativeTypeName("struct IWbemQualifierSet : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemQualifierSet : IWbemQualifierSet.Interface +public unsafe partial struct IWbemQualifierSet : IWbemQualifierSet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemQualifierSet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemRefresher.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemRefresher.cs index 9f216fa23d..f41822c12e 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemRefresher.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemRefresher.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("49353C99-516B-11D1-AEA6-00C04FB68820")] [NativeTypeName("struct IWbemRefresher : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemRefresher : IWbemRefresher.Interface +public unsafe partial struct IWbemRefresher : IWbemRefresher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemRefresher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemServices.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemServices.cs index 42aba6b186..afd5439eec 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemServices.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9556DC99-828C-11CF-A37E-00AA003240C7")] [NativeTypeName("struct IWbemServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemServices : IWbemServices.Interface +public unsafe partial struct IWbemServices : IWbemServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemShutdown.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemShutdown.cs index 156e4b884a..24f5a31d2e 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemShutdown.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemShutdown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B7B31DF9-D515-11D3-A11C-00105A1F515A")] [NativeTypeName("struct IWbemShutdown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemShutdown : IWbemShutdown.Interface +public unsafe partial struct IWbemShutdown : IWbemShutdown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemShutdown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemStatusCodeText.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemStatusCodeText.cs index e0b2505c55..b1f6a13130 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemStatusCodeText.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemStatusCodeText.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB87E1BC-3233-11D2-AEC9-00C04FB68820")] [NativeTypeName("struct IWbemStatusCodeText : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWbemStatusCodeText : IWbemStatusCodeText.Interface +public unsafe partial struct IWbemStatusCodeText : IWbemStatusCodeText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemStatusCodeText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/IWbemUnsecuredApartment.cs b/sources/Interop/Windows/Windows/um/WbemCli/IWbemUnsecuredApartment.cs index 5df66b9bb8..a4dac719b1 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/IWbemUnsecuredApartment.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/IWbemUnsecuredApartment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("31739D04-3471-4CF4-9A7C-57A44AE71956")] [NativeTypeName("struct IWbemUnsecuredApartment : IUnsecuredApartment")] [NativeInheritance("IUnsecuredApartment")] -public unsafe partial struct IWbemUnsecuredApartment : IWbemUnsecuredApartment.Interface +public unsafe partial struct IWbemUnsecuredApartment : IWbemUnsecuredApartment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWbemUnsecuredApartment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/WbemCli/MofCompiler.cs b/sources/Interop/Windows/Windows/um/WbemCli/MofCompiler.cs index bfcfd560e0..29ffec716b 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/MofCompiler.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/MofCompiler.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6DAF9757-2E37-11D2-AEC9-00C04FB68820")] -public partial struct MofCompiler +public unsafe partial struct MofCompiler : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_MofCompiler)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/UnsecuredApartment.cs b/sources/Interop/Windows/Windows/um/WbemCli/UnsecuredApartment.cs index d334bb00c7..5c22782d1d 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/UnsecuredApartment.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/UnsecuredApartment.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("49BD2028-1523-11D1-AD79-00C04FD8FDFF")] -public partial struct UnsecuredApartment +public unsafe partial struct UnsecuredApartment : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_UnsecuredApartment)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemBackupRestore.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemBackupRestore.cs index f9a9c40cfa..5730005ba0 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemBackupRestore.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemBackupRestore.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C49E32C6-BC8B-11D2-85D4-00105A1F8304")] -public partial struct WbemBackupRestore +public unsafe partial struct WbemBackupRestore : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemBackupRestore)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemClassObject.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemClassObject.cs index f30173777f..7bd11e57ca 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemClassObject.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemClassObject.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9A653086-174F-11D2-B5F9-00104B703EFD")] -public partial struct WbemClassObject +public unsafe partial struct WbemClassObject : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemClassObject)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemContext.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemContext.cs index 49caf96a75..38e283d980 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemContext.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemContext.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("674B6698-EE92-11D0-AD71-00C04FD8FDFF")] -public partial struct WbemContext +public unsafe partial struct WbemContext : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemContext)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemLocator.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemLocator.cs index 33f9f1a960..546f6aa804 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemLocator.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemLocator.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4590F811-1D3A-11D0-891F-00AA004B2E24")] -public partial struct WbemLocator +public unsafe partial struct WbemLocator : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemLocator)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemObjectTextSrc.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemObjectTextSrc.cs index aa0c2f64a3..4466cdc22f 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemObjectTextSrc.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemObjectTextSrc.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8D1C559D-84F0-4BB3-A7D5-56A7435A9BA6")] -public partial struct WbemObjectTextSrc +public unsafe partial struct WbemObjectTextSrc : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemObjectTextSrc)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemRefresher.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemRefresher.cs index 4974a4f522..bc127b3266 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemRefresher.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemRefresher.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C71566F2-561E-11D1-AD87-00C04FD8FDFF")] -public partial struct WbemRefresher +public unsafe partial struct WbemRefresher : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemRefresher)); } diff --git a/sources/Interop/Windows/Windows/um/WbemCli/WbemStatusCodeText.cs b/sources/Interop/Windows/Windows/um/WbemCli/WbemStatusCodeText.cs index 1c9b3e9727..f0f539fce4 100644 --- a/sources/Interop/Windows/Windows/um/WbemCli/WbemStatusCodeText.cs +++ b/sources/Interop/Windows/Windows/um/WbemCli/WbemStatusCodeText.cs @@ -3,12 +3,16 @@ // Ported from um/WbemCli.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EB87E1BD-3233-11D2-AEC9-00C04FB68820")] -public partial struct WbemStatusCodeText +public unsafe partial struct WbemStatusCodeText : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WbemStatusCodeText)); } diff --git a/sources/Interop/Windows/Windows/um/WinBase/FILE_ID_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/WinBase/FILE_ID_DESCRIPTOR.cs index 55002a610e..9e35ce1211 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/FILE_ID_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/FILE_ID_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,32 +25,35 @@ public partial struct FILE_ID_DESCRIPTOR public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref LARGE_INTEGER FileId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FileId, 1)); + return ref Anonymous.FileId; } } /// + [UnscopedRef] public ref Guid ObjectId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ObjectId, 1)); + return ref Anonymous.ObjectId; } } /// + [UnscopedRef] public ref FILE_ID_128 ExtendedFileId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ExtendedFileId, 1)); + return ref Anonymous.ExtendedFileId; } } diff --git a/sources/Interop/Windows/Windows/um/WinBase/FILE_RENAME_INFO.cs b/sources/Interop/Windows/Windows/um/WinBase/FILE_RENAME_INFO.cs index 60718444e4..db26bbe194 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/FILE_RENAME_INFO.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/FILE_RENAME_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,22 +28,24 @@ public unsafe partial struct FILE_RENAME_INFO public fixed ushort FileName[1]; /// + [UnscopedRef] public ref byte ReplaceIfExists { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ReplaceIfExists, 1)); + return ref Anonymous.ReplaceIfExists; } } /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/WinBase/GET.cs b/sources/Interop/Windows/Windows/um/WinBase/GET.cs index 2f5a28ca4f..31f40c15e6 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/GET.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/GET.cs @@ -16,7 +16,7 @@ public static partial class GET public const int GET_TAPE_DRIVE_INFORMATION = 1; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A \"GetSystemWow64DirectoryA\"")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x41, 0x00 }; + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A => "GetSystemWow64DirectoryA"u8; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W L\"GetSystemWow64DirectoryA\"")] public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W = "GetSystemWow64DirectoryA"; @@ -25,7 +25,7 @@ public static partial class GET public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T = "GetSystemWow64DirectoryA"; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A \"GetSystemWow64DirectoryW\"")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A => "GetSystemWow64DirectoryW"u8; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W L\"GetSystemWow64DirectoryW\"")] public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W = "GetSystemWow64DirectoryW"; @@ -34,7 +34,7 @@ public static partial class GET public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T = "GetSystemWow64DirectoryW"; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A => "GetSystemWow64DirectoryW"u8; [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W")] public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W = "GetSystemWow64DirectoryW"; diff --git a/sources/Interop/Windows/Windows/um/WinBase/UMS_SYSTEM_THREAD_INFORMATION.cs b/sources/Interop/Windows/Windows/um/WinBase/UMS_SYSTEM_THREAD_INFORMATION.cs index b00bd402af..4d1a3b52f1 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/UMS_SYSTEM_THREAD_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/UMS_SYSTEM_THREAD_INFORMATION.cs @@ -3,6 +3,7 @@ // Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -52,12 +53,13 @@ public uint IsUmsWorkerThread } /// + [UnscopedRef] public ref uint ThreadUmsFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ThreadUmsFlags, 1)); + return ref Anonymous.ThreadUmsFlags; } } diff --git a/sources/Interop/Windows/Windows/um/WinTrust/CAT.cs b/sources/Interop/Windows/Windows/um/WinTrust/CAT.cs index a38c4670e1..e5c290753f 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/CAT.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/CAT.cs @@ -10,13 +10,13 @@ namespace TerraFX.Interop.Windows; public static unsafe partial class CAT { [NativeTypeName("#define CAT_NAMEVALUE_OBJID \"1.3.6.1.4.1.311.12.2.1\"")] - public static ReadOnlySpan CAT_NAMEVALUE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan CAT_NAMEVALUE_OBJID => "1.3.6.1.4.1.311.12.2.1"u8; [NativeTypeName("#define CAT_MEMBERINFO_OBJID \"1.3.6.1.4.1.311.12.2.2\"")] - public static ReadOnlySpan CAT_MEMBERINFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan CAT_MEMBERINFO_OBJID => "1.3.6.1.4.1.311.12.2.2"u8; [NativeTypeName("#define CAT_MEMBERINFO2_OBJID \"1.3.6.1.4.1.311.12.2.3\"")] - public static ReadOnlySpan CAT_MEMBERINFO2_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan CAT_MEMBERINFO2_OBJID => "1.3.6.1.4.1.311.12.2.3"u8; [NativeTypeName("#define CAT_NAMEVALUE_STRUCT ((LPCSTR) 2221)")] public static sbyte* CAT_NAMEVALUE_STRUCT => ((sbyte*)(2221)); diff --git a/sources/Interop/Windows/Windows/um/WinTrust/CRYPT_PROVIDER_DATA.cs b/sources/Interop/Windows/Windows/um/WinTrust/CRYPT_PROVIDER_DATA.cs index e4ae3436db..6f2c447284 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/CRYPT_PROVIDER_DATA.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/CRYPT_PROVIDER_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -136,12 +137,13 @@ public unsafe partial struct CRYPT_PROVIDER_DATA public WINTRUST_SIGNATURE_SETTINGS* pSigSettings; /// + [UnscopedRef] public ref PROVDATA_SIP* pPDSip { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pPDSip; + return ref Anonymous.pPDSip; } } diff --git a/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs b/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs index 48caef5dc1..ee525972b7 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs @@ -10,79 +10,79 @@ namespace TerraFX.Interop.Windows; public static unsafe partial class SPC { [NativeTypeName("#define SPC_COMMON_NAME_OBJID szOID_COMMON_NAME")] - public static ReadOnlySpan SPC_COMMON_NAME_OBJID => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan SPC_COMMON_NAME_OBJID => "2.5.4.3"u8; [NativeTypeName("#define SPC_TIME_STAMP_REQUEST_OBJID \"1.3.6.1.4.1.311.3.2.1\"")] - public static ReadOnlySpan SPC_TIME_STAMP_REQUEST_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan SPC_TIME_STAMP_REQUEST_OBJID => "1.3.6.1.4.1.311.3.2.1"u8; [NativeTypeName("#define SPC_INDIRECT_DATA_OBJID \"1.3.6.1.4.1.311.2.1.4\"")] - public static ReadOnlySpan SPC_INDIRECT_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan SPC_INDIRECT_DATA_OBJID => "1.3.6.1.4.1.311.2.1.4"u8; [NativeTypeName("#define SPC_SP_AGENCY_INFO_OBJID \"1.3.6.1.4.1.311.2.1.10\"")] - public static ReadOnlySpan SPC_SP_AGENCY_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan SPC_SP_AGENCY_INFO_OBJID => "1.3.6.1.4.1.311.2.1.10"u8; [NativeTypeName("#define SPC_STATEMENT_TYPE_OBJID \"1.3.6.1.4.1.311.2.1.11\"")] - public static ReadOnlySpan SPC_STATEMENT_TYPE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan SPC_STATEMENT_TYPE_OBJID => "1.3.6.1.4.1.311.2.1.11"u8; [NativeTypeName("#define SPC_SP_OPUS_INFO_OBJID \"1.3.6.1.4.1.311.2.1.12\"")] - public static ReadOnlySpan SPC_SP_OPUS_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan SPC_SP_OPUS_INFO_OBJID => "1.3.6.1.4.1.311.2.1.12"u8; [NativeTypeName("#define SPC_CERT_EXTENSIONS_OBJID \"1.3.6.1.4.1.311.2.1.14\"")] - public static ReadOnlySpan SPC_CERT_EXTENSIONS_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan SPC_CERT_EXTENSIONS_OBJID => "1.3.6.1.4.1.311.2.1.14"u8; [NativeTypeName("#define SPC_PE_IMAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.15\"")] - public static ReadOnlySpan SPC_PE_IMAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan SPC_PE_IMAGE_DATA_OBJID => "1.3.6.1.4.1.311.2.1.15"u8; [NativeTypeName("#define SPC_RAW_FILE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.18\"")] - public static ReadOnlySpan SPC_RAW_FILE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan SPC_RAW_FILE_DATA_OBJID => "1.3.6.1.4.1.311.2.1.18"u8; [NativeTypeName("#define SPC_STRUCTURED_STORAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.19\"")] - public static ReadOnlySpan SPC_STRUCTURED_STORAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan SPC_STRUCTURED_STORAGE_DATA_OBJID => "1.3.6.1.4.1.311.2.1.19"u8; [NativeTypeName("#define SPC_JAVA_CLASS_DATA_OBJID \"1.3.6.1.4.1.311.2.1.20\"")] - public static ReadOnlySpan SPC_JAVA_CLASS_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan SPC_JAVA_CLASS_DATA_OBJID => "1.3.6.1.4.1.311.2.1.20"u8; [NativeTypeName("#define SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.21\"")] - public static ReadOnlySpan SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID => "1.3.6.1.4.1.311.2.1.21"u8; [NativeTypeName("#define SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.22\"")] - public static ReadOnlySpan SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID => "1.3.6.1.4.1.311.2.1.22"u8; [NativeTypeName("#define SPC_CAB_DATA_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] - public static ReadOnlySpan SPC_CAB_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan SPC_CAB_DATA_OBJID => "1.3.6.1.4.1.311.2.1.25"u8; [NativeTypeName("#define SPC_GLUE_RDN_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] - public static ReadOnlySpan SPC_GLUE_RDN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan SPC_GLUE_RDN_OBJID => "1.3.6.1.4.1.311.2.1.25"u8; [NativeTypeName("#define SPC_MINIMAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.26\"")] - public static ReadOnlySpan SPC_MINIMAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x36, 0x00 }; + public static ReadOnlySpan SPC_MINIMAL_CRITERIA_OBJID => "1.3.6.1.4.1.311.2.1.26"u8; [NativeTypeName("#define SPC_FINANCIAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.27\"")] - public static ReadOnlySpan SPC_FINANCIAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan SPC_FINANCIAL_CRITERIA_OBJID => "1.3.6.1.4.1.311.2.1.27"u8; [NativeTypeName("#define SPC_LINK_OBJID \"1.3.6.1.4.1.311.2.1.28\"")] - public static ReadOnlySpan SPC_LINK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan SPC_LINK_OBJID => "1.3.6.1.4.1.311.2.1.28"u8; [NativeTypeName("#define SPC_SIGINFO_OBJID \"1.3.6.1.4.1.311.2.1.30\"")] - public static ReadOnlySpan SPC_SIGINFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan SPC_SIGINFO_OBJID => "1.3.6.1.4.1.311.2.1.30"u8; [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID \"1.3.6.1.4.1.311.2.3.1\"")] - public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID => "1.3.6.1.4.1.311.2.3.1"u8; [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID \"1.3.6.1.4.1.311.2.3.2\"")] - public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID => "1.3.6.1.4.1.311.2.3.2"u8; [NativeTypeName("#define SPC_RELAXED_PE_MARKER_CHECK_OBJID \"1.3.6.1.4.1.311.2.6.1\"")] - public static ReadOnlySpan SPC_RELAXED_PE_MARKER_CHECK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan SPC_RELAXED_PE_MARKER_CHECK_OBJID => "1.3.6.1.4.1.311.2.6.1"u8; [NativeTypeName("#define SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID \"1.3.6.1.4.1.311.2.6.2\"")] - public static ReadOnlySpan SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID => "1.3.6.1.4.1.311.2.6.2"u8; [NativeTypeName("#define SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID \"1.3.6.1.4.1.311.10.41.1\"")] - public static ReadOnlySpan SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID => "1.3.6.1.4.1.311.10.41.1"u8; [NativeTypeName("#define SPC_NATURAL_AUTH_PLUGIN_OBJID \"1.3.6.1.4.1.311.96.1.1\"")] - public static ReadOnlySpan SPC_NATURAL_AUTH_PLUGIN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x39, 0x36, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan SPC_NATURAL_AUTH_PLUGIN_OBJID => "1.3.6.1.4.1.311.96.1.1"u8; [NativeTypeName("#define SPC_SP_AGENCY_INFO_STRUCT ((LPCSTR) 2000)")] public static sbyte* SPC_SP_AGENCY_INFO_STRUCT => ((sbyte*)(2000)); diff --git a/sources/Interop/Windows/Windows/um/WinTrust/SPC_LINK.cs b/sources/Interop/Windows/Windows/um/WinTrust/SPC_LINK.cs index d1c2bb454a..2444c4d4a4 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/SPC_LINK.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/SPC_LINK.cs @@ -3,6 +3,7 @@ // Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,32 +21,35 @@ public unsafe partial struct SPC_LINK public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort* pwszUrl { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszUrl; + return ref Anonymous.pwszUrl; } } /// + [UnscopedRef] public ref SPC_SERIALIZED_OBJECT Moniker { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Moniker, 1)); + return ref Anonymous.Moniker; } } /// + [UnscopedRef] public ref ushort* pwszFile { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszFile; + return ref Anonymous.pwszFile; } } diff --git a/sources/Interop/Windows/Windows/um/WinTrust/WINTRUST_DATA.cs b/sources/Interop/Windows/Windows/um/WinTrust/WINTRUST_DATA.cs index 0ab03f091e..b2bbc355c0 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/WINTRUST_DATA.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/WINTRUST_DATA.cs @@ -3,6 +3,7 @@ // Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -63,52 +64,57 @@ public unsafe partial struct WINTRUST_DATA public WINTRUST_SIGNATURE_SETTINGS* pSignatureSettings; /// + [UnscopedRef] public ref WINTRUST_FILE_INFO* pFile { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pFile; + return ref Anonymous.pFile; } } /// + [UnscopedRef] public ref WINTRUST_CATALOG_INFO* pCatalog { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pCatalog; + return ref Anonymous.pCatalog; } } /// + [UnscopedRef] public ref WINTRUST_BLOB_INFO* pBlob { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pBlob; + return ref Anonymous.pBlob; } } /// + [UnscopedRef] public ref WINTRUST_SGNR_INFO* pSgnr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSgnr; + return ref Anonymous.pSgnr; } } /// + [UnscopedRef] public ref WINTRUST_CERT_INFO* pCert { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pCert; + return ref Anonymous.pCert; } } diff --git a/sources/Interop/Windows/Windows/um/WinTrust/szOID.cs b/sources/Interop/Windows/Windows/um/WinTrust/szOID.cs index 5e435b1899..62ba1c1ae8 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/szOID.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/szOID.cs @@ -10,29 +10,29 @@ namespace TerraFX.Interop.Windows; public static partial class szOID { [NativeTypeName("#define szOID_TRUSTED_CODESIGNING_CA_LIST \"1.3.6.1.4.1.311.2.2.1\"")] - public static ReadOnlySpan szOID_TRUSTED_CODESIGNING_CA_LIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_TRUSTED_CODESIGNING_CA_LIST => "1.3.6.1.4.1.311.2.2.1"u8; [NativeTypeName("#define szOID_TRUSTED_CLIENT_AUTH_CA_LIST \"1.3.6.1.4.1.311.2.2.2\"")] - public static ReadOnlySpan szOID_TRUSTED_CLIENT_AUTH_CA_LIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_TRUSTED_CLIENT_AUTH_CA_LIST => "1.3.6.1.4.1.311.2.2.2"u8; [NativeTypeName("#define szOID_TRUSTED_SERVER_AUTH_CA_LIST \"1.3.6.1.4.1.311.2.2.3\"")] - public static ReadOnlySpan szOID_TRUSTED_SERVER_AUTH_CA_LIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_TRUSTED_SERVER_AUTH_CA_LIST => "1.3.6.1.4.1.311.2.2.3"u8; [NativeTypeName("#define szOID_NESTED_SIGNATURE \"1.3.6.1.4.1.311.2.4.1\"")] - public static ReadOnlySpan szOID_NESTED_SIGNATURE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_NESTED_SIGNATURE => "1.3.6.1.4.1.311.2.4.1"u8; [NativeTypeName("#define szOID_INTENT_TO_SEAL \"1.3.6.1.4.1.311.2.4.2\"")] - public static ReadOnlySpan szOID_INTENT_TO_SEAL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_INTENT_TO_SEAL => "1.3.6.1.4.1.311.2.4.2"u8; [NativeTypeName("#define szOID_SEALING_SIGNATURE \"1.3.6.1.4.1.311.2.4.3\"")] - public static ReadOnlySpan szOID_SEALING_SIGNATURE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_SEALING_SIGNATURE => "1.3.6.1.4.1.311.2.4.3"u8; [NativeTypeName("#define szOID_SEALING_TIMESTAMP \"1.3.6.1.4.1.311.2.4.4\"")] - public static ReadOnlySpan szOID_SEALING_TIMESTAMP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_SEALING_TIMESTAMP => "1.3.6.1.4.1.311.2.4.4"u8; [NativeTypeName("#define szOID_ENHANCED_HASH \"1.3.6.1.4.1.311.2.5.1\"")] - public static ReadOnlySpan szOID_ENHANCED_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENHANCED_HASH => "1.3.6.1.4.1.311.2.5.1"u8; [NativeTypeName("#define szOID_PKCS_9_SEQUENCE_NUMBER \"1.2.840.113549.1.9.25.4\"")] - public static ReadOnlySpan szOID_PKCS_9_SEQUENCE_NUMBER => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x35, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_9_SEQUENCE_NUMBER => "1.2.840.113549.1.9.25.4"u8; } diff --git a/sources/Interop/Windows/Windows/um/WinUser/INPUT.cs b/sources/Interop/Windows/Windows/um/WinUser/INPUT.cs index baa45ed59c..fb61b1e16a 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/INPUT.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/INPUT.cs @@ -3,6 +3,7 @@ // Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,32 +20,35 @@ public partial struct INPUT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref MOUSEINPUT mi { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.mi, 1)); + return ref Anonymous.mi; } } /// + [UnscopedRef] public ref KEYBDINPUT ki { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ki, 1)); + return ref Anonymous.ki; } } /// + [UnscopedRef] public ref HARDWAREINPUT hi { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hi, 1)); + return ref Anonymous.hi; } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/INPUT_TRANSFORM.cs b/sources/Interop/Windows/Windows/um/WinUser/INPUT_TRANSFORM.cs index d6ccab2b2d..b459891592 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/INPUT_TRANSFORM.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/INPUT_TRANSFORM.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,166 +18,183 @@ public unsafe partial struct INPUT_TRANSFORM public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref float _11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._11, 1)); + return ref Anonymous.Anonymous._11; } } /// + [UnscopedRef] public ref float _12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._12, 1)); + return ref Anonymous.Anonymous._12; } } /// + [UnscopedRef] public ref float _13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._13, 1)); + return ref Anonymous.Anonymous._13; } } /// + [UnscopedRef] public ref float _14 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._14, 1)); + return ref Anonymous.Anonymous._14; } } /// + [UnscopedRef] public ref float _21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._21, 1)); + return ref Anonymous.Anonymous._21; } } /// + [UnscopedRef] public ref float _22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._22, 1)); + return ref Anonymous.Anonymous._22; } } /// + [UnscopedRef] public ref float _23 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._23, 1)); + return ref Anonymous.Anonymous._23; } } /// + [UnscopedRef] public ref float _24 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._24, 1)); + return ref Anonymous.Anonymous._24; } } /// + [UnscopedRef] public ref float _31 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._31, 1)); + return ref Anonymous.Anonymous._31; } } /// + [UnscopedRef] public ref float _32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._32, 1)); + return ref Anonymous.Anonymous._32; } } /// + [UnscopedRef] public ref float _33 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._33, 1)); + return ref Anonymous.Anonymous._33; } } /// + [UnscopedRef] public ref float _34 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._34, 1)); + return ref Anonymous.Anonymous._34; } } /// + [UnscopedRef] public ref float _41 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._41, 1)); + return ref Anonymous.Anonymous._41; } } /// + [UnscopedRef] public ref float _42 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._42, 1)); + return ref Anonymous.Anonymous._42; } } /// + [UnscopedRef] public ref float _43 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._43, 1)); + return ref Anonymous.Anonymous._43; } } /// + [UnscopedRef] public ref float _44 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous._44, 1)); + return ref Anonymous.Anonymous._44; } } /// + [UnscopedRef] public Span m { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/WinUser/NCCALCSIZE_PARAMS.cs b/sources/Interop/Windows/Windows/um/WinUser/NCCALCSIZE_PARAMS.cs index 77c91a14be..01c616f6e9 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/NCCALCSIZE_PARAMS.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/NCCALCSIZE_PARAMS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,6 +28,7 @@ public partial struct _rgrc_e__FixedBuffer public RECT e1; public RECT e2; + [UnscopedRef] public ref RECT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref RECT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/POINTER_TYPE_INFO.cs b/sources/Interop/Windows/Windows/um/WinUser/POINTER_TYPE_INFO.cs index 30cfbcffe0..e6736ef472 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/POINTER_TYPE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/POINTER_TYPE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -22,22 +23,24 @@ public partial struct POINTER_TYPE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref POINTER_TOUCH_INFO touchInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.touchInfo, 1)); + return ref Anonymous.touchInfo; } } /// + [UnscopedRef] public ref POINTER_PEN_INFO penInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.penInfo, 1)); + return ref Anonymous.penInfo; } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/RAWMOUSE.cs b/sources/Interop/Windows/Windows/um/WinUser/RAWMOUSE.cs index f820fb8ea4..8ba5c0e0da 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/RAWMOUSE.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/RAWMOUSE.cs @@ -3,6 +3,7 @@ // Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,32 +36,35 @@ public partial struct RAWMOUSE public uint ulExtraInformation; /// + [UnscopedRef] public ref uint ulButtons { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ulButtons, 1)); + return ref Anonymous.ulButtons; } } /// + [UnscopedRef] public ref ushort usButtonFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.usButtonFlags, 1)); + return ref Anonymous.Anonymous.usButtonFlags; } } /// + [UnscopedRef] public ref ushort usButtonData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.usButtonData, 1)); + return ref Anonymous.Anonymous.usButtonData; } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/RID_DEVICE_INFO.cs b/sources/Interop/Windows/Windows/um/WinUser/RID_DEVICE_INFO.cs index 7fe7b55199..ce60c24717 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/RID_DEVICE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/RID_DEVICE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,32 +25,35 @@ public partial struct RID_DEVICE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref RID_DEVICE_INFO_MOUSE mouse { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.mouse, 1)); + return ref Anonymous.mouse; } } /// + [UnscopedRef] public ref RID_DEVICE_INFO_KEYBOARD keyboard { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.keyboard, 1)); + return ref Anonymous.keyboard; } } /// + [UnscopedRef] public ref RID_DEVICE_INFO_HID hid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hid, 1)); + return ref Anonymous.hid; } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/TITLEBARINFOEX.cs b/sources/Interop/Windows/Windows/um/WinUser/TITLEBARINFOEX.cs index f9fa78d270..ee0ff1a099 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/TITLEBARINFOEX.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/TITLEBARINFOEX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _rgrect_e__FixedBuffer public RECT e4; public RECT e5; + [UnscopedRef] public ref RECT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref RECT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 6); } } diff --git a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthManager.cs b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthManager.cs index c37ce33218..d70b9c862f 100644 --- a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthManager.cs +++ b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB5DDB08-8BBF-449B-AC21-B02DDEB3B136")] [NativeTypeName("struct IXblIdpAuthManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXblIdpAuthManager : IXblIdpAuthManager.Interface +public unsafe partial struct IXblIdpAuthManager : IXblIdpAuthManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXblIdpAuthManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult.cs b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult.cs index 8bcac0663d..20440cf2d1 100644 --- a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult.cs +++ b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("46CE0225-F267-4D68-B299-B2762552DEC1")] [NativeTypeName("struct IXblIdpAuthTokenResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXblIdpAuthTokenResult : IXblIdpAuthTokenResult.Interface +public unsafe partial struct IXblIdpAuthTokenResult : IXblIdpAuthTokenResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXblIdpAuthTokenResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult2.cs b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult2.cs index 5c3bdbcbbc..8dadef90bf 100644 --- a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult2.cs +++ b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/IXblIdpAuthTokenResult2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("75D760B0-60B9-412D-994F-26B2CD5F7812")] [NativeTypeName("struct IXblIdpAuthTokenResult2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXblIdpAuthTokenResult2 : IXblIdpAuthTokenResult2.Interface +public unsafe partial struct IXblIdpAuthTokenResult2 : IXblIdpAuthTokenResult2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXblIdpAuthTokenResult2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthManager.cs b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthManager.cs index c8aed0164f..9d4a3b0ece 100644 --- a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthManager.cs +++ b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthManager.cs @@ -3,12 +3,16 @@ // Ported from um/XblIdpAuthManager.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("CE23534B-56D8-4978-86A2-7EE570640468")] -public partial struct XblIdpAuthManager +public unsafe partial struct XblIdpAuthManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_XblIdpAuthManager)); } diff --git a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthTokenResult.cs b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthTokenResult.cs index d7a00be98a..2858de1a8e 100644 --- a/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthTokenResult.cs +++ b/sources/Interop/Windows/Windows/um/XblIdpAuthManager/XblIdpAuthTokenResult.cs @@ -3,12 +3,16 @@ // Ported from um/XblIdpAuthManager.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("9F493441-744A-410C-AE2B-9A22F7C7731F")] -public partial struct XblIdpAuthTokenResult +public unsafe partial struct XblIdpAuthTokenResult : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_XblIdpAuthTokenResult)); } diff --git a/sources/Interop/Windows/Windows/um/accctrl/ACTRL_OVERLAPPED.cs b/sources/Interop/Windows/Windows/um/accctrl/ACTRL_OVERLAPPED.cs index a4fd289bf8..8f6a04a39d 100644 --- a/sources/Interop/Windows/Windows/um/accctrl/ACTRL_OVERLAPPED.cs +++ b/sources/Interop/Windows/Windows/um/accctrl/ACTRL_OVERLAPPED.cs @@ -3,6 +3,7 @@ // Ported from um/accctrl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,22 +24,24 @@ public unsafe partial struct ACTRL_OVERLAPPED public HANDLE hEvent; /// + [UnscopedRef] public ref void* Provider { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Provider; + return ref Anonymous.Provider; } } /// + [UnscopedRef] public ref uint Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved1, 1)); + return ref Anonymous.Reserved1; } } diff --git a/sources/Interop/Windows/Windows/um/accctrl/PROGRESS_INVOKE_SETTING.cs b/sources/Interop/Windows/Windows/um/accctrl/PROGRESS_INVOKE_SETTING.cs deleted file mode 100644 index 5e44fb67e7..0000000000 --- a/sources/Interop/Windows/Windows/um/accctrl/PROGRESS_INVOKE_SETTING.cs +++ /dev/null @@ -1,28 +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 um/accctrl.h in the Windows SDK for Windows 10.0.20348.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace TerraFX.Interop.Windows; - -/// -public enum PROGRESS_INVOKE_SETTING -{ - /// - ProgressInvokeNever = 1, - - /// - ProgressInvokeEveryObject, - - /// - ProgressInvokeOnError, - - /// - ProgressCancelOperation, - - /// - ProgressRetryOperation, - - /// - ProgressInvokePrePostError, -} diff --git a/sources/Interop/Windows/Windows/um/accctrl/Windows.cs b/sources/Interop/Windows/Windows/um/accctrl/Windows.cs index e9bd596a39..a1077778a6 100644 --- a/sources/Interop/Windows/Windows/um/accctrl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/accctrl/Windows.cs @@ -40,7 +40,7 @@ public static unsafe partial class Windows public const int INHERITED_GRANDPARENT = 0x20000000; [NativeTypeName("#define ACCCTRL_DEFAULT_PROVIDERA \"Windows NT Access Provider\"")] - public static ReadOnlySpan ACCCTRL_DEFAULT_PROVIDERA => new byte[] { 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x4E, 0x54, 0x20, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan ACCCTRL_DEFAULT_PROVIDERA => "Windows NT Access Provider"u8; [NativeTypeName("#define ACCCTRL_DEFAULT_PROVIDERW L\"Windows NT Access Provider\"")] public const string ACCCTRL_DEFAULT_PROVIDERW = "Windows NT Access Provider"; diff --git a/sources/Interop/Windows/Windows/um/amvideo/IBaseVideoMixer.cs b/sources/Interop/Windows/Windows/um/amvideo/IBaseVideoMixer.cs index 488b40449f..e433e0349e 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/IBaseVideoMixer.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/IBaseVideoMixer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("61DED640-E912-11CE-A099-00AA00479A58")] [NativeTypeName("struct IBaseVideoMixer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBaseVideoMixer : IBaseVideoMixer.Interface +public unsafe partial struct IBaseVideoMixer : IBaseVideoMixer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBaseVideoMixer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/amvideo/IDirectDrawVideo.cs b/sources/Interop/Windows/Windows/um/amvideo/IDirectDrawVideo.cs index bbd67561fa..b0d97787de 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/IDirectDrawVideo.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/IDirectDrawVideo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("36D39EB0-DD75-11CE-BF0E-00AA0055595A")] [NativeTypeName("struct IDirectDrawVideo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectDrawVideo : IDirectDrawVideo.Interface +public unsafe partial struct IDirectDrawVideo : IDirectDrawVideo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectDrawVideo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideo.cs b/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideo.cs index 125ca46df0..b60dcb2ad1 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideo.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DD1D7110-7836-11CF-BF47-00AA0055595A")] [NativeTypeName("struct IFullScreenVideo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFullScreenVideo : IFullScreenVideo.Interface +public unsafe partial struct IFullScreenVideo : IFullScreenVideo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFullScreenVideo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideoEx.cs b/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideoEx.cs index 82c35749f8..3e7c0802b1 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideoEx.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/IFullScreenVideoEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("53479470-F1DD-11CF-BC42-00AA00AC74F6")] [NativeTypeName("struct IFullScreenVideoEx : IFullScreenVideo")] [NativeInheritance("IFullScreenVideo")] -public unsafe partial struct IFullScreenVideoEx : IFullScreenVideoEx.Interface +public unsafe partial struct IFullScreenVideoEx : IFullScreenVideoEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFullScreenVideoEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/amvideo/IQualProp.cs b/sources/Interop/Windows/Windows/um/amvideo/IQualProp.cs index 900051dcf0..f38d0db42f 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/IQualProp.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/IQualProp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1BD0ECB0-F8E2-11CE-AAC6-0020AF0B99A3")] [NativeTypeName("struct IQualProp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQualProp : IQualProp.Interface +public unsafe partial struct IQualProp : IQualProp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQualProp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/amvideo/TRUECOLORINFO.cs b/sources/Interop/Windows/Windows/um/amvideo/TRUECOLORINFO.cs index d093f35a25..cb37e4eab1 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/TRUECOLORINFO.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/TRUECOLORINFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -280,6 +281,7 @@ public partial struct _bmiColors_e__FixedBuffer public RGBQUAD e254; public RGBQUAD e255; + [UnscopedRef] public ref RGBQUAD this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -290,6 +292,7 @@ public ref RGBQUAD this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 256); } } diff --git a/sources/Interop/Windows/Windows/um/amvideo/VIDEOINFO.cs b/sources/Interop/Windows/Windows/um/amvideo/VIDEOINFO.cs index 2adb28aedd..9115ca47c1 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/VIDEOINFO.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/VIDEOINFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public unsafe partial struct VIDEOINFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public Span bmiColors { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public Span bmiColors } /// + [UnscopedRef] public Span dwBitMasks { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -58,12 +61,13 @@ public Span dwBitMasks } /// + [UnscopedRef] public ref TRUECOLORINFO TrueColorInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TrueColorInfo, 1)); + return ref Anonymous.TrueColorInfo; } } @@ -345,6 +349,7 @@ public partial struct _bmiColors_e__FixedBuffer public RGBQUAD e254; public RGBQUAD e255; + [UnscopedRef] public ref RGBQUAD this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -355,6 +360,7 @@ public ref RGBQUAD this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 256); } } diff --git a/sources/Interop/Windows/Windows/um/appmodel/PACKAGE_VERSION.cs b/sources/Interop/Windows/Windows/um/appmodel/PACKAGE_VERSION.cs index 6c0657f3b0..386e764da5 100644 --- a/sources/Interop/Windows/Windows/um/appmodel/PACKAGE_VERSION.cs +++ b/sources/Interop/Windows/Windows/um/appmodel/PACKAGE_VERSION.cs @@ -3,6 +3,7 @@ // Ported from um/appmodel.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,52 +19,57 @@ public partial struct PACKAGE_VERSION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ulong Version { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Version, 1)); + return ref Anonymous.Version; } } /// + [UnscopedRef] public ref ushort Revision { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Revision, 1)); + return ref Anonymous.Anonymous.Revision; } } /// + [UnscopedRef] public ref ushort Build { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Build, 1)); + return ref Anonymous.Anonymous.Build; } } /// + [UnscopedRef] public ref ushort Minor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Minor, 1)); + return ref Anonymous.Anonymous.Minor; } } /// + [UnscopedRef] public ref ushort Major { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Major, 1)); + return ref Anonymous.Anonymous.Major; } } diff --git a/sources/Interop/Windows/Windows/um/audioclientactivationparams/AUDIOCLIENT_ACTIVATION_PARAMS.cs b/sources/Interop/Windows/Windows/um/audioclientactivationparams/AUDIOCLIENT_ACTIVATION_PARAMS.cs index d0723b89db..f435170605 100644 --- a/sources/Interop/Windows/Windows/um/audioclientactivationparams/AUDIOCLIENT_ACTIVATION_PARAMS.cs +++ b/sources/Interop/Windows/Windows/um/audioclientactivationparams/AUDIOCLIENT_ACTIVATION_PARAMS.cs @@ -3,6 +3,7 @@ // Ported from um/audioclientactivationparams.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -21,12 +22,13 @@ public partial struct AUDIOCLIENT_ACTIVATION_PARAMS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS ProcessLoopbackParams { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ProcessLoopbackParams, 1)); + return ref Anonymous.ProcessLoopbackParams; } } diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl.cs index d8471aed27..f1fe3fa6b6 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F4B1A599-7266-4319-A8CA-E70ACB11E8CD")] [NativeTypeName("struct IAudioSessionControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSessionControl : IAudioSessionControl.Interface +public unsafe partial struct IAudioSessionControl : IAudioSessionControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl2.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl2.cs index 0f874a88c3..e52a6b27a4 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl2.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionControl2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BFB7FF88-7239-4FC9-8FA2-07C950BE9C6D")] [NativeTypeName("struct IAudioSessionControl2 : IAudioSessionControl")] [NativeInheritance("IAudioSessionControl")] -public unsafe partial struct IAudioSessionControl2 : IAudioSessionControl2.Interface +public unsafe partial struct IAudioSessionControl2 : IAudioSessionControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEnumerator.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEnumerator.cs index 080d8ae659..50e2ec0d58 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E2F5BB11-0570-40CA-ACDD-3AA01277DEE8")] [NativeTypeName("struct IAudioSessionEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSessionEnumerator : IAudioSessionEnumerator.Interface +public unsafe partial struct IAudioSessionEnumerator : IAudioSessionEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEvents.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEvents.cs index c4161b804c..79bfa00476 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEvents.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("24918ACC-64B3-37C1-8CA9-74A66E9957A8")] [NativeTypeName("struct IAudioSessionEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSessionEvents : IAudioSessionEvents.Interface +public unsafe partial struct IAudioSessionEvents : IAudioSessionEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager.cs index 7e4fd98b48..606fd07626 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BFA971F1-4D5E-40BB-935E-967039BFBEE4")] [NativeTypeName("struct IAudioSessionManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSessionManager : IAudioSessionManager.Interface +public unsafe partial struct IAudioSessionManager : IAudioSessionManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager2.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager2.cs index 3719b59a06..ae3519f1b6 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager2.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionManager2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("77AA99A0-1BD6-484F-8BC7-2C654C9A9B6F")] [NativeTypeName("struct IAudioSessionManager2 : IAudioSessionManager")] [NativeInheritance("IAudioSessionManager")] -public unsafe partial struct IAudioSessionManager2 : IAudioSessionManager2.Interface +public unsafe partial struct IAudioSessionManager2 : IAudioSessionManager2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionManager2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionNotification.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionNotification.cs index 5269a267a6..ef590e91dd 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionNotification.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioSessionNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("641DD20B-4D41-49CC-ABA3-174B9477BB08")] [NativeTypeName("struct IAudioSessionNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSessionNotification : IAudioSessionNotification.Interface +public unsafe partial struct IAudioSessionNotification : IAudioSessionNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSessionNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioVolumeDuckNotification.cs b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioVolumeDuckNotification.cs index 93894bc465..6adcc53400 100644 --- a/sources/Interop/Windows/Windows/um/audiopolicy/IAudioVolumeDuckNotification.cs +++ b/sources/Interop/Windows/Windows/um/audiopolicy/IAudioVolumeDuckNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C3B284D4-6D39-4359-B3CF-B56DDB3BB39C")] [NativeTypeName("struct IAudioVolumeDuckNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioVolumeDuckNotification : IAudioVolumeDuckNotification.Interface +public unsafe partial struct IAudioVolumeDuckNotification : IAudioVolumeDuckNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioVolumeDuckNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelConfig.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelConfig.cs index 9003002d66..1c8c5f34a1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelConfig.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelConfig.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("17F89CB3-C38D-4368-9EDE-63B94D177F9F")] -public partial struct CODECAPI_AVAudioChannelConfig +public unsafe partial struct CODECAPI_AVAudioChannelConfig : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVAudioChannelConfig)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelCount.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelCount.cs index 8115d02509..5f5b5c8d25 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelCount.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioChannelCount.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1D3583C4-1583-474E-B71A-5EE463C198E4")] -public partial struct CODECAPI_AVAudioChannelCount +public unsafe partial struct CODECAPI_AVAudioChannelCount : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVAudioChannelCount)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioSampleRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioSampleRate.cs index 622467a662..289784c042 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioSampleRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVAudioSampleRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("971D2723-1ACB-42E7-855C-520A4B70A5F2")] -public partial struct CODECAPI_AVAudioSampleRate +public unsafe partial struct CODECAPI_AVAudioSampleRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVAudioSampleRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDDSurroundMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDDSurroundMode.cs index a290daf186..3d575c7ec0 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDDSurroundMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDDSurroundMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("99F2F386-98D1-4452-A163-ABC78A6EB770")] -public partial struct CODECAPI_AVDDSurroundMode +public unsafe partial struct CODECAPI_AVDDSurroundMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDDSurroundMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPLoudnessEqualization.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPLoudnessEqualization.cs index cc727a9474..00c5ce1720 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPLoudnessEqualization.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPLoudnessEqualization.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8AFD1A15-1812-4CBF-9319-433A5B2A3B27")] -public partial struct CODECAPI_AVDSPLoudnessEqualization +public unsafe partial struct CODECAPI_AVDSPLoudnessEqualization : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDSPLoudnessEqualization)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPSpeakerFill.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPSpeakerFill.cs index a383cb2ebe..673696f046 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPSpeakerFill.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDSPSpeakerFill.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5612BCA1-56DA-4582-8DA1-CA8090F92768")] -public partial struct CODECAPI_AVDSPSpeakerFill +public unsafe partial struct CODECAPI_AVDSPSpeakerFill : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDSPSpeakerFill)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAACDownmixMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAACDownmixMode.cs index 56d8c1d149..4ed5b84ac8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAACDownmixMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAACDownmixMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("01274475-F6BB-4017-B084-81A763C942D4")] -public partial struct CODECAPI_AVDecAACDownmixMode +public unsafe partial struct CODECAPI_AVDecAACDownmixMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecAACDownmixMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMono.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMono.cs index 8aa5cf45c9..b22e450c18 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMono.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMono.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4A52CDA8-30F8-4216-BE0F-BA0B2025921D")] -public partial struct CODECAPI_AVDecAudioDualMono +public unsafe partial struct CODECAPI_AVDecAudioDualMono : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecAudioDualMono)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMonoReproMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMonoReproMode.cs index 00272e2751..dc58aa1c64 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMonoReproMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecAudioDualMonoReproMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A5106186-CC94-4BC9-8CD9-AA2F61F6807E")] -public partial struct CODECAPI_AVDecAudioDualMonoReproMode +public unsafe partial struct CODECAPI_AVDecAudioDualMonoReproMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecAudioDualMonoReproMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonInputFormat.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonInputFormat.cs index 2fc9cfcfae..b3b938cd0f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonInputFormat.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonInputFormat.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E5005239-BD89-4BE3-9C0F-5DDE317988CC")] -public partial struct CODECAPI_AVDecCommonInputFormat +public unsafe partial struct CODECAPI_AVDecCommonInputFormat : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecCommonInputFormat)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRate.cs index d97a042a71..c9c4eafc42 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("59488217-007A-4F7A-8E41-5C48B1EAC5C6")] -public partial struct CODECAPI_AVDecCommonMeanBitRate +public unsafe partial struct CODECAPI_AVDecCommonMeanBitRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecCommonMeanBitRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRateInterval.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRateInterval.cs index bb51612097..b5f43ccf85 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRateInterval.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRateInterval.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0EE437C6-38A7-4C5C-944C-68AB42116B85")] -public partial struct CODECAPI_AVDecCommonMeanBitRateInterval +public unsafe partial struct CODECAPI_AVDecCommonMeanBitRateInterval : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecCommonMeanBitRateInterval)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonOutputFormat.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonOutputFormat.cs index b568168947..32238b90a5 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonOutputFormat.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecCommonOutputFormat.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3C790028-C0CE-4256-B1A2-1B0FC8B1DCDC")] -public partial struct CODECAPI_AVDecCommonOutputFormat +public unsafe partial struct CODECAPI_AVDecCommonOutputFormat : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecCommonOutputFormat)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleHigh.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleHigh.cs index 638c83b6e7..cadb9b65db 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleHigh.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleHigh.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("50196C21-1F33-4AF5-B296-11426D6C8789")] -public partial struct CODECAPI_AVDecDDDynamicRangeScaleHigh +public unsafe partial struct CODECAPI_AVDecDDDynamicRangeScaleHigh : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDDDynamicRangeScaleHigh)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleLow.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleLow.cs index a0fa981dde..e649a22de1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleLow.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDDynamicRangeScaleLow.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("044E62E4-11A5-42D5-A3B2-3BB2C7C2D7CF")] -public partial struct CODECAPI_AVDecDDDynamicRangeScaleLow +public unsafe partial struct CODECAPI_AVDecDDDynamicRangeScaleLow : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDDDynamicRangeScaleLow)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDMatrixDecodingMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDMatrixDecodingMode.cs index ff654f53fb..68e0e1663e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDMatrixDecodingMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDMatrixDecodingMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DDC811A5-04ED-4BF3-A0CA-D00449F9355F")] -public partial struct CODECAPI_AVDecDDMatrixDecodingMode +public unsafe partial struct CODECAPI_AVDecDDMatrixDecodingMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDDMatrixDecodingMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDOperationalMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDOperationalMode.cs index 84a41ecfd6..f99e9edb8e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDOperationalMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDOperationalMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D6D6C6D1-064E-4FDD-A40E-3ECBFCB7EBD0")] -public partial struct CODECAPI_AVDecDDOperationalMode +public unsafe partial struct CODECAPI_AVDecDDOperationalMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDDOperationalMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDStereoDownMixMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDStereoDownMixMode.cs index 351abbd38e..1e4eaba037 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDStereoDownMixMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDDStereoDownMixMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6CE4122C-3EE9-4182-B4AE-C10FC088649D")] -public partial struct CODECAPI_AVDecDDStereoDownMixMode +public unsafe partial struct CODECAPI_AVDecDDStereoDownMixMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDDStereoDownMixMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDisableVideoPostProcessing.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDisableVideoPostProcessing.cs index 186fa6ebc2..2923b11717 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDisableVideoPostProcessing.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecDisableVideoPostProcessing.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F8749193-667A-4F2C-A9E8-5D4AF924F08F")] -public partial struct CODECAPI_AVDecDisableVideoPostProcessing +public unsafe partial struct CODECAPI_AVDecDisableVideoPostProcessing : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecDisableVideoPostProcessing)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecHEAACDynamicRangeControl.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecHEAACDynamicRangeControl.cs index 052859c879..d3fe979702 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecHEAACDynamicRangeControl.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecHEAACDynamicRangeControl.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("287C8ABE-69A4-4D39-8080-D3D9712178A0")] -public partial struct CODECAPI_AVDecHEAACDynamicRangeControl +public unsafe partial struct CODECAPI_AVDecHEAACDynamicRangeControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecHEAACDynamicRangeControl)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecNumWorkerThreads.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecNumWorkerThreads.cs index 2eb7628343..635fdde300 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecNumWorkerThreads.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecNumWorkerThreads.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9561C3E8-EA9E-4435-9B1E-A93E691894D8")] -public partial struct CODECAPI_AVDecNumWorkerThreads +public unsafe partial struct CODECAPI_AVDecNumWorkerThreads : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecNumWorkerThreads)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecSoftwareDynamicFormatChange.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecSoftwareDynamicFormatChange.cs index 39c25fb783..cb4a3c711d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecSoftwareDynamicFormatChange.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecSoftwareDynamicFormatChange.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("862E2F0A-507B-47FF-AF47-01E2624298B7")] -public partial struct CODECAPI_AVDecSoftwareDynamicFormatChange +public unsafe partial struct CODECAPI_AVDecSoftwareDynamicFormatChange : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecSoftwareDynamicFormatChange)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_H264.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_H264.cs index c72e0ea4ad..3719acb451 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_H264.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_H264.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7DB8A2F-4F48-4EE8-AE31-8B6EBE558AE2")] -public partial struct CODECAPI_AVDecVideoAcceleration_H264 +public unsafe partial struct CODECAPI_AVDecVideoAcceleration_H264 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoAcceleration_H264)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_MPEG2.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_MPEG2.cs index b428533f68..170654f222 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_MPEG2.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_MPEG2.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7DB8A2E-4F48-4EE8-AE31-8B6EBE558AE2")] -public partial struct CODECAPI_AVDecVideoAcceleration_MPEG2 +public unsafe partial struct CODECAPI_AVDecVideoAcceleration_MPEG2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoAcceleration_MPEG2)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_VC1.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_VC1.cs index 26deb15fe7..c3f5544b11 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_VC1.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoAcceleration_VC1.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7DB8A30-4F48-4EE8-AE31-8B6EBE558AE2")] -public partial struct CODECAPI_AVDecVideoAcceleration_VC1 +public unsafe partial struct CODECAPI_AVDecVideoAcceleration_VC1 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoAcceleration_VC1)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoCodecType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoCodecType.cs index 1f2a5df73c..36d21cbf2a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoCodecType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoCodecType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("434528E5-21F0-46B6-B62C-9B1B6B658CD1")] -public partial struct CODECAPI_AVDecVideoCodecType +public unsafe partial struct CODECAPI_AVDecVideoCodecType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoCodecType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVABusEncryption.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVABusEncryption.cs index dc3f7427b3..33098cd2fd 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVABusEncryption.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVABusEncryption.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("42153C8B-FD0B-4765-A462-DDD9E8BCC388")] -public partial struct CODECAPI_AVDecVideoDXVABusEncryption +public unsafe partial struct CODECAPI_AVDecVideoDXVABusEncryption : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoDXVABusEncryption)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVAMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVAMode.cs index 83ec7bfd1f..1ad3e4e44c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVAMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDXVAMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F758F09E-7337-4AE7-8387-73DC2D54E67D")] -public partial struct CODECAPI_AVDecVideoDXVAMode +public unsafe partial struct CODECAPI_AVDecVideoDXVAMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoDXVAMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDropPicWithMissingRef.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDropPicWithMissingRef.cs index 437698f096..6282984e81 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDropPicWithMissingRef.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoDropPicWithMissingRef.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F8226383-14C2-4567-9734-5004E96FF887")] -public partial struct CODECAPI_AVDecVideoDropPicWithMissingRef +public unsafe partial struct CODECAPI_AVDecVideoDropPicWithMissingRef : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoDropPicWithMissingRef)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoFastDecodeMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoFastDecodeMode.cs index 30cbd97fe0..2cd2b05c1d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoFastDecodeMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoFastDecodeMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6B529F7D-D3B1-49C6-A999-9EC6911BEDBF")] -public partial struct CODECAPI_AVDecVideoFastDecodeMode +public unsafe partial struct CODECAPI_AVDecVideoFastDecodeMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoFastDecodeMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoH264ErrorConcealment.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoH264ErrorConcealment.cs index 919eea590b..28864ccace 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoH264ErrorConcealment.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoH264ErrorConcealment.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("ECECACE8-3436-462C-9294-CD7BACD758A9")] -public partial struct CODECAPI_AVDecVideoH264ErrorConcealment +public unsafe partial struct CODECAPI_AVDecVideoH264ErrorConcealment : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoH264ErrorConcealment)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoImageSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoImageSize.cs index 878b5fb99f..54ec05f44c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoImageSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoImageSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5EE5747C-6801-4CAB-AAF1-6248FA841BA4")] -public partial struct CODECAPI_AVDecVideoImageSize +public unsafe partial struct CODECAPI_AVDecVideoImageSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoImageSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoInputScanType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoInputScanType.cs index e68783be1e..c2acd83516 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoInputScanType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoInputScanType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("38477E1F-0EA7-42CD-8CD1-130CED57C580")] -public partial struct CODECAPI_AVDecVideoInputScanType +public unsafe partial struct CODECAPI_AVDecVideoInputScanType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoInputScanType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMPEG2ErrorConcealment.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMPEG2ErrorConcealment.cs index d76867ec52..caa4d17bb6 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMPEG2ErrorConcealment.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMPEG2ErrorConcealment.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9D2BFE18-728D-48D2-B358-BC7E436C6674")] -public partial struct CODECAPI_AVDecVideoMPEG2ErrorConcealment +public unsafe partial struct CODECAPI_AVDecVideoMPEG2ErrorConcealment : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoMPEG2ErrorConcealment)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedHeight.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedHeight.cs index f766cab881..18ae13f123 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedHeight.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedHeight.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7262A16A-D2DC-4E75-9BA8-65C0C6D32B13")] -public partial struct CODECAPI_AVDecVideoMaxCodedHeight +public unsafe partial struct CODECAPI_AVDecVideoMaxCodedHeight : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoMaxCodedHeight)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedWidth.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedWidth.cs index e0aad81a7d..1e46329915 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedWidth.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoMaxCodedWidth.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5AE557B8-77AF-41F5-9FA6-4DB2FE1D4BCA")] -public partial struct CODECAPI_AVDecVideoMaxCodedWidth +public unsafe partial struct CODECAPI_AVDecVideoMaxCodedWidth : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoMaxCodedWidth)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoPixelAspectRatio.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoPixelAspectRatio.cs index d699b35789..7f83028274 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoPixelAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoPixelAspectRatio.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B0CF8245-F32D-41DF-B02C-87BD304D12AB")] -public partial struct CODECAPI_AVDecVideoPixelAspectRatio +public unsafe partial struct CODECAPI_AVDecVideoPixelAspectRatio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoPixelAspectRatio)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoProcDeinterlaceCSC.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoProcDeinterlaceCSC.cs index d4c5b25aeb..d36223d4be 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoProcDeinterlaceCSC.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoProcDeinterlaceCSC.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7DB8A31-4F48-4EE8-AE31-8B6EBE558AE2")] -public partial struct CODECAPI_AVDecVideoProcDeinterlaceCSC +public unsafe partial struct CODECAPI_AVDecVideoProcDeinterlaceCSC : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoProcDeinterlaceCSC)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSWPowerLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSWPowerLevel.cs index f4aead1506..c2d23ce0ee 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSWPowerLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSWPowerLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FB5D2347-4DD8-4509-AED0-DB5FA9AA93F4")] -public partial struct CODECAPI_AVDecVideoSWPowerLevel +public unsafe partial struct CODECAPI_AVDecVideoSWPowerLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoSWPowerLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSoftwareDeinterlaceMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSoftwareDeinterlaceMode.cs index 0f3d81c17f..6b8c209103 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSoftwareDeinterlaceMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoSoftwareDeinterlaceMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0C08D1CE-9CED-4540-BAE3-CEB380141109")] -public partial struct CODECAPI_AVDecVideoSoftwareDeinterlaceMode +public unsafe partial struct CODECAPI_AVDecVideoSoftwareDeinterlaceMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoSoftwareDeinterlaceMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoThumbnailGenerationMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoThumbnailGenerationMode.cs index d6dede4344..f0317252ac 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoThumbnailGenerationMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVDecVideoThumbnailGenerationMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2EFD8EEE-1150-4328-9CF5-66DCE933FCF4")] -public partial struct CODECAPI_AVDecVideoThumbnailGenerationMode +public unsafe partial struct CODECAPI_AVDecVideoThumbnailGenerationMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVDecVideoThumbnailGenerationMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEnableInLoopDeblockFilter.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEnableInLoopDeblockFilter.cs index 02d7a3d45a..7a8a6a6c5b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEnableInLoopDeblockFilter.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEnableInLoopDeblockFilter.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D2E8E399-0623-4BF3-92A8-4D1818529DED")] -public partial struct CODECAPI_AVEnableInLoopDeblockFilter +public unsafe partial struct CODECAPI_AVEnableInLoopDeblockFilter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEnableInLoopDeblockFilter)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAdaptiveMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAdaptiveMode.cs index a2eb052605..9da3a1ebfd 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAdaptiveMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAdaptiveMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4419B185-DA1F-4F53-BC76-097D0C1EFB1E")] -public partial struct CODECAPI_AVEncAdaptiveMode +public unsafe partial struct CODECAPI_AVEncAdaptiveMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAdaptiveMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioDualMono.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioDualMono.cs index eea6403bda..b93b0db8ad 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioDualMono.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioDualMono.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3648126B-A3E8-4329-9B3A-5CE566A43BD3")] -public partial struct CODECAPI_AVEncAudioDualMono +public unsafe partial struct CODECAPI_AVEncAudioDualMono : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioDualMono)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioInputContent.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioInputContent.cs index 8aeb480a3c..781970182a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioInputContent.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioInputContent.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3E226C2B-60B9-4A39-B00B-A7B40F70D566")] -public partial struct CODECAPI_AVEncAudioInputContent +public unsafe partial struct CODECAPI_AVEncAudioInputContent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioInputContent)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToEncode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToEncode.cs index 25314f298e..d8889ba187 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToEncode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToEncode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("866E4B4D-725A-467C-BB01-B496B23B25F9")] -public partial struct CODECAPI_AVEncAudioIntervalToEncode +public unsafe partial struct CODECAPI_AVEncAudioIntervalToEncode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioIntervalToEncode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToSkip.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToSkip.cs index 6b9b5bb3af..7186c29a24 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToSkip.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioIntervalToSkip.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("88C15F94-C38C-4796-A9E8-96E967983F26")] -public partial struct CODECAPI_AVEncAudioIntervalToSkip +public unsafe partial struct CODECAPI_AVEncAudioIntervalToSkip : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioIntervalToSkip)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel0.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel0.cs index 06b808161b..eda046188a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel0.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel0.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B60-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel0 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel0 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel0)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel1.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel1.cs index 642e3cd710..6f68c4f86b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel1.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel1.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B61-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel1 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel1 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel1)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel10.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel10.cs index e440c06b83..13a04c913c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel10.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel10.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6A-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel10 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel10 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel10)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel11.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel11.cs index da5f324738..7381276539 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel11.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel11.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6B-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel11 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel11 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel11)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel12.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel12.cs index 27c205564b..4ac80f29d6 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel12.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel12.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6C-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel12 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel12 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel12)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel13.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel13.cs index 97bb03de8a..a7192e7055 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel13.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel13.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6D-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel13 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel13 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel13)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel14.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel14.cs index d38f457152..298b282a9c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel14.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel14.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6E-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel14 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel14 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel14)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel15.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel15.cs index 76cec08ba1..115cc57a80 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel15.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel15.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B6F-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel15 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel15 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel15)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel2.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel2.cs index fd9e3bd4e8..5a77f47482 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel2.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel2.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B62-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel2 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel2)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel3.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel3.cs index fc56497216..7cfa4a804b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel3.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel3.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B63-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel3 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel3 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel3)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel4.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel4.cs index db55aa6930..73a04540bb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel4.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel4.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B64-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel4 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel4 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel4)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel5.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel5.cs index 3a46f9d267..e735dd445d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel5.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel5.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B65-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel5 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel5 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel5)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel6.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel6.cs index 6a28a4eea3..21b1fe639d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel6.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel6.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B66-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel6 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel6 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel6)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel7.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel7.cs index f9056cc471..bb14e3cda2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel7.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel7.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B67-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel7 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel7 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel7)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel8.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel8.cs index 95484cdac5..58ea0135a0 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel8.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel8.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B68-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel8 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel8 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel8)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel9.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel9.cs index db35c1856f..b7eb74e722 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel9.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMapDestChannel9.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BC5D0B69-DF6A-4E16-9803-B82007A30C8D")] -public partial struct CODECAPI_AVEncAudioMapDestChannel9 +public unsafe partial struct CODECAPI_AVEncAudioMapDestChannel9 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMapDestChannel9)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMeanBitRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMeanBitRate.cs index a04c91fabe..a9a3077420 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMeanBitRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncAudioMeanBitRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("921295BB-4FCA-4679-AAB8-9E2A1D753384")] -public partial struct CODECAPI_AVEncAudioMeanBitRate +public unsafe partial struct CODECAPI_AVEncAudioMeanBitRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncAudioMeanBitRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaEncodeMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaEncodeMode.cs index a4f2082232..cf9ef77342 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaEncodeMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaEncodeMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8A47AB5A-4798-4C93-B5A5-554F9A3B9F50")] -public partial struct CODECAPI_AVEncChromaEncodeMode +public unsafe partial struct CODECAPI_AVEncChromaEncodeMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncChromaEncodeMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaUpdateTime.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaUpdateTime.cs index fe5e12bb95..44c9d7a8b6 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaUpdateTime.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncChromaUpdateTime.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4B4FD998-4274-40BB-8EE4-07553E7E2D3A")] -public partial struct CODECAPI_AVEncChromaUpdateTime +public unsafe partial struct CODECAPI_AVEncChromaUpdateTime : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncChromaUpdateTime)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCodecType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCodecType.cs index 438444fb9d..17eb2667a8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCodecType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCodecType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("08AF4AC1-F3F2-4C74-9DCF-37F2EC79F826")] -public partial struct CODECAPI_AVEncCodecType +public unsafe partial struct CODECAPI_AVEncCodecType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCodecType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonAllowFrameDrops.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonAllowFrameDrops.cs index 41d4863f6c..5274b9c5f3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonAllowFrameDrops.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonAllowFrameDrops.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D8477DCB-9598-48E3-8D0C-752BF206093E")] -public partial struct CODECAPI_AVEncCommonAllowFrameDrops +public unsafe partial struct CODECAPI_AVEncCommonAllowFrameDrops : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonAllowFrameDrops)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferInLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferInLevel.cs index 138be6fae7..b130b226b6 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferInLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferInLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D9C5C8DB-FC74-4064-94E9-CD19F947ED45")] -public partial struct CODECAPI_AVEncCommonBufferInLevel +public unsafe partial struct CODECAPI_AVEncCommonBufferInLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonBufferInLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferOutLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferOutLevel.cs index d17603f034..0b24d90f7e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferOutLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferOutLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CCAE7F49-D0BC-4E3D-A57E-FB5740140069")] -public partial struct CODECAPI_AVEncCommonBufferOutLevel +public unsafe partial struct CODECAPI_AVEncCommonBufferOutLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonBufferOutLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferSize.cs index 0ccd853f80..50854e2a8c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonBufferSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0DB96574-B6A4-4C8B-8106-3773DE0310CD")] -public partial struct CODECAPI_AVEncCommonBufferSize +public unsafe partial struct CODECAPI_AVEncCommonBufferSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonBufferSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonFormatConstraint.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonFormatConstraint.cs index 8cf40c4d88..f9a157e58b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonFormatConstraint.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonFormatConstraint.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("57CBB9B8-116F-4951-B40C-C2A035ED8F17")] -public partial struct CODECAPI_AVEncCommonFormatConstraint +public unsafe partial struct CODECAPI_AVEncCommonFormatConstraint : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonFormatConstraint)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonLowLatency.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonLowLatency.cs index dd75df8bfe..9e0e307525 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonLowLatency.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonLowLatency.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9D3ECD55-89E8-490A-970A-0C9548D5A56E")] -public partial struct CODECAPI_AVEncCommonLowLatency +public unsafe partial struct CODECAPI_AVEncCommonLowLatency : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonLowLatency)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMaxBitRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMaxBitRate.cs index 9c39e08d6a..3472551299 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMaxBitRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMaxBitRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9651EAE4-39B9-4EBF-85EF-D7F444EC7465")] -public partial struct CODECAPI_AVEncCommonMaxBitRate +public unsafe partial struct CODECAPI_AVEncCommonMaxBitRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonMaxBitRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRate.cs index 4186fd3150..413ec1bd3c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7222374-2144-4815-B550-A37F8E12EE52")] -public partial struct CODECAPI_AVEncCommonMeanBitRate +public unsafe partial struct CODECAPI_AVEncCommonMeanBitRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonMeanBitRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRateInterval.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRateInterval.cs index 62ee19c755..d7e6ea68bd 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRateInterval.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMeanBitRateInterval.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BFAA2F0C-CB82-4BC0-8474-F06A8A0D0258")] -public partial struct CODECAPI_AVEncCommonMeanBitRateInterval +public unsafe partial struct CODECAPI_AVEncCommonMeanBitRateInterval : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonMeanBitRateInterval)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMinBitRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMinBitRate.cs index 015759977e..e5b77e0744 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMinBitRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMinBitRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("101405B2-2083-4034-A806-EFBEDDD7C9FF")] -public partial struct CODECAPI_AVEncCommonMinBitRate +public unsafe partial struct CODECAPI_AVEncCommonMinBitRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonMinBitRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMultipassMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMultipassMode.cs index ec22a4aa36..a7a3950853 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMultipassMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonMultipassMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("22533D4C-47E1-41B5-9352-A2B7780E7AC4")] -public partial struct CODECAPI_AVEncCommonMultipassMode +public unsafe partial struct CODECAPI_AVEncCommonMultipassMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonMultipassMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassEnd.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassEnd.cs index 7d536347a5..a0e32bcff0 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassEnd.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassEnd.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0E3D01BC-C85C-467D-8B60-C41012EE3BF6")] -public partial struct CODECAPI_AVEncCommonPassEnd +public unsafe partial struct CODECAPI_AVEncCommonPassEnd : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonPassEnd)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassStart.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassStart.cs index 99728a166f..0c72404107 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassStart.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonPassStart.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6A67739F-4EB5-4385-9928-F276A939EF95")] -public partial struct CODECAPI_AVEncCommonPassStart +public unsafe partial struct CODECAPI_AVEncCommonPassStart : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonPassStart)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQuality.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQuality.cs index 1ce24cb82e..41480370ed 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQuality.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQuality.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FCBF57A3-7EA5-4B0C-9644-69B40C39C391")] -public partial struct CODECAPI_AVEncCommonQuality +public unsafe partial struct CODECAPI_AVEncCommonQuality : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonQuality)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQualityVsSpeed.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQualityVsSpeed.cs index 2dd5a93d75..95750bf3ff 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQualityVsSpeed.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonQualityVsSpeed.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("98332DF8-03CD-476B-89FA-3F9E442DEC9F")] -public partial struct CODECAPI_AVEncCommonQualityVsSpeed +public unsafe partial struct CODECAPI_AVEncCommonQualityVsSpeed : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonQualityVsSpeed)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRateControlMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRateControlMode.cs index 98696a7d3c..578480c8a2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRateControlMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRateControlMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1C0608E9-370C-4710-8A58-CB6181C42423")] -public partial struct CODECAPI_AVEncCommonRateControlMode +public unsafe partial struct CODECAPI_AVEncCommonRateControlMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonRateControlMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRealTime.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRealTime.cs index b8eeb78f17..e7cf38b7f3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRealTime.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonRealTime.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("143A0FF6-A131-43DA-B81E-98FBB8EC378E")] -public partial struct CODECAPI_AVEncCommonRealTime +public unsafe partial struct CODECAPI_AVEncCommonRealTime : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonRealTime)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonStreamEndHandling.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonStreamEndHandling.cs index 906b5e5988..4a88a52185 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonStreamEndHandling.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonStreamEndHandling.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6AAD30AF-6BA8-4CCC-8FCA-18D19BEAEB1C")] -public partial struct CODECAPI_AVEncCommonStreamEndHandling +public unsafe partial struct CODECAPI_AVEncCommonStreamEndHandling : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonStreamEndHandling)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonTranscodeEncodingProfile.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonTranscodeEncodingProfile.cs index 16bce9238d..4381089f53 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonTranscodeEncodingProfile.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncCommonTranscodeEncodingProfile.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6947787C-F508-4EA9-B1E9-A1FE3A49FBC9")] -public partial struct CODECAPI_AVEncCommonTranscodeEncodingProfile +public unsafe partial struct CODECAPI_AVEncCommonTranscodeEncodingProfile : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncCommonTranscodeEncodingProfile)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDAtoDConverterType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDAtoDConverterType.cs index 43fcc53d92..e3d094c170 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDAtoDConverterType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDAtoDConverterType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("719F9612-81A1-47E0-9A05-D94AD5FCA948")] -public partial struct CODECAPI_AVEncDDAtoDConverterType +public unsafe partial struct CODECAPI_AVEncDDAtoDConverterType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDAtoDConverterType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCentreDownMixLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCentreDownMixLevel.cs index 3c628f7c6c..afc0ca2e32 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCentreDownMixLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCentreDownMixLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E285072C-C958-4A81-AFD2-E5E0DAF1B148")] -public partial struct CODECAPI_AVEncDDCentreDownMixLevel +public unsafe partial struct CODECAPI_AVEncDDCentreDownMixLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDCentreDownMixLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDChannelBWLowPassFilter.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDChannelBWLowPassFilter.cs index 8967de5dd7..df53b95776 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDChannelBWLowPassFilter.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDChannelBWLowPassFilter.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E197821D-D2E7-43E2-AD2C-00582F518545")] -public partial struct CODECAPI_AVEncDDChannelBWLowPassFilter +public unsafe partial struct CODECAPI_AVEncDDChannelBWLowPassFilter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDChannelBWLowPassFilter)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCopyright.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCopyright.cs index fa87f00186..c83bfcb62c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCopyright.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDCopyright.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8694F076-CD75-481D-A5C6-A904DCC828F0")] -public partial struct CODECAPI_AVEncDDCopyright +public unsafe partial struct CODECAPI_AVEncDDCopyright : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDCopyright)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDCHighPassFilter.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDCHighPassFilter.cs index 98e4864e1e..bff54691d5 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDCHighPassFilter.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDCHighPassFilter.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9565239F-861C-4AC8-BFDA-E00CB4DB8548")] -public partial struct CODECAPI_AVEncDDDCHighPassFilter +public unsafe partial struct CODECAPI_AVEncDDDCHighPassFilter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDDCHighPassFilter)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDialogNormalization.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDialogNormalization.cs index 422a8cc0a7..f0d0a93f8c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDialogNormalization.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDialogNormalization.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D7055ACF-F125-437D-A704-79C79F0404A8")] -public partial struct CODECAPI_AVEncDDDialogNormalization +public unsafe partial struct CODECAPI_AVEncDDDialogNormalization : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDDialogNormalization)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDigitalDeemphasis.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDigitalDeemphasis.cs index 4c50ef36fb..547d109925 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDigitalDeemphasis.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDigitalDeemphasis.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E024A2C2-947C-45AC-87D8-F1030C5C0082")] -public partial struct CODECAPI_AVEncDDDigitalDeemphasis +public unsafe partial struct CODECAPI_AVEncDDDigitalDeemphasis : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDDigitalDeemphasis)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDynamicRangeCompressionControl.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDynamicRangeCompressionControl.cs index 1225b1b40c..229e4d9f93 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDynamicRangeCompressionControl.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDDynamicRangeCompressionControl.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CFC2FF6D-79B8-4B8D-A8AA-A0C9BD1C2940")] -public partial struct CODECAPI_AVEncDDDynamicRangeCompressionControl +public unsafe partial struct CODECAPI_AVEncDDDynamicRangeCompressionControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDDynamicRangeCompressionControl)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDHeadphoneMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDHeadphoneMode.cs index c58e2fd2e0..b6c06a8b21 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDHeadphoneMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDHeadphoneMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4052DBEC-52F5-42F5-9B00-D134B1341B9D")] -public partial struct CODECAPI_AVEncDDHeadphoneMode +public unsafe partial struct CODECAPI_AVEncDDHeadphoneMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDHeadphoneMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLFELowPassFilter.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLFELowPassFilter.cs index d25d2cc6d5..90336dec4c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLFELowPassFilter.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLFELowPassFilter.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D3B80F6F-9D15-45E5-91BE-019C3FAB1F01")] -public partial struct CODECAPI_AVEncDDLFELowPassFilter +public unsafe partial struct CODECAPI_AVEncDDLFELowPassFilter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDLFELowPassFilter)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoCenterMixLvl_x10.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoCenterMixLvl_x10.cs index 871cc48d0f..5c42de5f5d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoCenterMixLvl_x10.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoCenterMixLvl_x10.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1CFBA222-25B3-4BF4-9BFD-E7111267858C")] -public partial struct CODECAPI_AVEncDDLoRoCenterMixLvl_x10 +public unsafe partial struct CODECAPI_AVEncDDLoRoCenterMixLvl_x10 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDLoRoCenterMixLvl_x10)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoSurroundMixLvl_x10.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoSurroundMixLvl_x10.cs index 6ae879f79a..8cc6bb78fc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoSurroundMixLvl_x10.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLoRoSurroundMixLvl_x10.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E725CFF6-EB56-40C7-8450-2B9367E91555")] -public partial struct CODECAPI_AVEncDDLoRoSurroundMixLvl_x10 +public unsafe partial struct CODECAPI_AVEncDDLoRoSurroundMixLvl_x10 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDLoRoSurroundMixLvl_x10)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtCenterMixLvl_x10.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtCenterMixLvl_x10.cs index ba4734a7b5..8cdb978824 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtCenterMixLvl_x10.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtCenterMixLvl_x10.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DCA128A2-491F-4600-B2DA-76E3344B4197")] -public partial struct CODECAPI_AVEncDDLtRtCenterMixLvl_x10 +public unsafe partial struct CODECAPI_AVEncDDLtRtCenterMixLvl_x10 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDLtRtCenterMixLvl_x10)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtSurroundMixLvl_x10.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtSurroundMixLvl_x10.cs index 2771b607c4..c6454a85c7 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtSurroundMixLvl_x10.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDLtRtSurroundMixLvl_x10.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("212246C7-3D2C-4DFA-BC21-652A9098690D")] -public partial struct CODECAPI_AVEncDDLtRtSurroundMixLvl_x10 +public unsafe partial struct CODECAPI_AVEncDDLtRtSurroundMixLvl_x10 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDLtRtSurroundMixLvl_x10)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDOriginalBitstream.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDOriginalBitstream.cs index cb457cbdad..e6c4192ed9 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDOriginalBitstream.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDOriginalBitstream.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("966AE800-5BD3-4FF9-95B9-D30566273856")] -public partial struct CODECAPI_AVEncDDOriginalBitstream +public unsafe partial struct CODECAPI_AVEncDDOriginalBitstream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDOriginalBitstream)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDPreferredStereoDownMixMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDPreferredStereoDownMixMode.cs index b87486a1a0..6dcf773112 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDPreferredStereoDownMixMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDPreferredStereoDownMixMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7F4E6B31-9185-403D-B0A2-763743E6F063")] -public partial struct CODECAPI_AVEncDDPreferredStereoDownMixMode +public unsafe partial struct CODECAPI_AVEncDDPreferredStereoDownMixMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDPreferredStereoDownMixMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionInfoExists.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionInfoExists.cs index 8547c3e1d5..c05359fc68 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionInfoExists.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionInfoExists.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B0B7FE5F-B6AB-4F40-964D-8D91F17C19E8")] -public partial struct CODECAPI_AVEncDDProductionInfoExists +public unsafe partial struct CODECAPI_AVEncDDProductionInfoExists : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDProductionInfoExists)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionMixLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionMixLevel.cs index e93d759fda..de05aff782 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionMixLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionMixLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("301D103A-CBF9-4776-8899-7C15B461AB26")] -public partial struct CODECAPI_AVEncDDProductionMixLevel +public unsafe partial struct CODECAPI_AVEncDDProductionMixLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDProductionMixLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionRoomType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionRoomType.cs index e96e628267..f6c4c89bec 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionRoomType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDProductionRoomType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DAD7AD60-23D8-4AB7-A284-556986D8A6FE")] -public partial struct CODECAPI_AVEncDDProductionRoomType +public unsafe partial struct CODECAPI_AVEncDDProductionRoomType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDProductionRoomType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDRFPreEmphasisFilter.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDRFPreEmphasisFilter.cs index a11c666edd..9fe09e4ebc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDRFPreEmphasisFilter.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDRFPreEmphasisFilter.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("21AF44C0-244E-4F3D-A2CC-3D3068B2E73F")] -public partial struct CODECAPI_AVEncDDRFPreEmphasisFilter +public unsafe partial struct CODECAPI_AVEncDDRFPreEmphasisFilter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDRFPreEmphasisFilter)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDService.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDService.cs index dcaeb61d4b..b1d10135a6 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDService.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDService.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D2E1BEC7-5172-4D2A-A50E-2F3B82B1DDF8")] -public partial struct CODECAPI_AVEncDDService +public unsafe partial struct CODECAPI_AVEncDDService : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDService)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround3dBAttenuation.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround3dBAttenuation.cs index bc1b0802e1..a6d101d853 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround3dBAttenuation.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround3dBAttenuation.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4D43B99D-31E2-48B9-BF2E-5CBF1A572784")] -public partial struct CODECAPI_AVEncDDSurround3dBAttenuation +public unsafe partial struct CODECAPI_AVEncDDSurround3dBAttenuation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDSurround3dBAttenuation)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround90DegreeePhaseShift.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround90DegreeePhaseShift.cs index 3ace98384b..31c8b983ba 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround90DegreeePhaseShift.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurround90DegreeePhaseShift.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("25ECEC9D-3553-42C0-BB56-D25792104F80")] -public partial struct CODECAPI_AVEncDDSurround90DegreeePhaseShift +public unsafe partial struct CODECAPI_AVEncDDSurround90DegreeePhaseShift : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDSurround90DegreeePhaseShift)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundDownMixLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundDownMixLevel.cs index 3c0ec89db0..37c218154d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundDownMixLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundDownMixLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7B20D6E5-0BCF-4273-A487-506B047997E9")] -public partial struct CODECAPI_AVEncDDSurroundDownMixLevel +public unsafe partial struct CODECAPI_AVEncDDSurroundDownMixLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDSurroundDownMixLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundExMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundExMode.cs index 4b82b31625..701d4f9775 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundExMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDSurroundExMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("91607CEE-DBDD-4EB6-BCA2-AADFAFA3DD68")] -public partial struct CODECAPI_AVEncDDSurroundExMode +public unsafe partial struct CODECAPI_AVEncDDSurroundExMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncDDSurroundExMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncEnableVideoProcessing.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncEnableVideoProcessing.cs index 35312f379f..b19be38d0d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncEnableVideoProcessing.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncEnableVideoProcessing.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("006F4BF6-0EA3-4D42-8702-B5D8BE0F7A92")] -public partial struct CODECAPI_AVEncEnableVideoProcessing +public unsafe partial struct CODECAPI_AVEncEnableVideoProcessing : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncEnableVideoProcessing)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264CABACEnable.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264CABACEnable.cs index 62d79e73e4..76dbf867db 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264CABACEnable.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264CABACEnable.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EE6CAD62-D305-4248-A50E-E1B255F7CAF8")] -public partial struct CODECAPI_AVEncH264CABACEnable +public unsafe partial struct CODECAPI_AVEncH264CABACEnable : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncH264CABACEnable)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264PPSID.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264PPSID.cs index 3328ec108a..777a082171 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264PPSID.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264PPSID.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BFE29EC2-056C-4D68-A38D-AE5944C8582E")] -public partial struct CODECAPI_AVEncH264PPSID +public unsafe partial struct CODECAPI_AVEncH264PPSID : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncH264PPSID)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264SPSID.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264SPSID.cs index ab38c0ca75..e19a4653f5 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264SPSID.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncH264SPSID.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("50F38F51-2B79-40E3-B39C-7E9FA0770501")] -public partial struct CODECAPI_AVEncH264SPSID +public unsafe partial struct CODECAPI_AVEncH264SPSID : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncH264SPSID)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncInputVideoSystem.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncInputVideoSystem.cs index 77578bd36f..7e8bd37bae 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncInputVideoSystem.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncInputVideoSystem.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BEDE146D-B616-4DC7-92B2-F5D9FA9298F7")] -public partial struct CODECAPI_AVEncInputVideoSystem +public unsafe partial struct CODECAPI_AVEncInputVideoSystem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncInputVideoSystem)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncLowPowerEncoder.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncLowPowerEncoder.cs index 1f3d19b679..7f60d09f29 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncLowPowerEncoder.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncLowPowerEncoder.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B668D582-8BAD-4F6A-9141-375A95358B6D")] -public partial struct CODECAPI_AVEncLowPowerEncoder +public unsafe partial struct CODECAPI_AVEncLowPowerEncoder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncLowPowerEncoder)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxDVDNavPacks.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxDVDNavPacks.cs index 6ef73d8279..b07122d2ec 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxDVDNavPacks.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxDVDNavPacks.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C7607CED-8CF1-4A99-83A1-EE5461BE3574")] -public partial struct CODECAPI_AVEncMP12MuxDVDNavPacks +public unsafe partial struct CODECAPI_AVEncMP12MuxDVDNavPacks : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxDVDNavPacks)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxEarliestPTS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxEarliestPTS.cs index 09d2cdaedc..f1fb078757 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxEarliestPTS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxEarliestPTS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("157232B6-F809-474E-9464-A7F93014A817")] -public partial struct CODECAPI_AVEncMP12MuxEarliestPTS +public unsafe partial struct CODECAPI_AVEncMP12MuxEarliestPTS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxEarliestPTS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxInitialSCR.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxInitialSCR.cs index e1dbe02157..cd21739374 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxInitialSCR.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxInitialSCR.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3433AD21-1B91-4A0B-B190-2B77063B63A4")] -public partial struct CODECAPI_AVEncMP12MuxInitialSCR +public unsafe partial struct CODECAPI_AVEncMP12MuxInitialSCR : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxInitialSCR)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxLargestPacketSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxLargestPacketSize.cs index 926ed70bc1..cf97a2e367 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxLargestPacketSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxLargestPacketSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("35CEB711-F461-4B92-A4EF-17B6841ED254")] -public partial struct CODECAPI_AVEncMP12MuxLargestPacketSize +public unsafe partial struct CODECAPI_AVEncMP12MuxLargestPacketSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxLargestPacketSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxMuxRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxMuxRate.cs index f23061f58b..155aa745d8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxMuxRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxMuxRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EE047C72-4BDB-4A9D-8E21-41926C823DA7")] -public partial struct CODECAPI_AVEncMP12MuxMuxRate +public unsafe partial struct CODECAPI_AVEncMP12MuxMuxRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxMuxRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxNumStreams.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxNumStreams.cs index a7981a464c..612fd81f76 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxNumStreams.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxNumStreams.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F7164A41-DCED-4659-A8F2-FB693F2A4CD0")] -public partial struct CODECAPI_AVEncMP12MuxNumStreams +public unsafe partial struct CODECAPI_AVEncMP12MuxNumStreams : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxNumStreams)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPackSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPackSize.cs index 1115a99ec8..b08d8f7884 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPackSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPackSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F916053A-1CE8-4FAF-AA0B-BA31C80034B8")] -public partial struct CODECAPI_AVEncMP12MuxPackSize +public unsafe partial struct CODECAPI_AVEncMP12MuxPackSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxPackSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPacketOverhead.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPacketOverhead.cs index 049955b6b2..68f353d61b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPacketOverhead.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxPacketOverhead.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E40BD720-3955-4453-ACF9-B79132A38FA0")] -public partial struct CODECAPI_AVEncMP12MuxPacketOverhead +public unsafe partial struct CODECAPI_AVEncMP12MuxPacketOverhead : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxPacketOverhead)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysAudioLock.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysAudioLock.cs index 06267bc09d..b9e5a992b2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysAudioLock.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysAudioLock.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0FBB5752-1D43-47BF-BD79-F2293D8CE337")] -public partial struct CODECAPI_AVEncMP12MuxSysAudioLock +public unsafe partial struct CODECAPI_AVEncMP12MuxSysAudioLock : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysAudioLock)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysCSPS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysCSPS.cs index a5c510091f..3a7830f7e8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysCSPS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysCSPS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7952FF45-9C0D-4822-BC82-8AD772E02993")] -public partial struct CODECAPI_AVEncMP12MuxSysCSPS +public unsafe partial struct CODECAPI_AVEncMP12MuxSysCSPS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysCSPS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysFixed.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysFixed.cs index bd9b25f35a..5d9eba4090 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysFixed.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysFixed.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CEFB987E-894F-452E-8F89-A4EF8CEC063A")] -public partial struct CODECAPI_AVEncMP12MuxSysFixed +public unsafe partial struct CODECAPI_AVEncMP12MuxSysFixed : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysFixed)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysRateBound.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysRateBound.cs index fe80da29bb..6462b45b96 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysRateBound.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysRateBound.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("05F0428A-EE30-489D-AE28-205C72446710")] -public partial struct CODECAPI_AVEncMP12MuxSysRateBound +public unsafe partial struct CODECAPI_AVEncMP12MuxSysRateBound : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysRateBound)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysSTDBufferBound.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysSTDBufferBound.cs index 9aeccd73d2..e0ac32bba8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysSTDBufferBound.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysSTDBufferBound.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("35746903-B545-43E7-BB35-C5E0A7D5093C")] -public partial struct CODECAPI_AVEncMP12MuxSysSTDBufferBound +public unsafe partial struct CODECAPI_AVEncMP12MuxSysSTDBufferBound : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysSTDBufferBound)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysVideoLock.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysVideoLock.cs index 54bd912a4e..4274dcc6e1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysVideoLock.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxSysVideoLock.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B8296408-2430-4D37-A2A1-95B3E435A91D")] -public partial struct CODECAPI_AVEncMP12MuxSysVideoLock +public unsafe partial struct CODECAPI_AVEncMP12MuxSysVideoLock : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxSysVideoLock)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxTargetPacketizer.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxTargetPacketizer.cs index df63dee553..75aa90329b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxTargetPacketizer.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12MuxTargetPacketizer.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D862212A-2015-45DD-9A32-1B3AA88205A0")] -public partial struct CODECAPI_AVEncMP12MuxTargetPacketizer +public unsafe partial struct CODECAPI_AVEncMP12MuxTargetPacketizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12MuxTargetPacketizer)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzCopyright.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzCopyright.cs index 8acb2bd0a5..c166a64683 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzCopyright.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzCopyright.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C8F4B0C1-094C-43C7-8E68-A595405A6EF8")] -public partial struct CODECAPI_AVEncMP12PktzCopyright +public unsafe partial struct CODECAPI_AVEncMP12PktzCopyright : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzCopyright)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzInitialPTS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzInitialPTS.cs index a6877b3ab3..effe843303 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzInitialPTS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzInitialPTS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2A4F2065-9A63-4D20-AE22-0A1BC896A315")] -public partial struct CODECAPI_AVEncMP12PktzInitialPTS +public unsafe partial struct CODECAPI_AVEncMP12PktzInitialPTS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzInitialPTS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzOriginal.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzOriginal.cs index ed8db8ea95..8a4d0a31eb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzOriginal.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzOriginal.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6B178416-31B9-4964-94CB-6BFF866CDF83")] -public partial struct CODECAPI_AVEncMP12PktzOriginal +public unsafe partial struct CODECAPI_AVEncMP12PktzOriginal : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzOriginal)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzPacketSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzPacketSize.cs index c6144cb59d..cbb6a9c0eb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzPacketSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzPacketSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AB71347A-1332-4DDE-A0E5-CCF7DA8A0F22")] -public partial struct CODECAPI_AVEncMP12PktzPacketSize +public unsafe partial struct CODECAPI_AVEncMP12PktzPacketSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzPacketSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzSTDBuffer.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzSTDBuffer.cs index a8fb4b98d8..f2c2da8be1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzSTDBuffer.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzSTDBuffer.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0B751BD0-819E-478C-9435-75208926B377")] -public partial struct CODECAPI_AVEncMP12PktzSTDBuffer +public unsafe partial struct CODECAPI_AVEncMP12PktzSTDBuffer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzSTDBuffer)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzStreamID.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzStreamID.cs index 53b739fa37..5096b346d0 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzStreamID.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMP12PktzStreamID.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C834D038-F5E8-4408-9B60-88F36493FEDF")] -public partial struct CODECAPI_AVEncMP12PktzStreamID +public unsafe partial struct CODECAPI_AVEncMP12PktzStreamID : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMP12PktzStreamID)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACodingMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACodingMode.cs index 73cb5ac8ae..83c5e0f599 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACodingMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACodingMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B16ADE03-4B93-43D7-A550-90B4FE224537")] -public partial struct CODECAPI_AVEncMPACodingMode +public unsafe partial struct CODECAPI_AVEncMPACodingMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPACodingMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACopyright.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACopyright.cs index e49e30b9cb..a4df3f174d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACopyright.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPACopyright.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A6AE762A-D0A9-4454-B8EF-F2DBEEFDD3BD")] -public partial struct CODECAPI_AVEncMPACopyright +public unsafe partial struct CODECAPI_AVEncMPACopyright : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPACopyright)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEmphasisType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEmphasisType.cs index 2b584237ee..045542c0a1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEmphasisType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEmphasisType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2D59FCDA-BF4E-4ED6-B5DF-5B03B36B0A1F")] -public partial struct CODECAPI_AVEncMPAEmphasisType +public unsafe partial struct CODECAPI_AVEncMPAEmphasisType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPAEmphasisType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEnableRedundancyProtection.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEnableRedundancyProtection.cs index 20f264f98c..6927f2d668 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEnableRedundancyProtection.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAEnableRedundancyProtection.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5E54B09E-B2E7-4973-A89B-0B3650A3BEDA")] -public partial struct CODECAPI_AVEncMPAEnableRedundancyProtection +public unsafe partial struct CODECAPI_AVEncMPAEnableRedundancyProtection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPAEnableRedundancyProtection)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPALayer.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPALayer.cs index f3cb144600..fad9ce2fe4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPALayer.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPALayer.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9D377230-F91B-453D-9CE0-78445414C22D")] -public partial struct CODECAPI_AVEncMPALayer +public unsafe partial struct CODECAPI_AVEncMPALayer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPALayer)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAOriginalBitstream.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAOriginalBitstream.cs index 45d30707e8..49d31d8741 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAOriginalBitstream.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAOriginalBitstream.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3CFB7855-9CC9-47FF-B829-B36786C92346")] -public partial struct CODECAPI_AVEncMPAOriginalBitstream +public unsafe partial struct CODECAPI_AVEncMPAOriginalBitstream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPAOriginalBitstream)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAPrivateUserBit.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAPrivateUserBit.cs index 426a6f9232..c344515f2b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAPrivateUserBit.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPAPrivateUserBit.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AFA505CE-C1E3-4E3D-851B-61B700E5E6CC")] -public partial struct CODECAPI_AVEncMPAPrivateUserBit +public unsafe partial struct CODECAPI_AVEncMPAPrivateUserBit : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPAPrivateUserBit)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVAddSeqEndCode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVAddSeqEndCode.cs index 46017f7ff4..5c12fbae8e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVAddSeqEndCode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVAddSeqEndCode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A823178F-57DF-4C7A-B8FD-E5EC8887708D")] -public partial struct CODECAPI_AVEncMPVAddSeqEndCode +public unsafe partial struct CODECAPI_AVEncMPVAddSeqEndCode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVAddSeqEndCode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVDefaultBPictureCount.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVDefaultBPictureCount.cs index 539ba93389..5b67d80e5e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVDefaultBPictureCount.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVDefaultBPictureCount.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8D390AAC-DC5C-4200-B57F-814D04BABAB2")] -public partial struct CODECAPI_AVEncMPVDefaultBPictureCount +public unsafe partial struct CODECAPI_AVEncMPVDefaultBPictureCount : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVDefaultBPictureCount)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVFrameFieldMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVFrameFieldMode.cs index 6ab0afd941..00eb595810 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVFrameFieldMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVFrameFieldMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("ACB5DE96-7B93-4C2F-8825-B0295FA93BF4")] -public partial struct CODECAPI_AVEncMPVFrameFieldMode +public unsafe partial struct CODECAPI_AVEncMPVFrameFieldMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVFrameFieldMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPOpen.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPOpen.cs index e9a09db4a2..eb012db285 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPOpen.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPOpen.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B1D5D4A6-3300-49B1-AE61-A09937AB0E49")] -public partial struct CODECAPI_AVEncMPVGOPOpen +public unsafe partial struct CODECAPI_AVEncMPVGOPOpen : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGOPOpen)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSInSeq.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSInSeq.cs index ffa4e6b10a..d42206c05b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSInSeq.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSInSeq.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("993410D4-2691-4192-9978-98DC2603669F")] -public partial struct CODECAPI_AVEncMPVGOPSInSeq +public unsafe partial struct CODECAPI_AVEncMPVGOPSInSeq : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGOPSInSeq)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSize.cs index 58809df772..4657f6570a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("95F31B26-95A4-41AA-9303-246A7FC6EEF1")] -public partial struct CODECAPI_AVEncMPVGOPSize +public unsafe partial struct CODECAPI_AVEncMPVGOPSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGOPSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMax.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMax.cs index 600e726b79..3f886bff5c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMax.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMax.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FE7DE4C4-1936-4FE2-BDF7-1F18CA1D001F")] -public partial struct CODECAPI_AVEncMPVGOPSizeMax +public unsafe partial struct CODECAPI_AVEncMPVGOPSizeMax : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGOPSizeMax)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMin.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMin.cs index 1af660c4d4..9ed1bbbbf8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMin.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGOPSizeMin.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7155CF20-D440-4852-AD0F-9C4ABFE37A6A")] -public partial struct CODECAPI_AVEncMPVGOPSizeMin +public unsafe partial struct CODECAPI_AVEncMPVGOPSizeMin : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGOPSizeMin)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicDispExt.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicDispExt.cs index 7961cda613..05b9e82b77 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicDispExt.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicDispExt.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C6412F84-C03F-4F40-A00C-4293DF8395BB")] -public partial struct CODECAPI_AVEncMPVGenerateHeaderPicDispExt +public unsafe partial struct CODECAPI_AVEncMPVGenerateHeaderPicDispExt : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGenerateHeaderPicDispExt)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicExt.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicExt.cs index 7266d39800..3edf553bae 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicExt.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderPicExt.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1B8464AB-944F-45F0-B74E-3A58DAD11F37")] -public partial struct CODECAPI_AVEncMPVGenerateHeaderPicExt +public unsafe partial struct CODECAPI_AVEncMPVGenerateHeaderPicExt : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGenerateHeaderPicExt)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqDispExt.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqDispExt.cs index 73766c3a7a..95bd30dd6f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqDispExt.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqDispExt.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6437AA6F-5A3C-4DE9-8A16-53D9C4AD326F")] -public partial struct CODECAPI_AVEncMPVGenerateHeaderSeqDispExt +public unsafe partial struct CODECAPI_AVEncMPVGenerateHeaderSeqDispExt : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGenerateHeaderSeqDispExt)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqExt.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqExt.cs index 5bd0886112..c453b21f7b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqExt.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqExt.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D5E78611-082D-4E6B-98AF-0F51AB139222")] -public partial struct CODECAPI_AVEncMPVGenerateHeaderSeqExt +public unsafe partial struct CODECAPI_AVEncMPVGenerateHeaderSeqExt : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGenerateHeaderSeqExt)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt.cs index 2b02767a89..17e53d2178 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0722D62F-DD59-4A86-9CD5-644F8E2653D8")] -public partial struct CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt +public unsafe partial struct CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraDCPrecision.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraDCPrecision.cs index 31095e2563..5d134d1b70 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraDCPrecision.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraDCPrecision.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A0116151-CBC8-4AF3-97DC-D00CCEB82D79")] -public partial struct CODECAPI_AVEncMPVIntraDCPrecision +public unsafe partial struct CODECAPI_AVEncMPVIntraDCPrecision : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVIntraDCPrecision)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraVLCTable.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraVLCTable.cs index fe7b4ef57e..4657f531e8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraVLCTable.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVIntraVLCTable.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A2B83FF5-1A99-405A-AF95-C5997D558D3A")] -public partial struct CODECAPI_AVEncMPVIntraVLCTable +public unsafe partial struct CODECAPI_AVEncMPVIntraVLCTable : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVIntraVLCTable)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVLevel.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVLevel.cs index a25bbd133a..27f727112f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVLevel.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVLevel.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6EE40C40-A60C-41EF-8F50-37C2249E2CB3")] -public partial struct CODECAPI_AVEncMPVLevel +public unsafe partial struct CODECAPI_AVEncMPVLevel : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVLevel)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVProfile.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVProfile.cs index 00da566834..ef66c5f995 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVProfile.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVProfile.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DABB534A-1D99-4284-975A-D90E2239BAA1")] -public partial struct CODECAPI_AVEncMPVProfile +public unsafe partial struct CODECAPI_AVEncMPVProfile : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVProfile)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQScaleType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQScaleType.cs index 2f24232fe6..2ed91feb53 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQScaleType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQScaleType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2B79EBB7-F484-4AF7-BB58-A2A188C5CBBE")] -public partial struct CODECAPI_AVEncMPVQScaleType +public unsafe partial struct CODECAPI_AVEncMPVQScaleType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVQScaleType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaIntra.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaIntra.cs index c2e855140e..8c900e0b40 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaIntra.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaIntra.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9EB9ECD4-018D-4FFD-8F2D-39E49F07B17A")] -public partial struct CODECAPI_AVEncMPVQuantMatrixChromaIntra +public unsafe partial struct CODECAPI_AVEncMPVQuantMatrixChromaIntra : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVQuantMatrixChromaIntra)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaNonIntra.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaNonIntra.cs index 48d4dff624..bde9a3a60f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaNonIntra.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixChromaNonIntra.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1415B6B1-362A-4338-BA9A-1EF58703C05B")] -public partial struct CODECAPI_AVEncMPVQuantMatrixChromaNonIntra +public unsafe partial struct CODECAPI_AVEncMPVQuantMatrixChromaNonIntra : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVQuantMatrixChromaNonIntra)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixIntra.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixIntra.cs index afc2e9c6a8..0b2d381d69 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixIntra.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixIntra.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9BEA04F3-6621-442C-8BA1-3AC378979698")] -public partial struct CODECAPI_AVEncMPVQuantMatrixIntra +public unsafe partial struct CODECAPI_AVEncMPVQuantMatrixIntra : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVQuantMatrixIntra)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixNonIntra.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixNonIntra.cs index 117ba91e32..e2f669c8a7 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixNonIntra.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVQuantMatrixNonIntra.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("87F441D8-0997-4BEB-A08E-8573D409CF75")] -public partial struct CODECAPI_AVEncMPVQuantMatrixNonIntra +public unsafe partial struct CODECAPI_AVEncMPVQuantMatrixNonIntra : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVQuantMatrixNonIntra)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVScanPattern.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVScanPattern.cs index 171003bc93..925a720bd9 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVScanPattern.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVScanPattern.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7F8A478E-7BBB-4AE2-B2FC-96D17FC4A2D6")] -public partial struct CODECAPI_AVEncMPVScanPattern +public unsafe partial struct CODECAPI_AVEncMPVScanPattern : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVScanPattern)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVSceneDetection.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVSceneDetection.cs index 62c3b11052..73acdf9302 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVSceneDetection.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVSceneDetection.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("552799F1-DB4C-405B-8A3A-C93F2D0674DC")] -public partial struct CODECAPI_AVEncMPVSceneDetection +public unsafe partial struct CODECAPI_AVEncMPVSceneDetection : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVSceneDetection)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVUseConcealmentMotionVectors.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVUseConcealmentMotionVectors.cs index 922b918a5a..f473424a49 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVUseConcealmentMotionVectors.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMPVUseConcealmentMotionVectors.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EC770CF3-6908-4B4B-AA30-7FB986214FEA")] -public partial struct CODECAPI_AVEncMPVUseConcealmentMotionVectors +public unsafe partial struct CODECAPI_AVEncMPVUseConcealmentMotionVectors : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMPVUseConcealmentMotionVectors)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMaxFrameRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMaxFrameRate.cs index c1bf0ea295..1672f8ea0b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMaxFrameRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMaxFrameRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B98E1B31-19FA-4D4F-9931-D6A5B8AAB93C")] -public partial struct CODECAPI_AVEncMaxFrameRate +public unsafe partial struct CODECAPI_AVEncMaxFrameRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMaxFrameRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMuxOutputStreamType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMuxOutputStreamType.cs index 90a82347b2..77536b99ea 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMuxOutputStreamType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncMuxOutputStreamType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CEDD9E8F-34D3-44DB-A1D8-F81520254F3E")] -public partial struct CODECAPI_AVEncMuxOutputStreamType +public unsafe partial struct CODECAPI_AVEncMuxOutputStreamType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncMuxOutputStreamType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNoInputCopy.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNoInputCopy.cs index 27a7b44bd4..58d7f221f4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNoInputCopy.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNoInputCopy.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D2B46A2A-E8EE-4EC5-869E-449B6C62C81A")] -public partial struct CODECAPI_AVEncNoInputCopy +public unsafe partial struct CODECAPI_AVEncNoInputCopy : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncNoInputCopy)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNumWorkerThreads.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNumWorkerThreads.cs index 79bafa7fa6..ec52b4e0b9 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNumWorkerThreads.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncNumWorkerThreads.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B0C8BF60-16F7-4951-A30B-1DB1609293D6")] -public partial struct CODECAPI_AVEncNumWorkerThreads +public unsafe partial struct CODECAPI_AVEncNumWorkerThreads : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncNumWorkerThreads)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncProgressiveUpdateTime.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncProgressiveUpdateTime.cs index a1e21e9129..99edf03c83 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncProgressiveUpdateTime.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncProgressiveUpdateTime.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("649FAF66-AFC6-4828-8FDC-0771CD9AB17D")] -public partial struct CODECAPI_AVEncProgressiveUpdateTime +public unsafe partial struct CODECAPI_AVEncProgressiveUpdateTime : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncProgressiveUpdateTime)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlMode.cs index fe2abdebe7..506a7b59fc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E9E782EF-5F18-44C9-A90B-E9C3C2C17B0B")] -public partial struct CODECAPI_AVEncSliceControlMode +public unsafe partial struct CODECAPI_AVEncSliceControlMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncSliceControlMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlSize.cs index 938ab9f5bc..75c09be0a3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceControlSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("92F51DF3-07A5-4172-AEFE-C69CA3B60E35")] -public partial struct CODECAPI_AVEncSliceControlSize +public unsafe partial struct CODECAPI_AVEncSliceControlSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncSliceControlSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceGenerationMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceGenerationMode.cs index 74993329b2..1185574a73 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceGenerationMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncSliceGenerationMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8A6BC67F-9497-4286-B46B-02DB8D60EDBC")] -public partial struct CODECAPI_AVEncSliceGenerationMode +public unsafe partial struct CODECAPI_AVEncSliceGenerationMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncSliceGenerationMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAverageBPS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAverageBPS.cs index fa9a0c35de..de8e81f12c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAverageBPS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAverageBPS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CA6724DB-7059-4351-8B43-F82198826A14")] -public partial struct CODECAPI_AVEncStatAudioAverageBPS +public unsafe partial struct CODECAPI_AVEncStatAudioAverageBPS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatAudioAverageBPS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAveragePCMValue.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAveragePCMValue.cs index 715f81ac34..d71096c50a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAveragePCMValue.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioAveragePCMValue.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("979272F8-D17F-4E32-BB73-4E731C68BA2D")] -public partial struct CODECAPI_AVEncStatAudioAveragePCMValue +public unsafe partial struct CODECAPI_AVEncStatAudioAveragePCMValue : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatAudioAveragePCMValue)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioPeakPCMValue.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioPeakPCMValue.cs index c2934caa1f..c099a5c234 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioPeakPCMValue.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAudioPeakPCMValue.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DCE7FD34-DC00-4C16-821B-35D9EB00FB1A")] -public partial struct CODECAPI_AVEncStatAudioPeakPCMValue +public unsafe partial struct CODECAPI_AVEncStatAudioPeakPCMValue : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatAudioPeakPCMValue)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAverageBPS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAverageBPS.cs index 2e2785a6c4..676ae1270e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAverageBPS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatAverageBPS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CA6724DB-7059-4351-8B43-F82198826A14")] -public partial struct CODECAPI_AVEncStatAverageBPS +public unsafe partial struct CODECAPI_AVEncStatAverageBPS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatAverageBPS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatCommonCompletedPasses.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatCommonCompletedPasses.cs index 81e6646d54..caf3efbebd 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatCommonCompletedPasses.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatCommonCompletedPasses.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3E5DE533-9DF7-438C-854F-9F7DD3683D34")] -public partial struct CODECAPI_AVEncStatCommonCompletedPasses +public unsafe partial struct CODECAPI_AVEncStatCommonCompletedPasses : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatCommonCompletedPasses)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareBandwidthUtilitization.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareBandwidthUtilitization.cs index 317ff9573b..a5a25caf5b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareBandwidthUtilitization.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareBandwidthUtilitization.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0124BA9B-DC41-4826-B45F-18AC01B3D5A8")] -public partial struct CODECAPI_AVEncStatHardwareBandwidthUtilitization +public unsafe partial struct CODECAPI_AVEncStatHardwareBandwidthUtilitization : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatHardwareBandwidthUtilitization)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareProcessorUtilitization.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareProcessorUtilitization.cs index 32ef49066d..667dd70778 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareProcessorUtilitization.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatHardwareProcessorUtilitization.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("995DC027-CB95-49E6-B91B-5967753CDCB8")] -public partial struct CODECAPI_AVEncStatHardwareProcessorUtilitization +public unsafe partial struct CODECAPI_AVEncStatHardwareProcessorUtilitization : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatHardwareProcessorUtilitization)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatMPVSkippedEmptyFrames.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatMPVSkippedEmptyFrames.cs index 3bafd94b73..569b2707cb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatMPVSkippedEmptyFrames.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatMPVSkippedEmptyFrames.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("32195FD3-590D-4812-A7ED-6D639A1F9711")] -public partial struct CODECAPI_AVEncStatMPVSkippedEmptyFrames +public unsafe partial struct CODECAPI_AVEncStatMPVSkippedEmptyFrames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatMPVSkippedEmptyFrames)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoCodedFrames.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoCodedFrames.cs index 6a42aa7117..78acdc91e4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoCodedFrames.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoCodedFrames.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D47F8D61-6F5A-4A26-BB9F-CD9518462BCD")] -public partial struct CODECAPI_AVEncStatVideoCodedFrames +public unsafe partial struct CODECAPI_AVEncStatVideoCodedFrames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatVideoCodedFrames)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoOutputFrameRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoOutputFrameRate.cs index bce7472aab..bdb6810551 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoOutputFrameRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoOutputFrameRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BE747849-9AB4-4A63-98FE-F143F04F8EE9")] -public partial struct CODECAPI_AVEncStatVideoOutputFrameRate +public unsafe partial struct CODECAPI_AVEncStatVideoOutputFrameRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatVideoOutputFrameRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoTotalFrames.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoTotalFrames.cs index 46b9cf0150..0d3cabfde7 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoTotalFrames.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatVideoTotalFrames.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FDAA9916-119A-4222-9AD6-3F7CAB99CC8B")] -public partial struct CODECAPI_AVEncStatVideoTotalFrames +public unsafe partial struct CODECAPI_AVEncStatVideoTotalFrames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatVideoTotalFrames)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBAvg.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBAvg.cs index 5b59120e92..2588a9c39b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBAvg.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBAvg.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6AA6229F-D602-4B9D-B68C-C1AD78884BEF")] -public partial struct CODECAPI_AVEncStatWMVCBAvg +public unsafe partial struct CODECAPI_AVEncStatWMVCBAvg : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatWMVCBAvg)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBMax.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBMax.cs index c193353b5d..ed272077fb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBMax.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVCBMax.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E976BEF8-00FE-44B4-B625-8F238BC03499")] -public partial struct CODECAPI_AVEncStatWMVCBMax +public unsafe partial struct CODECAPI_AVEncStatWMVCBMax : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatWMVCBMax)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVDecoderComplexityProfile.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVDecoderComplexityProfile.cs index 1df6d6ec71..26e2c1559a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVDecoderComplexityProfile.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncStatWMVDecoderComplexityProfile.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("89E69FC3-0F9B-436C-974A-DF821227C90D")] -public partial struct CODECAPI_AVEncStatWMVDecoderComplexityProfile +public unsafe partial struct CODECAPI_AVEncStatWMVDecoderComplexityProfile : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncStatWMVDecoderComplexityProfile)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCBRMotionTradeoff.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCBRMotionTradeoff.cs index 5c6b388564..ca8397b311 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCBRMotionTradeoff.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCBRMotionTradeoff.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0D49451E-18D5-4367-A4EF-3240DF1693C4")] -public partial struct CODECAPI_AVEncVideoCBRMotionTradeoff +public unsafe partial struct CODECAPI_AVEncVideoCBRMotionTradeoff : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoCBRMotionTradeoff)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCTBSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCTBSize.cs index 93757640f3..bf4cb09dc1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCTBSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCTBSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D47DB8B2-E73B-4CB9-8C3E-BD877D06D77B")] -public partial struct CODECAPI_AVEncVideoCTBSize +public unsafe partial struct CODECAPI_AVEncVideoCTBSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoCTBSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCodedVideoAccessUnitSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCodedVideoAccessUnitSize.cs index 054118c4ca..1df8a2829e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCodedVideoAccessUnitSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoCodedVideoAccessUnitSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B4B10C15-14A7-4CE8-B173-DC90A0B4FCDB")] -public partial struct CODECAPI_AVEncVideoCodedVideoAccessUnitSize +public unsafe partial struct CODECAPI_AVEncVideoCodedVideoAccessUnitSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoCodedVideoAccessUnitSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoContentType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoContentType.cs index f1838e049c..fb125f4d85 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoContentType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoContentType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("66117ACA-EB77-459D-930C-A48D9D0683FC")] -public partial struct CODECAPI_AVEncVideoContentType +public unsafe partial struct CODECAPI_AVEncVideoContentType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoContentType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDefaultUpperFieldDominant.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDefaultUpperFieldDominant.cs index 64c82a8301..09e15e4e4e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDefaultUpperFieldDominant.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDefaultUpperFieldDominant.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("810167C4-0BC1-47CA-8FC2-57055A1474A5")] -public partial struct CODECAPI_AVEncVideoDefaultUpperFieldDominant +public unsafe partial struct CODECAPI_AVEncVideoDefaultUpperFieldDominant : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoDefaultUpperFieldDominant)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDirtyRectEnabled.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDirtyRectEnabled.cs index 280b09ed1c..71be7071e3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDirtyRectEnabled.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDirtyRectEnabled.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8ACB8FDD-5E0C-4C66-8729-B8F629AB04FB")] -public partial struct CODECAPI_AVEncVideoDirtyRectEnabled +public unsafe partial struct CODECAPI_AVEncVideoDirtyRectEnabled : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoDirtyRectEnabled)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDisplayDimension.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDisplayDimension.cs index 01c3090934..c45af2fc63 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDisplayDimension.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoDisplayDimension.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DE053668-F4EC-47A9-86D0-836770F0C1D5")] -public partial struct CODECAPI_AVEncVideoDisplayDimension +public unsafe partial struct CODECAPI_AVEncVideoDisplayDimension : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoDisplayDimension)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeDimension.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeDimension.cs index 49d517ac92..a359684c2a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeDimension.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeDimension.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1074DF28-7E0F-47A4-A453-CDD73870F5CE")] -public partial struct CODECAPI_AVEncVideoEncodeDimension +public unsafe partial struct CODECAPI_AVEncVideoEncodeDimension : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoEncodeDimension)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeFrameTypeQP.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeFrameTypeQP.cs index 12aedfb10a..a171c033b8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeFrameTypeQP.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeFrameTypeQP.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AA70B610-E03F-450C-AD07-07314E639CE7")] -public partial struct CODECAPI_AVEncVideoEncodeFrameTypeQP +public unsafe partial struct CODECAPI_AVEncVideoEncodeFrameTypeQP : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoEncodeFrameTypeQP)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeOffsetOrigin.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeOffsetOrigin.cs index e586f61583..c41e18e43e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeOffsetOrigin.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeOffsetOrigin.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6BC098FE-A71A-4454-852E-4D2DDEB2CD24")] -public partial struct CODECAPI_AVEncVideoEncodeOffsetOrigin +public unsafe partial struct CODECAPI_AVEncVideoEncodeOffsetOrigin : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoEncodeOffsetOrigin)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeQP.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeQP.cs index 6b2a20e380..d956a87b6c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeQP.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoEncodeQP.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2CB5696B-23FB-4CE1-A0F9-EF5B90FD55CA")] -public partial struct CODECAPI_AVEncVideoEncodeQP +public unsafe partial struct CODECAPI_AVEncVideoEncodeQP : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoEncodeQP)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoFieldSwap.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoFieldSwap.cs index 5177905305..d3b924e05a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoFieldSwap.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoFieldSwap.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FEFD7569-4E0A-49F2-9F2B-360EA48C19A2")] -public partial struct CODECAPI_AVEncVideoFieldSwap +public unsafe partial struct CODECAPI_AVEncVideoFieldSwap : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoFieldSwap)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceKeyFrame.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceKeyFrame.cs index 0252f02a4a..3d40c80002 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceKeyFrame.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceKeyFrame.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("398C1B98-8353-475A-9EF2-8F265D260345")] -public partial struct CODECAPI_AVEncVideoForceKeyFrame +public unsafe partial struct CODECAPI_AVEncVideoForceKeyFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoForceKeyFrame)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceSourceScanType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceSourceScanType.cs index 9aee167e50..c8daf390d4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceSourceScanType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoForceSourceScanType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1EF2065F-058A-4765-A4FC-8A864C103012")] -public partial struct CODECAPI_AVEncVideoForceSourceScanType +public unsafe partial struct CODECAPI_AVEncVideoForceSourceScanType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoForceSourceScanType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoGradualIntraRefresh.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoGradualIntraRefresh.cs index 7d2a53f39f..58059263e2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoGradualIntraRefresh.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoGradualIntraRefresh.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8F347DEE-CB0D-49BA-B462-DB6927EE2101")] -public partial struct CODECAPI_AVEncVideoGradualIntraRefresh +public unsafe partial struct CODECAPI_AVEncVideoGradualIntraRefresh : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoGradualIntraRefresh)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderDropFrame.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderDropFrame.cs index e2e6cca4a8..d33d1d9c01 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderDropFrame.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderDropFrame.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6ED9E124-7925-43FE-971B-E019F62222B4")] -public partial struct CODECAPI_AVEncVideoHeaderDropFrame +public unsafe partial struct CODECAPI_AVEncVideoHeaderDropFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoHeaderDropFrame)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderFrames.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderFrames.cs index e933fb5012..0b31e5f585 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderFrames.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderFrames.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AFD5F567-5C1B-4ADC-BDAF-735610381436")] -public partial struct CODECAPI_AVEncVideoHeaderFrames +public unsafe partial struct CODECAPI_AVEncVideoHeaderFrames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoHeaderFrames)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderHours.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderHours.cs index eae58fc52f..7f040cb7dc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderHours.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderHours.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2ACC7702-E2DA-4158-BF9B-88880129D740")] -public partial struct CODECAPI_AVEncVideoHeaderHours +public unsafe partial struct CODECAPI_AVEncVideoHeaderHours : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoHeaderHours)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderMinutes.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderMinutes.cs index 48a9715e3b..951281ac32 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderMinutes.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderMinutes.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DC1A99CE-0307-408B-880B-B8348EE8CA7F")] -public partial struct CODECAPI_AVEncVideoHeaderMinutes +public unsafe partial struct CODECAPI_AVEncVideoHeaderMinutes : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoHeaderMinutes)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderSeconds.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderSeconds.cs index dbc42a30d4..6495e5dde1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderSeconds.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoHeaderSeconds.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4A2E1A05-A780-4F58-8120-9A449D69656B")] -public partial struct CODECAPI_AVEncVideoHeaderSeconds +public unsafe partial struct CODECAPI_AVEncVideoHeaderSeconds : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoHeaderSeconds)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaResolution.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaResolution.cs index 82009645cd..d055966204 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaResolution.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaResolution.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BB0CEC33-16F1-47B0-8A88-37815BEE1739")] -public partial struct CODECAPI_AVEncVideoInputChromaResolution +public unsafe partial struct CODECAPI_AVEncVideoInputChromaResolution : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputChromaResolution)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaSubsampling.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaSubsampling.cs index a76784e2d7..894d1dae75 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaSubsampling.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputChromaSubsampling.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A8E73A39-4435-4EC3-A6EA-98300F4B36F7")] -public partial struct CODECAPI_AVEncVideoInputChromaSubsampling +public unsafe partial struct CODECAPI_AVEncVideoInputChromaSubsampling : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputChromaSubsampling)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorLighting.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorLighting.cs index f8f86eafa5..092dfaf0a5 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorLighting.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorLighting.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("46A99549-0015-4A45-9C30-1D5CFA258316")] -public partial struct CODECAPI_AVEncVideoInputColorLighting +public unsafe partial struct CODECAPI_AVEncVideoInputColorLighting : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputColorLighting)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorNominalRange.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorNominalRange.cs index 0fd475aa0a..81d7d42805 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorNominalRange.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorNominalRange.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("16CF25C6-A2A6-48E9-AE80-21AEC41D427E")] -public partial struct CODECAPI_AVEncVideoInputColorNominalRange +public unsafe partial struct CODECAPI_AVEncVideoInputColorNominalRange : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputColorNominalRange)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorPrimaries.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorPrimaries.cs index 8d25ea33e4..ab0b1b63ea 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorPrimaries.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorPrimaries.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C24D783F-7CE6-4278-90AB-28A4F1E5F86C")] -public partial struct CODECAPI_AVEncVideoInputColorPrimaries +public unsafe partial struct CODECAPI_AVEncVideoInputColorPrimaries : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputColorPrimaries)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferFunction.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferFunction.cs index 48beaaacb1..b3bf26f3c1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferFunction.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferFunction.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8C056111-A9C3-4B08-A0A0-CE13F8A27C75")] -public partial struct CODECAPI_AVEncVideoInputColorTransferFunction +public unsafe partial struct CODECAPI_AVEncVideoInputColorTransferFunction : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputColorTransferFunction)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferMatrix.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferMatrix.cs index 764746b014..cce8a334cf 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferMatrix.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInputColorTransferMatrix.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("52ED68B9-72D5-4089-958D-F5405D55081C")] -public partial struct CODECAPI_AVEncVideoInputColorTransferMatrix +public unsafe partial struct CODECAPI_AVEncVideoInputColorTransferMatrix : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInputColorTransferMatrix)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInstantTemporalUpSwitching.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInstantTemporalUpSwitching.cs index 6e4f4eabea..e0659ee4fe 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInstantTemporalUpSwitching.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInstantTemporalUpSwitching.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A3308307-0D96-4BA4-B1F0-B91A5E49DF10")] -public partial struct CODECAPI_AVEncVideoInstantTemporalUpSwitching +public unsafe partial struct CODECAPI_AVEncVideoInstantTemporalUpSwitching : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInstantTemporalUpSwitching)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoIntraLayerPrediction.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoIntraLayerPrediction.cs index 493541363c..c1b043d32e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoIntraLayerPrediction.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoIntraLayerPrediction.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D3AF46B8-BF47-44BB-A283-69F0B0228FF9")] -public partial struct CODECAPI_AVEncVideoIntraLayerPrediction +public unsafe partial struct CODECAPI_AVEncVideoIntraLayerPrediction : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoIntraLayerPrediction)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineEnable.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineEnable.cs index b5ac32857f..c48750ca3c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineEnable.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineEnable.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2EA9098B-E76D-4CCD-A030-D3B889C1B64C")] -public partial struct CODECAPI_AVEncVideoInverseTelecineEnable +public unsafe partial struct CODECAPI_AVEncVideoInverseTelecineEnable : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInverseTelecineEnable)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineThreshold.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineThreshold.cs index 4e7128576a..cc523b155d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineThreshold.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoInverseTelecineThreshold.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("40247D84-E895-497F-B44C-B74560ACFE27")] -public partial struct CODECAPI_AVEncVideoInverseTelecineThreshold +public unsafe partial struct CODECAPI_AVEncVideoInverseTelecineThreshold : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoInverseTelecineThreshold)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoLTRBufferControl.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoLTRBufferControl.cs index 13b8be69ed..cfea42bcf7 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoLTRBufferControl.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoLTRBufferControl.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A4A0E93D-4CBC-444C-89F4-826D310E92A7")] -public partial struct CODECAPI_AVEncVideoLTRBufferControl +public unsafe partial struct CODECAPI_AVEncVideoLTRBufferControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoLTRBufferControl)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMarkLTRFrame.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMarkLTRFrame.cs index 15034b6821..b5ddd5225c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMarkLTRFrame.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMarkLTRFrame.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E42F4748-A06D-4EF9-8CEA-3D05FDE3BD3B")] -public partial struct CODECAPI_AVEncVideoMarkLTRFrame +public unsafe partial struct CODECAPI_AVEncVideoMarkLTRFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMarkLTRFrame)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxCTBSize.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxCTBSize.cs index 7c55d8f31a..ff98912956 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxCTBSize.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxCTBSize.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("822363FF-CEC8-43E5-92FD-E097488485E9")] -public partial struct CODECAPI_AVEncVideoMaxCTBSize +public unsafe partial struct CODECAPI_AVEncVideoMaxCTBSize : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMaxCTBSize)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxKeyframeDistance.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxKeyframeDistance.cs index 000b3f2d0b..be4a1f58bf 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxKeyframeDistance.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxKeyframeDistance.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2987123A-BA93-4704-B489-EC1E5F25292C")] -public partial struct CODECAPI_AVEncVideoMaxKeyframeDistance +public unsafe partial struct CODECAPI_AVEncVideoMaxKeyframeDistance : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMaxKeyframeDistance)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxNumRefFrame.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxNumRefFrame.cs index 66f2757289..0b5cbcabb4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxNumRefFrame.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxNumRefFrame.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("964829ED-94F9-43B4-B74D-EF40944B69A0")] -public partial struct CODECAPI_AVEncVideoMaxNumRefFrame +public unsafe partial struct CODECAPI_AVEncVideoMaxNumRefFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMaxNumRefFrame)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxQP.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxQP.cs index d5b592fb92..b9c297ebf0 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxQP.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxQP.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3DAF6F66-A6A7-45E0-A8E5-F2743F46A3A2")] -public partial struct CODECAPI_AVEncVideoMaxQP +public unsafe partial struct CODECAPI_AVEncVideoMaxQP : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMaxQP)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxTemporalLayers.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxTemporalLayers.cs index a6670641ef..e6d7131c80 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxTemporalLayers.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMaxTemporalLayers.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9C668CFE-08E1-424A-934E-B764B064802A")] -public partial struct CODECAPI_AVEncVideoMaxTemporalLayers +public unsafe partial struct CODECAPI_AVEncVideoMaxTemporalLayers : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMaxTemporalLayers)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMeanAbsoluteDifference.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMeanAbsoluteDifference.cs index 90728caf9f..fb2639ba3b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMeanAbsoluteDifference.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMeanAbsoluteDifference.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E5C0C10F-81A4-422D-8C3F-B474A4581336")] -public partial struct CODECAPI_AVEncVideoMeanAbsoluteDifference +public unsafe partial struct CODECAPI_AVEncVideoMeanAbsoluteDifference : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMeanAbsoluteDifference)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMinQP.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMinQP.cs index b073f056fd..1dd1981bb2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMinQP.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoMinQP.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0EE22C6A-A37C-4568-B5F1-9D4C2B3AB886")] -public partial struct CODECAPI_AVEncVideoMinQP +public unsafe partial struct CODECAPI_AVEncVideoMinQP : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoMinQP)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToEncode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToEncode.cs index da48c7c609..0e209a710e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToEncode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToEncode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("61E4BBE2-4EE0-40E7-80AB-51DDEEBE6291")] -public partial struct CODECAPI_AVEncVideoNoOfFieldsToEncode +public unsafe partial struct CODECAPI_AVEncVideoNoOfFieldsToEncode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoNoOfFieldsToEncode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToSkip.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToSkip.cs index eb83a63eac..992196e11c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToSkip.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNoOfFieldsToSkip.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A97E1240-1427-4C16-A7F7-3DCFD8BA4CC5")] -public partial struct CODECAPI_AVEncVideoNoOfFieldsToSkip +public unsafe partial struct CODECAPI_AVEncVideoNoOfFieldsToSkip : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoNoOfFieldsToSkip)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNumGOPsPerIDR.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNumGOPsPerIDR.cs index e3ba2c6cf4..42332370a2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNumGOPsPerIDR.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoNumGOPsPerIDR.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("83BC5BDB-5B89-4521-8F66-33151C373176")] -public partial struct CODECAPI_AVEncVideoNumGOPsPerIDR +public unsafe partial struct CODECAPI_AVEncVideoNumGOPsPerIDR : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoNumGOPsPerIDR)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaResolution.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaResolution.cs index 394cd77559..331a1d92dc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaResolution.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaResolution.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6097B4C9-7C1D-4E64-BFCC-9E9765318AE7")] -public partial struct CODECAPI_AVEncVideoOutputChromaResolution +public unsafe partial struct CODECAPI_AVEncVideoOutputChromaResolution : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputChromaResolution)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaSubsampling.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaSubsampling.cs index 80f553720b..682a231c9f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaSubsampling.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputChromaSubsampling.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("FA561C6C-7D17-44F0-83C9-32ED12E96343")] -public partial struct CODECAPI_AVEncVideoOutputChromaSubsampling +public unsafe partial struct CODECAPI_AVEncVideoOutputChromaSubsampling : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputChromaSubsampling)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorLighting.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorLighting.cs index 2a3bc5a4b3..51166e2daf 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorLighting.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorLighting.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0E5AAAC6-ACE6-4C5C-998E-1A8C9C6C0F89")] -public partial struct CODECAPI_AVEncVideoOutputColorLighting +public unsafe partial struct CODECAPI_AVEncVideoOutputColorLighting : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputColorLighting)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorNominalRange.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorNominalRange.cs index 99fe48eb41..f040040474 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorNominalRange.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorNominalRange.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("972835ED-87B5-4E95-9500-C73958566E54")] -public partial struct CODECAPI_AVEncVideoOutputColorNominalRange +public unsafe partial struct CODECAPI_AVEncVideoOutputColorNominalRange : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputColorNominalRange)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorPrimaries.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorPrimaries.cs index 589ade0a89..27e4fd5e74 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorPrimaries.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorPrimaries.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BE95907C-9D04-4921-8985-A6D6D87D1A6C")] -public partial struct CODECAPI_AVEncVideoOutputColorPrimaries +public unsafe partial struct CODECAPI_AVEncVideoOutputColorPrimaries : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputColorPrimaries)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferFunction.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferFunction.cs index 1b93d74bea..8f3196089b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferFunction.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferFunction.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4A7F884A-EA11-460D-BF57-B88BC75900DE")] -public partial struct CODECAPI_AVEncVideoOutputColorTransferFunction +public unsafe partial struct CODECAPI_AVEncVideoOutputColorTransferFunction : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputColorTransferFunction)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferMatrix.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferMatrix.cs index 0a987fa510..2e97400012 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferMatrix.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputColorTransferMatrix.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A9B90444-AF40-4310-8FBE-ED6D933F892B")] -public partial struct CODECAPI_AVEncVideoOutputColorTransferMatrix +public unsafe partial struct CODECAPI_AVEncVideoOutputColorTransferMatrix : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputColorTransferMatrix)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRate.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRate.cs index 40e3887e8b..e5fd6c4f23 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRate.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRate.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EA85E7C3-9567-4D99-87C4-02C1C278CA7C")] -public partial struct CODECAPI_AVEncVideoOutputFrameRate +public unsafe partial struct CODECAPI_AVEncVideoOutputFrameRate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputFrameRate)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRateConversion.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRateConversion.cs index 3532aeeac3..dd2a10a766 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRateConversion.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputFrameRateConversion.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8C068BF4-369A-4BA3-82FD-B2518FB3396E")] -public partial struct CODECAPI_AVEncVideoOutputFrameRateConversion +public unsafe partial struct CODECAPI_AVEncVideoOutputFrameRateConversion : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputFrameRateConversion)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputScanType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputScanType.cs index 413fe4ea69..cc2ed35b93 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputScanType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoOutputScanType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("460B5576-842E-49AB-A62D-B36F7312C9DB")] -public partial struct CODECAPI_AVEncVideoOutputScanType +public unsafe partial struct CODECAPI_AVEncVideoOutputScanType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoOutputScanType)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoPixelAspectRatio.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoPixelAspectRatio.cs index debeed4b06..b002217926 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoPixelAspectRatio.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoPixelAspectRatio.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3CDC718F-B3E9-4EB6-A57F-CF1F1B321B87")] -public partial struct CODECAPI_AVEncVideoPixelAspectRatio +public unsafe partial struct CODECAPI_AVEncVideoPixelAspectRatio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoPixelAspectRatio)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoROIEnabled.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoROIEnabled.cs index 6fb32b9086..1c01bd222c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoROIEnabled.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoROIEnabled.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D74F7F18-44DD-4B85-ABA3-05D9F42A8280")] -public partial struct CODECAPI_AVEncVideoROIEnabled +public unsafe partial struct CODECAPI_AVEncVideoROIEnabled : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoROIEnabled)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoRateControlParams.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoRateControlParams.cs index 0b500e14f3..6521e4d6a8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoRateControlParams.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoRateControlParams.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("87D43767-7645-44EC-B438-D3322FBCA29F")] -public partial struct CODECAPI_AVEncVideoRateControlParams +public unsafe partial struct CODECAPI_AVEncVideoRateControlParams : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoRateControlParams)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSelectLayer.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSelectLayer.cs index 2059c5c12a..3e1ea656d2 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSelectLayer.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSelectLayer.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EB1084F5-6AAA-4914-BB2F-6147227F12E7")] -public partial struct CODECAPI_AVEncVideoSelectLayer +public unsafe partial struct CODECAPI_AVEncVideoSelectLayer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoSelectLayer)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceFilmContent.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceFilmContent.cs index 62c7a363e4..3ab263804a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceFilmContent.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceFilmContent.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1791C64B-CCFC-4827-A0ED-2557793B2B1C")] -public partial struct CODECAPI_AVEncVideoSourceFilmContent +public unsafe partial struct CODECAPI_AVEncVideoSourceFilmContent : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoSourceFilmContent)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceIsBW.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceIsBW.cs index 475d9aee3d..5114e5c82a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceIsBW.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSourceIsBW.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("42FFC49B-1812-4FDC-8D24-7054C521E6EB")] -public partial struct CODECAPI_AVEncVideoSourceIsBW +public unsafe partial struct CODECAPI_AVEncVideoSourceIsBW : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoSourceIsBW)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSupportedControls.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSupportedControls.cs index fe07056d12..db84cbd636 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSupportedControls.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoSupportedControls.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D3F40FDD-77B9-473D-8196-061259E69CFF")] -public partial struct CODECAPI_AVEncVideoSupportedControls +public unsafe partial struct CODECAPI_AVEncVideoSupportedControls : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoSupportedControls)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoTemporalLayerCount.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoTemporalLayerCount.cs index 476ccaecbc..de4158a5ab 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoTemporalLayerCount.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoTemporalLayerCount.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("19CAEBFF-B74D-4CFD-8C27-C2F9D97D5F52")] -public partial struct CODECAPI_AVEncVideoTemporalLayerCount +public unsafe partial struct CODECAPI_AVEncVideoTemporalLayerCount : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoTemporalLayerCount)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUsage.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUsage.cs index 4e4cd0148f..1f41880f60 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUsage.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUsage.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1F636849-5DC1-49F1-B1D8-CE3CF62EA385")] -public partial struct CODECAPI_AVEncVideoUsage +public unsafe partial struct CODECAPI_AVEncVideoUsage : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoUsage)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUseLTRFrame.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUseLTRFrame.cs index 13b41180ad..f00282c77d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUseLTRFrame.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoUseLTRFrame.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("00752DB8-55F7-4F80-895B-27639195F2AD")] -public partial struct CODECAPI_AVEncVideoUseLTRFrame +public unsafe partial struct CODECAPI_AVEncVideoUseLTRFrame : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncVideoUseLTRFrame)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVDecoderComplexity.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVDecoderComplexity.cs index 0d3f3d6e01..2251fd1225 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVDecoderComplexity.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVDecoderComplexity.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F32C0DAB-F3CB-4217-B79F-8762768B5F67")] -public partial struct CODECAPI_AVEncWMVDecoderComplexity +public unsafe partial struct CODECAPI_AVEncWMVDecoderComplexity : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncWMVDecoderComplexity)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVInterlacedEncoding.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVInterlacedEncoding.cs index 4b1828e7cb..959d4f94c5 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVInterlacedEncoding.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVInterlacedEncoding.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E3D00F8A-C6F5-4E14-A588-0EC87A726F9B")] -public partial struct CODECAPI_AVEncWMVInterlacedEncoding +public unsafe partial struct CODECAPI_AVEncWMVInterlacedEncoding : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncWMVInterlacedEncoding)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameBufferLevelMarker.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameBufferLevelMarker.cs index f48493aa77..d37260b23c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameBufferLevelMarker.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameBufferLevelMarker.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("51FF1115-33AC-426C-A1B1-09321BDF96B4")] -public partial struct CODECAPI_AVEncWMVKeyFrameBufferLevelMarker +public unsafe partial struct CODECAPI_AVEncWMVKeyFrameBufferLevelMarker : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncWMVKeyFrameBufferLevelMarker)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameDistance.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameDistance.cs index 6a3806c6a7..c46987d2cc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameDistance.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVKeyFrameDistance.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5569055E-E268-4771-B83E-9555EA28AED3")] -public partial struct CODECAPI_AVEncWMVKeyFrameDistance +public unsafe partial struct CODECAPI_AVEncWMVKeyFrameDistance : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncWMVKeyFrameDistance)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVProduceDummyFrames.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVProduceDummyFrames.cs index 4fd92d8ba5..b963f27655 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVProduceDummyFrames.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncWMVProduceDummyFrames.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D669D001-183C-42E3-A3CA-2F4586D2396C")] -public partial struct CODECAPI_AVEncWMVProduceDummyFrames +public unsafe partial struct CODECAPI_AVEncWMVProduceDummyFrames : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVEncWMVProduceDummyFrames)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVLowLatencyMode.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVLowLatencyMode.cs index d972bbbd59..2629571468 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVLowLatencyMode.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVLowLatencyMode.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("9C27891A-ED7A-40E1-88E8-B22727A024EE")] -public partial struct CODECAPI_AVLowLatencyMode +public unsafe partial struct CODECAPI_AVLowLatencyMode : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVLowLatencyMode)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVPriorityControl.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVPriorityControl.cs index 19101be349..ddc994322f 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVPriorityControl.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVPriorityControl.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("54BA3DC8-BDDE-4329-B187-2018BC5C2BA1")] -public partial struct CODECAPI_AVPriorityControl +public unsafe partial struct CODECAPI_AVPriorityControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVPriorityControl)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVRealtimeControl.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVRealtimeControl.cs index 6b2673d470..f0d9a6551a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVRealtimeControl.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVRealtimeControl.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6F440632-C4AD-4BF7-9E52-456942B454B0")] -public partial struct CODECAPI_AVRealtimeControl +public unsafe partial struct CODECAPI_AVRealtimeControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVRealtimeControl)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVScenarioInfo.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVScenarioInfo.cs index ef69df6f1f..e86704b8a4 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVScenarioInfo.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVScenarioInfo.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("B28A6E64-3FF9-446A-8A4B-0D7A53413236")] -public partial struct CODECAPI_AVScenarioInfo +public unsafe partial struct CODECAPI_AVScenarioInfo : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_AVScenarioInfo)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputAAC.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputAAC.cs index 8d608354f2..9d0d0ba6e3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputAAC.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputAAC.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("97DF7828-B94A-47E2-A4BC-51194DB22A4D")] -public partial struct CODECAPI_GUID_AVDecAudioInputAAC +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputAAC : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputAAC)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDTS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDTS.cs index b3e7b52182..07894b0fb1 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDTS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDTS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("600BC0CA-6A1F-4E91-B241-1BBEB1CB19E0")] -public partial struct CODECAPI_GUID_AVDecAudioInputDTS +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputDTS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputDTS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolby.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolby.cs index 1c289d682d..5b3b7b14ec 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolby.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolby.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8E4228A0-F000-4E0B-8F54-AB8D24AD61A2")] -public partial struct CODECAPI_GUID_AVDecAudioInputDolby +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputDolby : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputDolby)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus.cs index a74284bf4d..d891e77c3e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0803E185-8F5D-47F5-9908-19A5BBC9FE34")] -public partial struct CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputHEAAC.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputHEAAC.cs index cd01b719b5..0c93c92376 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputHEAAC.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputHEAAC.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("16EFB4AA-330E-4F5C-98A8-CF6AC55CBE60")] -public partial struct CODECAPI_GUID_AVDecAudioInputHEAAC +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputHEAAC : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputHEAAC)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputMPEG.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputMPEG.cs index b194b97ce7..dc36d065fe 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputMPEG.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputMPEG.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("91106F36-02C5-4F75-9719-3B7ABF75E1F6")] -public partial struct CODECAPI_GUID_AVDecAudioInputMPEG +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputMPEG : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputMPEG)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputPCM.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputPCM.cs index 950c3ba926..ce57ed190d 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputPCM.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputPCM.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F2421DA5-BBB4-4CD5-A996-933C6B5D1347")] -public partial struct CODECAPI_GUID_AVDecAudioInputPCM +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputPCM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputPCM)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMA.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMA.cs index 79719045ee..009368ca8e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMA.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMA.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C95E8DCF-4058-4204-8C42-CB24D91E4B9B")] -public partial struct CODECAPI_GUID_AVDecAudioInputWMA +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputWMA : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputWMA)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMAPro.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMAPro.cs index 64493948f1..f766906558 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMAPro.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioInputWMAPro.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0128B7C7-DA72-4FE3-BEF8-5C52E3557704")] -public partial struct CODECAPI_GUID_AVDecAudioInputWMAPro +public unsafe partial struct CODECAPI_GUID_AVDecAudioInputWMAPro : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioInputWMAPro)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM.cs index 92e5dd18f6..9c7eaa55d8 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D31-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_PCM)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones.cs index d172f2de86..ee996c0650 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D34-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto.cs index 1b6440e118..df7d4413d3 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D35-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded.cs index 922966716b..4a0de93a56 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D30-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream.cs index 3c2a34b4de..9ee1758839 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D33-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM.cs index d269c0932c..43bf5de2cc 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("696E1D32-548F-4036-825F-7026C60011BD")] -public partial struct CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM +public unsafe partial struct CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatATSC.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatATSC.cs index 6f3e76d06c..be18caed7c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatATSC.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatATSC.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8D7B897C-A019-4670-AA76-2EDCAC7AC296")] -public partial struct CODECAPI_GUID_AVEncCommonFormatATSC +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatATSC : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatATSC)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVB.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVB.cs index 08e997285d..fef9d1f760 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVB.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVB.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("71830D8F-6C33-430D-844B-C2705BAAE6DB")] -public partial struct CODECAPI_GUID_AVEncCommonFormatDVB +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatDVB : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatDVB)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_DashVR.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_DashVR.cs index 6f43d56941..739ce3d412 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_DashVR.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_DashVR.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E55199D6-044C-4DAE-A488-531ED306235B")] -public partial struct CODECAPI_GUID_AVEncCommonFormatDVD_DashVR +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatDVD_DashVR : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatDVD_DashVR)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR.cs index f2a4a4886d..79dc1c1e4e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E74C6F2E-EC37-478D-9AF4-A5E135B6271C")] -public partial struct CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_V.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_V.cs index 601f86b142..70cf47d680 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_V.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatDVD_V.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CC9598C4-E7FE-451D-B1CA-761BC840B7F3")] -public partial struct CODECAPI_GUID_AVEncCommonFormatDVD_V +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatDVD_V : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatDVD_V)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMAT.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMAT.cs index 2022ec0c1c..e80e3d420a 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMAT.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMAT.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1EABE760-FB2B-4928-90D1-78DB88EEE889")] -public partial struct CODECAPI_GUID_AVEncCommonFormatHighMAT +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatHighMAT : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatHighMAT)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMPV.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMPV.cs index feeaf849ce..56c2500e5c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMPV.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatHighMPV.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("A2D25DB8-B8F9-42C2-8BC7-0B93CF604788")] -public partial struct CODECAPI_GUID_AVEncCommonFormatHighMPV +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatHighMPV : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatHighMPV)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatMP3.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatMP3.cs index da4fcb6b58..782c1cfd58 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatMP3.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatMP3.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("349733CD-EB08-4DC2-8197-E49835EF828B")] -public partial struct CODECAPI_GUID_AVEncCommonFormatMP3 +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatMP3 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatMP3)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatSVCD.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatSVCD.cs index d583c47843..4e809b493c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatSVCD.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatSVCD.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("51D85818-8220-448C-8066-D69BED16C9AD")] -public partial struct CODECAPI_GUID_AVEncCommonFormatSVCD +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatSVCD : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatSVCD)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatUnSpecified.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatUnSpecified.cs index d4ee787d3e..0ee72cecb9 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatUnSpecified.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatUnSpecified.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AF46A35A-6024-4525-A48A-094B97F5B3C2")] -public partial struct CODECAPI_GUID_AVEncCommonFormatUnSpecified +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatUnSpecified : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatUnSpecified)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatVCD.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatVCD.cs index 162144fc45..359baaf35c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatVCD.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncCommonFormatVCD.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("95035BF7-9D90-40FF-AD5C-5CF8CF71CA1D")] -public partial struct CODECAPI_GUID_AVEncCommonFormatVCD +public unsafe partial struct CODECAPI_GUID_AVEncCommonFormatVCD : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncCommonFormatVCD)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTS.cs index 64ccecaabc..ab75b59aae 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("45FBCAA2-5E6E-4AB0-8893-5903BEE93ACF")] -public partial struct CODECAPI_GUID_AVEncDTS +public unsafe partial struct CODECAPI_GUID_AVEncDTS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDTS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTSHD.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTSHD.cs index 8aac6a2b0c..40f6bc297e 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTSHD.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDTSHD.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2052E630-469D-4BFB-80CA-1D656E7E918F")] -public partial struct CODECAPI_GUID_AVEncDTSHD +public unsafe partial struct CODECAPI_GUID_AVEncDTSHD : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDTSHD)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDV.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDV.cs index 21f36e6e1f..ad2b8305cf 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDV.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDV.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("09B769C7-3329-44FB-8954-FA30937D3D5A")] -public partial struct CODECAPI_GUID_AVEncDV +public unsafe partial struct CODECAPI_GUID_AVEncDV : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDV)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalConsumer.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalConsumer.cs index 2d280160bd..537969c90b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalConsumer.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalConsumer.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C1A7BF6C-0059-4BFA-94EF-EF747A768D52")] -public partial struct CODECAPI_GUID_AVEncDolbyDigitalConsumer +public unsafe partial struct CODECAPI_GUID_AVEncDolbyDigitalConsumer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDolbyDigitalConsumer)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPlus.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPlus.cs index 637f5c8cee..c76cc07861 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPlus.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPlus.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("698D1B80-F7DD-415C-971C-42492A2056C6")] -public partial struct CODECAPI_GUID_AVEncDolbyDigitalPlus +public unsafe partial struct CODECAPI_GUID_AVEncDolbyDigitalPlus : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDolbyDigitalPlus)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPro.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPro.cs index 6971456c2e..b41f5ec9ce 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPro.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncDolbyDigitalPro.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("F5BE76CC-0FF8-40EB-9CB1-BBA94004D44F")] -public partial struct CODECAPI_GUID_AVEncDolbyDigitalPro +public unsafe partial struct CODECAPI_GUID_AVEncDolbyDigitalPro : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncDolbyDigitalPro)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncH264Video.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncH264Video.cs index 2f82fa249b..a784958873 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncH264Video.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncH264Video.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("95044EAB-31B3-47DE-8E75-38A42BB03E28")] -public partial struct CODECAPI_GUID_AVEncH264Video +public unsafe partial struct CODECAPI_GUID_AVEncH264Video : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncH264Video)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMLP.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMLP.cs index 71849154d1..718c534398 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMLP.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMLP.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("05F73E29-F0D1-431E-A41C-A47432EC5A66")] -public partial struct CODECAPI_GUID_AVEncMLP +public unsafe partial struct CODECAPI_GUID_AVEncMLP : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncMLP)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Audio.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Audio.cs index bc487c0d03..545b620d28 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Audio.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Audio.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("D4DD1362-CD4A-4CD6-8138-B94DB4542B04")] -public partial struct CODECAPI_GUID_AVEncMPEG1Audio +public unsafe partial struct CODECAPI_GUID_AVEncMPEG1Audio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncMPEG1Audio)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Video.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Video.cs index 88d588e38e..ff2c258803 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Video.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG1Video.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("C8DAFEFE-DA1E-4774-B27D-11830C16B1FE")] -public partial struct CODECAPI_GUID_AVEncMPEG1Video +public unsafe partial struct CODECAPI_GUID_AVEncMPEG1Video : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncMPEG1Video)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Audio.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Audio.cs index 3931a97a08..fb50cf3191 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Audio.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Audio.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("EE4CBB1F-9C3F-4770-92B5-FCB7C2A8D381")] -public partial struct CODECAPI_GUID_AVEncMPEG2Audio +public unsafe partial struct CODECAPI_GUID_AVEncMPEG2Audio : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncMPEG2Audio)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Video.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Video.cs index 44bccd2fb5..ad197f08da 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Video.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncMPEG2Video.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("046DC19A-6677-4AAA-A31D-C1AB716F4560")] -public partial struct CODECAPI_GUID_AVEncMPEG2Video +public unsafe partial struct CODECAPI_GUID_AVEncMPEG2Video : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncMPEG2Video)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncPCM.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncPCM.cs index 4ed1a98c60..3b00642edb 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncPCM.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncPCM.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("844BE7F4-26CF-4779-B386-CC05D187990C")] -public partial struct CODECAPI_GUID_AVEncPCM +public unsafe partial struct CODECAPI_GUID_AVEncPCM : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncPCM)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncSDDS.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncSDDS.cs index 23071de873..ffecce0499 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncSDDS.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncSDDS.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1DC1B82F-11C8-4C71-B7B6-EE3EB9BC2B94")] -public partial struct CODECAPI_GUID_AVEncSDDS +public unsafe partial struct CODECAPI_GUID_AVEncSDDS : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncSDDS)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMALossless.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMALossless.cs index 3a76df5f1f..2443800c59 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMALossless.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMALossless.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("55CA7265-23D8-4761-9031-B74FBE12F4C1")] -public partial struct CODECAPI_GUID_AVEncWMALossless +public unsafe partial struct CODECAPI_GUID_AVEncWMALossless : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncWMALossless)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAPro.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAPro.cs index 3805f24c64..2d4728b01c 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAPro.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAPro.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1955F90C-33F7-4A68-AB81-53F5657125C4")] -public partial struct CODECAPI_GUID_AVEncWMAPro +public unsafe partial struct CODECAPI_GUID_AVEncWMAPro : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncWMAPro)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAVoice.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAVoice.cs index 23029a0f57..4b2a80d139 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAVoice.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMAVoice.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("13ED18CB-50E8-4276-A288-A6AA228382D9")] -public partial struct CODECAPI_GUID_AVEncWMAVoice +public unsafe partial struct CODECAPI_GUID_AVEncWMAVoice : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncWMAVoice)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMV.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMV.cs index 850ec704ed..4003e70594 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMV.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEncWMV.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4E0FEF9B-1D43-41BD-B8BD-4D7BF7457A2A")] -public partial struct CODECAPI_GUID_AVEncWMV +public unsafe partial struct CODECAPI_GUID_AVEncWMV : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEncWMV)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEndMPEG4Video.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEndMPEG4Video.cs index f8b60d0a6e..3ffca64924 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEndMPEG4Video.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GUID_AVEndMPEG4Video.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("DD37B12A-9503-4F8B-B8D0-324A00C0A1CF")] -public partial struct CODECAPI_GUID_AVEndMPEG4Video +public unsafe partial struct CODECAPI_GUID_AVEndMPEG4Video : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GUID_AVEndMPEG4Video)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GetOPMContext.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GetOPMContext.cs index 0b9710290d..9b3d489f7b 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GetOPMContext.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_GetOPMContext.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2F036C05-4C14-4689-8839-294C6D73E053")] -public partial struct CODECAPI_GetOPMContext +public unsafe partial struct CODECAPI_GetOPMContext : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_GetOPMContext)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_SetHDCPManagerContext.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_SetHDCPManagerContext.cs index e135319419..e2c8e2f4aa 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_SetHDCPManagerContext.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_SetHDCPManagerContext.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6D2D1FC8-3DC9-47EB-A1A2-471C80CD60D0")] -public partial struct CODECAPI_SetHDCPManagerContext +public unsafe partial struct CODECAPI_SetHDCPManagerContext : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_SetHDCPManagerContext)); } diff --git a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_VideoEncoderDisplayContentType.cs b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_VideoEncoderDisplayContentType.cs index 69ae72576a..96d715da74 100644 --- a/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_VideoEncoderDisplayContentType.cs +++ b/sources/Interop/Windows/Windows/um/codecapi/CODECAPI_VideoEncoderDisplayContentType.cs @@ -3,12 +3,16 @@ // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("79B90B27-F4B1-42DC-9DD7-CDAF8135C400")] -public partial struct CODECAPI_VideoEncoderDisplayContentType +public unsafe partial struct CODECAPI_VideoEncoderDisplayContentType : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CODECAPI_VideoEncoderDisplayContentType)); } diff --git a/sources/Interop/Windows/Windows/um/comcat/ICatInformation.cs b/sources/Interop/Windows/Windows/um/comcat/ICatInformation.cs index b231273aff..c612b4cfa9 100644 --- a/sources/Interop/Windows/Windows/um/comcat/ICatInformation.cs +++ b/sources/Interop/Windows/Windows/um/comcat/ICatInformation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002E013-0000-0000-C000-000000000046")] [NativeTypeName("struct ICatInformation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICatInformation : ICatInformation.Interface +public unsafe partial struct ICatInformation : ICatInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICatInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/comcat/ICatRegister.cs b/sources/Interop/Windows/Windows/um/comcat/ICatRegister.cs index 802d81213e..1dcd60e37f 100644 --- a/sources/Interop/Windows/Windows/um/comcat/ICatRegister.cs +++ b/sources/Interop/Windows/Windows/um/comcat/ICatRegister.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002E012-0000-0000-C000-000000000046")] [NativeTypeName("struct ICatRegister : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICatRegister : ICatRegister.Interface +public unsafe partial struct ICatRegister : ICatRegister.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICatRegister)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/comcat/IEnumCATEGORYINFO.cs b/sources/Interop/Windows/Windows/um/comcat/IEnumCATEGORYINFO.cs index 3ece9f66d3..3fa637a9c2 100644 --- a/sources/Interop/Windows/Windows/um/comcat/IEnumCATEGORYINFO.cs +++ b/sources/Interop/Windows/Windows/um/comcat/IEnumCATEGORYINFO.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002E011-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumCATEGORYINFO : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumCATEGORYINFO : IEnumCATEGORYINFO.Interface +public unsafe partial struct IEnumCATEGORYINFO : IEnumCATEGORYINFO.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumCATEGORYINFO)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/comcat/IEnumGUID.cs b/sources/Interop/Windows/Windows/um/comcat/IEnumGUID.cs index 0d0ff18974..5893d9e6a0 100644 --- a/sources/Interop/Windows/Windows/um/comcat/IEnumGUID.cs +++ b/sources/Interop/Windows/Windows/um/comcat/IEnumGUID.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002E000-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumGUID : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumGUID : IEnumGUID.Interface +public unsafe partial struct IEnumGUID : IEnumGUID.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumGUID)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/commoncontrols/IImageList.cs b/sources/Interop/Windows/Windows/um/commoncontrols/IImageList.cs index 501c68ad55..608b2d6c9b 100644 --- a/sources/Interop/Windows/Windows/um/commoncontrols/IImageList.cs +++ b/sources/Interop/Windows/Windows/um/commoncontrols/IImageList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("46EB5926-582E-4017-9FDF-E8998DAA0950")] [NativeTypeName("struct IImageList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IImageList : IImageList.Interface +public unsafe partial struct IImageList : IImageList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IImageList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/commoncontrols/IImageList2.cs b/sources/Interop/Windows/Windows/um/commoncontrols/IImageList2.cs index e81cb00c24..f7e0a4ad54 100644 --- a/sources/Interop/Windows/Windows/um/commoncontrols/IImageList2.cs +++ b/sources/Interop/Windows/Windows/um/commoncontrols/IImageList2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("192B9D83-50FC-457B-90A0-2B82A8B5DAE1")] [NativeTypeName("struct IImageList2 : IImageList")] [NativeInheritance("IImageList")] -public unsafe partial struct IImageList2 : IImageList2.Interface +public unsafe partial struct IImageList2 : IImageList2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IImageList2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/commoncontrols/ImageList.cs b/sources/Interop/Windows/Windows/um/commoncontrols/ImageList.cs index d07d7d3784..ecb1cbc15d 100644 --- a/sources/Interop/Windows/Windows/um/commoncontrols/ImageList.cs +++ b/sources/Interop/Windows/Windows/um/commoncontrols/ImageList.cs @@ -3,12 +3,16 @@ // Ported from um/commoncontrols.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("7C476BA2-02B1-48F4-8048-B24619DDC058")] -public partial struct ImageList +public unsafe partial struct ImageList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ImageList)); } diff --git a/sources/Interop/Windows/Windows/um/consoleapi2/CONSOLE_SCREEN_BUFFER_INFOEX.cs b/sources/Interop/Windows/Windows/um/consoleapi2/CONSOLE_SCREEN_BUFFER_INFOEX.cs index 8374e98216..5bd7547144 100644 --- a/sources/Interop/Windows/Windows/um/consoleapi2/CONSOLE_SCREEN_BUFFER_INFOEX.cs +++ b/sources/Interop/Windows/Windows/um/consoleapi2/CONSOLE_SCREEN_BUFFER_INFOEX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -63,6 +64,7 @@ public partial struct _ColorTable_e__FixedBuffer public COLORREF e14; public COLORREF e15; + [UnscopedRef] public ref COLORREF this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -73,6 +75,7 @@ public ref COLORREF this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/control/FilgraphManager.cs b/sources/Interop/Windows/Windows/um/control/FilgraphManager.cs index faa08a472c..aa583f9738 100644 --- a/sources/Interop/Windows/Windows/um/control/FilgraphManager.cs +++ b/sources/Interop/Windows/Windows/um/control/FilgraphManager.cs @@ -3,12 +3,16 @@ // Ported from um/control.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("E436EBB3-524F-11CE-9F53-0020AF0BA770")] -public partial struct FilgraphManager +public unsafe partial struct FilgraphManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_FilgraphManager)); } diff --git a/sources/Interop/Windows/Windows/um/control/IAMCollection.cs b/sources/Interop/Windows/Windows/um/control/IAMCollection.cs index 15ca355705..0e2f194bba 100644 --- a/sources/Interop/Windows/Windows/um/control/IAMCollection.cs +++ b/sources/Interop/Windows/Windows/um/control/IAMCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B9-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IAMCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IAMCollection : IAMCollection.Interface +public unsafe partial struct IAMCollection : IAMCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IAMStats.cs b/sources/Interop/Windows/Windows/um/control/IAMStats.cs index fa56180aed..0ec0fec879 100644 --- a/sources/Interop/Windows/Windows/um/control/IAMStats.cs +++ b/sources/Interop/Windows/Windows/um/control/IAMStats.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BC9BCF80-DCD2-11D2-ABF6-00A0C905F375")] [NativeTypeName("struct IAMStats : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IAMStats : IAMStats.Interface +public unsafe partial struct IAMStats : IAMStats.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMStats)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IBasicAudio.cs b/sources/Interop/Windows/Windows/um/control/IBasicAudio.cs index 90a71b54be..84fd17b75c 100644 --- a/sources/Interop/Windows/Windows/um/control/IBasicAudio.cs +++ b/sources/Interop/Windows/Windows/um/control/IBasicAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B3-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IBasicAudio : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBasicAudio : IBasicAudio.Interface +public unsafe partial struct IBasicAudio : IBasicAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBasicAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IBasicVideo.cs b/sources/Interop/Windows/Windows/um/control/IBasicVideo.cs index e3a775b73b..72835244f3 100644 --- a/sources/Interop/Windows/Windows/um/control/IBasicVideo.cs +++ b/sources/Interop/Windows/Windows/um/control/IBasicVideo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B5-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IBasicVideo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBasicVideo : IBasicVideo.Interface +public unsafe partial struct IBasicVideo : IBasicVideo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBasicVideo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IBasicVideo2.cs b/sources/Interop/Windows/Windows/um/control/IBasicVideo2.cs index 80a2a51d95..c5f58087b3 100644 --- a/sources/Interop/Windows/Windows/um/control/IBasicVideo2.cs +++ b/sources/Interop/Windows/Windows/um/control/IBasicVideo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("329BB360-F6EA-11D1-9038-00A0C9697298")] [NativeTypeName("struct IBasicVideo2 : IBasicVideo")] [NativeInheritance("IBasicVideo")] -public unsafe partial struct IBasicVideo2 : IBasicVideo2.Interface +public unsafe partial struct IBasicVideo2 : IBasicVideo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBasicVideo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IDeferredCommand.cs b/sources/Interop/Windows/Windows/um/control/IDeferredCommand.cs index bf06e6873e..95fc8a2ef4 100644 --- a/sources/Interop/Windows/Windows/um/control/IDeferredCommand.cs +++ b/sources/Interop/Windows/Windows/um/control/IDeferredCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B8-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IDeferredCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDeferredCommand : IDeferredCommand.Interface +public unsafe partial struct IDeferredCommand : IDeferredCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeferredCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IFilterInfo.cs b/sources/Interop/Windows/Windows/um/control/IFilterInfo.cs index 2f9c68e979..6303d89f12 100644 --- a/sources/Interop/Windows/Windows/um/control/IFilterInfo.cs +++ b/sources/Interop/Windows/Windows/um/control/IFilterInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868BA-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IFilterInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFilterInfo : IFilterInfo.Interface +public unsafe partial struct IFilterInfo : IFilterInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IMediaControl.cs b/sources/Interop/Windows/Windows/um/control/IMediaControl.cs index cc37e42d07..eb13350220 100644 --- a/sources/Interop/Windows/Windows/um/control/IMediaControl.cs +++ b/sources/Interop/Windows/Windows/um/control/IMediaControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B1-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaControl : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IMediaControl : IMediaControl.Interface +public unsafe partial struct IMediaControl : IMediaControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IMediaEvent.cs b/sources/Interop/Windows/Windows/um/control/IMediaEvent.cs index fb50fcf5f0..e2e0704ae5 100644 --- a/sources/Interop/Windows/Windows/um/control/IMediaEvent.cs +++ b/sources/Interop/Windows/Windows/um/control/IMediaEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B6-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaEvent : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IMediaEvent : IMediaEvent.Interface +public unsafe partial struct IMediaEvent : IMediaEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IMediaEventEx.cs b/sources/Interop/Windows/Windows/um/control/IMediaEventEx.cs index 63d8fd3e2a..d7de532d3d 100644 --- a/sources/Interop/Windows/Windows/um/control/IMediaEventEx.cs +++ b/sources/Interop/Windows/Windows/um/control/IMediaEventEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868C0-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaEventEx : IMediaEvent")] [NativeInheritance("IMediaEvent")] -public unsafe partial struct IMediaEventEx : IMediaEventEx.Interface +public unsafe partial struct IMediaEventEx : IMediaEventEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaEventEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IMediaPosition.cs b/sources/Interop/Windows/Windows/um/control/IMediaPosition.cs index 554dc455c1..aa564846aa 100644 --- a/sources/Interop/Windows/Windows/um/control/IMediaPosition.cs +++ b/sources/Interop/Windows/Windows/um/control/IMediaPosition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B2-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaPosition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IMediaPosition : IMediaPosition.Interface +public unsafe partial struct IMediaPosition : IMediaPosition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaPosition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IMediaTypeInfo.cs b/sources/Interop/Windows/Windows/um/control/IMediaTypeInfo.cs index 8fbed5f352..30a712529f 100644 --- a/sources/Interop/Windows/Windows/um/control/IMediaTypeInfo.cs +++ b/sources/Interop/Windows/Windows/um/control/IMediaTypeInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868BC-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaTypeInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IMediaTypeInfo : IMediaTypeInfo.Interface +public unsafe partial struct IMediaTypeInfo : IMediaTypeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaTypeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IPinInfo.cs b/sources/Interop/Windows/Windows/um/control/IPinInfo.cs index f55985dcb6..7302bdba69 100644 --- a/sources/Interop/Windows/Windows/um/control/IPinInfo.cs +++ b/sources/Interop/Windows/Windows/um/control/IPinInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868BD-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IPinInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IPinInfo : IPinInfo.Interface +public unsafe partial struct IPinInfo : IPinInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPinInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IQueueCommand.cs b/sources/Interop/Windows/Windows/um/control/IQueueCommand.cs index 58745e1a0f..5594c8f891 100644 --- a/sources/Interop/Windows/Windows/um/control/IQueueCommand.cs +++ b/sources/Interop/Windows/Windows/um/control/IQueueCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B7-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IQueueCommand : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQueueCommand : IQueueCommand.Interface +public unsafe partial struct IQueueCommand : IQueueCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueueCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IRegFilterInfo.cs b/sources/Interop/Windows/Windows/um/control/IRegFilterInfo.cs index cd36d82bb0..0649083940 100644 --- a/sources/Interop/Windows/Windows/um/control/IRegFilterInfo.cs +++ b/sources/Interop/Windows/Windows/um/control/IRegFilterInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868BB-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IRegFilterInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRegFilterInfo : IRegFilterInfo.Interface +public unsafe partial struct IRegFilterInfo : IRegFilterInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRegFilterInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/control/IVideoWindow.cs b/sources/Interop/Windows/Windows/um/control/IVideoWindow.cs index a5b02c9fcf..291bccc425 100644 --- a/sources/Interop/Windows/Windows/um/control/IVideoWindow.cs +++ b/sources/Interop/Windows/Windows/um/control/IVideoWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868B4-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IVideoWindow : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IVideoWindow : IVideoWindow.Interface +public unsafe partial struct IVideoWindow : IVideoWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVideoWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/GenericCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/GenericCredentialProvider.cs index 8fdc76b453..98a1305445 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/GenericCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/GenericCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("25CBB996-92ED-457E-B28C-4774084BD562")] -public partial struct GenericCredentialProvider +public unsafe partial struct GenericCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_GenericCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/IConnectableCredentialProviderCredential.cs b/sources/Interop/Windows/Windows/um/credentialprovider/IConnectableCredentialProviderCredential.cs index 30d4c6273a..51508ccb50 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/IConnectableCredentialProviderCredential.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/IConnectableCredentialProviderCredential.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9387928B-AC75-4BF9-8AB2-2B93C4A55290")] [NativeTypeName("struct IConnectableCredentialProviderCredential : ICredentialProviderCredential")] [NativeInheritance("ICredentialProviderCredential")] -public unsafe partial struct IConnectableCredentialProviderCredential : IConnectableCredentialProviderCredential.Interface +public unsafe partial struct IConnectableCredentialProviderCredential : IConnectableCredentialProviderCredential.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConnectableCredentialProviderCredential)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProvider.cs index e72814505b..c579828ee7 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D27C3481-5A1C-45B2-8AAA-C20EBBE8229E")] [NativeTypeName("struct ICredentialProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICredentialProvider : ICredentialProvider.Interface +public unsafe partial struct ICredentialProvider : ICredentialProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential.cs index bbc6d5918c..793ed6cfcb 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("63913A93-40C1-481A-818D-4072FF8C70CC")] [NativeTypeName("struct ICredentialProviderCredential : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICredentialProviderCredential : ICredentialProviderCredential.Interface +public unsafe partial struct ICredentialProviderCredential : ICredentialProviderCredential.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderCredential)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential2.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential2.cs index 19895de3b8..e45867f3c0 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential2.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredential2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderCredential2 : ICredentialProviderCredential")] [NativeInheritance("ICredentialProviderCredential")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderCredential2 : ICredentialProviderCredential2.Interface +public unsafe partial struct ICredentialProviderCredential2 : ICredentialProviderCredential2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderCredential2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents.cs index 6d99884cdf..cc5b505f9a 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FA6FA76B-66B7-4B11-95F1-86171118E816")] [NativeTypeName("struct ICredentialProviderCredentialEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICredentialProviderCredentialEvents : ICredentialProviderCredentialEvents.Interface +public unsafe partial struct ICredentialProviderCredentialEvents : ICredentialProviderCredentialEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderCredentialEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents2.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents2.cs index 37b0c2fa13..8f235d905f 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents2.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialEvents2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderCredentialEvents2 : ICredentialProviderCredentialEvents")] [NativeInheritance("ICredentialProviderCredentialEvents")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderCredentialEvents2 : ICredentialProviderCredentialEvents2.Interface +public unsafe partial struct ICredentialProviderCredentialEvents2 : ICredentialProviderCredentialEvents2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderCredentialEvents2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialWithFieldOptions.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialWithFieldOptions.cs index 76c91a804a..8196a78415 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialWithFieldOptions.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderCredentialWithFieldOptions.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderCredentialWithFieldOptions : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderCredentialWithFieldOptions : ICredentialProviderCredentialWithFieldOptions.Interface +public unsafe partial struct ICredentialProviderCredentialWithFieldOptions : ICredentialProviderCredentialWithFieldOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderCredentialWithFieldOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderEvents.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderEvents.cs index 7cb30451b7..b974faa326 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderEvents.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("34201E5A-A787-41A3-A5A4-BD6DCF2A854E")] [NativeTypeName("struct ICredentialProviderEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICredentialProviderEvents : ICredentialProviderEvents.Interface +public unsafe partial struct ICredentialProviderEvents : ICredentialProviderEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderFilter.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderFilter.cs index 44b013b95e..a75c271a93 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderFilter.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A5DA53F9-D475-4080-A120-910C4A739880")] [NativeTypeName("struct ICredentialProviderFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICredentialProviderFilter : ICredentialProviderFilter.Interface +public unsafe partial struct ICredentialProviderFilter : ICredentialProviderFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderSetUserArray.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderSetUserArray.cs index b961e12f5c..ecfd6cd965 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderSetUserArray.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderSetUserArray.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderSetUserArray : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderSetUserArray : ICredentialProviderSetUserArray.Interface +public unsafe partial struct ICredentialProviderSetUserArray : ICredentialProviderSetUserArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderSetUserArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUser.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUser.cs index 73c85b3589..92858b8141 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUser.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUser.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderUser : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderUser : ICredentialProviderUser.Interface +public unsafe partial struct ICredentialProviderUser : ICredentialProviderUser.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderUser)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUserArray.cs b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUserArray.cs index 3417bb72e9..4eb1e4cc6f 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUserArray.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/ICredentialProviderUserArray.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ICredentialProviderUserArray : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ICredentialProviderUserArray : ICredentialProviderUserArray.Interface +public unsafe partial struct ICredentialProviderUserArray : ICredentialProviderUserArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICredentialProviderUserArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/IQueryContinueWithStatus.cs b/sources/Interop/Windows/Windows/um/credentialprovider/IQueryContinueWithStatus.cs index b6d5cf6962..f887db113f 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/IQueryContinueWithStatus.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/IQueryContinueWithStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9090BE5B-502B-41FB-BCCC-0049A6C7254B")] [NativeTypeName("struct IQueryContinueWithStatus : IQueryContinue")] [NativeInheritance("IQueryContinue")] -public unsafe partial struct IQueryContinueWithStatus : IQueryContinueWithStatus.Interface +public unsafe partial struct IQueryContinueWithStatus : IQueryContinueWithStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQueryContinueWithStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/NPCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/NPCredentialProvider.cs index 8e9452bc5c..ccb3eeed91 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/NPCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/NPCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("3DD6BEC0-8193-4FFE-AE25-E08E39EA4063")] -public partial struct NPCredentialProvider +public unsafe partial struct NPCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NPCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/OnexCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/OnexCredentialProvider.cs index 58ad14fcc7..7f5c3ac19a 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/OnexCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/OnexCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("07AA0886-CC8D-4E19-A410-1C75AF686E62")] -public partial struct OnexCredentialProvider +public unsafe partial struct OnexCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OnexCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/OnexPlapSmartcardCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/OnexPlapSmartcardCredentialProvider.cs index 622035bf71..d39fb9b832 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/OnexPlapSmartcardCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/OnexPlapSmartcardCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("33C86CD6-705F-4BA1-9ADB-67070B837775")] -public partial struct OnexPlapSmartcardCredentialProvider +public unsafe partial struct OnexPlapSmartcardCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OnexPlapSmartcardCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/PINLogonCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/PINLogonCredentialProvider.cs index 1aed2148bc..8225f1ea70 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/PINLogonCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/PINLogonCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CB82EA12-9F71-446D-89E1-8D0924E1256E")] -public partial struct PINLogonCredentialProvider +public unsafe partial struct PINLogonCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PINLogonCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/PasswordCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/PasswordCredentialProvider.cs index 2f04b28302..ef8e9f0299 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/PasswordCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/PasswordCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("60B78E88-EAD8-445C-9CFD-0B87F74EA6CD")] -public partial struct PasswordCredentialProvider +public unsafe partial struct PasswordCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_PasswordCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/RASProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/RASProvider.cs index 88a71b6627..10b2f49c72 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/RASProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/RASProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("5537E283-B1E7-4EF8-9C6E-7AB0AFE5056D")] -public partial struct RASProvider +public unsafe partial struct RASProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_RASProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardCredentialProvider.cs index 4583f1a1c3..56864cbf17 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8FD7E19C-3BF7-489B-A72C-846AB3678C96")] -public partial struct SmartcardCredentialProvider +public unsafe partial struct SmartcardCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SmartcardCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardPinProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardPinProvider.cs index 83444204b3..15671175a3 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardPinProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardPinProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("94596C7E-3744-41CE-893E-BBF09122F76A")] -public partial struct SmartcardPinProvider +public unsafe partial struct SmartcardPinProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SmartcardPinProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardReaderSelectionProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardReaderSelectionProvider.cs index acd4ec196e..d6bba2dfc9 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardReaderSelectionProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardReaderSelectionProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1B283861-754F-4022-AD47-A5EAAA618894")] -public partial struct SmartcardReaderSelectionProvider +public unsafe partial struct SmartcardReaderSelectionProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SmartcardReaderSelectionProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardWinRTProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardWinRTProvider.cs index 89de3d935f..f7457bbb40 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardWinRTProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/SmartcardWinRTProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("1EE7337F-85AC-45E2-A23C-37C753209769")] -public partial struct SmartcardWinRTProvider +public unsafe partial struct SmartcardWinRTProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SmartcardWinRTProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/V1PasswordCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/V1PasswordCredentialProvider.cs index 090022d65e..24dd413c96 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/V1PasswordCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/V1PasswordCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("6F45DC1E-5384-457A-BC13-2CD81B0D28ED")] -public partial struct V1PasswordCredentialProvider +public unsafe partial struct V1PasswordCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_V1PasswordCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/V1SmartcardCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/V1SmartcardCredentialProvider.cs index bba3c355ce..69db9c4f40 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/V1SmartcardCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/V1SmartcardCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8BF9A910-A8FF-457F-999F-A5CA10B4A885")] -public partial struct V1SmartcardCredentialProvider +public unsafe partial struct V1SmartcardCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_V1SmartcardCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/V1WinBioCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/V1WinBioCredentialProvider.cs index 5d6709ffd1..fe3987a96c 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/V1WinBioCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/V1WinBioCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("AC3AC249-E820-4343-A65B-377AC634DC09")] -public partial struct V1WinBioCredentialProvider +public unsafe partial struct V1WinBioCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_V1WinBioCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/VaultProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/VaultProvider.cs index 391b2691bb..86fca48b1d 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/VaultProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/VaultProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("503739D0-4C5E-4CFD-B3BA-D881334F0DF2")] -public partial struct VaultProvider +public unsafe partial struct VaultProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_VaultProvider)); } diff --git a/sources/Interop/Windows/Windows/um/credentialprovider/WinBioCredentialProvider.cs b/sources/Interop/Windows/Windows/um/credentialprovider/WinBioCredentialProvider.cs index c042e1d432..6c5e9a6d7c 100644 --- a/sources/Interop/Windows/Windows/um/credentialprovider/WinBioCredentialProvider.cs +++ b/sources/Interop/Windows/Windows/um/credentialprovider/WinBioCredentialProvider.cs @@ -3,12 +3,16 @@ // Ported from um/credentialprovider.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("BEC09223-B018-416D-A0AC-523971B639F5")] -public partial struct WinBioCredentialProvider +public unsafe partial struct WinBioCredentialProvider : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_WinBioCredentialProvider)); } diff --git a/sources/Interop/Windows/Windows/um/ctffunc/IEnumSpeechCommands.cs b/sources/Interop/Windows/Windows/um/ctffunc/IEnumSpeechCommands.cs index d39580b6cb..29e21a9999 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/IEnumSpeechCommands.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/IEnumSpeechCommands.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8C5DAC4F-083C-4B85-A4C9-71746048ADCA")] [NativeTypeName("struct IEnumSpeechCommands : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSpeechCommands : IEnumSpeechCommands.Interface +public unsafe partial struct IEnumSpeechCommands : IEnumSpeechCommands.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSpeechCommands)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfCandidates.cs b/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfCandidates.cs index 737686c5f1..a014386989 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfCandidates.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfCandidates.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DEFB1926-6C80-4CE8-87D4-D6B72B812BDE")] [NativeTypeName("struct IEnumTfCandidates : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfCandidates : IEnumTfCandidates.Interface +public unsafe partial struct IEnumTfCandidates : IEnumTfCandidates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfCandidates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfLatticeElements.cs b/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfLatticeElements.cs index ec706aa892..4fac33ee74 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfLatticeElements.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/IEnumTfLatticeElements.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56988052-47DA-4A05-911A-E3D941F17145")] [NativeTypeName("struct IEnumTfLatticeElements : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfLatticeElements : IEnumTfLatticeElements.Interface +public unsafe partial struct IEnumTfLatticeElements : IEnumTfLatticeElements.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfLatticeElements)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ISpeechCommandProvider.cs b/sources/Interop/Windows/Windows/um/ctffunc/ISpeechCommandProvider.cs index a2ace3eb16..c8003ec818 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ISpeechCommandProvider.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ISpeechCommandProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("38E09D4C-586D-435A-B592-C8A86691DEC6")] [NativeTypeName("struct ISpeechCommandProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpeechCommandProvider : ISpeechCommandProvider.Interface +public unsafe partial struct ISpeechCommandProvider : ISpeechCommandProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechCommandProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateList.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateList.cs index 2ac418f1ec..185c333a92 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateList.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3AD50FB-9BDB-49E3-A843-6C76520FBF5D")] [NativeTypeName("struct ITfCandidateList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCandidateList : ITfCandidateList.Interface +public unsafe partial struct ITfCandidateList : ITfCandidateList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCandidateList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateString.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateString.cs index 469b809f6a..10ec9e77df 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateString.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfCandidateString.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("581F317E-FD9D-443F-B972-ED00467C5D40")] [NativeTypeName("struct ITfCandidateString : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCandidateString : ITfCandidateString.Interface +public unsafe partial struct ITfCandidateString : ITfCandidateString.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCandidateString)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnAdviseText.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnAdviseText.cs index ba56ed1e2a..2b9f46f540 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnAdviseText.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnAdviseText.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3527268B-7D53-4DD9-92B7-7296AE461249")] [NativeTypeName("struct ITfFnAdviseText : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnAdviseText : ITfFnAdviseText.Interface +public unsafe partial struct ITfFnAdviseText : ITfFnAdviseText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnAdviseText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnBalloon.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnBalloon.cs index 2e8f545a5a..5a1033c18d 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnBalloon.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnBalloon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3BAB89E4-5FBE-45F4-A5BC-DCA36AD225A8")] [NativeTypeName("struct ITfFnBalloon : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfFnBalloon : ITfFnBalloon.Interface +public unsafe partial struct ITfFnBalloon : ITfFnBalloon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnBalloon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigure.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigure.cs index 338730229f..7edbdd0e3c 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigure.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigure.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("88F567C6-1757-49F8-A1B2-89234C1EEFF9")] [NativeTypeName("struct ITfFnConfigure : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnConfigure : ITfFnConfigure.Interface +public unsafe partial struct ITfFnConfigure : ITfFnConfigure.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnConfigure)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterEudc.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterEudc.cs index 87ddd1db73..242429aa06 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterEudc.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterEudc.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B5E26FF5-D7AD-4304-913F-21A2ED95A1B0")] [NativeTypeName("struct ITfFnConfigureRegisterEudc : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnConfigureRegisterEudc : ITfFnConfigureRegisterEudc.Interface +public unsafe partial struct ITfFnConfigureRegisterEudc : ITfFnConfigureRegisterEudc.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnConfigureRegisterEudc)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterWord.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterWord.cs index 9f30f95b77..c2acb685eb 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterWord.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnConfigureRegisterWord.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB95808A-6D8F-4BCA-8400-5390B586AEDF")] [NativeTypeName("struct ITfFnConfigureRegisterWord : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnConfigureRegisterWord : ITfFnConfigureRegisterWord.Interface +public unsafe partial struct ITfFnConfigureRegisterWord : ITfFnConfigureRegisterWord.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnConfigureRegisterWord)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnCustomSpeechCommand.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnCustomSpeechCommand.cs index 8ba7502636..7d30dd066b 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnCustomSpeechCommand.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnCustomSpeechCommand.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FCA6C349-A12F-43A3-8DD6-5A5A4282577B")] [NativeTypeName("struct ITfFnCustomSpeechCommand : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnCustomSpeechCommand : ITfFnCustomSpeechCommand.Interface +public unsafe partial struct ITfFnCustomSpeechCommand : ITfFnCustomSpeechCommand.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnCustomSpeechCommand)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetLinguisticAlternates.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetLinguisticAlternates.cs index e74cd4292d..f3e59a954d 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetLinguisticAlternates.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetLinguisticAlternates.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITfFnGetLinguisticAlternates : ITfFunction")] [NativeInheritance("ITfFunction")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct ITfFnGetLinguisticAlternates : ITfFnGetLinguisticAlternates.Interface +public unsafe partial struct ITfFnGetLinguisticAlternates : ITfFnGetLinguisticAlternates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnGetLinguisticAlternates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetPreferredTouchKeyboardLayout.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetPreferredTouchKeyboardLayout.cs index 5f22ae991b..22a7a7763c 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetPreferredTouchKeyboardLayout.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetPreferredTouchKeyboardLayout.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITfFnGetPreferredTouchKeyboardLayout : ITfFunction")] [NativeInheritance("ITfFunction")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ITfFnGetPreferredTouchKeyboardLayout : ITfFnGetPreferredTouchKeyboardLayout.Interface +public unsafe partial struct ITfFnGetPreferredTouchKeyboardLayout : ITfFnGetPreferredTouchKeyboardLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnGetPreferredTouchKeyboardLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetSAPIObject.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetSAPIObject.cs index c12f316b3f..06fd7b9837 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetSAPIObject.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnGetSAPIObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5C0AB7EA-167D-4F59-BFB5-4693755E90CA")] [NativeTypeName("struct ITfFnGetSAPIObject : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnGetSAPIObject : ITfFnGetSAPIObject.Interface +public unsafe partial struct ITfFnGetSAPIObject : ITfFnGetSAPIObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnGetSAPIObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMInternal.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMInternal.cs index 34da2d39eb..39acf8b65c 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMInternal.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMInternal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("04B825B1-AC9A-4F7B-B5AD-C7168F1EE445")] [NativeTypeName("struct ITfFnLMInternal : ITfFnLMProcessor")] [NativeInheritance("ITfFnLMProcessor")] -public unsafe partial struct ITfFnLMInternal : ITfFnLMInternal.Interface +public unsafe partial struct ITfFnLMInternal : ITfFnLMInternal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnLMInternal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMProcessor.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMProcessor.cs index a165c8f258..608d870273 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMProcessor.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLMProcessor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7AFBF8E7-AC4B-4082-B058-890899D3A010")] [NativeTypeName("struct ITfFnLMProcessor : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnLMProcessor : ITfFnLMProcessor.Interface +public unsafe partial struct ITfFnLMProcessor : ITfFnLMProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnLMProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLangProfileUtil.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLangProfileUtil.cs index 0be147d7dd..d0aec2debd 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLangProfileUtil.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnLangProfileUtil.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A87A8574-A6C1-4E15-99F0-3D3965F548EB")] [NativeTypeName("struct ITfFnLangProfileUtil : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnLangProfileUtil : ITfFnLangProfileUtil.Interface +public unsafe partial struct ITfFnLangProfileUtil : ITfFnLangProfileUtil.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnLangProfileUtil)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPlayBack.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPlayBack.cs index 20fab94f55..de2a8e1b39 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPlayBack.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPlayBack.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3A416A4-0F64-11D3-B5B7-00C04FC324A1")] [NativeTypeName("struct ITfFnPlayBack : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnPlayBack : ITfFnPlayBack.Interface +public unsafe partial struct ITfFnPlayBack : ITfFnPlayBack.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnPlayBack)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPropertyUIStatus.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPropertyUIStatus.cs index f147667703..9a5b0ad22d 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPropertyUIStatus.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnPropertyUIStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2338AC6E-2B9D-44C0-A75E-EE64F256B3BD")] [NativeTypeName("struct ITfFnPropertyUIStatus : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnPropertyUIStatus : ITfFnPropertyUIStatus.Interface +public unsafe partial struct ITfFnPropertyUIStatus : ITfFnPropertyUIStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnPropertyUIStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnReconversion.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnReconversion.cs index 77918df687..e4f1e3b987 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnReconversion.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnReconversion.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4CEA93C0-0A58-11D3-8DF0-00105A2799B5")] [NativeTypeName("struct ITfFnReconversion : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnReconversion : ITfFnReconversion.Interface +public unsafe partial struct ITfFnReconversion : ITfFnReconversion.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnReconversion)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnSearchCandidateProvider.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnSearchCandidateProvider.cs index 2f570618fe..c9133b3d3b 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnSearchCandidateProvider.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnSearchCandidateProvider.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITfFnSearchCandidateProvider : ITfFunction")] [NativeInheritance("ITfFunction")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ITfFnSearchCandidateProvider : ITfFnSearchCandidateProvider.Interface +public unsafe partial struct ITfFnSearchCandidateProvider : ITfFnSearchCandidateProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnSearchCandidateProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnShowHelp.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnShowHelp.cs index e0d7e28202..995c7f4940 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfFnShowHelp.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfFnShowHelp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5AB1D30C-094D-4C29-8EA5-0BF59BE87BF3")] [NativeTypeName("struct ITfFnShowHelp : ITfFunction")] [NativeInheritance("ITfFunction")] -public unsafe partial struct ITfFnShowHelp : ITfFnShowHelp.Interface +public unsafe partial struct ITfFnShowHelp : ITfFnShowHelp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFnShowHelp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfIntegratableCandidateListUIElement.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfIntegratableCandidateListUIElement.cs index eadbef46be..4d51d23c3c 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfIntegratableCandidateListUIElement.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfIntegratableCandidateListUIElement.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITfIntegratableCandidateListUIElement : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ITfIntegratableCandidateListUIElement : ITfIntegratableCandidateListUIElement.Interface +public unsafe partial struct ITfIntegratableCandidateListUIElement : ITfIntegratableCandidateListUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfIntegratableCandidateListUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/ITfLMLattice.cs b/sources/Interop/Windows/Windows/um/ctffunc/ITfLMLattice.cs index bd955e9336..75ad75f35a 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/ITfLMLattice.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/ITfLMLattice.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D4236675-A5BF-4570-9D42-5D6D7B02D59B")] [NativeTypeName("struct ITfLMLattice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLMLattice : ITfLMLattice.Interface +public unsafe partial struct ITfLMLattice : ITfLMLattice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLMLattice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/IUIManagerEventSink.cs b/sources/Interop/Windows/Windows/um/ctffunc/IUIManagerEventSink.cs index 877db3837d..dc0722dca6 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/IUIManagerEventSink.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/IUIManagerEventSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IUIManagerEventSink : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IUIManagerEventSink : IUIManagerEventSink.Interface +public unsafe partial struct IUIManagerEventSink : IUIManagerEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUIManagerEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctffunc/TF_LMLATTELEMENT.cs b/sources/Interop/Windows/Windows/um/ctffunc/TF_LMLATTELEMENT.cs index 1ae972c4a1..36d12e52fa 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/TF_LMLATTELEMENT.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/TF_LMLATTELEMENT.cs @@ -3,6 +3,7 @@ // Ported from um/ctffunc.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,12 +33,13 @@ public unsafe partial struct TF_LMLATTELEMENT public ushort* bstrText; /// + [UnscopedRef] public ref int iCost { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.iCost, 1)); + return ref Anonymous.iCost; } } diff --git a/sources/Interop/Windows/Windows/um/ctfspui/ITfSpeechUIServer.cs b/sources/Interop/Windows/Windows/um/ctfspui/ITfSpeechUIServer.cs index be91e8a8bc..72005db47a 100644 --- a/sources/Interop/Windows/Windows/um/ctfspui/ITfSpeechUIServer.cs +++ b/sources/Interop/Windows/Windows/um/ctfspui/ITfSpeechUIServer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("90E9A944-9244-489F-A78F-DE67AFC013A7")] [NativeTypeName("struct ITfSpeechUIServer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSpeechUIServer : ITfSpeechUIServer.Interface +public unsafe partial struct ITfSpeechUIServer : ITfSpeechUIServer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSpeechUIServer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/IEnumTfLangBarItems.cs b/sources/Interop/Windows/Windows/um/ctfutb/IEnumTfLangBarItems.cs index 79be920925..7a8aeaaae1 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/IEnumTfLangBarItems.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/IEnumTfLangBarItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("583F34D0-DE25-11D2-AFDD-00105A2799B5")] [NativeTypeName("struct IEnumTfLangBarItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfLangBarItems : IEnumTfLangBarItems.Interface +public unsafe partial struct IEnumTfLangBarItems : IEnumTfLangBarItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfLangBarItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarEventSink.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarEventSink.cs index f25c0fd7fe..5904949f5c 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarEventSink.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("18A4E900-E0AE-11D2-AFDD-00105A2799B5")] [NativeTypeName("struct ITfLangBarEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLangBarEventSink : ITfLangBarEventSink.Interface +public unsafe partial struct ITfLangBarEventSink : ITfLangBarEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItem.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItem.cs index 6dacb2ab21..c8500b3d76 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItem.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("73540D69-EDEB-4EE9-96C9-23AA30B25916")] [NativeTypeName("struct ITfLangBarItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLangBarItem : ITfLangBarItem.Interface +public unsafe partial struct ITfLangBarItem : ITfLangBarItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBalloon.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBalloon.cs index f308efc4c6..442077b0c3 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBalloon.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBalloon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("01C2D285-D3C7-4B7B-B5B5-D97411D0C283")] [NativeTypeName("struct ITfLangBarItemBalloon : ITfLangBarItem")] [NativeInheritance("ITfLangBarItem")] -public unsafe partial struct ITfLangBarItemBalloon : ITfLangBarItemBalloon.Interface +public unsafe partial struct ITfLangBarItemBalloon : ITfLangBarItemBalloon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemBalloon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmap.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmap.cs index 53fe9e6bc5..73fd05eb6d 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmap.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("73830352-D722-4179-ADA5-F045C98DF355")] [NativeTypeName("struct ITfLangBarItemBitmap : ITfLangBarItem")] [NativeInheritance("ITfLangBarItem")] -public unsafe partial struct ITfLangBarItemBitmap : ITfLangBarItemBitmap.Interface +public unsafe partial struct ITfLangBarItemBitmap : ITfLangBarItemBitmap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemBitmap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmapButton.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmapButton.cs index a3b8ffce50..d67af08a42 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmapButton.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemBitmapButton.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A26A0525-3FAE-4FA0-89EE-88A964F9F1B5")] [NativeTypeName("struct ITfLangBarItemBitmapButton : ITfLangBarItem")] [NativeInheritance("ITfLangBarItem")] -public unsafe partial struct ITfLangBarItemBitmapButton : ITfLangBarItemBitmapButton.Interface +public unsafe partial struct ITfLangBarItemBitmapButton : ITfLangBarItemBitmapButton.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemBitmapButton)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemButton.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemButton.cs index 6f18002c8d..0ababc3dbe 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemButton.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemButton.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("28C7F1D0-DE25-11D2-AFDD-00105A2799B5")] [NativeTypeName("struct ITfLangBarItemButton : ITfLangBarItem")] [NativeInheritance("ITfLangBarItem")] -public unsafe partial struct ITfLangBarItemButton : ITfLangBarItemButton.Interface +public unsafe partial struct ITfLangBarItemButton : ITfLangBarItemButton.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemButton)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemMgr.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemMgr.cs index 5e33081e35..17670565ad 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemMgr.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BA468C55-9956-4FB1-A59D-52A7DD7CC6AA")] [NativeTypeName("struct ITfLangBarItemMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLangBarItemMgr : ITfLangBarItemMgr.Interface +public unsafe partial struct ITfLangBarItemMgr : ITfLangBarItemMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemSink.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemSink.cs index c9508b8688..3f8e23524c 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemSink.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarItemSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("57DBE1A0-DE25-11D2-AFDD-00105A2799B5")] [NativeTypeName("struct ITfLangBarItemSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLangBarItemSink : ITfLangBarItemSink.Interface +public unsafe partial struct ITfLangBarItemSink : ITfLangBarItemSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarItemSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarMgr.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarMgr.cs index 8cbc1ec05b..2df085a4dc 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarMgr.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfLangBarMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("87955690-E627-11D2-8DDB-00105A2799B5")] [NativeTypeName("struct ITfLangBarMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLangBarMgr : ITfLangBarMgr.Interface +public unsafe partial struct ITfLangBarMgr : ITfLangBarMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLangBarMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfMenu.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfMenu.cs index 98f44b6c60..2f846dbd99 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfMenu.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfMenu.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6F8A98E4-AAA0-4F15-8C5B-07E0DF0A3DD8")] [NativeTypeName("struct ITfMenu : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMenu : ITfMenu.Interface +public unsafe partial struct ITfMenu : ITfMenu.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMenu)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemDeviceTypeLangBarItem.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemDeviceTypeLangBarItem.cs index f7e3e24ddc..151d2bc6f1 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemDeviceTypeLangBarItem.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemDeviceTypeLangBarItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("45672EB9-9059-46A2-838D-4530355F6A77")] [NativeTypeName("struct ITfSystemDeviceTypeLangBarItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSystemDeviceTypeLangBarItem : ITfSystemDeviceTypeLangBarItem.Interface +public unsafe partial struct ITfSystemDeviceTypeLangBarItem : ITfSystemDeviceTypeLangBarItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSystemDeviceTypeLangBarItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItem.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItem.cs index 4759e4221e..fe6ab73e2f 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItem.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1E13E9EC-6B33-4D4A-B5EB-8A92F029F356")] [NativeTypeName("struct ITfSystemLangBarItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSystemLangBarItem : ITfSystemLangBarItem.Interface +public unsafe partial struct ITfSystemLangBarItem : ITfSystemLangBarItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSystemLangBarItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemSink.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemSink.cs index 9d9f02c2f5..a41fede247 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemSink.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1449D9AB-13CF-4687-AA3E-8D8B18574396")] [NativeTypeName("struct ITfSystemLangBarItemSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSystemLangBarItemSink : ITfSystemLangBarItemSink.Interface +public unsafe partial struct ITfSystemLangBarItemSink : ITfSystemLangBarItemSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSystemLangBarItemSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemText.cs b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemText.cs index e90f8a1ef2..05ed3d6673 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemText.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/ITfSystemLangBarItemText.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5C4CE0E5-BA49-4B52-AC6B-3B397B4F701F")] [NativeTypeName("struct ITfSystemLangBarItemText : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSystemLangBarItemText : ITfSystemLangBarItemText.Interface +public unsafe partial struct ITfSystemLangBarItemText : ITfSystemLangBarItemText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSystemLangBarItemText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ctfutb/TF.cs b/sources/Interop/Windows/Windows/um/ctfutb/TF.cs index 58c3105a19..83cd84895e 100644 --- a/sources/Interop/Windows/Windows/um/ctfutb/TF.cs +++ b/sources/Interop/Windows/Windows/um/ctfutb/TF.cs @@ -13,7 +13,7 @@ public static partial class TF public const string TF_FLOATINGLANGBAR_WNDTITLEW = "TF_FloatingLangBar_WndTitle"; [NativeTypeName("#define TF_FLOATINGLANGBAR_WNDTITLEA \"TF_FloatingLangBar_WndTitle\"")] - public static ReadOnlySpan TF_FLOATINGLANGBAR_WNDTITLEA => new byte[] { 0x54, 0x46, 0x5F, 0x46, 0x6C, 0x6F, 0x61, 0x74, 0x69, 0x6E, 0x67, 0x4C, 0x61, 0x6E, 0x67, 0x42, 0x61, 0x72, 0x5F, 0x57, 0x6E, 0x64, 0x54, 0x69, 0x74, 0x6C, 0x65, 0x00 }; + public static ReadOnlySpan TF_FLOATINGLANGBAR_WNDTITLEA => "TF_FloatingLangBar_WndTitle"u8; [NativeTypeName("#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEW")] public const string TF_FLOATINGLANGBAR_WNDTITLE = "TF_FloatingLangBar_WndTitle"; diff --git a/sources/Interop/Windows/Windows/um/ddpbackup/DedupBackupSupport.cs b/sources/Interop/Windows/Windows/um/ddpbackup/DedupBackupSupport.cs index 22783f5e58..9c877c78df 100644 --- a/sources/Interop/Windows/Windows/um/ddpbackup/DedupBackupSupport.cs +++ b/sources/Interop/Windows/Windows/um/ddpbackup/DedupBackupSupport.cs @@ -3,12 +3,16 @@ // Ported from um/ddpbackup.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("73D6B2AD-2984-4715-B2E3-924C149744DD")] -public partial struct DedupBackupSupport +public unsafe partial struct DedupBackupSupport : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DedupBackupSupport)); } diff --git a/sources/Interop/Windows/Windows/um/ddpbackup/IDedupBackupSupport.cs b/sources/Interop/Windows/Windows/um/ddpbackup/IDedupBackupSupport.cs index b7b8f255d5..ff79613811 100644 --- a/sources/Interop/Windows/Windows/um/ddpbackup/IDedupBackupSupport.cs +++ b/sources/Interop/Windows/Windows/um/ddpbackup/IDedupBackupSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C719D963-2B2D-415E-ACF7-7EB7CA596FF4")] [NativeTypeName("struct IDedupBackupSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDedupBackupSupport : IDedupBackupSupport.Interface +public unsafe partial struct IDedupBackupSupport : IDedupBackupSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDedupBackupSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ddpbackup/IDedupReadFileCallback.cs b/sources/Interop/Windows/Windows/um/ddpbackup/IDedupReadFileCallback.cs index 2d1b4e27ca..4c51ac55b4 100644 --- a/sources/Interop/Windows/Windows/um/ddpbackup/IDedupReadFileCallback.cs +++ b/sources/Interop/Windows/Windows/um/ddpbackup/IDedupReadFileCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BACC67A-2F1D-42D0-897E-6FF62DD533BB")] [NativeTypeName("struct IDedupReadFileCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDedupReadFileCallback : IDedupReadFileCallback.Interface +public unsafe partial struct IDedupReadFileCallback : IDedupReadFileCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDedupReadFileCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioAutoGainControl.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioAutoGainControl.cs index 88405bb63b..790ec96c21 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioAutoGainControl.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioAutoGainControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85401FD4-6DE4-4B9D-9869-2D6753A82F3C")] [NativeTypeName("struct IAudioAutoGainControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioAutoGainControl : IAudioAutoGainControl.Interface +public unsafe partial struct IAudioAutoGainControl : IAudioAutoGainControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioAutoGainControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioBass.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioBass.cs index 42c70be1c5..77dafc555f 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioBass.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioBass.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2B1A1D9-4DB3-425D-A2B2-BD335CB3E2E5")] [NativeTypeName("struct IAudioBass : IPerChannelDbLevel")] [NativeInheritance("IPerChannelDbLevel")] -public unsafe partial struct IAudioBass : IAudioBass.Interface +public unsafe partial struct IAudioBass : IAudioBass.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioBass)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioChannelConfig.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioChannelConfig.cs index fd579f410e..ff8239b3bf 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioChannelConfig.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioChannelConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB11C46F-EC28-493C-B88A-5DB88062CE98")] [NativeTypeName("struct IAudioChannelConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioChannelConfig : IAudioChannelConfig.Interface +public unsafe partial struct IAudioChannelConfig : IAudioChannelConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioChannelConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioInputSelector.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioInputSelector.cs index 1a6c502bff..b871df5613 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioInputSelector.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioInputSelector.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4F03DC02-5E6E-4653-8F72-A030C123D598")] [NativeTypeName("struct IAudioInputSelector : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioInputSelector : IAudioInputSelector.Interface +public unsafe partial struct IAudioInputSelector : IAudioInputSelector.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioInputSelector)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioLoudness.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioLoudness.cs index b2d2de6e66..51dcb14a5c 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioLoudness.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioLoudness.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7D8B1437-DD53-4350-9C1B-1EE2890BD938")] [NativeTypeName("struct IAudioLoudness : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioLoudness : IAudioLoudness.Interface +public unsafe partial struct IAudioLoudness : IAudioLoudness.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioLoudness)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioMidrange.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioMidrange.cs index 1ca40857cf..1d2fa3d5fd 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioMidrange.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioMidrange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5E54B6D7-B44B-40D9-9A9E-E691D9CE6EDF")] [NativeTypeName("struct IAudioMidrange : IPerChannelDbLevel")] [NativeInheritance("IPerChannelDbLevel")] -public unsafe partial struct IAudioMidrange : IAudioMidrange.Interface +public unsafe partial struct IAudioMidrange : IAudioMidrange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioMidrange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioMute.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioMute.cs index de40d95bf1..175cf8659f 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioMute.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioMute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DF45AEEA-B74A-4B6B-AFAD-2366B6AA012E")] [NativeTypeName("struct IAudioMute : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioMute : IAudioMute.Interface +public unsafe partial struct IAudioMute : IAudioMute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioMute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioOutputSelector.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioOutputSelector.cs index c9e618ae69..ef24ef3569 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioOutputSelector.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioOutputSelector.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB515F69-94A7-429E-8B9C-271B3F11A3AB")] [NativeTypeName("struct IAudioOutputSelector : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioOutputSelector : IAudioOutputSelector.Interface +public unsafe partial struct IAudioOutputSelector : IAudioOutputSelector.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioOutputSelector)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioPeakMeter.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioPeakMeter.cs index df459f7ff9..ebf4549790 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioPeakMeter.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioPeakMeter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DD79923C-0599-45E0-B8B6-C8DF7DB6E796")] [NativeTypeName("struct IAudioPeakMeter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioPeakMeter : IAudioPeakMeter.Interface +public unsafe partial struct IAudioPeakMeter : IAudioPeakMeter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioPeakMeter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioTreble.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioTreble.cs index 9c0a7d851e..4ce52eddc6 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioTreble.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioTreble.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0A717812-694E-4907-B74B-BAFA5CFDCA7B")] [NativeTypeName("struct IAudioTreble : IPerChannelDbLevel")] [NativeInheritance("IPerChannelDbLevel")] -public unsafe partial struct IAudioTreble : IAudioTreble.Interface +public unsafe partial struct IAudioTreble : IAudioTreble.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioTreble)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IAudioVolumeLevel.cs b/sources/Interop/Windows/Windows/um/devicetopology/IAudioVolumeLevel.cs index 9664c16a01..79bf9b3b53 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IAudioVolumeLevel.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IAudioVolumeLevel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7FB7B48F-531D-44A2-BCB3-5AD5A134B3DC")] [NativeTypeName("struct IAudioVolumeLevel : IPerChannelDbLevel")] [NativeInheritance("IPerChannelDbLevel")] -public unsafe partial struct IAudioVolumeLevel : IAudioVolumeLevel.Interface +public unsafe partial struct IAudioVolumeLevel : IAudioVolumeLevel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioVolumeLevel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IConnector.cs b/sources/Interop/Windows/Windows/um/devicetopology/IConnector.cs index b13b859e7b..71cece6157 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IConnector.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IConnector.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9C2C4058-23F5-41DE-877A-DF3AF236A09E")] [NativeTypeName("struct IConnector : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IConnector : IConnector.Interface +public unsafe partial struct IConnector : IConnector.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConnector)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IControlChangeNotify.cs b/sources/Interop/Windows/Windows/um/devicetopology/IControlChangeNotify.cs index ac617a660b..d819e5f0a5 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IControlChangeNotify.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IControlChangeNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A09513ED-C709-4D21-BD7B-5F34C47F3947")] [NativeTypeName("struct IControlChangeNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IControlChangeNotify : IControlChangeNotify.Interface +public unsafe partial struct IControlChangeNotify : IControlChangeNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IControlChangeNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IControlInterface.cs b/sources/Interop/Windows/Windows/um/devicetopology/IControlInterface.cs index ade80e3f91..c80646d639 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IControlInterface.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IControlInterface.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("45D37C3F-5140-444A-AE24-400789F3CBF3")] [NativeTypeName("struct IControlInterface : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IControlInterface : IControlInterface.Interface +public unsafe partial struct IControlInterface : IControlInterface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IControlInterface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IDeviceSpecificProperty.cs b/sources/Interop/Windows/Windows/um/devicetopology/IDeviceSpecificProperty.cs index 58102cd177..e74d62c35f 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IDeviceSpecificProperty.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IDeviceSpecificProperty.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B22BCBF-2586-4AF0-8583-205D391B807C")] [NativeTypeName("struct IDeviceSpecificProperty : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDeviceSpecificProperty : IDeviceSpecificProperty.Interface +public unsafe partial struct IDeviceSpecificProperty : IDeviceSpecificProperty.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeviceSpecificProperty)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IDeviceTopology.cs b/sources/Interop/Windows/Windows/um/devicetopology/IDeviceTopology.cs index 3213a45ad1..b32a99fea0 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IDeviceTopology.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IDeviceTopology.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2A07407E-6497-4A18-9787-32F79BD0D98F")] [NativeTypeName("struct IDeviceTopology : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDeviceTopology : IDeviceTopology.Interface +public unsafe partial struct IDeviceTopology : IDeviceTopology.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDeviceTopology)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsControl.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsControl.cs index 61dc03f120..c753175ab7 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsControl.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("28F54685-06FD-11D2-B27A-00A0C9223196")] [NativeTypeName("struct IKsControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsControl : IKsControl.Interface +public unsafe partial struct IKsControl : IKsControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsFormatSupport.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsFormatSupport.cs index 2793bf919f..806e1236d0 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsFormatSupport.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsFormatSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3CB4A69D-BB6F-4D2B-95B7-452D2C155DB5")] [NativeTypeName("struct IKsFormatSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsFormatSupport : IKsFormatSupport.Interface +public unsafe partial struct IKsFormatSupport : IKsFormatSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsFormatSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackContainerId.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackContainerId.cs index 775942b526..376da37571 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackContainerId.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackContainerId.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C99AF463-D629-4EC4-8C00-E54D68154248")] [NativeTypeName("struct IKsJackContainerId : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsJackContainerId : IKsJackContainerId.Interface +public unsafe partial struct IKsJackContainerId : IKsJackContainerId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsJackContainerId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription.cs index 5345d00479..9a862d6f1f 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4509F757-2D46-4637-8E62-CE7DB944F57B")] [NativeTypeName("struct IKsJackDescription : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsJackDescription : IKsJackDescription.Interface +public unsafe partial struct IKsJackDescription : IKsJackDescription.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsJackDescription)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription2.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription2.cs index 4cb6f9f510..a7f5af547a 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription2.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackDescription2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("478F3A9B-E0C9-4827-9228-6F5505FFE76A")] [NativeTypeName("struct IKsJackDescription2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsJackDescription2 : IKsJackDescription2.Interface +public unsafe partial struct IKsJackDescription2 : IKsJackDescription2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsJackDescription2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackSinkInformation.cs b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackSinkInformation.cs index 197d01e421..e9af1fe376 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IKsJackSinkInformation.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IKsJackSinkInformation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D9BD72ED-290F-4581-9FF3-61027A8FE532")] [NativeTypeName("struct IKsJackSinkInformation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsJackSinkInformation : IKsJackSinkInformation.Interface +public unsafe partial struct IKsJackSinkInformation : IKsJackSinkInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsJackSinkInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IPart.cs b/sources/Interop/Windows/Windows/um/devicetopology/IPart.cs index be2144b3cc..e39db0b1d6 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IPart.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IPart.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE2DE0E4-5BCA-4F2D-AA46-5D13F8FDB3A9")] [NativeTypeName("struct IPart : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPart : IPart.Interface +public unsafe partial struct IPart : IPart.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPart)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IPartsList.cs b/sources/Interop/Windows/Windows/um/devicetopology/IPartsList.cs index a1054ae793..73f54bf5ca 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IPartsList.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IPartsList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6DAA848C-5EB0-45CC-AEA5-998A2CDA1FFB")] [NativeTypeName("struct IPartsList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPartsList : IPartsList.Interface +public unsafe partial struct IPartsList : IPartsList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPartsList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/IPerChannelDbLevel.cs b/sources/Interop/Windows/Windows/um/devicetopology/IPerChannelDbLevel.cs index 1f1da6efb9..e044f38258 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/IPerChannelDbLevel.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/IPerChannelDbLevel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C2F8E001-F205-4BC9-99BC-C13B1E048CCB")] [NativeTypeName("struct IPerChannelDbLevel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPerChannelDbLevel : IPerChannelDbLevel.Interface +public unsafe partial struct IPerChannelDbLevel : IPerChannelDbLevel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPerChannelDbLevel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/devicetopology/ISubunit.cs b/sources/Interop/Windows/Windows/um/devicetopology/ISubunit.cs index 61a03b13f5..e87a6f9d6e 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/ISubunit.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/ISubunit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("82149A85-DBA6-4487-86BB-EA8F7FEFCC71")] [NativeTypeName("struct ISubunit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISubunit : ISubunit.Interface +public unsafe partial struct ISubunit : ISubunit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISubunit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/AM_PROPERTY_SPPAL.cs b/sources/Interop/Windows/Windows/um/dvdmedia/AM_PROPERTY_SPPAL.cs index 1b0dae789f..50b44dce8e 100644 --- a/sources/Interop/Windows/Windows/um/dvdmedia/AM_PROPERTY_SPPAL.cs +++ b/sources/Interop/Windows/Windows/um/dvdmedia/AM_PROPERTY_SPPAL.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,6 +37,7 @@ public partial struct _sppal_e__FixedBuffer public AM_DVD_YUV e14; public AM_DVD_YUV e15; + [UnscopedRef] public ref AM_DVD_YUV this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -46,6 +48,7 @@ public ref AM_DVD_YUV this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/VIDEOINFOHEADER2.cs b/sources/Interop/Windows/Windows/um/dvdmedia/VIDEOINFOHEADER2.cs index e08068b890..08bcc0d67b 100644 --- a/sources/Interop/Windows/Windows/um/dvdmedia/VIDEOINFOHEADER2.cs +++ b/sources/Interop/Windows/Windows/um/dvdmedia/VIDEOINFOHEADER2.cs @@ -3,6 +3,7 @@ // Ported from um/dvdmedia.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -57,22 +58,24 @@ public partial struct VIDEOINFOHEADER2 public BITMAPINFOHEADER bmiHeader; /// + [UnscopedRef] public ref uint dwControlFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwControlFlags, 1)); + return ref Anonymous.dwControlFlags; } } /// + [UnscopedRef] public ref uint dwReserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwReserved1, 1)); + return ref Anonymous.dwReserved1; } } diff --git a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolume.cs b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolume.cs index 5f58a08e2a..f16122631a 100644 --- a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolume.cs +++ b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5CDF2C82-841E-4546-9722-0CF74078229A")] [NativeTypeName("struct IAudioEndpointVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioEndpointVolume : IAudioEndpointVolume.Interface +public unsafe partial struct IAudioEndpointVolume : IAudioEndpointVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioEndpointVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeCallback.cs b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeCallback.cs index a4de306b70..3aa4fe6b0f 100644 --- a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeCallback.cs +++ b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("657804FA-D6AD-4496-8A60-352752AF4F89")] [NativeTypeName("struct IAudioEndpointVolumeCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioEndpointVolumeCallback : IAudioEndpointVolumeCallback.Interface +public unsafe partial struct IAudioEndpointVolumeCallback : IAudioEndpointVolumeCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioEndpointVolumeCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeEx.cs b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeEx.cs index ac8f062c95..c3d1a98ca3 100644 --- a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeEx.cs +++ b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioEndpointVolumeEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("66E11784-F695-4F28-A505-A7080081A78F")] [NativeTypeName("struct IAudioEndpointVolumeEx : IAudioEndpointVolume")] [NativeInheritance("IAudioEndpointVolume")] -public unsafe partial struct IAudioEndpointVolumeEx : IAudioEndpointVolumeEx.Interface +public unsafe partial struct IAudioEndpointVolumeEx : IAudioEndpointVolumeEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioEndpointVolumeEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioMeterInformation.cs b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioMeterInformation.cs index 548e8d41d4..d155944065 100644 --- a/sources/Interop/Windows/Windows/um/endpointvolume/IAudioMeterInformation.cs +++ b/sources/Interop/Windows/Windows/um/endpointvolume/IAudioMeterInformation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C02216F6-8C67-4B5B-9D00-D008E73E0064")] [NativeTypeName("struct IAudioMeterInformation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioMeterInformation : IAudioMeterInformation.Interface +public unsafe partial struct IAudioMeterInformation : IAudioMeterInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioMeterInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/fdi/FDIDECRYPT.cs b/sources/Interop/Windows/Windows/um/fdi/FDIDECRYPT.cs index 8e06eca54c..e4b1857de9 100644 --- a/sources/Interop/Windows/Windows/um/fdi/FDIDECRYPT.cs +++ b/sources/Interop/Windows/Windows/um/fdi/FDIDECRYPT.cs @@ -3,6 +3,7 @@ // Ported from um/fdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -22,32 +23,35 @@ public unsafe partial struct FDIDECRYPT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._cabinet_e__Struct cabinet { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cabinet, 1)); + return ref Anonymous.cabinet; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._folder_e__Struct folder { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.folder, 1)); + return ref Anonymous.folder; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._decrypt_e__Struct decrypt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.decrypt, 1)); + return ref Anonymous.decrypt; } } diff --git a/sources/Interop/Windows/Windows/um/imapi/IDiscMaster.cs b/sources/Interop/Windows/Windows/um/imapi/IDiscMaster.cs index 65d1d36155..5c89dd6192 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IDiscMaster.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IDiscMaster.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("520CCA62-51A5-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IDiscMaster : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiscMaster : IDiscMaster.Interface +public unsafe partial struct IDiscMaster : IDiscMaster.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscMaster)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IDiscMasterProgressEvents.cs b/sources/Interop/Windows/Windows/um/imapi/IDiscMasterProgressEvents.cs index bb100fd8e0..b4963b5719 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IDiscMasterProgressEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IDiscMasterProgressEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EC9E51C1-4E5D-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IDiscMasterProgressEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiscMasterProgressEvents : IDiscMasterProgressEvents.Interface +public unsafe partial struct IDiscMasterProgressEvents : IDiscMasterProgressEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscMasterProgressEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IDiscRecorder.cs b/sources/Interop/Windows/Windows/um/imapi/IDiscRecorder.cs index 031482034f..e5e3cc7f6f 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IDiscRecorder.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IDiscRecorder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85AC9776-CA88-4CF2-894E-09598C078A41")] [NativeTypeName("struct IDiscRecorder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiscRecorder : IDiscRecorder.Interface +public unsafe partial struct IDiscRecorder : IDiscRecorder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscRecorder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IEnumDiscMasterFormats.cs b/sources/Interop/Windows/Windows/um/imapi/IEnumDiscMasterFormats.cs index 01b19a74c2..52387a07e9 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IEnumDiscMasterFormats.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IEnumDiscMasterFormats.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DDF445E1-54BA-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IEnumDiscMasterFormats : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumDiscMasterFormats : IEnumDiscMasterFormats.Interface +public unsafe partial struct IEnumDiscMasterFormats : IEnumDiscMasterFormats.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumDiscMasterFormats)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IEnumDiscRecorders.cs b/sources/Interop/Windows/Windows/um/imapi/IEnumDiscRecorders.cs index 5ca75065b5..d9124cfc1d 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IEnumDiscRecorders.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IEnumDiscRecorders.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B1921E1-54AC-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IEnumDiscRecorders : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumDiscRecorders : IEnumDiscRecorders.Interface +public unsafe partial struct IEnumDiscRecorders : IEnumDiscRecorders.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumDiscRecorders)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IJolietDiscMaster.cs b/sources/Interop/Windows/Windows/um/imapi/IJolietDiscMaster.cs index 14400585fd..e75e1e39e0 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IJolietDiscMaster.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IJolietDiscMaster.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E3BC42CE-4E5C-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IJolietDiscMaster : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IJolietDiscMaster : IJolietDiscMaster.Interface +public unsafe partial struct IJolietDiscMaster : IJolietDiscMaster.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IJolietDiscMaster)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/IRedbookDiscMaster.cs b/sources/Interop/Windows/Windows/um/imapi/IRedbookDiscMaster.cs index ba2158bd17..ece9230101 100644 --- a/sources/Interop/Windows/Windows/um/imapi/IRedbookDiscMaster.cs +++ b/sources/Interop/Windows/Windows/um/imapi/IRedbookDiscMaster.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E3BC42CD-4E5C-11D3-9144-00104BA11C5E")] [NativeTypeName("struct IRedbookDiscMaster : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRedbookDiscMaster : IRedbookDiscMaster.Interface +public unsafe partial struct IRedbookDiscMaster : IRedbookDiscMaster.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRedbookDiscMaster)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi/MSDiscMasterObj.cs b/sources/Interop/Windows/Windows/um/imapi/MSDiscMasterObj.cs index 6eba17e740..a94077e519 100644 --- a/sources/Interop/Windows/Windows/um/imapi/MSDiscMasterObj.cs +++ b/sources/Interop/Windows/Windows/um/imapi/MSDiscMasterObj.cs @@ -3,12 +3,16 @@ // Ported from um/imapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("520CCA63-51A5-11D3-9144-00104BA11C5E")] -public partial struct MSDiscMasterObj +public unsafe partial struct MSDiscMasterObj : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MSDiscMasterObj)); } diff --git a/sources/Interop/Windows/Windows/um/imapi/MSDiscRecorderObj.cs b/sources/Interop/Windows/Windows/um/imapi/MSDiscRecorderObj.cs index b0f08695e7..8c896e5e9f 100644 --- a/sources/Interop/Windows/Windows/um/imapi/MSDiscRecorderObj.cs +++ b/sources/Interop/Windows/Windows/um/imapi/MSDiscRecorderObj.cs @@ -3,12 +3,16 @@ // Ported from um/imapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("520CCA61-51A5-11D3-9144-00104BA11C5E")] -public partial struct MSDiscRecorderObj +public unsafe partial struct MSDiscRecorderObj : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MSDiscRecorderObj)); } diff --git a/sources/Interop/Windows/Windows/um/imapi/MSEnumDiscRecordersObj.cs b/sources/Interop/Windows/Windows/um/imapi/MSEnumDiscRecordersObj.cs index 01b0b5a9c6..d2717a367e 100644 --- a/sources/Interop/Windows/Windows/um/imapi/MSEnumDiscRecordersObj.cs +++ b/sources/Interop/Windows/Windows/um/imapi/MSEnumDiscRecordersObj.cs @@ -3,12 +3,16 @@ // Ported from um/imapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("8A03567A-63CB-4BA8-BAF6-52119816D1EF")] -public partial struct MSEnumDiscRecordersObj +public unsafe partial struct MSEnumDiscRecordersObj : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MSEnumDiscRecordersObj)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2DataEvents.cs b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2DataEvents.cs index 5415f147ca..cdad4e6da5 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2DataEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2DataEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2735413C-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DDiscFormat2DataEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DDiscFormat2DataEvents : DDiscFormat2DataEvents.Interface +public unsafe partial struct DDiscFormat2DataEvents : DDiscFormat2DataEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DDiscFormat2DataEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2EraseEvents.cs b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2EraseEvents.cs index ca2a0051c4..22cf70f036 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2EraseEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2EraseEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2735413A-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DDiscFormat2EraseEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DDiscFormat2EraseEvents : DDiscFormat2EraseEvents.Interface +public unsafe partial struct DDiscFormat2EraseEvents : DDiscFormat2EraseEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DDiscFormat2EraseEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2RawCDEvents.cs b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2RawCDEvents.cs index 0cdf2257d2..21e2bf0b2d 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2RawCDEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2RawCDEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354142-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DDiscFormat2RawCDEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DDiscFormat2RawCDEvents : DDiscFormat2RawCDEvents.Interface +public unsafe partial struct DDiscFormat2RawCDEvents : DDiscFormat2RawCDEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DDiscFormat2RawCDEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2TrackAtOnceEvents.cs b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2TrackAtOnceEvents.cs index 41c95300bb..0fac42a3ae 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2TrackAtOnceEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DDiscFormat2TrackAtOnceEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2735413F-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DDiscFormat2TrackAtOnceEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DDiscFormat2TrackAtOnceEvents : DDiscFormat2TrackAtOnceEvents.Interface +public unsafe partial struct DDiscFormat2TrackAtOnceEvents : DDiscFormat2TrackAtOnceEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DDiscFormat2TrackAtOnceEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/DDiscMaster2Events.cs b/sources/Interop/Windows/Windows/um/imapi2/DDiscMaster2Events.cs index 1acc1887d8..fd8229e660 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DDiscMaster2Events.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DDiscMaster2Events.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354131-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DDiscMaster2Events : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DDiscMaster2Events : DDiscMaster2Events.Interface +public unsafe partial struct DDiscMaster2Events : DDiscMaster2Events.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DDiscMaster2Events)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/DWriteEngine2Events.cs b/sources/Interop/Windows/Windows/um/imapi2/DWriteEngine2Events.cs index 9d48e94714..4c6378a1b3 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/DWriteEngine2Events.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/DWriteEngine2Events.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354137-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct DWriteEngine2Events : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DWriteEngine2Events : DWriteEngine2Events.Interface +public unsafe partial struct DWriteEngine2Events : DWriteEngine2Events.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DWriteEngine2Events)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IBlockRange.cs b/sources/Interop/Windows/Windows/um/imapi2/IBlockRange.cs index beee919f09..b813363811 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IBlockRange.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IBlockRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B507CA25-2204-11DD-966A-001AA01BBC58")] [NativeTypeName("struct IBlockRange : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBlockRange : IBlockRange.Interface +public unsafe partial struct IBlockRange : IBlockRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBlockRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IBlockRangeList.cs b/sources/Interop/Windows/Windows/um/imapi2/IBlockRangeList.cs index c5a055f06f..c683b3a5c2 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IBlockRangeList.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IBlockRangeList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B507CA26-2204-11DD-966A-001AA01BBC58")] [NativeTypeName("struct IBlockRangeList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBlockRangeList : IBlockRangeList.Interface +public unsafe partial struct IBlockRangeList : IBlockRangeList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBlockRangeList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IBurnVerification.cs b/sources/Interop/Windows/Windows/um/imapi2/IBurnVerification.cs index 68afcefd67..2b9463aa80 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IBurnVerification.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IBurnVerification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D2FFD834-958B-426D-8470-2A13879C6A91")] [NativeTypeName("struct IBurnVerification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBurnVerification : IBurnVerification.Interface +public unsafe partial struct IBurnVerification : IBurnVerification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBurnVerification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2.cs index 207e40d6c9..2bdaa68bd2 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354152-8F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDiscFormat2 : IDiscFormat2.Interface +public unsafe partial struct IDiscFormat2 : IDiscFormat2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Data.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Data.cs index b973fd4b59..ca3fa4c227 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Data.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Data.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354153-9F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2Data : IDiscFormat2")] [NativeInheritance("IDiscFormat2")] -public unsafe partial struct IDiscFormat2Data : IDiscFormat2Data.Interface +public unsafe partial struct IDiscFormat2Data : IDiscFormat2Data.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2Data)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2DataEventArgs.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2DataEventArgs.cs index 4805edc4b7..88d40aa62d 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2DataEventArgs.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2DataEventArgs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2735413D-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2DataEventArgs : IWriteEngine2EventArgs")] [NativeInheritance("IWriteEngine2EventArgs")] -public unsafe partial struct IDiscFormat2DataEventArgs : IDiscFormat2DataEventArgs.Interface +public unsafe partial struct IDiscFormat2DataEventArgs : IDiscFormat2DataEventArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2DataEventArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Erase.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Erase.cs index 4a8948aa54..036296cc13 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Erase.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2Erase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354156-8F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2Erase : IDiscFormat2")] [NativeInheritance("IDiscFormat2")] -public unsafe partial struct IDiscFormat2Erase : IDiscFormat2Erase.Interface +public unsafe partial struct IDiscFormat2Erase : IDiscFormat2Erase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2Erase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCD.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCD.cs index d47238effb..49d20d191d 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCD.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCD.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354155-8F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2RawCD : IDiscFormat2")] [NativeInheritance("IDiscFormat2")] -public unsafe partial struct IDiscFormat2RawCD : IDiscFormat2RawCD.Interface +public unsafe partial struct IDiscFormat2RawCD : IDiscFormat2RawCD.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2RawCD)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCDEventArgs.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCDEventArgs.cs index 7cbfdb095c..bcce2405e1 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCDEventArgs.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2RawCDEventArgs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354143-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2RawCDEventArgs : IWriteEngine2EventArgs")] [NativeInheritance("IWriteEngine2EventArgs")] -public unsafe partial struct IDiscFormat2RawCDEventArgs : IDiscFormat2RawCDEventArgs.Interface +public unsafe partial struct IDiscFormat2RawCDEventArgs : IDiscFormat2RawCDEventArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2RawCDEventArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnce.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnce.cs index 2900b70cd4..ace2d80efb 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnce.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnce.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354154-8F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2TrackAtOnce : IDiscFormat2")] [NativeInheritance("IDiscFormat2")] -public unsafe partial struct IDiscFormat2TrackAtOnce : IDiscFormat2TrackAtOnce.Interface +public unsafe partial struct IDiscFormat2TrackAtOnce : IDiscFormat2TrackAtOnce.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2TrackAtOnce)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnceEventArgs.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnceEventArgs.cs index d647772621..3eb85161cc 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnceEventArgs.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscFormat2TrackAtOnceEventArgs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354140-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscFormat2TrackAtOnceEventArgs : IWriteEngine2EventArgs")] [NativeInheritance("IWriteEngine2EventArgs")] -public unsafe partial struct IDiscFormat2TrackAtOnceEventArgs : IDiscFormat2TrackAtOnceEventArgs.Interface +public unsafe partial struct IDiscFormat2TrackAtOnceEventArgs : IDiscFormat2TrackAtOnceEventArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscFormat2TrackAtOnceEventArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscMaster2.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscMaster2.cs index 6b8568cc27..ac75dfe9ff 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscMaster2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscMaster2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354130-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscMaster2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDiscMaster2 : IDiscMaster2.Interface +public unsafe partial struct IDiscMaster2 : IDiscMaster2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscMaster2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2.cs index 5d5115c2ab..6d0a3bd6e2 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354133-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscRecorder2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IDiscRecorder2 : IDiscRecorder2.Interface +public unsafe partial struct IDiscRecorder2 : IDiscRecorder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscRecorder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2Ex.cs b/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2Ex.cs index 5ac9e094f2..d2c7fbecae 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2Ex.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IDiscRecorder2Ex.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354132-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IDiscRecorder2Ex : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDiscRecorder2Ex : IDiscRecorder2Ex.Interface +public unsafe partial struct IDiscRecorder2Ex : IDiscRecorder2Ex.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDiscRecorder2Ex)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IMultisession.cs b/sources/Interop/Windows/Windows/um/imapi2/IMultisession.cs index c432e1140d..7f2a97bcb1 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IMultisession.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IMultisession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354150-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IMultisession : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IMultisession : IMultisession.Interface +public unsafe partial struct IMultisession : IMultisession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMultisession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionRandomWrite.cs b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionRandomWrite.cs index 5a8975538b..dd4d1f24eb 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionRandomWrite.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionRandomWrite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B507CA23-2204-11DD-966A-001AA01BBC58")] [NativeTypeName("struct IMultisessionRandomWrite : IMultisession")] [NativeInheritance("IMultisession")] -public unsafe partial struct IMultisessionRandomWrite : IMultisessionRandomWrite.Interface +public unsafe partial struct IMultisessionRandomWrite : IMultisessionRandomWrite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMultisessionRandomWrite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential.cs b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential.cs index ad8da930e7..47dc9d6d30 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354151-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IMultisessionSequential : IMultisession")] [NativeInheritance("IMultisession")] -public unsafe partial struct IMultisessionSequential : IMultisessionSequential.Interface +public unsafe partial struct IMultisessionSequential : IMultisessionSequential.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMultisessionSequential)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential2.cs b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential2.cs index 6e19a19785..124a831a35 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IMultisessionSequential2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B507CA22-2204-11DD-966A-001AA01BBC58")] [NativeTypeName("struct IMultisessionSequential2 : IMultisessionSequential")] [NativeInheritance("IMultisessionSequential")] -public unsafe partial struct IMultisessionSequential2 : IMultisessionSequential2.Interface +public unsafe partial struct IMultisessionSequential2 : IMultisessionSequential2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMultisessionSequential2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageCreator.cs b/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageCreator.cs index c7e73456d8..73afecca4c 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageCreator.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageCreator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("25983550-9D65-49CE-B335-40630D901227")] [NativeTypeName("struct IRawCDImageCreator : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRawCDImageCreator : IRawCDImageCreator.Interface +public unsafe partial struct IRawCDImageCreator : IRawCDImageCreator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRawCDImageCreator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageTrackInfo.cs b/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageTrackInfo.cs index 08ee9361dd..f69cdf9989 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageTrackInfo.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IRawCDImageTrackInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("25983551-9D65-49CE-B335-40630D901227")] [NativeTypeName("struct IRawCDImageTrackInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IRawCDImageTrackInfo : IRawCDImageTrackInfo.Interface +public unsafe partial struct IRawCDImageTrackInfo : IRawCDImageTrackInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRawCDImageTrackInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IStreamConcatenate.cs b/sources/Interop/Windows/Windows/um/imapi2/IStreamConcatenate.cs index 51bba63b87..7598ae1ba1 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IStreamConcatenate.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IStreamConcatenate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354146-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IStreamConcatenate : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct IStreamConcatenate : IStreamConcatenate.Interface +public unsafe partial struct IStreamConcatenate : IStreamConcatenate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamConcatenate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IStreamInterleave.cs b/sources/Interop/Windows/Windows/um/imapi2/IStreamInterleave.cs index 138eebbdf7..1ef32a0558 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IStreamInterleave.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IStreamInterleave.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354147-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IStreamInterleave : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct IStreamInterleave : IStreamInterleave.Interface +public unsafe partial struct IStreamInterleave : IStreamInterleave.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamInterleave)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IStreamPseudoRandomBased.cs b/sources/Interop/Windows/Windows/um/imapi2/IStreamPseudoRandomBased.cs index fe7c7738fa..7b5272f465 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IStreamPseudoRandomBased.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IStreamPseudoRandomBased.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354145-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IStreamPseudoRandomBased : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct IStreamPseudoRandomBased : IStreamPseudoRandomBased.Interface +public unsafe partial struct IStreamPseudoRandomBased : IStreamPseudoRandomBased.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamPseudoRandomBased)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2.cs b/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2.cs index 7931a937df..aae86806c0 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354135-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IWriteEngine2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWriteEngine2 : IWriteEngine2.Interface +public unsafe partial struct IWriteEngine2 : IWriteEngine2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWriteEngine2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2EventArgs.cs b/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2EventArgs.cs index 3647eea8e8..f1ad471444 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2EventArgs.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IWriteEngine2EventArgs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354136-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IWriteEngine2EventArgs : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWriteEngine2EventArgs : IWriteEngine2EventArgs.Interface +public unsafe partial struct IWriteEngine2EventArgs : IWriteEngine2EventArgs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWriteEngine2EventArgs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/IWriteSpeedDescriptor.cs b/sources/Interop/Windows/Windows/um/imapi2/IWriteSpeedDescriptor.cs index 49d0781725..63e2bf27f6 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/IWriteSpeedDescriptor.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/IWriteSpeedDescriptor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27354144-7F64-5B0F-8F00-5D77AFBE261E")] [NativeTypeName("struct IWriteSpeedDescriptor : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IWriteSpeedDescriptor : IWriteSpeedDescriptor.Interface +public unsafe partial struct IWriteSpeedDescriptor : IWriteSpeedDescriptor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWriteSpeedDescriptor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Data.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Data.cs index 9529e2e670..7334e8a069 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Data.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Data.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2735412A-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscFormat2Data +public unsafe partial struct MsftDiscFormat2Data : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftDiscFormat2Data)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Erase.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Erase.cs index 7f5776b2b4..23bbc0059e 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Erase.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2Erase.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2735412B-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscFormat2Erase +public unsafe partial struct MsftDiscFormat2Erase : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftDiscFormat2Erase)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2RawCD.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2RawCD.cs index ad5bf6e879..579b579e33 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2RawCD.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2RawCD.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354128-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscFormat2RawCD +public unsafe partial struct MsftDiscFormat2RawCD : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftDiscFormat2RawCD)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2TrackAtOnce.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2TrackAtOnce.cs index 1f55613325..ab86c4788c 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2TrackAtOnce.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscFormat2TrackAtOnce.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354129-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscFormat2TrackAtOnce +public unsafe partial struct MsftDiscFormat2TrackAtOnce : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftDiscFormat2TrackAtOnce)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscMaster2.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscMaster2.cs index d57f615f00..d35e10ab76 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscMaster2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscMaster2.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2735412E-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscMaster2 +public unsafe partial struct MsftDiscMaster2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_MsftDiscMaster2)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscRecorder2.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscRecorder2.cs index ba829b12a5..ea5571af62 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftDiscRecorder2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftDiscRecorder2.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2735412D-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftDiscRecorder2 +public unsafe partial struct MsftDiscRecorder2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftDiscRecorder2)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionRandomWrite.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionRandomWrite.cs index 43e7091b60..ab46b9457e 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionRandomWrite.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionRandomWrite.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("B507CA24-2204-11DD-966A-001AA01BBC58")] -public partial struct MsftMultisessionRandomWrite +public unsafe partial struct MsftMultisessionRandomWrite : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftMultisessionRandomWrite)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionSequential.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionSequential.cs index fb1f75fde7..80e3580013 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionSequential.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftMultisessionSequential.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354122-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftMultisessionSequential +public unsafe partial struct MsftMultisessionSequential : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftMultisessionSequential)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftRawCDImageCreator.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftRawCDImageCreator.cs index 9aa5f0033f..512c5558d3 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftRawCDImageCreator.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftRawCDImageCreator.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("25983561-9D65-49CE-B335-40630D901227")] -public partial struct MsftRawCDImageCreator +public unsafe partial struct MsftRawCDImageCreator : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftRawCDImageCreator)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamConcatenate.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamConcatenate.cs index b35c1af62c..a8d17cfdb7 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamConcatenate.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamConcatenate.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354125-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftStreamConcatenate +public unsafe partial struct MsftStreamConcatenate : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftStreamConcatenate)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamInterleave.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamInterleave.cs index 653ba7be06..fbe249b32e 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamInterleave.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamInterleave.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354124-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftStreamInterleave +public unsafe partial struct MsftStreamInterleave : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftStreamInterleave)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamPrng001.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamPrng001.cs index dc527769f6..a8a73b4fb0 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamPrng001.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamPrng001.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354126-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftStreamPrng001 +public unsafe partial struct MsftStreamPrng001 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftStreamPrng001)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamZero.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamZero.cs index e722283b30..8d9e30f122 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftStreamZero.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftStreamZero.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354127-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftStreamZero +public unsafe partial struct MsftStreamZero : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftStreamZero)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftWriteEngine2.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftWriteEngine2.cs index b531213deb..c0fce9781e 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftWriteEngine2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftWriteEngine2.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2735412C-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftWriteEngine2 +public unsafe partial struct MsftWriteEngine2 : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftWriteEngine2)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2/MsftWriteSpeedDescriptor.cs b/sources/Interop/Windows/Windows/um/imapi2/MsftWriteSpeedDescriptor.cs index d6b290db99..6ed6152f70 100644 --- a/sources/Interop/Windows/Windows/um/imapi2/MsftWriteSpeedDescriptor.cs +++ b/sources/Interop/Windows/Windows/um/imapi2/MsftWriteSpeedDescriptor.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("27354123-7F64-5B0F-8F00-5D77AFBE261E")] -public partial struct MsftWriteSpeedDescriptor +public unsafe partial struct MsftWriteSpeedDescriptor : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftWriteSpeedDescriptor)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/BlockRange.cs b/sources/Interop/Windows/Windows/um/imapi2fs/BlockRange.cs index 498984df4b..a50177ab18 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/BlockRange.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/BlockRange.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("B507CA27-2204-11DD-966A-001AA01BBC58")] -public partial struct BlockRange +public unsafe partial struct BlockRange : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_BlockRange)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/BlockRangeList.cs b/sources/Interop/Windows/Windows/um/imapi2fs/BlockRangeList.cs index 0de630db0f..d82fed2f92 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/BlockRangeList.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/BlockRangeList.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("B507CA28-2204-11DD-966A-001AA01BBC58")] -public partial struct BlockRangeList +public unsafe partial struct BlockRangeList : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_BlockRangeList)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/BootOptions.cs b/sources/Interop/Windows/Windows/um/imapi2fs/BootOptions.cs index 93a3dfa0d6..7a697d6d1c 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/BootOptions.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/BootOptions.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FCE-975B-59BE-A960-9A2A262853A5")] -public partial struct BootOptions +public unsafe partial struct BootOptions : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_BootOptions)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageEvents.cs b/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageEvents.cs index 363c7579eb..e9fb9a6d36 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FDF-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct DFileSystemImageEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DFileSystemImageEvents : DFileSystemImageEvents.Interface +public unsafe partial struct DFileSystemImageEvents : DFileSystemImageEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DFileSystemImageEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageImportEvents.cs b/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageImportEvents.cs index d7f82f758d..5c7c3bdb89 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageImportEvents.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/DFileSystemImageImportEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D25C30F9-4087-4366-9E24-E55BE286424B")] [NativeTypeName("struct DFileSystemImageImportEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DFileSystemImageImportEvents : DFileSystemImageImportEvents.Interface +public unsafe partial struct DFileSystemImageImportEvents : DFileSystemImageImportEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DFileSystemImageImportEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/EnumFsiItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/EnumFsiItems.cs index b3a7b26c7b..c262ac0869 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/EnumFsiItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/EnumFsiItems.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FC6-975B-59BE-A960-9A2A262853A5")] -public partial struct EnumFsiItems +public unsafe partial struct EnumFsiItems : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_EnumFsiItems)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/EnumProgressItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/EnumProgressItems.cs index dacde15635..5f183275cc 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/EnumProgressItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/EnumProgressItems.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FCA-975B-59BE-A960-9A2A262853A5")] -public partial struct EnumProgressItems +public unsafe partial struct EnumProgressItems : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_EnumProgressItems)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/FileSystemImageResult.cs b/sources/Interop/Windows/Windows/um/imapi2fs/FileSystemImageResult.cs index 9b7fdb8d9d..e2bbb675d5 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/FileSystemImageResult.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/FileSystemImageResult.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FCC-975B-59BE-A960-9A2A262853A5")] -public partial struct FileSystemImageResult +public unsafe partial struct FileSystemImageResult : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FileSystemImageResult)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/FsiDirectoryItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/FsiDirectoryItem.cs index 5a7e5f8a53..ed5e752f73 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/FsiDirectoryItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/FsiDirectoryItem.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FC8-975B-59BE-A960-9A2A262853A5")] -public partial struct FsiDirectoryItem +public unsafe partial struct FsiDirectoryItem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FsiDirectoryItem)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/FsiFileItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/FsiFileItem.cs index fa5ec46bc0..fe60186e4c 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/FsiFileItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/FsiFileItem.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FC7-975B-59BE-A960-9A2A262853A5")] -public partial struct FsiFileItem +public unsafe partial struct FsiFileItem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FsiFileItem)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/FsiNamedStreams.cs b/sources/Interop/Windows/Windows/um/imapi2fs/FsiNamedStreams.cs index 05c33a76c0..a427f4481b 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/FsiNamedStreams.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/FsiNamedStreams.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("C6B6F8ED-6D19-44B4-B539-B159B793A32D")] -public partial struct FsiNamedStreams +public unsafe partial struct FsiNamedStreams : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FsiNamedStreams)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/FsiStream.cs b/sources/Interop/Windows/Windows/um/imapi2fs/FsiStream.cs index a23148274d..2210a5e089 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/FsiStream.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/FsiStream.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FCD-975B-59BE-A960-9A2A262853A5")] -public partial struct FsiStream +public unsafe partial struct FsiStream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_FsiStream)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IBootOptions.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IBootOptions.cs index a39e75487a..6e66860d97 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IBootOptions.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IBootOptions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD4-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IBootOptions : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IBootOptions : IBootOptions.Interface +public unsafe partial struct IBootOptions : IBootOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBootOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IEnumFsiItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IEnumFsiItems.cs index eec445e3e7..25d566e61e 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IEnumFsiItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IEnumFsiItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FDA-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IEnumFsiItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumFsiItems : IEnumFsiItems.Interface +public unsafe partial struct IEnumFsiItems : IEnumFsiItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumFsiItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IEnumProgressItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IEnumProgressItems.cs index 859f77e37e..df767173f5 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IEnumProgressItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IEnumProgressItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD6-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IEnumProgressItems : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumProgressItems : IEnumProgressItems.Interface +public unsafe partial struct IEnumProgressItems : IEnumProgressItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumProgressItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage.cs index c46cf8ac72..25436fb5a7 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FE1-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IFileSystemImage : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFileSystemImage : IFileSystemImage.Interface +public unsafe partial struct IFileSystemImage : IFileSystemImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage2.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage2.cs index 104a4bd79f..ae1eeaee9a 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D7644B2C-1537-4767-B62F-F1387B02DDFD")] [NativeTypeName("struct IFileSystemImage2 : IFileSystemImage")] [NativeInheritance("IFileSystemImage")] -public unsafe partial struct IFileSystemImage2 : IFileSystemImage2.Interface +public unsafe partial struct IFileSystemImage2 : IFileSystemImage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemImage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage3.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage3.cs index 9e03fdc1c0..85c2fb4be8 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage3.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImage3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7CFF842C-7E97-4807-8304-910DD8F7C051")] [NativeTypeName("struct IFileSystemImage3 : IFileSystemImage2")] [NativeInheritance("IFileSystemImage2")] -public unsafe partial struct IFileSystemImage3 : IFileSystemImage3.Interface +public unsafe partial struct IFileSystemImage3 : IFileSystemImage3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemImage3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult.cs index b7d068383e..d03722d6ee 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD8-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IFileSystemImageResult : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFileSystemImageResult : IFileSystemImageResult.Interface +public unsafe partial struct IFileSystemImageResult : IFileSystemImageResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemImageResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult2.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult2.cs index 42ea0c531a..ffa4164181 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFileSystemImageResult2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B507CA29-2204-11DD-966A-001AA01BBC58")] [NativeTypeName("struct IFileSystemImageResult2 : IFileSystemImageResult")] [NativeInheritance("IFileSystemImageResult")] -public unsafe partial struct IFileSystemImageResult2 : IFileSystemImageResult2.Interface +public unsafe partial struct IFileSystemImageResult2 : IFileSystemImageResult2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSystemImageResult2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem.cs index 39007f5989..abc6e797c9 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FDC-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IFsiDirectoryItem : IFsiItem")] [NativeInheritance("IFsiItem")] -public unsafe partial struct IFsiDirectoryItem : IFsiDirectoryItem.Interface +public unsafe partial struct IFsiDirectoryItem : IFsiDirectoryItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiDirectoryItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem2.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem2.cs index 4a9895a6e8..7c74817c09 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiDirectoryItem2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F7FB4B9B-6D96-4D7B-9115-201B144811EF")] [NativeTypeName("struct IFsiDirectoryItem2 : IFsiDirectoryItem")] [NativeInheritance("IFsiDirectoryItem")] -public unsafe partial struct IFsiDirectoryItem2 : IFsiDirectoryItem2.Interface +public unsafe partial struct IFsiDirectoryItem2 : IFsiDirectoryItem2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiDirectoryItem2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem.cs index 38340f4bee..788dec88da 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FDB-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IFsiFileItem : IFsiItem")] [NativeInheritance("IFsiItem")] -public unsafe partial struct IFsiFileItem : IFsiFileItem.Interface +public unsafe partial struct IFsiFileItem : IFsiFileItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiFileItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem2.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem2.cs index 959782f450..e2a945d31f 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem2.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiFileItem2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("199D0C19-11E1-40EB-8EC2-C8C822A07792")] [NativeTypeName("struct IFsiFileItem2 : IFsiFileItem")] [NativeInheritance("IFsiFileItem")] -public unsafe partial struct IFsiFileItem2 : IFsiFileItem2.Interface +public unsafe partial struct IFsiFileItem2 : IFsiFileItem2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiFileItem2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiItem.cs index 18800b3ff9..7f449535fa 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD9-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IFsiItem : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFsiItem : IFsiItem.Interface +public unsafe partial struct IFsiItem : IFsiItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiNamedStreams.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiNamedStreams.cs index 362c5f130f..04df0704ad 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IFsiNamedStreams.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IFsiNamedStreams.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ED79BA56-5294-4250-8D46-F9AECEE23459")] [NativeTypeName("struct IFsiNamedStreams : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFsiNamedStreams : IFsiNamedStreams.Interface +public unsafe partial struct IFsiNamedStreams : IFsiNamedStreams.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFsiNamedStreams)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IIsoImageManager.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IIsoImageManager.cs index b4625da33d..b9e9143774 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IIsoImageManager.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IIsoImageManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6CA38BE5-FBBB-4800-95A1-A438865EB0D4")] [NativeTypeName("struct IIsoImageManager : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IIsoImageManager : IIsoImageManager.Interface +public unsafe partial struct IIsoImageManager : IIsoImageManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIsoImageManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItem.cs index f55a6f78b0..3361a201b6 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD5-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IProgressItem : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IProgressItem : IProgressItem.Interface +public unsafe partial struct IProgressItem : IProgressItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProgressItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItems.cs index f1699f670a..062d2dd1cd 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/IProgressItems.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C941FD7-975B-59BE-A960-9A2A262853A5")] [NativeTypeName("struct IProgressItems : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IProgressItems : IProgressItems.Interface +public unsafe partial struct IProgressItems : IProgressItems.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProgressItems)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/MsftFileSystemImage.cs b/sources/Interop/Windows/Windows/um/imapi2fs/MsftFileSystemImage.cs index e56db5790a..c2ad00ae7c 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/MsftFileSystemImage.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/MsftFileSystemImage.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FC5-975B-59BE-A960-9A2A262853A5")] -public partial struct MsftFileSystemImage +public unsafe partial struct MsftFileSystemImage : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftFileSystemImage)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/MsftIsoImageManager.cs b/sources/Interop/Windows/Windows/um/imapi2fs/MsftIsoImageManager.cs index 36b889679f..e21eb6d103 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/MsftIsoImageManager.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/MsftIsoImageManager.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("CEEE3B62-8F56-4056-869B-EF16917E3EFC")] -public partial struct MsftIsoImageManager +public unsafe partial struct MsftIsoImageManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_MsftIsoImageManager)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItem.cs b/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItem.cs index b6792080fc..eaa3737c32 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItem.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItem.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FCB-975B-59BE-A960-9A2A262853A5")] -public partial struct ProgressItem +public unsafe partial struct ProgressItem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_ProgressItem)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItems.cs b/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItems.cs index af9a7c007f..35f36c5512 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItems.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/ProgressItems.cs @@ -3,12 +3,16 @@ // Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2C941FC9-975B-59BE-A960-9A2A262853A5")] -public partial struct ProgressItems +public unsafe partial struct ProgressItems : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_ProgressItems)); } diff --git a/sources/Interop/Windows/Windows/um/imapi2fs/Windows.cs b/sources/Interop/Windows/Windows/um/imapi2fs/Windows.cs index ffaf1d4b69..a8cfde1f1b 100644 --- a/sources/Interop/Windows/Windows/um/imapi2fs/Windows.cs +++ b/sources/Interop/Windows/Windows/um/imapi2fs/Windows.cs @@ -19,7 +19,7 @@ public static partial class Windows public const int IMAPI2FS_MinorVersion = 0; [NativeTypeName("#define IMAPI2FS_FullVersion_STR \"1.0\"")] - public static ReadOnlySpan IMAPI2FS_FullVersion_STR => new byte[] { 0x31, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan IMAPI2FS_FullVersion_STR => "1.0"u8; [NativeTypeName("#define IMAPI2FS_FullVersion_WSTR L\"1.0\"")] public const string IMAPI2FS_FullVersion_WSTR = "1.0"; diff --git a/sources/Interop/Windows/Windows/um/immdev/INPUTCONTEXT.cs b/sources/Interop/Windows/Windows/um/immdev/INPUTCONTEXT.cs index 9bda12eb06..486cbe7eda 100644 --- a/sources/Interop/Windows/Windows/um/immdev/INPUTCONTEXT.cs +++ b/sources/Interop/Windows/Windows/um/immdev/INPUTCONTEXT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -91,6 +92,7 @@ public partial struct _cfCandForm_e__FixedBuffer public CANDIDATEFORM e2; public CANDIDATEFORM e3; + [UnscopedRef] public ref CANDIDATEFORM this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -101,6 +103,7 @@ public ref CANDIDATEFORM this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 4); } } diff --git a/sources/Interop/Windows/Windows/um/immdev/TRANSMSGLIST.cs b/sources/Interop/Windows/Windows/um/immdev/TRANSMSGLIST.cs index 890b6a40dd..abbde11bec 100644 --- a/sources/Interop/Windows/Windows/um/immdev/TRANSMSGLIST.cs +++ b/sources/Interop/Windows/Windows/um/immdev/TRANSMSGLIST.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _TransMsg_e__FixedBuffer { public TRANSMSG e0; + [UnscopedRef] public ref TRANSMSG this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref TRANSMSG this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer.cs b/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer.cs index 89c0d68e13..002163461a 100644 --- a/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer.cs +++ b/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInkD2DRenderer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IInkD2DRenderer : IInkD2DRenderer.Interface +public unsafe partial struct IInkD2DRenderer : IInkD2DRenderer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkD2DRenderer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer2.cs b/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer2.cs index 0033a75d69..71bd74848a 100644 --- a/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer2.cs +++ b/sources/Interop/Windows/Windows/um/inkrenderer/IInkD2DRenderer2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0A95DCD9-4578-4B71-B20B-BF664D4BFEEE")] [NativeTypeName("struct IInkD2DRenderer2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInkD2DRenderer2 : IInkD2DRenderer2.Interface +public unsafe partial struct IInkD2DRenderer2 : IInkD2DRenderer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInkD2DRenderer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/inkrenderer/InkD2DRenderer.cs b/sources/Interop/Windows/Windows/um/inkrenderer/InkD2DRenderer.cs index a4b22b5cf2..770d2aceee 100644 --- a/sources/Interop/Windows/Windows/um/inkrenderer/InkD2DRenderer.cs +++ b/sources/Interop/Windows/Windows/um/inkrenderer/InkD2DRenderer.cs @@ -3,12 +3,16 @@ // Ported from um/inkrenderer.h and um/inkrenderer_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("4044E60C-7B01-4671-A97C-04E0210A07A5")] -public partial struct InkD2DRenderer +public unsafe partial struct InkD2DRenderer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_InkD2DRenderer)); } diff --git a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelConfiguration.cs b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelConfiguration.cs index 714a49869e..56dd51ec98 100644 --- a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelConfiguration.cs +++ b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelConfiguration.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInputPanelConfiguration : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IInputPanelConfiguration : IInputPanelConfiguration.Interface +public unsafe partial struct IInputPanelConfiguration : IInputPanelConfiguration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputPanelConfiguration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelInvocationConfiguration.cs b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelInvocationConfiguration.cs index 8f9d1a7b07..b7058f0a41 100644 --- a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelInvocationConfiguration.cs +++ b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/IInputPanelInvocationConfiguration.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IInputPanelInvocationConfiguration : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IInputPanelInvocationConfiguration : IInputPanelInvocationConfiguration.Interface +public unsafe partial struct IInputPanelInvocationConfiguration : IInputPanelInvocationConfiguration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInputPanelInvocationConfiguration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/InputPanelConfiguration.cs b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/InputPanelConfiguration.cs index 67b35696d3..be7b6806d5 100644 --- a/sources/Interop/Windows/Windows/um/inputpanelconfiguration/InputPanelConfiguration.cs +++ b/sources/Interop/Windows/Windows/um/inputpanelconfiguration/InputPanelConfiguration.cs @@ -3,12 +3,16 @@ // Ported from um/inputpanelconfiguration.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("2853ADD3-F096-4C63-A78F-7FA3EA837FB7")] -public partial struct InputPanelConfiguration +public unsafe partial struct InputPanelConfiguration : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_InputPanelConfiguration)); } diff --git a/sources/Interop/Windows/Windows/um/iphlpapi/NET_ADDRESS_INFO.cs b/sources/Interop/Windows/Windows/um/iphlpapi/NET_ADDRESS_INFO.cs index e06ecce7dd..a7697fd7d9 100644 --- a/sources/Interop/Windows/Windows/um/iphlpapi/NET_ADDRESS_INFO.cs +++ b/sources/Interop/Windows/Windows/um/iphlpapi/NET_ADDRESS_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/iphlpapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,42 +20,46 @@ public partial struct NET_ADDRESS_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._NamedAddress_e__Struct NamedAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NamedAddress, 1)); + return ref Anonymous.NamedAddress; } } /// + [UnscopedRef] public ref SOCKADDR_IN Ipv4Address { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Ipv4Address, 1)); + return ref Anonymous.Ipv4Address; } } /// + [UnscopedRef] public ref SOCKADDR_IN6 Ipv6Address { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Ipv6Address, 1)); + return ref Anonymous.Ipv6Address; } } /// + [UnscopedRef] public ref SOCKADDR IpAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.IpAddress, 1)); + return ref Anonymous.IpAddress; } } diff --git a/sources/Interop/Windows/Windows/um/knownfolderpathscom/ISystemDataPathsInterop.cs b/sources/Interop/Windows/Windows/um/knownfolderpathscom/ISystemDataPathsInterop.cs index a18733bf88..81922359da 100644 --- a/sources/Interop/Windows/Windows/um/knownfolderpathscom/ISystemDataPathsInterop.cs +++ b/sources/Interop/Windows/Windows/um/knownfolderpathscom/ISystemDataPathsInterop.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("864D0B26-3A37-4251-9A02-B231198DE060")] [NativeTypeName("struct ISystemDataPathsInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISystemDataPathsInterop : ISystemDataPathsInterop.Interface +public unsafe partial struct ISystemDataPathsInterop : ISystemDataPathsInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISystemDataPathsInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/knownfolderpathscom/IUserDataPathsInterop.cs b/sources/Interop/Windows/Windows/um/knownfolderpathscom/IUserDataPathsInterop.cs index 3b71491a71..7d96878388 100644 --- a/sources/Interop/Windows/Windows/um/knownfolderpathscom/IUserDataPathsInterop.cs +++ b/sources/Interop/Windows/Windows/um/knownfolderpathscom/IUserDataPathsInterop.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F12EF0B5-BEFB-46C9-9EE5-8A0681F13F8C")] [NativeTypeName("struct IUserDataPathsInterop : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUserDataPathsInterop : IUserDataPathsInterop.Interface +public unsafe partial struct IUserDataPathsInterop : IUserDataPathsInterop.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUserDataPathsInterop)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/manipulations/IInertiaProcessor.cs b/sources/Interop/Windows/Windows/um/manipulations/IInertiaProcessor.cs index 095b68f733..705a2e51b1 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/IInertiaProcessor.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/IInertiaProcessor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("18B00C6D-C5EE-41B1-90A9-9D4A929095AD")] [NativeTypeName("struct IInertiaProcessor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInertiaProcessor : IInertiaProcessor.Interface +public unsafe partial struct IInertiaProcessor : IInertiaProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInertiaProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/manipulations/IManipulationProcessor.cs b/sources/Interop/Windows/Windows/um/manipulations/IManipulationProcessor.cs index ee252b002c..dcab43e9f6 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/IManipulationProcessor.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/IManipulationProcessor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A22AC519-8300-48A0-BEF4-F1BE8737DBA4")] [NativeTypeName("struct IManipulationProcessor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IManipulationProcessor : IManipulationProcessor.Interface +public unsafe partial struct IManipulationProcessor : IManipulationProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IManipulationProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/manipulations/InertiaProcessor.cs b/sources/Interop/Windows/Windows/um/manipulations/InertiaProcessor.cs index d8635ec57b..4a8db32606 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/InertiaProcessor.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/InertiaProcessor.cs @@ -3,12 +3,16 @@ // Ported from um/manipulations.h and um/manipulations_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("ABB27087-4CE0-4E58-A0CB-E24DF96814BE")] -public partial struct InertiaProcessor +public unsafe partial struct InertiaProcessor : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_InertiaProcessor)); } diff --git a/sources/Interop/Windows/Windows/um/manipulations/ManipulationProcessor.cs b/sources/Interop/Windows/Windows/um/manipulations/ManipulationProcessor.cs index b24ff16506..5497eb6277 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/ManipulationProcessor.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/ManipulationProcessor.cs @@ -3,12 +3,16 @@ // Ported from um/manipulations.h and um/manipulations_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("597D4FB0-47FD-4AFF-89B9-C6CFAE8CF08E")] -public partial struct ManipulationProcessor +public unsafe partial struct ManipulationProcessor : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_ManipulationProcessor)); } diff --git a/sources/Interop/Windows/Windows/um/manipulations/_IManipulationEvents.cs b/sources/Interop/Windows/Windows/um/manipulations/_IManipulationEvents.cs index f7937a9a69..1b73f4debc 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/_IManipulationEvents.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/_IManipulationEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4F62C8DA-9C53-4B22-93DF-927A862BBB03")] [NativeTypeName("struct _IManipulationEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct _IManipulationEvents : _IManipulationEvents.Interface +public unsafe partial struct _IManipulationEvents : _IManipulationEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID__IManipulationEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IDMOQualityControl.cs b/sources/Interop/Windows/Windows/um/mediaobj/IDMOQualityControl.cs index e89dc04fe0..7dc66468fb 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IDMOQualityControl.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IDMOQualityControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("65ABEA96-CF36-453F-AF8A-705E98F16260")] [NativeTypeName("struct IDMOQualityControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDMOQualityControl : IDMOQualityControl.Interface +public unsafe partial struct IDMOQualityControl : IDMOQualityControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMOQualityControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IDMOVideoOutputOptimizations.cs b/sources/Interop/Windows/Windows/um/mediaobj/IDMOVideoOutputOptimizations.cs index be8a37190a..815323ff34 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IDMOVideoOutputOptimizations.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IDMOVideoOutputOptimizations.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BE8F4F4E-5B16-4D29-B350-7F6B5D9298AC")] [NativeTypeName("struct IDMOVideoOutputOptimizations : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDMOVideoOutputOptimizations : IDMOVideoOutputOptimizations.Interface +public unsafe partial struct IDMOVideoOutputOptimizations : IDMOVideoOutputOptimizations.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDMOVideoOutputOptimizations)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IEnumDMO.cs b/sources/Interop/Windows/Windows/um/mediaobj/IEnumDMO.cs index 1355162ee7..cbe65851e9 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IEnumDMO.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IEnumDMO.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2C3CD98A-2BFA-4A53-9C27-5249BA64BA0F")] [NativeTypeName("struct IEnumDMO : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumDMO : IEnumDMO.Interface +public unsafe partial struct IEnumDMO : IEnumDMO.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumDMO)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IMediaBuffer.cs b/sources/Interop/Windows/Windows/um/mediaobj/IMediaBuffer.cs index 203c46b546..3fa5dd6e77 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IMediaBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IMediaBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("59EFF8B9-938C-4A26-82F2-95CB84CDC837")] [NativeTypeName("struct IMediaBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaBuffer : IMediaBuffer.Interface +public unsafe partial struct IMediaBuffer : IMediaBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IMediaObject.cs b/sources/Interop/Windows/Windows/um/mediaobj/IMediaObject.cs index 6c3f02a93f..f69e5ddce0 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IMediaObject.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IMediaObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8AD0F58-5494-4102-97C5-EC798E59BCF4")] [NativeTypeName("struct IMediaObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaObject : IMediaObject.Interface +public unsafe partial struct IMediaObject : IMediaObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mediaobj/IMediaObjectInPlace.cs b/sources/Interop/Windows/Windows/um/mediaobj/IMediaObjectInPlace.cs index a7ff93f63c..03405c95b9 100644 --- a/sources/Interop/Windows/Windows/um/mediaobj/IMediaObjectInPlace.cs +++ b/sources/Interop/Windows/Windows/um/mediaobj/IMediaObjectInPlace.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("651B9AD0-0FC7-4AA9-9538-D89931010741")] [NativeTypeName("struct IMediaObjectInPlace : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaObjectInPlace : IMediaObjectInPlace.Interface +public unsafe partial struct IMediaObjectInPlace : IMediaObjectInPlace.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaObjectInPlace)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/memoryapi/WIN32_MEMORY_REGION_INFORMATION.cs b/sources/Interop/Windows/Windows/um/memoryapi/WIN32_MEMORY_REGION_INFORMATION.cs index de8b34a21b..f40e68e3bc 100644 --- a/sources/Interop/Windows/Windows/um/memoryapi/WIN32_MEMORY_REGION_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/memoryapi/WIN32_MEMORY_REGION_INFORMATION.cs @@ -3,6 +3,7 @@ // Ported from um/memoryapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -34,12 +35,13 @@ public unsafe partial struct WIN32_MEMORY_REGION_INFORMATION public nuint CommitSize; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/mfapi/DIRTYRECT_INFO.cs b/sources/Interop/Windows/Windows/um/mfapi/DIRTYRECT_INFO.cs index 3e02aa4e3a..608ddaae76 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/DIRTYRECT_INFO.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/DIRTYRECT_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,6 +28,7 @@ public partial struct _DirtyRects_e__FixedBuffer { public RECT e0; + [UnscopedRef] public ref RECT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref RECT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFASYNCRESULT.cs b/sources/Interop/Windows/Windows/um/mfapi/MFASYNCRESULT.cs index 6ea3f081c5..d46156fc54 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/MFASYNCRESULT.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/MFASYNCRESULT.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000000-0000-0000-0000-000000000000")] [NativeTypeName("struct tagMFASYNCRESULT : IMFAsyncResult")] [NativeInheritance("IMFAsyncResult")] -public unsafe partial struct MFASYNCRESULT : MFASYNCRESULT.Interface +public unsafe partial struct MFASYNCRESULT : MFASYNCRESULT.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_tagMFASYNCRESULT)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFCameraExtrinsics.cs b/sources/Interop/Windows/Windows/um/mfapi/MFCameraExtrinsics.cs index 4ee190da3c..5b94669554 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/MFCameraExtrinsics.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/MFCameraExtrinsics.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -27,6 +28,7 @@ public partial struct _CalibratedTransforms_e__FixedBuffer { public MFCameraExtrinsic_CalibratedTransform e0; + [UnscopedRef] public ref MFCameraExtrinsic_CalibratedTransform this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref MFCameraExtrinsic_CalibratedTransform this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFPinholeCameraIntrinsics.cs b/sources/Interop/Windows/Windows/um/mfapi/MFPinholeCameraIntrinsics.cs index 201db2c8e4..8863189bc0 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/MFPinholeCameraIntrinsics.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/MFPinholeCameraIntrinsics.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -27,6 +28,7 @@ public partial struct _IntrinsicModels_e__FixedBuffer { public MFPinholeCameraIntrinsic_IntrinsicModel e0; + [UnscopedRef] public ref MFPinholeCameraIntrinsic_IntrinsicModel this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref MFPinholeCameraIntrinsic_IntrinsicModel this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfapi/MOVEREGION_INFO.cs b/sources/Interop/Windows/Windows/um/mfapi/MOVEREGION_INFO.cs index cfc5f6074a..78eed41d92 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/MOVEREGION_INFO.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/MOVEREGION_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,6 +28,7 @@ public partial struct _MoveRegions_e__FixedBuffer { public MOVE_RECT e0; + [UnscopedRef] public ref MOVE_RECT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref MOVE_RECT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngine.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngine.cs index fbd6169491..32df0e5979 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngine.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngine.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureEngine : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureEngine : IMFCaptureEngine.Interface +public unsafe partial struct IMFCaptureEngine : IMFCaptureEngine.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureEngine)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineClassFactory.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineClassFactory.cs index 9a94b49dca..9d4f2b8cce 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureEngineClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureEngineClassFactory : IMFCaptureEngineClassFactory.Interface +public unsafe partial struct IMFCaptureEngineClassFactory : IMFCaptureEngineClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureEngineClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnEventCallback.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnEventCallback.cs index e9f16466a1..3cc5a7f58b 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnEventCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnEventCallback.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureEngineOnEventCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureEngineOnEventCallback : IMFCaptureEngineOnEventCallback.Interface +public unsafe partial struct IMFCaptureEngineOnEventCallback : IMFCaptureEngineOnEventCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureEngineOnEventCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback.cs index c0453b649a..8bdd047bad 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureEngineOnSampleCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureEngineOnSampleCallback : IMFCaptureEngineOnSampleCallback.Interface +public unsafe partial struct IMFCaptureEngineOnSampleCallback : IMFCaptureEngineOnSampleCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureEngineOnSampleCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback2.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback2.cs index b2639ea624..245c4d12f0 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback2.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureEngineOnSampleCallback2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureEngineOnSampleCallback2 : IMFCaptureEngineOnSampleCallback")] [NativeInheritance("IMFCaptureEngineOnSampleCallback")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFCaptureEngineOnSampleCallback2 : IMFCaptureEngineOnSampleCallback2.Interface +public unsafe partial struct IMFCaptureEngineOnSampleCallback2 : IMFCaptureEngineOnSampleCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureEngineOnSampleCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePhotoSink.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePhotoSink.cs index 4ca7fbcd28..fadf8621ba 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePhotoSink.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePhotoSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCapturePhotoSink : IMFCaptureSink")] [NativeInheritance("IMFCaptureSink")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCapturePhotoSink : IMFCapturePhotoSink.Interface +public unsafe partial struct IMFCapturePhotoSink : IMFCapturePhotoSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCapturePhotoSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePreviewSink.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePreviewSink.cs index dc967eeb57..82af07916a 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePreviewSink.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCapturePreviewSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCapturePreviewSink : IMFCaptureSink")] [NativeInheritance("IMFCaptureSink")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCapturePreviewSink : IMFCapturePreviewSink.Interface +public unsafe partial struct IMFCapturePreviewSink : IMFCapturePreviewSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCapturePreviewSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureRecordSink.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureRecordSink.cs index 9bda839ffa..c9ca22204b 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureRecordSink.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureRecordSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureRecordSink : IMFCaptureSink")] [NativeInheritance("IMFCaptureSink")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureRecordSink : IMFCaptureRecordSink.Interface +public unsafe partial struct IMFCaptureRecordSink : IMFCaptureRecordSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureRecordSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink.cs index d734364ac5..ad60ce9f35 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureSink : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureSink : IMFCaptureSink.Interface +public unsafe partial struct IMFCaptureSink : IMFCaptureSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink2.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink2.cs index cc5ab7d1c4..4b65e31ca2 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink2.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSink2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureSink2 : IMFCaptureSink")] [NativeInheritance("IMFCaptureSink")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFCaptureSink2 : IMFCaptureSink2.Interface +public unsafe partial struct IMFCaptureSink2 : IMFCaptureSink2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureSink2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSource.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSource.cs index 73876f1023..05f4e52e33 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSource.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/IMFCaptureSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCaptureSource : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFCaptureSource : IMFCaptureSource.Interface +public unsafe partial struct IMFCaptureSource : IMFCaptureSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCaptureSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModule.cs b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModule.cs index 0d61b26170..9840fd1d83 100644 --- a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModule.cs +++ b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModule.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptionModule : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFContentDecryptionModule : IMFContentDecryptionModule.Interface +public unsafe partial struct IMFContentDecryptionModule : IMFContentDecryptionModule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptionModule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleAccess.cs b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleAccess.cs index 96630b93a5..dfeea9c3a5 100644 --- a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleAccess.cs +++ b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleAccess.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptionModuleAccess : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFContentDecryptionModuleAccess : IMFContentDecryptionModuleAccess.Interface +public unsafe partial struct IMFContentDecryptionModuleAccess : IMFContentDecryptionModuleAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptionModuleAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleFactory.cs b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleFactory.cs index 53ab462222..0a3db1d171 100644 --- a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptionModuleFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFContentDecryptionModuleFactory : IMFContentDecryptionModuleFactory.Interface +public unsafe partial struct IMFContentDecryptionModuleFactory : IMFContentDecryptionModuleFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptionModuleFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSession.cs b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSession.cs index fb45321260..2ece5b4198 100644 --- a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSession.cs +++ b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSession.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptionModuleSession : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFContentDecryptionModuleSession : IMFContentDecryptionModuleSession.Interface +public unsafe partial struct IMFContentDecryptionModuleSession : IMFContentDecryptionModuleSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptionModuleSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSessionCallbacks.cs b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSessionCallbacks.cs index e34c4a7beb..f816d74f5c 100644 --- a/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSessionCallbacks.cs +++ b/sources/Interop/Windows/Windows/um/mfcontentdecryptionmodule/IMFContentDecryptionModuleSessionCallbacks.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptionModuleSessionCallbacks : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFContentDecryptionModuleSessionCallbacks : IMFContentDecryptionModuleSessionCallbacks.Interface +public unsafe partial struct IMFContentDecryptionModuleSessionCallbacks : IMFContentDecryptionModuleSessionCallbacks.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptionModuleSessionCallbacks)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFAudioPolicy.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFAudioPolicy.cs index c721202fc5..ba1d5ee630 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFAudioPolicy.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFAudioPolicy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A0638C2B-6465-4395-9AE7-A321A9FD2856")] [NativeTypeName("struct IMFAudioPolicy : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFAudioPolicy : IMFAudioPolicy.Interface +public unsafe partial struct IMFAudioPolicy : IMFAudioPolicy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAudioPolicy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFAudioStreamVolume.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFAudioStreamVolume.cs index e9fd126567..3be9e6053d 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFAudioStreamVolume.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFAudioStreamVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("76B1BBDB-4EC8-4F36-B106-70A9316DF593")] [NativeTypeName("struct IMFAudioStreamVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFAudioStreamVolume : IMFAudioStreamVolume.Interface +public unsafe partial struct IMFAudioStreamVolume : IMFAudioStreamVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAudioStreamVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamBuffering.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamBuffering.cs index e4e410890e..5afba8359d 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamBuffering.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamBuffering.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6D66D782-1D4F-4DB7-8C63-CB8C77F1EF5E")] [NativeTypeName("struct IMFByteStreamBuffering : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFByteStreamBuffering : IMFByteStreamBuffering.Interface +public unsafe partial struct IMFByteStreamBuffering : IMFByteStreamBuffering.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamBuffering)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl.cs index bfdd24dcbc..f07f394bf9 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F5042EA4-7A96-4A75-AA7B-2BE1EF7F88D5")] [NativeTypeName("struct IMFByteStreamCacheControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFByteStreamCacheControl : IMFByteStreamCacheControl.Interface +public unsafe partial struct IMFByteStreamCacheControl : IMFByteStreamCacheControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamCacheControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl2.cs index 649b2f81b3..39a598c61b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamCacheControl2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFByteStreamCacheControl2 : IMFByteStreamCacheControl")] [NativeInheritance("IMFByteStreamCacheControl")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFByteStreamCacheControl2 : IMFByteStreamCacheControl2.Interface +public unsafe partial struct IMFByteStreamCacheControl2 : IMFByteStreamCacheControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamCacheControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamHandler.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamHandler.cs index 90274c2648..67582c10a9 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamHandler.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB420AA4-765B-4A1F-91FE-D6A8A143924C")] [NativeTypeName("struct IMFByteStreamHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFByteStreamHandler : IMFByteStreamHandler.Interface +public unsafe partial struct IMFByteStreamHandler : IMFByteStreamHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamTimeSeek.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamTimeSeek.cs index 415cbf72e0..63ccbc8cc4 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamTimeSeek.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFByteStreamTimeSeek.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFByteStreamTimeSeek : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFByteStreamTimeSeek : IMFByteStreamTimeSeek.Interface +public unsafe partial struct IMFByteStreamTimeSeek : IMFByteStreamTimeSeek.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamTimeSeek)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFCapturePhotoConfirmation.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFCapturePhotoConfirmation.cs index bba01a31e7..b36e43fbf0 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFCapturePhotoConfirmation.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFCapturePhotoConfirmation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("19F68549-CA8A-4706-A4EF-481DBC95E12C")] [NativeTypeName("struct IMFCapturePhotoConfirmation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFCapturePhotoConfirmation : IMFCapturePhotoConfirmation.Interface +public unsafe partial struct IMFCapturePhotoConfirmation : IMFCapturePhotoConfirmation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCapturePhotoConfirmation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFClock.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFClock.cs index 16a0249181..c1d11da162 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFClock.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFClock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2EB1E945-18B8-4139-9B1A-D5D584818530")] [NativeTypeName("struct IMFClock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFClock : IMFClock.Interface +public unsafe partial struct IMFClock : IMFClock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFClock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFClockConsumer.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFClockConsumer.cs index a00dbf773f..9538ecd10f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFClockConsumer.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFClockConsumer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFClockConsumer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFClockConsumer : IMFClockConsumer.Interface +public unsafe partial struct IMFClockConsumer : IMFClockConsumer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFClockConsumer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFClockStateSink.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFClockStateSink.cs index cf247dfa9d..e5485de541 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFClockStateSink.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFClockStateSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F6696E82-74F7-4F3D-A178-8A5E09C3659F")] [NativeTypeName("struct IMFClockStateSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFClockStateSink : IMFClockStateSink.Interface +public unsafe partial struct IMFClockStateSink : IMFClockStateSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFClockStateSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFContentDecryptorContext.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFContentDecryptorContext.cs index b70f32ca1c..2ab2ea1045 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFContentDecryptorContext.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFContentDecryptorContext.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentDecryptorContext : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFContentDecryptorContext : IMFContentDecryptorContext.Interface +public unsafe partial struct IMFContentDecryptorContext : IMFContentDecryptorContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentDecryptorContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFContentEnabler.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFContentEnabler.cs index 749ec4d80b..43d2f1bd3f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFContentEnabler.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFContentEnabler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D3C4EF59-49CE-4381-9071-D5BCD044C770")] [NativeTypeName("struct IMFContentEnabler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFContentEnabler : IMFContentEnabler.Interface +public unsafe partial struct IMFContentEnabler : IMFContentEnabler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentEnabler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionDevice.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionDevice.cs index fde09b798f..8a0a2cca07 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionDevice.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFContentProtectionDevice : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFContentProtectionDevice : IMFContentProtectionDevice.Interface +public unsafe partial struct IMFContentProtectionDevice : IMFContentProtectionDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentProtectionDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionManager.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionManager.cs index dfe4d806eb..6c15158b90 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionManager.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFContentProtectionManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ACF92459-6A61-42BD-B57C-B43E51203CB0")] [NativeTypeName("struct IMFContentProtectionManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFContentProtectionManager : IMFContentProtectionManager.Interface +public unsafe partial struct IMFContentProtectionManager : IMFContentProtectionManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFContentProtectionManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFDXGIDeviceManagerSource.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFDXGIDeviceManagerSource.cs index 9f92a4857b..06ef811971 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFDXGIDeviceManagerSource.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFDXGIDeviceManagerSource.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFDXGIDeviceManagerSource : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFDXGIDeviceManagerSource : IMFDXGIDeviceManagerSource.Interface +public unsafe partial struct IMFDXGIDeviceManagerSource : IMFDXGIDeviceManagerSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDXGIDeviceManagerSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraControl.cs index e3d3cb5388..cdabac8751 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("38E33520-FCA1-4845-A27A-68B7C6AB3789")] [NativeTypeName("struct IMFExtendedCameraControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraControl : IMFExtendedCameraControl.Interface +public unsafe partial struct IMFExtendedCameraControl : IMFExtendedCameraControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraController.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraController.cs index 0e9aac0577..34195ff9cb 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraController.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraController.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B91EBFEE-CA03-4AF4-8A82-A31752F4A0FC")] [NativeTypeName("struct IMFExtendedCameraController : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraController : IMFExtendedCameraController.Interface +public unsafe partial struct IMFExtendedCameraController : IMFExtendedCameraController.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraController)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicModel.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicModel.cs index 9b15d1c14e..ca852ad754 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicModel.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicModel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5C595E64-4630-4231-855A-12842F733245")] [NativeTypeName("struct IMFExtendedCameraIntrinsicModel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraIntrinsicModel : IMFExtendedCameraIntrinsicModel.Interface +public unsafe partial struct IMFExtendedCameraIntrinsicModel : IMFExtendedCameraIntrinsicModel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraIntrinsicModel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsics.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsics.cs index 773edd043b..74dea562b4 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsics.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsics.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("687F6DAC-6987-4750-A16A-734D1E7A10FE")] [NativeTypeName("struct IMFExtendedCameraIntrinsics : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraIntrinsics : IMFExtendedCameraIntrinsics.Interface +public unsafe partial struct IMFExtendedCameraIntrinsics : IMFExtendedCameraIntrinsics.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraIntrinsics)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModel6KT.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModel6KT.cs index 1d1e42aed4..7c362bfd5c 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModel6KT.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModel6KT.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("74C2653B-5F55-4EB1-9F0F-18B8F68B7D3D")] [NativeTypeName("struct IMFExtendedCameraIntrinsicsDistortionModel6KT : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraIntrinsicsDistortionModel6KT : IMFExtendedCameraIntrinsicsDistortionModel6KT.Interface +public unsafe partial struct IMFExtendedCameraIntrinsicsDistortionModel6KT : IMFExtendedCameraIntrinsicsDistortionModel6KT.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraIntrinsicsDistortionModel6KT)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModelArcTan.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModelArcTan.cs index d7e6288838..31943bbd0b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModelArcTan.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFExtendedCameraIntrinsicsDistortionModelArcTan.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("812D5F95-B572-45DC-BAFC-AE24199DDDA8")] [NativeTypeName("struct IMFExtendedCameraIntrinsicsDistortionModelArcTan : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedCameraIntrinsicsDistortionModelArcTan : IMFExtendedCameraIntrinsicsDistortionModelArcTan.Interface +public unsafe partial struct IMFExtendedCameraIntrinsicsDistortionModelArcTan : IMFExtendedCameraIntrinsicsDistortionModelArcTan.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedCameraIntrinsicsDistortionModelArcTan)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFFieldOfUseMFTUnlock.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFFieldOfUseMFTUnlock.cs index fde223e5d5..490174abe0 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFFieldOfUseMFTUnlock.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFFieldOfUseMFTUnlock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("508E71D3-EC66-4FC3-8775-B4B9ED6BA847")] [NativeTypeName("struct IMFFieldOfUseMFTUnlock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFFieldOfUseMFTUnlock : IMFFieldOfUseMFTUnlock.Interface +public unsafe partial struct IMFFieldOfUseMFTUnlock : IMFFieldOfUseMFTUnlock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFFieldOfUseMFTUnlock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFFinalizableMediaSink.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFFinalizableMediaSink.cs index 078a983d46..945fb69e48 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFFinalizableMediaSink.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFFinalizableMediaSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EAECB74A-9A50-42CE-9541-6A7F57AA4AD7")] [NativeTypeName("struct IMFFinalizableMediaSink : IMFMediaSink")] [NativeInheritance("IMFMediaSink")] -public unsafe partial struct IMFFinalizableMediaSink : IMFFinalizableMediaSink.Interface +public unsafe partial struct IMFFinalizableMediaSink : IMFFinalizableMediaSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFFinalizableMediaSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFGetService.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFGetService.cs index 8af466ef31..00cc203100 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFGetService.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFGetService.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FA993888-4383-415A-A930-DD472A8CF6F7")] [NativeTypeName("struct IMFGetService : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFGetService : IMFGetService.Interface +public unsafe partial struct IMFGetService : IMFGetService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFGetService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadRequest.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadRequest.cs index 75cc02d5e1..e91d7cc07e 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadRequest.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadRequest.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFHttpDownloadRequest : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFHttpDownloadRequest : IMFHttpDownloadRequest.Interface +public unsafe partial struct IMFHttpDownloadRequest : IMFHttpDownloadRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFHttpDownloadRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSession.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSession.cs index c9379e1113..d1bda5a2ed 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSession.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSession.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFHttpDownloadSession : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFHttpDownloadSession : IMFHttpDownloadSession.Interface +public unsafe partial struct IMFHttpDownloadSession : IMFHttpDownloadSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFHttpDownloadSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSessionProvider.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSessionProvider.cs index ecdb2eaaa7..cdf0002926 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSessionProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFHttpDownloadSessionProvider.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFHttpDownloadSessionProvider : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFHttpDownloadSessionProvider : IMFHttpDownloadSessionProvider.Interface +public unsafe partial struct IMFHttpDownloadSessionProvider : IMFHttpDownloadSessionProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFHttpDownloadSessionProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFInputTrustAuthority.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFInputTrustAuthority.cs index 875207f50b..1159843d6b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFInputTrustAuthority.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFInputTrustAuthority.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D19F8E98-B126-4446-890C-5DCB7AD71453")] [NativeTypeName("struct IMFInputTrustAuthority : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFInputTrustAuthority : IMFInputTrustAuthority.Interface +public unsafe partial struct IMFInputTrustAuthority : IMFInputTrustAuthority.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFInputTrustAuthority)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFLocalMFTRegistration.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFLocalMFTRegistration.cs index 8c0bda4f04..9a764adcbb 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFLocalMFTRegistration.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFLocalMFTRegistration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("149C4D73-B4BE-4F8D-8B87-079E926B6ADD")] [NativeTypeName("struct IMFLocalMFTRegistration : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFLocalMFTRegistration : IMFLocalMFTRegistration.Interface +public unsafe partial struct IMFLocalMFTRegistration : IMFLocalMFTRegistration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFLocalMFTRegistration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSession.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSession.cs index db590234af..a9109a7958 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSession.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("90377834-21D0-4DEE-8214-BA2E3E6C1127")] [NativeTypeName("struct IMFMediaSession : IMFMediaEventGenerator")] [NativeInheritance("IMFMediaEventGenerator")] -public unsafe partial struct IMFMediaSession : IMFMediaSession.Interface +public unsafe partial struct IMFMediaSession : IMFMediaSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSink.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSink.cs index 9a19224cbf..36be02a84c 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSink.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6EF2A660-47C0-4666-B13D-CBB717F2FA2C")] [NativeTypeName("struct IMFMediaSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaSink : IMFMediaSink.Interface +public unsafe partial struct IMFMediaSink : IMFMediaSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSinkPreroll.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSinkPreroll.cs index 72109c68fb..4d23884d46 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSinkPreroll.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSinkPreroll.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5DFD4B2A-7674-4110-A4E6-8A68FD5F3688")] [NativeTypeName("struct IMFMediaSinkPreroll : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaSinkPreroll : IMFMediaSinkPreroll.Interface +public unsafe partial struct IMFMediaSinkPreroll : IMFMediaSinkPreroll.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSinkPreroll)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource.cs index 583157a6cf..5da4aab7ce 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("279A808D-AEC7-40C8-9C6B-A6B492C78A66")] [NativeTypeName("struct IMFMediaSource : IMFMediaEventGenerator")] [NativeInheritance("IMFMediaEventGenerator")] -public unsafe partial struct IMFMediaSource : IMFMediaSource.Interface +public unsafe partial struct IMFMediaSource : IMFMediaSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource2.cs index 98c0587986..4618ab35a3 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSource2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FBB03414-D13B-4786-8319-5AC51FC0A136")] [NativeTypeName("struct IMFMediaSource2 : IMFMediaSourceEx")] [NativeInheritance("IMFMediaSourceEx")] -public unsafe partial struct IMFMediaSource2 : IMFMediaSource2.Interface +public unsafe partial struct IMFMediaSource2 : IMFMediaSource2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSource2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceEx.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceEx.cs index e649a12c1a..3d51294fb9 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceEx.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaSourceEx : IMFMediaSource")] [NativeInheritance("IMFMediaSource")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaSourceEx : IMFMediaSourceEx.Interface +public unsafe partial struct IMFMediaSourceEx : IMFMediaSourceEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourceEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourcePresentationProvider.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourcePresentationProvider.cs index 41dbf54f18..b39b4cdf35 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourcePresentationProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourcePresentationProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E1D600A-C9F3-442D-8C51-A42D2D49452F")] [NativeTypeName("struct IMFMediaSourcePresentationProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaSourcePresentationProvider : IMFMediaSourcePresentationProvider.Interface +public unsafe partial struct IMFMediaSourcePresentationProvider : IMFMediaSourcePresentationProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourcePresentationProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceTopologyProvider.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceTopologyProvider.cs index 57b214df30..a3a9c11f2d 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceTopologyProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaSourceTopologyProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E1D6009-C9F3-442D-8C51-A42D2D49452F")] [NativeTypeName("struct IMFMediaSourceTopologyProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaSourceTopologyProvider : IMFMediaSourceTopologyProvider.Interface +public unsafe partial struct IMFMediaSourceTopologyProvider : IMFMediaSourceTopologyProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourceTopologyProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream.cs index 3b663b1deb..7105e2dab6 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D182108F-4EC6-443F-AA42-A71106EC825F")] [NativeTypeName("struct IMFMediaStream : IMFMediaEventGenerator")] [NativeInheritance("IMFMediaEventGenerator")] -public unsafe partial struct IMFMediaStream : IMFMediaStream.Interface +public unsafe partial struct IMFMediaStream : IMFMediaStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream2.cs index 9fd50abe29..9dfacb48aa 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStream2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C5BC37D6-75C7-46A1-A132-81B5F723C20F")] [NativeTypeName("struct IMFMediaStream2 : IMFMediaStream")] [NativeInheritance("IMFMediaStream")] -public unsafe partial struct IMFMediaStream2 : IMFMediaStream2.Interface +public unsafe partial struct IMFMediaStream2 : IMFMediaStream2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaStream2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStreamSourceSampleRequest.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStreamSourceSampleRequest.cs index fcd894e714..d4e0ff3f85 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStreamSourceSampleRequest.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaStreamSourceSampleRequest.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaStreamSourceSampleRequest : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaStreamSourceSampleRequest : IMFMediaStreamSourceSampleRequest.Interface +public unsafe partial struct IMFMediaStreamSourceSampleRequest : IMFMediaStreamSourceSampleRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaStreamSourceSampleRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaTypeHandler.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaTypeHandler.cs index bc473c7a4a..a772d47f72 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMediaTypeHandler.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMediaTypeHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E93DCF6C-4B07-4E1E-8123-AA16ED6EADF5")] [NativeTypeName("struct IMFMediaTypeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaTypeHandler : IMFMediaTypeHandler.Interface +public unsafe partial struct IMFMediaTypeHandler : IMFMediaTypeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaTypeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMetadata.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMetadata.cs index a50b7a10ab..37e5eb5334 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMetadata.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMetadata.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F88CFB8C-EF16-4991-B450-CB8C69E51704")] [NativeTypeName("struct IMFMetadata : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMetadata : IMFMetadata.Interface +public unsafe partial struct IMFMetadata : IMFMetadata.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMetadata)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFMetadataProvider.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFMetadataProvider.cs index b61f92703f..6829fc9a8b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFMetadataProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFMetadataProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56181D2D-E221-4ADB-B1C8-3CEE6A53F76F")] [NativeTypeName("struct IMFMetadataProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMetadataProvider : IMFMetadataProvider.Interface +public unsafe partial struct IMFMetadataProvider : IMFMetadataProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMetadataProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredential.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredential.cs index 3464939843..d852d65b16 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredential.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredential.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B87EF6A-7ED8-434F-BA0E-184FAC1628D1")] [NativeTypeName("struct IMFNetCredential : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetCredential : IMFNetCredential.Interface +public unsafe partial struct IMFNetCredential : IMFNetCredential.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetCredential)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialCache.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialCache.cs index f84808c4ef..20e6f021af 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialCache.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B87EF6C-7ED8-434F-BA0E-184FAC1628D1")] [NativeTypeName("struct IMFNetCredentialCache : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetCredentialCache : IMFNetCredentialCache.Interface +public unsafe partial struct IMFNetCredentialCache : IMFNetCredentialCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetCredentialCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialManager.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialManager.cs index a26c70e2cd..d7b145695e 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialManager.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCredentialManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B87EF6B-7ED8-434F-BA0E-184FAC1628D1")] [NativeTypeName("struct IMFNetCredentialManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetCredentialManager : IMFNetCredentialManager.Interface +public unsafe partial struct IMFNetCredentialManager : IMFNetCredentialManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetCredentialManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCrossOriginSupport.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCrossOriginSupport.cs index 0866f55154..d6ee8205dd 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetCrossOriginSupport.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetCrossOriginSupport.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFNetCrossOriginSupport : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFNetCrossOriginSupport : IMFNetCrossOriginSupport.Interface +public unsafe partial struct IMFNetCrossOriginSupport : IMFNetCrossOriginSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetCrossOriginSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocator.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocator.cs index 71bdff2606..59e38d80a1 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocator.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E9CD0383-A268-4BB4-82DE-658D53574D41")] [NativeTypeName("struct IMFNetProxyLocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetProxyLocator : IMFNetProxyLocator.Interface +public unsafe partial struct IMFNetProxyLocator : IMFNetProxyLocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetProxyLocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocatorFactory.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocatorFactory.cs index 6dca105772..247b67aefc 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocatorFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetProxyLocatorFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E9CD0384-A268-4BB4-82DE-658D53574D41")] [NativeTypeName("struct IMFNetProxyLocatorFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetProxyLocatorFactory : IMFNetProxyLocatorFactory.Interface +public unsafe partial struct IMFNetProxyLocatorFactory : IMFNetProxyLocatorFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetProxyLocatorFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetResourceFilter.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetResourceFilter.cs index aeae38c452..fdd6ee49ba 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetResourceFilter.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetResourceFilter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFNetResourceFilter : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFNetResourceFilter : IMFNetResourceFilter.Interface +public unsafe partial struct IMFNetResourceFilter : IMFNetResourceFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetResourceFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFNetSchemeHandlerConfig.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFNetSchemeHandlerConfig.cs index 7ba891c0e2..0ee2e60546 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFNetSchemeHandlerConfig.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFNetSchemeHandlerConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BE19E73-C9BF-468A-AC5A-A5E8653BEC87")] [NativeTypeName("struct IMFNetSchemeHandlerConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFNetSchemeHandlerConfig : IMFNetSchemeHandlerConfig.Interface +public unsafe partial struct IMFNetSchemeHandlerConfig : IMFNetSchemeHandlerConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFNetSchemeHandlerConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFObjectReferenceStream.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFObjectReferenceStream.cs index 95e2dca8c0..e04389dbb8 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFObjectReferenceStream.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFObjectReferenceStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("09EF5BE3-C8A7-469E-8B70-73BF25BB193F")] [NativeTypeName("struct IMFObjectReferenceStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFObjectReferenceStream : IMFObjectReferenceStream.Interface +public unsafe partial struct IMFObjectReferenceStream : IMFObjectReferenceStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFObjectReferenceStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputPolicy.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputPolicy.cs index be71138c8d..5048233371 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputPolicy.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputPolicy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7F00F10A-DAED-41AF-AB26-5FDFA4DFBA3C")] [NativeTypeName("struct IMFOutputPolicy : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFOutputPolicy : IMFOutputPolicy.Interface +public unsafe partial struct IMFOutputPolicy : IMFOutputPolicy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFOutputPolicy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputSchema.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputSchema.cs index 7eb89f633b..4fa0a71248 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputSchema.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputSchema.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BE0FC5B-ABD9-44FB-A5C8-F50136E71599")] [NativeTypeName("struct IMFOutputSchema : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFOutputSchema : IMFOutputSchema.Interface +public unsafe partial struct IMFOutputSchema : IMFOutputSchema.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFOutputSchema)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputTrustAuthority.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputTrustAuthority.cs index ca352fa0ea..16d085f6ef 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFOutputTrustAuthority.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFOutputTrustAuthority.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D19F8E94-B126-4446-890C-5DCB7AD71453")] [NativeTypeName("struct IMFOutputTrustAuthority : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFOutputTrustAuthority : IMFOutputTrustAuthority.Interface +public unsafe partial struct IMFOutputTrustAuthority : IMFOutputTrustAuthority.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFOutputTrustAuthority)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClient.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClient.cs index 924808f71f..c5954f1807 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClient.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6C4E655D-EAD8-4421-B6B9-54DCDBBDF820")] [NativeTypeName("struct IMFPMPClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMPClient : IMFPMPClient.Interface +public unsafe partial struct IMFPMPClient : IMFPMPClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMPClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClientApp.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClientApp.cs index 9f4223ef69..9904d0dcf1 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClientApp.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPClientApp.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFPMPClientApp : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFPMPClientApp : IMFPMPClientApp.Interface +public unsafe partial struct IMFPMPClientApp : IMFPMPClientApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMPClientApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHost.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHost.cs index 0aa216e173..57e42c9fc3 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHost.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F70CA1A9-FDC7-4782-B994-ADFFB1C98606")] [NativeTypeName("struct IMFPMPHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMPHost : IMFPMPHost.Interface +public unsafe partial struct IMFPMPHost : IMFPMPHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMPHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHostApp.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHostApp.cs index db5788a2da..8a1d60f109 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHostApp.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPHostApp.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFPMPHostApp : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFPMPHostApp : IMFPMPHostApp.Interface +public unsafe partial struct IMFPMPHostApp : IMFPMPHostApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMPHostApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPServer.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPServer.cs index b344d65cbb..6f0da46b8e 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPMPServer.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPMPServer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("994E23AF-1CC2-493C-B9FA-46F1CB040FA4")] [NativeTypeName("struct IMFPMPServer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMPServer : IMFPMPServer.Interface +public unsafe partial struct IMFPMPServer : IMFPMPServer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMPServer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationClock.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationClock.cs index 506a465be5..412f56aa13 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationClock.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationClock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("868CE85C-8EA9-4F55-AB82-B009A910A805")] [NativeTypeName("struct IMFPresentationClock : IMFClock")] [NativeInheritance("IMFClock")] -public unsafe partial struct IMFPresentationClock : IMFPresentationClock.Interface +public unsafe partial struct IMFPresentationClock : IMFPresentationClock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPresentationClock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationDescriptor.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationDescriptor.cs index 72f547e877..5b07e63460 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationDescriptor.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationDescriptor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("03CB2711-24D7-4DB6-A17F-F3A7A479A536")] [NativeTypeName("struct IMFPresentationDescriptor : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFPresentationDescriptor : IMFPresentationDescriptor.Interface +public unsafe partial struct IMFPresentationDescriptor : IMFPresentationDescriptor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPresentationDescriptor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationTimeSource.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationTimeSource.cs index 06db0551bd..5678786c84 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationTimeSource.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFPresentationTimeSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7FF12CCE-F76F-41C2-863B-1666C8E5E139")] [NativeTypeName("struct IMFPresentationTimeSource : IMFClock")] [NativeInheritance("IMFClock")] -public unsafe partial struct IMFPresentationTimeSource : IMFPresentationTimeSource.Interface +public unsafe partial struct IMFPresentationTimeSource : IMFPresentationTimeSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPresentationTimeSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFProtectedEnvironmentAccess.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFProtectedEnvironmentAccess.cs index 6b3e942435..77ff397427 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFProtectedEnvironmentAccess.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFProtectedEnvironmentAccess.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFProtectedEnvironmentAccess : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFProtectedEnvironmentAccess : IMFProtectedEnvironmentAccess.Interface +public unsafe partial struct IMFProtectedEnvironmentAccess : IMFProtectedEnvironmentAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFProtectedEnvironmentAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise.cs index b20bca9c3f..a37f396136 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EC15E2E9-E36B-4F7C-8758-77D452EF4CE7")] [NativeTypeName("struct IMFQualityAdvise : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFQualityAdvise : IMFQualityAdvise.Interface +public unsafe partial struct IMFQualityAdvise : IMFQualityAdvise.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFQualityAdvise)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise2.cs index bd3226c553..622a6f7d58 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdvise2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F3706F0D-8EA2-4886-8000-7155E9EC2EAE")] [NativeTypeName("struct IMFQualityAdvise2 : IMFQualityAdvise")] [NativeInheritance("IMFQualityAdvise")] -public unsafe partial struct IMFQualityAdvise2 : IMFQualityAdvise2.Interface +public unsafe partial struct IMFQualityAdvise2 : IMFQualityAdvise2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFQualityAdvise2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdviseLimits.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdviseLimits.cs index 8df7015a2a..aa9895c118 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdviseLimits.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityAdviseLimits.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DFCD8E4D-30B5-4567-ACAA-8EB5B7853DC9")] [NativeTypeName("struct IMFQualityAdviseLimits : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFQualityAdviseLimits : IMFQualityAdviseLimits.Interface +public unsafe partial struct IMFQualityAdviseLimits : IMFQualityAdviseLimits.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFQualityAdviseLimits)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityManager.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityManager.cs index 0e7c00ae40..73f9060133 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFQualityManager.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFQualityManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8D009D86-5B9F-4115-B1FC-9F80D52AB8AB")] [NativeTypeName("struct IMFQualityManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFQualityManager : IMFQualityManager.Interface +public unsafe partial struct IMFQualityManager : IMFQualityManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFQualityManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRateControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRateControl.cs index 9775aea7f7..a697cbb763 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRateControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRateControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("88DDCD21-03C3-4275-91ED-55EE3929328F")] [NativeTypeName("struct IMFRateControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRateControl : IMFRateControl.Interface +public unsafe partial struct IMFRateControl : IMFRateControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRateControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRateSupport.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRateSupport.cs index eaf77e5d95..79326fdf93 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRateSupport.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRateSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0A9CCDBC-D797-4563-9667-94EC5D79292D")] [NativeTypeName("struct IMFRateSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRateSupport : IMFRateSupport.Interface +public unsafe partial struct IMFRateSupport : IMFRateSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRateSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClient.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClient.cs index e8ac08e246..63082da1f1 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClient.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2347D60B-3FB5-480C-8803-8DF3ADCD3EF0")] [NativeTypeName("struct IMFRealTimeClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRealTimeClient : IMFRealTimeClient.Interface +public unsafe partial struct IMFRealTimeClient : IMFRealTimeClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRealTimeClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClientEx.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClientEx.cs index ec1d551020..bb0f711275 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClientEx.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRealTimeClientEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFRealTimeClientEx : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFRealTimeClientEx : IMFRealTimeClientEx.Interface +public unsafe partial struct IMFRealTimeClientEx : IMFRealTimeClientEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRealTimeClientEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelReport.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelReport.cs index beb8d58cbd..13b666558f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelReport.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelReport.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFRelativePanelReport : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFRelativePanelReport : IMFRelativePanelReport.Interface +public unsafe partial struct IMFRelativePanelReport : IMFRelativePanelReport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRelativePanelReport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelWatcher.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelWatcher.cs index 86f9cc4555..5560750277 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelWatcher.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRelativePanelWatcher.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFRelativePanelWatcher : IMFShutdown")] [NativeInheritance("IMFShutdown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFRelativePanelWatcher : IMFRelativePanelWatcher.Interface +public unsafe partial struct IMFRelativePanelWatcher : IMFRelativePanelWatcher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRelativePanelWatcher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteDesktopPlugin.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteDesktopPlugin.cs index 7e1c7eedb8..cf2c7934f7 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteDesktopPlugin.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteDesktopPlugin.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1CDE6309-CAE0-4940-907E-C1EC9C3D1D4A")] [NativeTypeName("struct IMFRemoteDesktopPlugin : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRemoteDesktopPlugin : IMFRemoteDesktopPlugin.Interface +public unsafe partial struct IMFRemoteDesktopPlugin : IMFRemoteDesktopPlugin.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRemoteDesktopPlugin)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteProxy.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteProxy.cs index de6b72af6f..5894e5dfa8 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteProxy.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFRemoteProxy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("994E23AD-1CC2-493C-B9FA-46F1CB040FA4")] [NativeTypeName("struct IMFRemoteProxy : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRemoteProxy : IMFRemoteProxy.Interface +public unsafe partial struct IMFRemoteProxy : IMFRemoteProxy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRemoteProxy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSAMIStyle.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSAMIStyle.cs index 1474143c55..9da2209426 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSAMIStyle.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSAMIStyle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7E025DD-5303-4A62-89D6-E747E1EFAC73")] [NativeTypeName("struct IMFSAMIStyle : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSAMIStyle : IMFSAMIStyle.Interface +public unsafe partial struct IMFSAMIStyle : IMFSAMIStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSAMIStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSSLCertificateManager.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSSLCertificateManager.cs index bf687fa410..141a48fb18 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSSLCertificateManager.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSSLCertificateManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("61F7D887-1230-4A8B-AEBA-8AD434D1A64D")] [NativeTypeName("struct IMFSSLCertificateManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSSLCertificateManager : IMFSSLCertificateManager.Interface +public unsafe partial struct IMFSSLCertificateManager : IMFSSLCertificateManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSSLCertificateManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleAllocatorControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleAllocatorControl.cs index c651c0840d..bd1c50caa5 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleAllocatorControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleAllocatorControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSampleAllocatorControl : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFSampleAllocatorControl : IMFSampleAllocatorControl.Interface +public unsafe partial struct IMFSampleAllocatorControl : IMFSampleAllocatorControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSampleAllocatorControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback.cs index 2398f3b458..7bac875cfc 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8C7B80BF-EE42-4B59-B1DF-55668E1BDCA8")] [NativeTypeName("struct IMFSampleGrabberSinkCallback : IMFClockStateSink")] [NativeInheritance("IMFClockStateSink")] -public unsafe partial struct IMFSampleGrabberSinkCallback : IMFSampleGrabberSinkCallback.Interface +public unsafe partial struct IMFSampleGrabberSinkCallback : IMFSampleGrabberSinkCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSampleGrabberSinkCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback2.cs index de1dbe9365..a0e2fd5ebc 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleGrabberSinkCallback2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CA86AA50-C46E-429E-AB27-16D6AC6844CB")] [NativeTypeName("struct IMFSampleGrabberSinkCallback2 : IMFSampleGrabberSinkCallback")] [NativeInheritance("IMFSampleGrabberSinkCallback")] -public unsafe partial struct IMFSampleGrabberSinkCallback2 : IMFSampleGrabberSinkCallback2.Interface +public unsafe partial struct IMFSampleGrabberSinkCallback2 : IMFSampleGrabberSinkCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSampleGrabberSinkCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleProtection.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleProtection.cs index 23bbc159f8..549bfa6a77 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSampleProtection.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSampleProtection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8E36395F-C7B9-43C4-A54D-512B4AF63C95")] [NativeTypeName("struct IMFSampleProtection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSampleProtection : IMFSampleProtection.Interface +public unsafe partial struct IMFSampleProtection : IMFSampleProtection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSampleProtection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSaveJob.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSaveJob.cs index 855117a691..4de6e69774 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSaveJob.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSaveJob.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E9931663-80BF-4C6E-98AF-5DCF58747D1F")] [NativeTypeName("struct IMFSaveJob : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSaveJob : IMFSaveJob.Interface +public unsafe partial struct IMFSaveJob : IMFSaveJob.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSaveJob)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSchemeHandler.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSchemeHandler.cs index e7ae0e60af..273dac467c 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSchemeHandler.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSchemeHandler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6D4C7B74-52A0-4BB7-B0DB-55F29F47A668")] [NativeTypeName("struct IMFSchemeHandler : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSchemeHandler : IMFSchemeHandler.Interface +public unsafe partial struct IMFSchemeHandler : IMFSchemeHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSchemeHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSecureChannel.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSecureChannel.cs index ec7d2a2433..3dd433f06b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSecureChannel.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSecureChannel.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D0AE555D-3B12-4D97-B060-0990BC5AEB67")] [NativeTypeName("struct IMFSecureChannel : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSecureChannel : IMFSecureChannel.Interface +public unsafe partial struct IMFSecureChannel : IMFSecureChannel.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSecureChannel)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSeekInfo.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSeekInfo.cs index 0769a820f5..32bd8ddc47 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSeekInfo.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSeekInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSeekInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSeekInfo : IMFSeekInfo.Interface +public unsafe partial struct IMFSeekInfo : IMFSeekInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSeekInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReport.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReport.cs index ed7b7a66b1..f044ab0026 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReport.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReport.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorActivitiesReport : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorActivitiesReport : IMFSensorActivitiesReport.Interface +public unsafe partial struct IMFSensorActivitiesReport : IMFSensorActivitiesReport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorActivitiesReport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReportCallback.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReportCallback.cs index 0c8997c845..c88b800449 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReportCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivitiesReportCallback.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorActivitiesReportCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorActivitiesReportCallback : IMFSensorActivitiesReportCallback.Interface +public unsafe partial struct IMFSensorActivitiesReportCallback : IMFSensorActivitiesReportCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorActivitiesReportCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityMonitor.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityMonitor.cs index c35dd00111..22b74cc153 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityMonitor.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityMonitor.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorActivityMonitor : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorActivityMonitor : IMFSensorActivityMonitor.Interface +public unsafe partial struct IMFSensorActivityMonitor : IMFSensorActivityMonitor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorActivityMonitor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityReport.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityReport.cs index 7e6ab1b3a2..44ecffc18a 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityReport.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorActivityReport.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorActivityReport : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorActivityReport : IMFSensorActivityReport.Interface +public unsafe partial struct IMFSensorActivityReport : IMFSensorActivityReport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorActivityReport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorDevice.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorDevice.cs index 0d7a5693c1..6ecee30ebe 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorDevice.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorDevice.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorDevice : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IMFSensorDevice : IMFSensorDevice.Interface +public unsafe partial struct IMFSensorDevice : IMFSensorDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorGroup.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorGroup.cs index 82e89b0942..328d916802 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorGroup.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorGroup.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorGroup : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.14393.0")] -public unsafe partial struct IMFSensorGroup : IMFSensorGroup.Interface +public unsafe partial struct IMFSensorGroup : IMFSensorGroup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorGroup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProcessActivity.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProcessActivity.cs index a92fe98b51..3e04942d61 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProcessActivity.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProcessActivity.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorProcessActivity : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorProcessActivity : IMFSensorProcessActivity.Interface +public unsafe partial struct IMFSensorProcessActivity : IMFSensorProcessActivity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorProcessActivity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfile.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfile.cs index 934dd72e59..4beb676e4e 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfile.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfile.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorProfile : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.17134.0")] -public unsafe partial struct IMFSensorProfile : IMFSensorProfile.Interface +public unsafe partial struct IMFSensorProfile : IMFSensorProfile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorProfile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfileCollection.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfileCollection.cs index 9bfe12dafd..f05b42a32f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfileCollection.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorProfileCollection.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorProfileCollection : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.17134.0")] -public unsafe partial struct IMFSensorProfileCollection : IMFSensorProfileCollection.Interface +public unsafe partial struct IMFSensorProfileCollection : IMFSensorProfileCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorProfileCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorStream.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorStream.cs index 6da747d1c0..13294ce320 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorStream.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorStream.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorStream : IMFAttributes")] [NativeInheritance("IMFAttributes")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorStream : IMFSensorStream.Interface +public unsafe partial struct IMFSensorStream : IMFSensorStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorTransformFactory.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorTransformFactory.cs index 6b0b247b4d..d778eb984a 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSensorTransformFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSensorTransformFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSensorTransformFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSensorTransformFactory : IMFSensorTransformFactory.Interface +public unsafe partial struct IMFSensorTransformFactory : IMFSensorTransformFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSensorTransformFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSequencerSource.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSequencerSource.cs index 010ef44c39..75ecdc3b35 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSequencerSource.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSequencerSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("197CD219-19CB-4DE1-A64C-ACF2EDCBE59E")] [NativeTypeName("struct IMFSequencerSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSequencerSource : IMFSequencerSource.Interface +public unsafe partial struct IMFSequencerSource : IMFSequencerSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSequencerSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFShutdown.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFShutdown.cs index 611d4adb08..529f6fd6b9 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFShutdown.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFShutdown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("97EC2EA4-0E42-4937-97AC-9D6D328824E1")] [NativeTypeName("struct IMFShutdown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFShutdown : IMFShutdown.Interface +public unsafe partial struct IMFShutdown : IMFShutdown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFShutdown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSignedLibrary.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSignedLibrary.cs index b3e0e6f374..ee68aaf901 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSignedLibrary.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSignedLibrary.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSignedLibrary : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSignedLibrary : IMFSignedLibrary.Interface +public unsafe partial struct IMFSignedLibrary : IMFSignedLibrary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSignedLibrary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSimpleAudioVolume.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSimpleAudioVolume.cs index 9abe824aac..8dcae63c89 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSimpleAudioVolume.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSimpleAudioVolume.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("089EDF13-CF71-4338-8D13-9E569DBDC319")] [NativeTypeName("struct IMFSimpleAudioVolume : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSimpleAudioVolume : IMFSimpleAudioVolume.Interface +public unsafe partial struct IMFSimpleAudioVolume : IMFSimpleAudioVolume.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSimpleAudioVolume)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSourceOpenMonitor.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSourceOpenMonitor.cs index 3b7b250a06..0c234873d5 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSourceOpenMonitor.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSourceOpenMonitor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("059054B3-027C-494C-A27D-9113291CF87F")] [NativeTypeName("struct IMFSourceOpenMonitor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSourceOpenMonitor : IMFSourceOpenMonitor.Interface +public unsafe partial struct IMFSourceOpenMonitor : IMFSourceOpenMonitor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceOpenMonitor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSourceResolver.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSourceResolver.cs index 691fbc2a00..349056f5de 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSourceResolver.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSourceResolver.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FBE5A32D-A497-4B61-BB85-97B1A848A6E3")] [NativeTypeName("struct IMFSourceResolver : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSourceResolver : IMFSourceResolver.Interface +public unsafe partial struct IMFSourceResolver : IMFSourceResolver.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceResolver)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamDescriptor.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamDescriptor.cs index a7b930eec5..dad654175f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamDescriptor.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamDescriptor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56C03D9C-9DBB-45F5-AB4B-D80F47C05938")] [NativeTypeName("struct IMFStreamDescriptor : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFStreamDescriptor : IMFStreamDescriptor.Interface +public unsafe partial struct IMFStreamDescriptor : IMFStreamDescriptor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFStreamDescriptor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamSink.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamSink.cs index 907d277eb5..cf0535697e 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamSink.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0A97B3CF-8E7C-4A3D-8F8C-0C843DC247FB")] [NativeTypeName("struct IMFStreamSink : IMFMediaEventGenerator")] [NativeInheritance("IMFMediaEventGenerator")] -public unsafe partial struct IMFStreamSink : IMFStreamSink.Interface +public unsafe partial struct IMFStreamSink : IMFStreamSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFStreamSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamingSinkConfig.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamingSinkConfig.cs index 390edd5ea0..24560adffe 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFStreamingSinkConfig.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFStreamingSinkConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9DB7AA41-3CC5-40D4-8509-555804AD34CC")] [NativeTypeName("struct IMFStreamingSinkConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFStreamingSinkConfig : IMFStreamingSinkConfig.Interface +public unsafe partial struct IMFStreamingSinkConfig : IMFStreamingSinkConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFStreamingSinkConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFSystemId.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFSystemId.cs index 27377e827d..902604f8bb 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFSystemId.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFSystemId.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSystemId : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSystemId : IMFSystemId.Interface +public unsafe partial struct IMFSystemId : IMFSystemId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSystemId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTimecodeTranslate.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTimecodeTranslate.cs index 5414322f02..dbc421184a 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTimecodeTranslate.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTimecodeTranslate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AB9D8661-F7E8-4EF4-9861-89F334F94E74")] [NativeTypeName("struct IMFTimecodeTranslate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimecodeTranslate : IMFTimecodeTranslate.Interface +public unsafe partial struct IMFTimecodeTranslate : IMFTimecodeTranslate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimecodeTranslate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTimer.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTimer.cs index e5de13c7cc..57efcb7cf9 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTimer.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTimer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E56E4CBD-8F70-49D8-A0F8-EDB3D6AB9BF2")] [NativeTypeName("struct IMFTimer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimer : IMFTimer.Interface +public unsafe partial struct IMFTimer : IMFTimer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTopoLoader.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTopoLoader.cs index e68f7a5fd1..e81318240f 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTopoLoader.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTopoLoader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DE9A6157-F660-4643-B56A-DF9F7998C7CD")] [NativeTypeName("struct IMFTopoLoader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTopoLoader : IMFTopoLoader.Interface +public unsafe partial struct IMFTopoLoader : IMFTopoLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTopoLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTopology.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTopology.cs index 51b2b3543f..e59b8d34a2 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTopology.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTopology.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83CF873A-F6DA-4BC8-823F-BACFD55DC433")] [NativeTypeName("struct IMFTopology : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFTopology : IMFTopology.Interface +public unsafe partial struct IMFTopology : IMFTopology.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTopology)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNode.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNode.cs index 60cc0cfca0..adba47bdbc 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNode.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83CF873A-F6DA-4BC8-823F-BACFD55DC430")] [NativeTypeName("struct IMFTopologyNode : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFTopologyNode : IMFTopologyNode.Interface +public unsafe partial struct IMFTopologyNode : IMFTopologyNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTopologyNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNodeAttributeEditor.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNodeAttributeEditor.cs index 6904e2621e..e4c80b3953 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNodeAttributeEditor.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTopologyNodeAttributeEditor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("676AA6DD-238A-410D-BB99-65668D01605A")] [NativeTypeName("struct IMFTopologyNodeAttributeEditor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTopologyNodeAttributeEditor : IMFTopologyNodeAttributeEditor.Interface +public unsafe partial struct IMFTopologyNodeAttributeEditor : IMFTopologyNodeAttributeEditor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTopologyNodeAttributeEditor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTrackedSample.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTrackedSample.cs index 1cd92d183a..fce5f2ef14 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTrackedSample.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTrackedSample.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("245BF8E9-0755-40F7-88A5-AE0F18D55E17")] [NativeTypeName("struct IMFTrackedSample : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTrackedSample : IMFTrackedSample.Interface +public unsafe partial struct IMFTrackedSample : IMFTrackedSample.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTrackedSample)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeProfile.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeProfile.cs index 843470ced7..e850d0987c 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeProfile.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeProfile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4ADFDBA3-7AB0-4953-A62B-461E7FF3DA1E")] [NativeTypeName("struct IMFTranscodeProfile : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTranscodeProfile : IMFTranscodeProfile.Interface +public unsafe partial struct IMFTranscodeProfile : IMFTranscodeProfile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTranscodeProfile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeSinkInfoProvider.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeSinkInfoProvider.cs index a24d2be255..ac0900e7f8 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeSinkInfoProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTranscodeSinkInfoProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8CFFCD2E-5A03-4A3A-AFF7-EDCD107C620E")] [NativeTypeName("struct IMFTranscodeSinkInfoProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTranscodeSinkInfoProvider : IMFTranscodeSinkInfoProvider.Interface +public unsafe partial struct IMFTranscodeSinkInfoProvider : IMFTranscodeSinkInfoProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTranscodeSinkInfoProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedInput.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedInput.cs index 83f4fabe89..62f694dec5 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedInput.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedInput.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("542612C4-A1B8-4632-B521-DE11EA64A0B0")] [NativeTypeName("struct IMFTrustedInput : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTrustedInput : IMFTrustedInput.Interface +public unsafe partial struct IMFTrustedInput : IMFTrustedInput.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTrustedInput)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedOutput.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedOutput.cs index 6f4579931f..92c795a5ad 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedOutput.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFTrustedOutput.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D19F8E95-B126-4446-890C-5DCB7AD71453")] [NativeTypeName("struct IMFTrustedOutput : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTrustedOutput : IMFTrustedOutput.Interface +public unsafe partial struct IMFTrustedOutput : IMFTrustedOutput.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTrustedOutput)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoCaptureSampleAllocator.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoCaptureSampleAllocator.cs index 09cd1454a1..1fb5f2a442 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoCaptureSampleAllocator.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoCaptureSampleAllocator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFVideoCaptureSampleAllocator : IMFVideoSampleAllocator")] [NativeInheritance("IMFVideoSampleAllocator")] [SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IMFVideoCaptureSampleAllocator : IMFVideoCaptureSampleAllocator.Interface +public unsafe partial struct IMFVideoCaptureSampleAllocator : IMFVideoCaptureSampleAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoCaptureSampleAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl.cs index d3e45f797b..095b18cf17 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFVideoProcessorControl : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFVideoProcessorControl : IMFVideoProcessorControl.Interface +public unsafe partial struct IMFVideoProcessorControl : IMFVideoProcessorControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoProcessorControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl2.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl2.cs index a825a53aba..317ee0942b 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl2.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFVideoProcessorControl2 : IMFVideoProcessorControl")] [NativeInheritance("IMFVideoProcessorControl")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFVideoProcessorControl2 : IMFVideoProcessorControl2.Interface +public unsafe partial struct IMFVideoProcessorControl2 : IMFVideoProcessorControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoProcessorControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl3.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl3.cs index 602c77900b..17b1b53def 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl3.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoProcessorControl3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2424B3F2-EB23-40F1-91AA-74BDDEEA0883")] [NativeTypeName("struct IMFVideoProcessorControl3 : IMFVideoProcessorControl2")] [NativeInheritance("IMFVideoProcessorControl2")] -public unsafe partial struct IMFVideoProcessorControl3 : IMFVideoProcessorControl3.Interface +public unsafe partial struct IMFVideoProcessorControl3 : IMFVideoProcessorControl3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoProcessorControl3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoRendererEffectControl.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoRendererEffectControl.cs index 3fa71b5abb..953aea8bb3 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoRendererEffectControl.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoRendererEffectControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("604D33D7-CF23-41D5-8224-5BBBB1A87475")] [NativeTypeName("struct IMFVideoRendererEffectControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFVideoRendererEffectControl : IMFVideoRendererEffectControl.Interface +public unsafe partial struct IMFVideoRendererEffectControl : IMFVideoRendererEffectControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoRendererEffectControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocator.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocator.cs index 0f16e6db15..da78bcc404 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocator.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("86CBC910-E533-4751-8E3B-F19B5B806A03")] [NativeTypeName("struct IMFVideoSampleAllocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFVideoSampleAllocator : IMFVideoSampleAllocator.Interface +public unsafe partial struct IMFVideoSampleAllocator : IMFVideoSampleAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoSampleAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorCallback.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorCallback.cs index 63c24f6778..db5e3eb4d7 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("992388B4-3372-4F67-8B6F-C84C071F4751")] [NativeTypeName("struct IMFVideoSampleAllocatorCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFVideoSampleAllocatorCallback : IMFVideoSampleAllocatorCallback.Interface +public unsafe partial struct IMFVideoSampleAllocatorCallback : IMFVideoSampleAllocatorCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoSampleAllocatorCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorEx.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorEx.cs index 0a6212ef85..e7416cfe66 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorEx.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFVideoSampleAllocatorEx : IMFVideoSampleAllocator")] [NativeInheritance("IMFVideoSampleAllocator")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFVideoSampleAllocatorEx : IMFVideoSampleAllocatorEx.Interface +public unsafe partial struct IMFVideoSampleAllocatorEx : IMFVideoSampleAllocatorEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoSampleAllocatorEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotify.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotify.cs index 6fb5d86087..04ed750203 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A792CDBE-C374-4E89-8335-278E7B9956A4")] [NativeTypeName("struct IMFVideoSampleAllocatorNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFVideoSampleAllocatorNotify : IMFVideoSampleAllocatorNotify.Interface +public unsafe partial struct IMFVideoSampleAllocatorNotify : IMFVideoSampleAllocatorNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoSampleAllocatorNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotifyEx.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotifyEx.cs index 93769720f8..49385b424c 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotifyEx.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFVideoSampleAllocatorNotifyEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFVideoSampleAllocatorNotifyEx : IMFVideoSampleAllocatorNotify")] [NativeInheritance("IMFVideoSampleAllocatorNotify")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFVideoSampleAllocatorNotifyEx : IMFVideoSampleAllocatorNotifyEx.Interface +public unsafe partial struct IMFVideoSampleAllocatorNotifyEx : IMFVideoSampleAllocatorNotifyEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoSampleAllocatorNotifyEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServices.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServices.cs index 1ac4c92943..db345d5274 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServices.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("35FE1BB8-A3A9-40FE-BBEC-EB569C9CCCA3")] [NativeTypeName("struct IMFWorkQueueServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFWorkQueueServices : IMFWorkQueueServices.Interface +public unsafe partial struct IMFWorkQueueServices : IMFWorkQueueServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFWorkQueueServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServicesEx.cs b/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServicesEx.cs index 2a2a857ac4..362ed74308 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServicesEx.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/IMFWorkQueueServicesEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFWorkQueueServicesEx : IMFWorkQueueServices")] [NativeInheritance("IMFWorkQueueServices")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFWorkQueueServicesEx : IMFWorkQueueServicesEx.Interface +public unsafe partial struct IMFWorkQueueServicesEx : IMFWorkQueueServicesEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFWorkQueueServicesEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfidl/MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS.cs b/sources/Interop/Windows/Windows/um/mfidl/MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS.cs index f78399d2bd..267953c915 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,6 +50,7 @@ public partial struct _rgOutputActions_e__FixedBuffer { public MFINPUTTRUSTAUTHORITY_ACCESS_ACTION e0; + [UnscopedRef] public ref MFINPUTTRUSTAUTHORITY_ACCESS_ACTION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref MFINPUTTRUSTAUTHORITY_ACCESS_ACTION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfidl/MFTOPONODE_ATTRIBUTE_UPDATE.cs b/sources/Interop/Windows/Windows/um/mfidl/MFTOPONODE_ATTRIBUTE_UPDATE.cs index 9277fe66cf..f709266167 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/MFTOPONODE_ATTRIBUTE_UPDATE.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/MFTOPONODE_ATTRIBUTE_UPDATE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,32 +28,35 @@ public partial struct MFTOPONODE_ATTRIBUTE_UPDATE public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint u32 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.u32, 1)); + return ref Anonymous.u32; } } /// + [UnscopedRef] public ref ulong u64 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.u64, 1)); + return ref Anonymous.u64; } } /// + [UnscopedRef] public ref double d { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.d, 1)); + return ref Anonymous.d; } } diff --git a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCapture.cs b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCapture.cs index 223e724295..a90a9908d0 100644 --- a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCapture.cs +++ b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCapture.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAdvancedMediaCapture : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAdvancedMediaCapture : IAdvancedMediaCapture.Interface +public unsafe partial struct IAdvancedMediaCapture : IAdvancedMediaCapture.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdvancedMediaCapture)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureInitializationSettings.cs b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureInitializationSettings.cs index c1e83d55e0..9af0ca57e0 100644 --- a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureInitializationSettings.cs +++ b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureInitializationSettings.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAdvancedMediaCaptureInitializationSettings : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAdvancedMediaCaptureInitializationSettings : IAdvancedMediaCaptureInitializationSettings.Interface +public unsafe partial struct IAdvancedMediaCaptureInitializationSettings : IAdvancedMediaCaptureInitializationSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdvancedMediaCaptureInitializationSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureSettings.cs b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureSettings.cs index 7a5664faca..ccfb02a7f1 100644 --- a/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureSettings.cs +++ b/sources/Interop/Windows/Windows/um/mfmediacapture/IAdvancedMediaCaptureSettings.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAdvancedMediaCaptureSettings : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAdvancedMediaCaptureSettings : IAdvancedMediaCaptureSettings.Interface +public unsafe partial struct IAdvancedMediaCaptureSettings : IAdvancedMediaCaptureSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdvancedMediaCaptureSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IAudioSourceProvider.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IAudioSourceProvider.cs index eebf858508..dbf2bae396 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IAudioSourceProvider.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IAudioSourceProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EBBAF249-AFC2-4582-91C6-B60DF2E84954")] [NativeTypeName("struct IAudioSourceProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAudioSourceProvider : IAudioSourceProvider.Interface +public unsafe partial struct IAudioSourceProvider : IAudioSourceProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAudioSourceProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFBufferListNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFBufferListNotify.cs index ef00d61963..362976d736 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFBufferListNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFBufferListNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFBufferListNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFBufferListNotify : IMFBufferListNotify.Interface +public unsafe partial struct IMFBufferListNotify : IMFBufferListNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFBufferListNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFCdmSuspendNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFCdmSuspendNotify.cs index 3e5c2f4221..254a6a9943 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFCdmSuspendNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFCdmSuspendNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFCdmSuspendNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFCdmSuspendNotify : IMFCdmSuspendNotify.Interface +public unsafe partial struct IMFCdmSuspendNotify : IMFCdmSuspendNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCdmSuspendNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFExtendedDRMTypeSupport.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFExtendedDRMTypeSupport.cs index 5bc2cc8bed..fac72c4fee 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFExtendedDRMTypeSupport.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFExtendedDRMTypeSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("332EC562-3758-468D-A784-E38F23552128")] [NativeTypeName("struct IMFExtendedDRMTypeSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFExtendedDRMTypeSupport : IMFExtendedDRMTypeSupport.Interface +public unsafe partial struct IMFExtendedDRMTypeSupport : IMFExtendedDRMTypeSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFExtendedDRMTypeSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFHDCPStatus.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFHDCPStatus.cs index 7ed2d44b95..66dcc30a6b 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFHDCPStatus.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFHDCPStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DE400F54-5BF1-40CF-8964-0BEA136B1E3D")] [NativeTypeName("struct IMFHDCPStatus : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFHDCPStatus : IMFHDCPStatus.Interface +public unsafe partial struct IMFHDCPStatus : IMFHDCPStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFHDCPStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngine.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngine.cs index 860fd9a1c3..7a3f674563 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngine.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngine.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngine : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngine : IMFMediaEngine.Interface +public unsafe partial struct IMFMediaEngine : IMFMediaEngine.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngine)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineAudioEndpointId.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineAudioEndpointId.cs index 6a51f65dff..579c57aee2 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineAudioEndpointId.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineAudioEndpointId.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7A3BAC98-0E76-49FB-8C20-8A86FD98EAF2")] [NativeTypeName("struct IMFMediaEngineAudioEndpointId : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineAudioEndpointId : IMFMediaEngineAudioEndpointId.Interface +public unsafe partial struct IMFMediaEngineAudioEndpointId : IMFMediaEngineAudioEndpointId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineAudioEndpointId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory.cs index 29dba6cabf..94d883b7f6 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineClassFactory : IMFMediaEngineClassFactory.Interface +public unsafe partial struct IMFMediaEngineClassFactory : IMFMediaEngineClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory2.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory2.cs index 14f2e63ec2..b5a5a3d89e 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory2.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineClassFactory2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineClassFactory2 : IMFMediaEngineClassFactory2.Interface +public unsafe partial struct IMFMediaEngineClassFactory2 : IMFMediaEngineClassFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineClassFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory3.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory3.cs index 85df4f1153..82497773e1 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory3.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3787614F-65F7-4003-B673-EAD8293A0E60")] [NativeTypeName("struct IMFMediaEngineClassFactory3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineClassFactory3 : IMFMediaEngineClassFactory3.Interface +public unsafe partial struct IMFMediaEngineClassFactory3 : IMFMediaEngineClassFactory3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineClassFactory3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory4.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory4.cs index 27e4ceecec..b722f4b64a 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory4.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactory4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FBE256C1-43CF-4A9B-8CB8-CE8632A34186")] [NativeTypeName("struct IMFMediaEngineClassFactory4 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineClassFactory4 : IMFMediaEngineClassFactory4.Interface +public unsafe partial struct IMFMediaEngineClassFactory4 : IMFMediaEngineClassFactory4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineClassFactory4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactoryEx.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactoryEx.cs index 283be3d486..e1db503a11 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactoryEx.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineClassFactoryEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineClassFactoryEx : IMFMediaEngineClassFactory")] [NativeInheritance("IMFMediaEngineClassFactory")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineClassFactoryEx : IMFMediaEngineClassFactoryEx.Interface +public unsafe partial struct IMFMediaEngineClassFactoryEx : IMFMediaEngineClassFactoryEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineClassFactoryEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEME.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEME.cs index eba994e71f..e02d01a939 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEME.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEME.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineEME : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineEME : IMFMediaEngineEME.Interface +public unsafe partial struct IMFMediaEngineEME : IMFMediaEngineEME.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineEME)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEMENotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEMENotify.cs index 5c4b36cb64..72dce77e44 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEMENotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEMENotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9E184D15-CDB7-4F86-B49E-566689F4A601")] [NativeTypeName("struct IMFMediaEngineEMENotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineEMENotify : IMFMediaEngineEMENotify.Interface +public unsafe partial struct IMFMediaEngineEMENotify : IMFMediaEngineEMENotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineEMENotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEx.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEx.cs index 0a0ad399e6..ea62e851cf 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEx.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineEx : IMFMediaEngine")] [NativeInheritance("IMFMediaEngine")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineEx : IMFMediaEngineEx.Interface +public unsafe partial struct IMFMediaEngineEx : IMFMediaEngineEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineExtension.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineExtension.cs index 061e374995..ac7b818618 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineExtension.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineExtension.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineExtension : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineExtension : IMFMediaEngineExtension.Interface +public unsafe partial struct IMFMediaEngineExtension : IMFMediaEngineExtension.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineExtension)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNeedKeyNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNeedKeyNotify.cs index 40877a6f46..586d81382d 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNeedKeyNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNeedKeyNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineNeedKeyNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineNeedKeyNotify : IMFMediaEngineNeedKeyNotify.Interface +public unsafe partial struct IMFMediaEngineNeedKeyNotify : IMFMediaEngineNeedKeyNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineNeedKeyNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNotify.cs index c00c2c46e7..3ac16dc41f 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineNotify : IMFMediaEngineNotify.Interface +public unsafe partial struct IMFMediaEngineNotify : IMFMediaEngineNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineOPMInfo.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineOPMInfo.cs index ef405352d8..72c334ca68 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineOPMInfo.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineOPMInfo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineOPMInfo : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineOPMInfo : IMFMediaEngineOPMInfo.Interface +public unsafe partial struct IMFMediaEngineOPMInfo : IMFMediaEngineOPMInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineOPMInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineProtectedContent.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineProtectedContent.cs index f9b2a4ea3b..5563ff97a7 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineProtectedContent.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineProtectedContent.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineProtectedContent : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineProtectedContent : IMFMediaEngineProtectedContent.Interface +public unsafe partial struct IMFMediaEngineProtectedContent : IMFMediaEngineProtectedContent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineProtectedContent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElements.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElements.cs index 526d8d8657..8590f2621d 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElements.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElements.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineSrcElements : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaEngineSrcElements : IMFMediaEngineSrcElements.Interface +public unsafe partial struct IMFMediaEngineSrcElements : IMFMediaEngineSrcElements.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineSrcElements)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElementsEx.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElementsEx.cs index d734f8ba29..9bbe77ed67 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElementsEx.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSrcElementsEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineSrcElementsEx : IMFMediaEngineSrcElements")] [NativeInheritance("IMFMediaEngineSrcElements")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineSrcElementsEx : IMFMediaEngineSrcElementsEx.Interface +public unsafe partial struct IMFMediaEngineSrcElementsEx : IMFMediaEngineSrcElementsEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineSrcElementsEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSupportsSourceTransfer.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSupportsSourceTransfer.cs index dd7ea856be..8ca375b606 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSupportsSourceTransfer.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineSupportsSourceTransfer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaEngineSupportsSourceTransfer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaEngineSupportsSourceTransfer : IMFMediaEngineSupportsSourceTransfer.Interface +public unsafe partial struct IMFMediaEngineSupportsSourceTransfer : IMFMediaEngineSupportsSourceTransfer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineSupportsSourceTransfer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineTransferSource.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineTransferSource.cs index a1a9b66ecb..19146b16fc 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineTransferSource.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineTransferSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("24230452-FE54-40CC-94F3-FCC394C340D6")] [NativeTypeName("struct IMFMediaEngineTransferSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineTransferSource : IMFMediaEngineTransferSource.Interface +public unsafe partial struct IMFMediaEngineTransferSource : IMFMediaEngineTransferSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineTransferSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineWebSupport.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineWebSupport.cs index 08382825f5..64aee5bb37 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineWebSupport.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaEngineWebSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BA2743A1-07E0-48EF-84B6-9A2ED023CA6C")] [NativeTypeName("struct IMFMediaEngineWebSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEngineWebSupport : IMFMediaEngineWebSupport.Interface +public unsafe partial struct IMFMediaEngineWebSupport : IMFMediaEngineWebSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEngineWebSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaError.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaError.cs index 7b9361bd5c..efb041564d 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaError.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaError.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaError : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaError : IMFMediaError.Interface +public unsafe partial struct IMFMediaError : IMFMediaError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession.cs index 1e7532e772..b1810c555a 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaKeySession : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaKeySession : IMFMediaKeySession.Interface +public unsafe partial struct IMFMediaKeySession : IMFMediaKeySession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeySession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession2.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession2.cs index 44d03b17c8..e057a8633f 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession2.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySession2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E9707E05-6D55-4636-B185-3DE21210BD75")] [NativeTypeName("struct IMFMediaKeySession2 : IMFMediaKeySession")] [NativeInheritance("IMFMediaKeySession")] -public unsafe partial struct IMFMediaKeySession2 : IMFMediaKeySession2.Interface +public unsafe partial struct IMFMediaKeySession2 : IMFMediaKeySession2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeySession2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify.cs index 32c28d33ff..1171cd6794 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaKeySessionNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaKeySessionNotify : IMFMediaKeySessionNotify.Interface +public unsafe partial struct IMFMediaKeySessionNotify : IMFMediaKeySessionNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeySessionNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify2.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify2.cs index 1dd5fcdb2f..d6deff91cf 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify2.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySessionNotify2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C3A9E92A-DA88-46B0-A110-6CF953026CB9")] [NativeTypeName("struct IMFMediaKeySessionNotify2 : IMFMediaKeySessionNotify")] [NativeInheritance("IMFMediaKeySessionNotify")] -public unsafe partial struct IMFMediaKeySessionNotify2 : IMFMediaKeySessionNotify2.Interface +public unsafe partial struct IMFMediaKeySessionNotify2 : IMFMediaKeySessionNotify2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeySessionNotify2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySystemAccess.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySystemAccess.cs index cc4a46288f..2526738727 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySystemAccess.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeySystemAccess.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AEC63FDA-7A97-4944-B35C-6C6DF8085CC3")] [NativeTypeName("struct IMFMediaKeySystemAccess : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaKeySystemAccess : IMFMediaKeySystemAccess.Interface +public unsafe partial struct IMFMediaKeySystemAccess : IMFMediaKeySystemAccess.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeySystemAccess)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys.cs index bf9f73797a..24250e4c40 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaKeys : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaKeys : IMFMediaKeys.Interface +public unsafe partial struct IMFMediaKeys : IMFMediaKeys.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeys)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys2.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys2.cs index be5ebbaec8..520ab687a2 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys2.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaKeys2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("45892507-AD66-4DE2-83A2-ACBB13CD8D43")] [NativeTypeName("struct IMFMediaKeys2 : IMFMediaKeys")] [NativeInheritance("IMFMediaKeys")] -public unsafe partial struct IMFMediaKeys2 : IMFMediaKeys2.Interface +public unsafe partial struct IMFMediaKeys2 : IMFMediaKeys2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaKeys2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtension.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtension.cs index 26d9091848..8e39c4f55b 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtension.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtension.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaSourceExtension : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaSourceExtension : IMFMediaSourceExtension.Interface +public unsafe partial struct IMFMediaSourceExtension : IMFMediaSourceExtension.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourceExtension)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionLiveSeekableRange.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionLiveSeekableRange.cs index ff4ced3afe..9db5759381 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionLiveSeekableRange.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionLiveSeekableRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5D1ABFD6-450A-4D92-9EFC-D6B6CBC1F4DA")] [NativeTypeName("struct IMFMediaSourceExtensionLiveSeekableRange : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaSourceExtensionLiveSeekableRange : IMFMediaSourceExtensionLiveSeekableRange.Interface +public unsafe partial struct IMFMediaSourceExtensionLiveSeekableRange : IMFMediaSourceExtensionLiveSeekableRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourceExtensionLiveSeekableRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionNotify.cs index 775c6fe885..65be034aec 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaSourceExtensionNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaSourceExtensionNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFMediaSourceExtensionNotify : IMFMediaSourceExtensionNotify.Interface +public unsafe partial struct IMFMediaSourceExtensionNotify : IMFMediaSourceExtensionNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSourceExtensionNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaTimeRange.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaTimeRange.cs index fbc77ab5f9..cb8b6b322e 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaTimeRange.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFMediaTimeRange.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaTimeRange : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaTimeRange : IMFMediaTimeRange.Interface +public unsafe partial struct IMFMediaTimeRange : IMFMediaTimeRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaTimeRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBuffer.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBuffer.cs index ed139bc7a4..df60419766 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBuffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSourceBuffer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFSourceBuffer : IMFSourceBuffer.Interface +public unsafe partial struct IMFSourceBuffer : IMFSourceBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferAppendMode.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferAppendMode.cs index c226cd5dc2..f5399e0abc 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferAppendMode.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferAppendMode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("19666FB4-BABE-4C55-BC03-0A074DA37E2A")] [NativeTypeName("struct IMFSourceBufferAppendMode : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSourceBufferAppendMode : IMFSourceBufferAppendMode.Interface +public unsafe partial struct IMFSourceBufferAppendMode : IMFSourceBufferAppendMode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceBufferAppendMode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferList.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferList.cs index a35cff757d..8cfa5eae66 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferList.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSourceBufferList : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFSourceBufferList : IMFSourceBufferList.Interface +public unsafe partial struct IMFSourceBufferList : IMFSourceBufferList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceBufferList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferNotify.cs index 4886fc43ef..169520ae4c 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFSourceBufferNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSourceBufferNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFSourceBufferNotify : IMFSourceBufferNotify.Interface +public unsafe partial struct IMFSourceBufferNotify : IMFSourceBufferNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceBufferNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedText.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedText.cs index 3eb548efd0..fcb0bff129 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedText.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedText.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedText : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedText : IMFTimedText.Interface +public unsafe partial struct IMFTimedText : IMFTimedText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBinary.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBinary.cs index ae8cef05c5..bd8acee221 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBinary.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBinary.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextBinary : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextBinary : IMFTimedTextBinary.Interface +public unsafe partial struct IMFTimedTextBinary : IMFTimedTextBinary.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextBinary)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBouten.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBouten.cs index 223f999370..161761da3f 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBouten.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextBouten.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3C5F3E8A-90C0-464E-8136-898D2975F847")] [NativeTypeName("struct IMFTimedTextBouten : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimedTextBouten : IMFTimedTextBouten.Interface +public unsafe partial struct IMFTimedTextBouten : IMFTimedTextBouten.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextBouten)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCue.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCue.cs index 5a69fd1175..4fe40d367f 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCue.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCue.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextCue : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextCue : IMFTimedTextCue.Interface +public unsafe partial struct IMFTimedTextCue : IMFTimedTextCue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextCue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCueList.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCueList.cs index 655a923292..ac216e7c79 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCueList.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextCueList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AD128745-211B-40A0-9981-FE65F166D0FD")] [NativeTypeName("struct IMFTimedTextCueList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimedTextCueList : IMFTimedTextCueList.Interface +public unsafe partial struct IMFTimedTextCueList : IMFTimedTextCueList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextCueList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextFormattedText.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextFormattedText.cs index 69445cd2d7..27545597fe 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextFormattedText.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextFormattedText.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextFormattedText : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextFormattedText : IMFTimedTextFormattedText.Interface +public unsafe partial struct IMFTimedTextFormattedText : IMFTimedTextFormattedText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextFormattedText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextNotify.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextNotify.cs index 0b8d379729..057f70dcca 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextNotify.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextNotify : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextNotify : IMFTimedTextNotify.Interface +public unsafe partial struct IMFTimedTextNotify : IMFTimedTextNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRegion.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRegion.cs index 570b762ef7..9e3016f6b1 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRegion.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRegion.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextRegion : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextRegion : IMFTimedTextRegion.Interface +public unsafe partial struct IMFTimedTextRegion : IMFTimedTextRegion.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextRegion)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRuby.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRuby.cs index 9bcd200818..3018792569 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRuby.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextRuby.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("76C6A6F5-4955-4DE5-B27B-14B734CC14B4")] [NativeTypeName("struct IMFTimedTextRuby : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimedTextRuby : IMFTimedTextRuby.Interface +public unsafe partial struct IMFTimedTextRuby : IMFTimedTextRuby.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextRuby)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle.cs index 2a4a65b9dd..2b6f477017 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextStyle : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextStyle : IMFTimedTextStyle.Interface +public unsafe partial struct IMFTimedTextStyle : IMFTimedTextStyle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextStyle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle2.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle2.cs index 2334001ddc..51825ce12c 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle2.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextStyle2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB639199-C809-4C89-BFCA-D0BBB9729D6E")] [NativeTypeName("struct IMFTimedTextStyle2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTimedTextStyle2 : IMFTimedTextStyle2.Interface +public unsafe partial struct IMFTimedTextStyle2 : IMFTimedTextStyle2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextStyle2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrack.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrack.cs index 4a8601b426..df45d622c0 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrack.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrack.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextTrack : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextTrack : IMFTimedTextTrack.Interface +public unsafe partial struct IMFTimedTextTrack : IMFTimedTextTrack.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextTrack)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrackList.cs b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrackList.cs index d8af38fd8a..4eb1dc3c4a 100644 --- a/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrackList.cs +++ b/sources/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrackList.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFTimedTextTrackList : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IMFTimedTextTrackList : IMFTimedTextTrackList.Interface +public unsafe partial struct IMFTimedTextTrackList : IMFTimedTextTrackList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTimedTextTrackList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfmp2dlna/IMFDLNASinkInit.cs b/sources/Interop/Windows/Windows/um/mfmp2dlna/IMFDLNASinkInit.cs index 996827f32a..303dd64c7a 100644 --- a/sources/Interop/Windows/Windows/um/mfmp2dlna/IMFDLNASinkInit.cs +++ b/sources/Interop/Windows/Windows/um/mfmp2dlna/IMFDLNASinkInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0C012799-1B61-4C10-BDA9-04445BE5F561")] [NativeTypeName("struct IMFDLNASinkInit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFDLNASinkInit : IMFDLNASinkInit.Interface +public unsafe partial struct IMFDLNASinkInit : IMFDLNASinkInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDLNASinkInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer.cs index 16cc21088b..dc79069710 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7DC9D5F9-9ED9-44EC-9BBF-0600BB589FBB")] [NativeTypeName("struct IMF2DBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMF2DBuffer : IMF2DBuffer.Interface +public unsafe partial struct IMF2DBuffer : IMF2DBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMF2DBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer2.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer2.cs index 7daf6fccf8..0965e2113b 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer2.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMF2DBuffer2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMF2DBuffer2 : IMF2DBuffer")] [NativeInheritance("IMF2DBuffer")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMF2DBuffer2 : IMF2DBuffer2.Interface +public unsafe partial struct IMF2DBuffer2 : IMF2DBuffer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMF2DBuffer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFActivate.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFActivate.cs index 84f63d04dc..0d1867b719 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFActivate.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFActivate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7FEE9E9A-4A89-47A6-899C-B6A53A70FB67")] [NativeTypeName("struct IMFActivate : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFActivate : IMFActivate.Interface +public unsafe partial struct IMFActivate : IMFActivate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFActivate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallback.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallback.cs index 8201982852..cc319b8eed 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A27003CF-2354-4F2A-8D6A-AB7CFF15437E")] [NativeTypeName("struct IMFAsyncCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFAsyncCallback : IMFAsyncCallback.Interface +public unsafe partial struct IMFAsyncCallback : IMFAsyncCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAsyncCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallbackLogging.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallbackLogging.cs index 152c9f0375..4692e42bc4 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallbackLogging.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncCallbackLogging.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFAsyncCallbackLogging : IMFAsyncCallback")] [NativeInheritance("IMFAsyncCallback")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFAsyncCallbackLogging : IMFAsyncCallbackLogging.Interface +public unsafe partial struct IMFAsyncCallbackLogging : IMFAsyncCallbackLogging.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAsyncCallbackLogging)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncResult.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncResult.cs index b399db3062..647f25dec8 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncResult.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFAsyncResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AC6B7889-0740-4D51-8619-905994A55CC6")] [NativeTypeName("struct IMFAsyncResult : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFAsyncResult : IMFAsyncResult.Interface +public unsafe partial struct IMFAsyncResult : IMFAsyncResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAsyncResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFAttributes.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFAttributes.cs index 621862ac48..4f21fcf532 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFAttributes.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFAttributes.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2CD2D921-C447-44A7-A13C-4ADABFC247E3")] [NativeTypeName("struct IMFAttributes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFAttributes : IMFAttributes.Interface +public unsafe partial struct IMFAttributes : IMFAttributes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAttributes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFAudioMediaType.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFAudioMediaType.cs index 6316cc5af4..3a1385202b 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFAudioMediaType.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFAudioMediaType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("26A0ADC3-CE26-4672-9304-69552EDD3FAF")] [NativeTypeName("struct IMFAudioMediaType : IMFMediaType")] [NativeInheritance("IMFMediaType")] -public unsafe partial struct IMFAudioMediaType : IMFAudioMediaType.Interface +public unsafe partial struct IMFAudioMediaType : IMFAudioMediaType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFAudioMediaType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStream.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStream.cs index a18d5279eb..55065d32ec 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStream.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AD4C1B00-4BF7-422F-9175-756693D9130D")] [NativeTypeName("struct IMFByteStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFByteStream : IMFByteStream.Interface +public unsafe partial struct IMFByteStream : IMFByteStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStreamProxyClassFactory.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStreamProxyClassFactory.cs index f5dd183186..db01ee9a65 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStreamProxyClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFByteStreamProxyClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFByteStreamProxyClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFByteStreamProxyClassFactory : IMFByteStreamProxyClassFactory.Interface +public unsafe partial struct IMFByteStreamProxyClassFactory : IMFByteStreamProxyClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFByteStreamProxyClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFCollection.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFCollection.cs index 63f2343542..bda464dddf 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFCollection.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5BC8A76B-869A-46A3-9B03-FA218A66AEBE")] [NativeTypeName("struct IMFCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFCollection : IMFCollection.Interface +public unsafe partial struct IMFCollection : IMFCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIBuffer.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIBuffer.cs index 8aa3d47289..626f5c72b3 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIBuffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFDXGIBuffer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFDXGIBuffer : IMFDXGIBuffer.Interface +public unsafe partial struct IMFDXGIBuffer : IMFDXGIBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDXGIBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIDeviceManager.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIDeviceManager.cs index 19ca34a994..28527f2d39 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIDeviceManager.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFDXGIDeviceManager.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFDXGIDeviceManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFDXGIDeviceManager : IMFDXGIDeviceManager.Interface +public unsafe partial struct IMFDXGIDeviceManager : IMFDXGIDeviceManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDXGIDeviceManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaBuffer.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaBuffer.cs index 905604748f..b6a76a233c 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("045FA593-8799-42B8-BC8D-8968C6453507")] [NativeTypeName("struct IMFMediaBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaBuffer : IMFMediaBuffer.Interface +public unsafe partial struct IMFMediaBuffer : IMFMediaBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEvent.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEvent.cs index 90245c3c51..70074aa0e6 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEvent.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DF598932-F10C-4E39-BBA2-C308F101DAA3")] [NativeTypeName("struct IMFMediaEvent : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFMediaEvent : IMFMediaEvent.Interface +public unsafe partial struct IMFMediaEvent : IMFMediaEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventGenerator.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventGenerator.cs index 5c97aca704..dc74b7de50 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventGenerator.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventGenerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2CD0BD52-BCD5-4B89-B62C-EADC0C031E7D")] [NativeTypeName("struct IMFMediaEventGenerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEventGenerator : IMFMediaEventGenerator.Interface +public unsafe partial struct IMFMediaEventGenerator : IMFMediaEventGenerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEventGenerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventQueue.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventQueue.cs index 76ffccd0bc..f184ace304 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventQueue.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaEventQueue.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36F846FC-2256-48B6-B58E-E2B638316581")] [NativeTypeName("struct IMFMediaEventQueue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFMediaEventQueue : IMFMediaEventQueue.Interface +public unsafe partial struct IMFMediaEventQueue : IMFMediaEventQueue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaEventQueue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaType.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaType.cs index ccb05efb13..cec2191c69 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaType.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMediaType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("44AE0FA8-EA31-4109-8D2E-4CAE4997C555")] [NativeTypeName("struct IMFMediaType : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFMediaType : IMFMediaType.Interface +public unsafe partial struct IMFMediaType : IMFMediaType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamAttributesManager.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamAttributesManager.cs index b4ef0c58c2..b61e8e1578 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamAttributesManager.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamAttributesManager.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMuxStreamAttributesManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFMuxStreamAttributesManager : IMFMuxStreamAttributesManager.Interface +public unsafe partial struct IMFMuxStreamAttributesManager : IMFMuxStreamAttributesManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMuxStreamAttributesManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamMediaTypeManager.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamMediaTypeManager.cs index 4833f995c9..531b9d0c73 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamMediaTypeManager.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamMediaTypeManager.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMuxStreamMediaTypeManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFMuxStreamMediaTypeManager : IMFMuxStreamMediaTypeManager.Interface +public unsafe partial struct IMFMuxStreamMediaTypeManager : IMFMuxStreamMediaTypeManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMuxStreamMediaTypeManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamSampleManager.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamSampleManager.cs index 8312ca5d9b..ba56729e6a 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamSampleManager.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFMuxStreamSampleManager.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMuxStreamSampleManager : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFMuxStreamSampleManager : IMFMuxStreamSampleManager.Interface +public unsafe partial struct IMFMuxStreamSampleManager : IMFMuxStreamSampleManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMuxStreamSampleManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl.cs index 95996e9d4a..7b3e8660ad 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5C6C44BF-1DB6-435B-9249-E8CD10FDEC96")] [NativeTypeName("struct IMFPluginControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPluginControl : IMFPluginControl.Interface +public unsafe partial struct IMFPluginControl : IMFPluginControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPluginControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl2.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl2.cs index a2ced7f4b4..59acad169f 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl2.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFPluginControl2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFPluginControl2 : IMFPluginControl")] [NativeInheritance("IMFPluginControl")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFPluginControl2 : IMFPluginControl2.Interface +public unsafe partial struct IMFPluginControl2 : IMFPluginControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPluginControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFRemoteAsyncCallback.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFRemoteAsyncCallback.cs index 29e369fe7b..03e9174964 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFRemoteAsyncCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFRemoteAsyncCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A27003D0-2354-4F2A-8D6A-AB7CFF15437E")] [NativeTypeName("struct IMFRemoteAsyncCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFRemoteAsyncCallback : IMFRemoteAsyncCallback.Interface +public unsafe partial struct IMFRemoteAsyncCallback : IMFRemoteAsyncCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFRemoteAsyncCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFSample.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFSample.cs index 6a7c183fe7..d873621995 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFSample.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFSample.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C40A00F2-B93A-4D80-AE8C-5A1C634F58E4")] [NativeTypeName("struct IMFSample : IMFAttributes")] [NativeInheritance("IMFAttributes")] -public unsafe partial struct IMFSample : IMFSample.Interface +public unsafe partial struct IMFSample : IMFSample.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSample)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFSampleOutputStream.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFSampleOutputStream.cs index 13a8f947a6..94f2fcb0bb 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFSampleOutputStream.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFSampleOutputStream.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSampleOutputStream : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSampleOutputStream : IMFSampleOutputStream.Interface +public unsafe partial struct IMFSampleOutputStream : IMFSampleOutputStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSampleOutputStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFSecureBuffer.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFSecureBuffer.cs index 0b18f78908..d3683e00ab 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFSecureBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFSecureBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C1209904-E584-4752-A2D6-7F21693F8B21")] [NativeTypeName("struct IMFSecureBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSecureBuffer : IMFSecureBuffer.Interface +public unsafe partial struct IMFSecureBuffer : IMFSecureBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSecureBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/IMFVideoMediaType.cs b/sources/Interop/Windows/Windows/um/mfobjects/IMFVideoMediaType.cs index 17916adfc2..1de4bc31c9 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/IMFVideoMediaType.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/IMFVideoMediaType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B99F381F-A8F9-47A2-A5AF-CA3A225A3890")] [NativeTypeName("struct IMFVideoMediaType : IMFMediaType")] [NativeInheritance("IMFMediaType")] -public unsafe partial struct IMFVideoMediaType : IMFVideoMediaType.Interface +public unsafe partial struct IMFVideoMediaType : IMFVideoMediaType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFVideoMediaType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfobjects/MFVideoSurfaceInfo.cs b/sources/Interop/Windows/Windows/um/mfobjects/MFVideoSurfaceInfo.cs index dce0698fbf..5e2c960411 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/MFVideoSurfaceInfo.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/MFVideoSurfaceInfo.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _Palette_e__FixedBuffer { public MFPaletteEntry e0; + [UnscopedRef] public ref MFPaletteEntry this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref MFPaletteEntry this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaItem.cs b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaItem.cs index dd8d2d39b2..a8aa0cab38 100644 --- a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaItem.cs +++ b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("90EB3E6B-ECBF-45CC-B1DA-C6FE3EA70D57")] [NativeTypeName("struct IMFPMediaItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMediaItem : IMFPMediaItem.Interface +public unsafe partial struct IMFPMediaItem : IMFPMediaItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMediaItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayer.cs b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayer.cs index 29489a446d..bd2583de88 100644 --- a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayer.cs +++ b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A714590A-58AF-430A-85BF-44F5EC838D85")] [NativeTypeName("struct IMFPMediaPlayer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMediaPlayer : IMFPMediaPlayer.Interface +public unsafe partial struct IMFPMediaPlayer : IMFPMediaPlayer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMediaPlayer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayerCallback.cs b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayerCallback.cs index bb10ac9122..aaf5e04df9 100644 --- a/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayerCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfplay/IMFPMediaPlayerCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("766C8FFB-5FDB-4FEA-A28D-B912996F51BD")] [NativeTypeName("struct IMFPMediaPlayerCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFPMediaPlayerCallback : IMFPMediaPlayerCallback.Interface +public unsafe partial struct IMFPMediaPlayerCallback : IMFPMediaPlayerCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFPMediaPlayerCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFReadWriteClassFactory.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFReadWriteClassFactory.cs index 4c2fcbbe46..8ee6e8d474 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFReadWriteClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFReadWriteClassFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E7FE2E12-661C-40DA-92F9-4F002AB67627")] [NativeTypeName("struct IMFReadWriteClassFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFReadWriteClassFactory : IMFReadWriteClassFactory.Interface +public unsafe partial struct IMFReadWriteClassFactory : IMFReadWriteClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFReadWriteClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriter.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriter.cs index d67cd87018..e3c36d1a72 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriter.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3137F1CD-FE5E-4805-A5D8-FB477448CB3D")] [NativeTypeName("struct IMFSinkWriter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSinkWriter : IMFSinkWriter.Interface +public unsafe partial struct IMFSinkWriter : IMFSinkWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSinkWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback.cs index 85ced59925..7c5730c331 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("666F76DE-33D2-41B9-A458-29ED0A972C58")] [NativeTypeName("struct IMFSinkWriterCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSinkWriterCallback : IMFSinkWriterCallback.Interface +public unsafe partial struct IMFSinkWriterCallback : IMFSinkWriterCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSinkWriterCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback2.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback2.cs index eeb94bb2f7..e0c4a4d063 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback2.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterCallback2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2456BD58-C067-4513-84FE-8D0C88FFDC61")] [NativeTypeName("struct IMFSinkWriterCallback2 : IMFSinkWriterCallback")] [NativeInheritance("IMFSinkWriterCallback")] -public unsafe partial struct IMFSinkWriterCallback2 : IMFSinkWriterCallback2.Interface +public unsafe partial struct IMFSinkWriterCallback2 : IMFSinkWriterCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSinkWriterCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEncoderConfig.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEncoderConfig.cs index 64f5cd7629..fb91c311a7 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEncoderConfig.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEncoderConfig.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSinkWriterEncoderConfig : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IMFSinkWriterEncoderConfig : IMFSinkWriterEncoderConfig.Interface +public unsafe partial struct IMFSinkWriterEncoderConfig : IMFSinkWriterEncoderConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSinkWriterEncoderConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEx.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEx.cs index 3157e2d56d..41744a81e9 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEx.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSinkWriterEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSinkWriterEx : IMFSinkWriter")] [NativeInheritance("IMFSinkWriter")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSinkWriterEx : IMFSinkWriterEx.Interface +public unsafe partial struct IMFSinkWriterEx : IMFSinkWriterEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSinkWriterEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReader.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReader.cs index 369224b6da..15669c3011 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReader.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70AE66F2-C809-4E4F-8915-BDCB406B7993")] [NativeTypeName("struct IMFSourceReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSourceReader : IMFSourceReader.Interface +public unsafe partial struct IMFSourceReader : IMFSourceReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback.cs index 255e980f46..8a7a27584d 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DEEC8D99-FA1D-4D82-84C2-2C8969944867")] [NativeTypeName("struct IMFSourceReaderCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFSourceReaderCallback : IMFSourceReaderCallback.Interface +public unsafe partial struct IMFSourceReaderCallback : IMFSourceReaderCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceReaderCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback2.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback2.cs index 150366630f..c5bae3607c 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback2.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderCallback2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CF839FE6-8C2A-4DD2-B6EA-C22D6961AF05")] [NativeTypeName("struct IMFSourceReaderCallback2 : IMFSourceReaderCallback")] [NativeInheritance("IMFSourceReaderCallback")] -public unsafe partial struct IMFSourceReaderCallback2 : IMFSourceReaderCallback2.Interface +public unsafe partial struct IMFSourceReaderCallback2 : IMFSourceReaderCallback2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceReaderCallback2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderEx.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderEx.cs index 384412b9ad..efc2d8e85e 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderEx.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/IMFSourceReaderEx.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSourceReaderEx : IMFSourceReader")] [NativeInheritance("IMFSourceReader")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSourceReaderEx : IMFSourceReaderEx.Interface +public unsafe partial struct IMFSourceReaderEx : IMFSourceReaderEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSourceReaderEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngine.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngine.cs index 3606ed7f55..888ad4f82c 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngine.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngine.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFImageSharingEngine : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFImageSharingEngine : IMFImageSharingEngine.Interface +public unsafe partial struct IMFImageSharingEngine : IMFImageSharingEngine.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFImageSharingEngine)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngineClassFactory.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngineClassFactory.cs index 2f4d3ca98a..f4d8ea4e25 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngineClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFImageSharingEngineClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFImageSharingEngineClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFImageSharingEngineClassFactory : IMFImageSharingEngineClassFactory.Interface +public unsafe partial struct IMFImageSharingEngineClassFactory : IMFImageSharingEngineClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFImageSharingEngineClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngine.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngine.cs index 8877c75b6d..2d7cd397a0 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngine.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngine.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaSharingEngine : IMFMediaEngine")] [NativeInheritance("IMFMediaEngine")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaSharingEngine : IMFMediaSharingEngine.Interface +public unsafe partial struct IMFMediaSharingEngine : IMFMediaSharingEngine.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSharingEngine)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngineClassFactory.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngineClassFactory.cs index 53a4f0caab..73215983fb 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngineClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFMediaSharingEngineClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFMediaSharingEngineClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFMediaSharingEngineClassFactory : IMFMediaSharingEngineClassFactory.Interface +public unsafe partial struct IMFMediaSharingEngineClassFactory : IMFMediaSharingEngineClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFMediaSharingEngineClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFSharingEngineClassFactory.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFSharingEngineClassFactory.cs index 77cd3e0fec..9aa146a72d 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IMFSharingEngineClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IMFSharingEngineClassFactory.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSharingEngineClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMFSharingEngineClassFactory : IMFSharingEngineClassFactory.Interface +public unsafe partial struct IMFSharingEngineClassFactory : IMFSharingEngineClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSharingEngineClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControl.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControl.cs index c0950197b4..dd3cbf2bcc 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControl.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPlayToControl : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPlayToControl : IPlayToControl.Interface +public unsafe partial struct IPlayToControl : IPlayToControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPlayToControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControlWithCapabilities.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControlWithCapabilities.cs index a962c1866d..843c4d603d 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControlWithCapabilities.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToControlWithCapabilities.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPlayToControlWithCapabilities : IPlayToControl")] [NativeInheritance("IPlayToControl")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IPlayToControlWithCapabilities : IPlayToControlWithCapabilities.Interface +public unsafe partial struct IPlayToControlWithCapabilities : IPlayToControlWithCapabilities.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPlayToControlWithCapabilities)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToSourceClassFactory.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToSourceClassFactory.cs index 2bab1335f6..7d71b56a40 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToSourceClassFactory.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/IPlayToSourceClassFactory.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.WinRT; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IPlayToSourceClassFactory : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IPlayToSourceClassFactory : IPlayToSourceClassFactory.Interface +public unsafe partial struct IPlayToSourceClassFactory : IPlayToSourceClassFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPlayToSourceClassFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioObjectBuffer.cs b/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioObjectBuffer.cs index 3729f412b5..c3a4b31a11 100644 --- a/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioObjectBuffer.cs +++ b/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioObjectBuffer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSpatialAudioObjectBuffer : IMFMediaBuffer")] [NativeInheritance("IMFMediaBuffer")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSpatialAudioObjectBuffer : IMFSpatialAudioObjectBuffer.Interface +public unsafe partial struct IMFSpatialAudioObjectBuffer : IMFSpatialAudioObjectBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSpatialAudioObjectBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioSample.cs b/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioSample.cs index 211c8edcc7..7bab2e436f 100644 --- a/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioSample.cs +++ b/sources/Interop/Windows/Windows/um/mfspatialaudio/IMFSpatialAudioSample.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFSpatialAudioSample : IMFSample")] [NativeInheritance("IMFSample")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFSpatialAudioSample : IMFSpatialAudioSample.Interface +public unsafe partial struct IMFSpatialAudioSample : IMFSpatialAudioSample.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFSpatialAudioSample)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransform.cs b/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransform.cs index 03ea36e2ef..fef4bb7c48 100644 --- a/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransform.cs +++ b/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFDeviceTransform : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.15063.0")] -public unsafe partial struct IMFDeviceTransform : IMFDeviceTransform.Interface +public unsafe partial struct IMFDeviceTransform : IMFDeviceTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDeviceTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransformCallback.cs b/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransformCallback.cs index 1568492547..4f8c94217f 100644 --- a/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransformCallback.cs +++ b/sources/Interop/Windows/Windows/um/mftransform/IMFDeviceTransformCallback.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMFDeviceTransformCallback : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0.17134.0")] -public unsafe partial struct IMFDeviceTransformCallback : IMFDeviceTransformCallback.Interface +public unsafe partial struct IMFDeviceTransformCallback : IMFDeviceTransformCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFDeviceTransformCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mftransform/IMFTransform.cs b/sources/Interop/Windows/Windows/um/mftransform/IMFTransform.cs index 7c9466957c..48d11576e0 100644 --- a/sources/Interop/Windows/Windows/um/mftransform/IMFTransform.cs +++ b/sources/Interop/Windows/Windows/um/mftransform/IMFTransform.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BF94C121-5B05-4E6F-8000-BA598961414D")] [NativeTypeName("struct IMFTransform : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMFTransform : IMFTransform.Interface +public unsafe partial struct IMFTransform : IMFTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMFTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/minwinbase/OVERLAPPED.cs b/sources/Interop/Windows/Windows/um/minwinbase/OVERLAPPED.cs index 446427c8c0..c0c130a887 100644 --- a/sources/Interop/Windows/Windows/um/minwinbase/OVERLAPPED.cs +++ b/sources/Interop/Windows/Windows/um/minwinbase/OVERLAPPED.cs @@ -3,6 +3,7 @@ // Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,32 +28,35 @@ public unsafe partial struct OVERLAPPED public HANDLE hEvent; /// + [UnscopedRef] public ref uint Offset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Offset, 1)); + return ref Anonymous.Anonymous.Offset; } } /// + [UnscopedRef] public ref uint OffsetHigh { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.OffsetHigh, 1)); + return ref Anonymous.Anonymous.OffsetHigh; } } /// + [UnscopedRef] public ref void* Pointer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Pointer; + return ref Anonymous.Pointer; } } diff --git a/sources/Interop/Windows/Windows/um/minwinbase/PROCESS_HEAP_ENTRY.cs b/sources/Interop/Windows/Windows/um/minwinbase/PROCESS_HEAP_ENTRY.cs index 92f5e0b814..bd37234687 100644 --- a/sources/Interop/Windows/Windows/um/minwinbase/PROCESS_HEAP_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/minwinbase/PROCESS_HEAP_ENTRY.cs @@ -3,6 +3,7 @@ // Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,22 +35,24 @@ public unsafe partial struct PROCESS_HEAP_ENTRY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Block_e__Struct Block { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Block, 1)); + return ref Anonymous.Block; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._Region_e__Struct Region { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Region, 1)); + return ref Anonymous.Region; } } diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceAsyncOperation.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceAsyncOperation.cs index d9d1e30c70..4d9e157807 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceAsyncOperation.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceAsyncOperation.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IActivateAudioInterfaceAsyncOperation : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IActivateAudioInterfaceAsyncOperation : IActivateAudioInterfaceAsyncOperation.Interface +public unsafe partial struct IActivateAudioInterfaceAsyncOperation : IActivateAudioInterfaceAsyncOperation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActivateAudioInterfaceAsyncOperation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceCompletionHandler.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceCompletionHandler.cs index 69ca435d5c..959ec3a6ee 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceCompletionHandler.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IActivateAudioInterfaceCompletionHandler.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IActivateAudioInterfaceCompletionHandler : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IActivateAudioInterfaceCompletionHandler : IActivateAudioInterfaceCompletionHandler.Interface +public unsafe partial struct IActivateAudioInterfaceCompletionHandler : IActivateAudioInterfaceCompletionHandler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActivateAudioInterfaceCompletionHandler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDevice.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDevice.cs index 9755020769..51ef6084e8 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDevice.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDevice.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D666063F-1587-4E43-81F1-B948E807363F")] [NativeTypeName("struct IMMDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMDevice : IMMDevice.Interface +public unsafe partial struct IMMDevice : IMMDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceActivator.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceActivator.cs index 3b7d26b5f9..dcadc02dd0 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceActivator.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceActivator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B0D0EA4-D0A9-4B0E-935B-09516746FAC0")] [NativeTypeName("struct IMMDeviceActivator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMDeviceActivator : IMMDeviceActivator.Interface +public unsafe partial struct IMMDeviceActivator : IMMDeviceActivator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMDeviceActivator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceCollection.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceCollection.cs index d27e6e22b7..d51607be05 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceCollection.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0BD7A1BE-7A1A-44DB-8397-CC5392387B5E")] [NativeTypeName("struct IMMDeviceCollection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMDeviceCollection : IMMDeviceCollection.Interface +public unsafe partial struct IMMDeviceCollection : IMMDeviceCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMDeviceCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceEnumerator.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceEnumerator.cs index 4bfeb9560c..d4bf6afdca 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceEnumerator.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMDeviceEnumerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A95664D2-9614-4F35-A746-DE8DB63617E6")] [NativeTypeName("struct IMMDeviceEnumerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMDeviceEnumerator : IMMDeviceEnumerator.Interface +public unsafe partial struct IMMDeviceEnumerator : IMMDeviceEnumerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMDeviceEnumerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMEndpoint.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMEndpoint.cs index e81b6a9653..1a1205d950 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMEndpoint.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMEndpoint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1BE09788-6894-4089-8586-9A2A6C265AC5")] [NativeTypeName("struct IMMEndpoint : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMEndpoint : IMMEndpoint.Interface +public unsafe partial struct IMMEndpoint : IMMEndpoint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMEndpoint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMNotificationClient.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMNotificationClient.cs index 900b041f42..f71f0c5dea 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMNotificationClient.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/IMMNotificationClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7991EEC9-7E89-4D85-8390-6C703CEC60C0")] [NativeTypeName("struct IMMNotificationClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMMNotificationClient : IMMNotificationClient.Interface +public unsafe partial struct IMMNotificationClient : IMMNotificationClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMMNotificationClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIDIHDR.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIDIHDR.cs index d024337dca..93d1a72747 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIDIHDR.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIDIHDR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -62,6 +63,7 @@ public partial struct _dwReserved_e__FixedBuffer public nuint e6; public nuint e7; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -72,6 +74,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLA.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLA.cs index f5d23bc27a..9d76c3bced 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLA.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLA.cs @@ -3,6 +3,7 @@ // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -68,42 +69,46 @@ public unsafe partial struct _Bounds_e__Union public fixed uint dwReserved[6]; /// + [UnscopedRef] public ref int lMinimum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lMinimum, 1)); + return ref Anonymous1.lMinimum; } } /// + [UnscopedRef] public ref int lMaximum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lMaximum, 1)); + return ref Anonymous1.lMaximum; } } /// + [UnscopedRef] public ref uint dwMinimum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwMinimum, 1)); + return ref Anonymous2.dwMinimum; } } /// + [UnscopedRef] public ref uint dwMaximum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwMaximum, 1)); + return ref Anonymous2.dwMaximum; } } diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLDETAILS.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLDETAILS.cs index a847b30c77..a8de311147 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLDETAILS.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLDETAILS.cs @@ -3,6 +3,7 @@ // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,22 +38,24 @@ public unsafe partial struct MIXERCONTROLDETAILS public void* paDetails; /// + [UnscopedRef] public ref HWND hwndOwner { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hwndOwner; + return ref Anonymous.hwndOwner; } } /// + [UnscopedRef] public ref uint cMultipleItems { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cMultipleItems, 1)); + return ref Anonymous.cMultipleItems; } } diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLW.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLW.cs index 7a7ed13729..912615c55d 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLW.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERCONTROLW.cs @@ -3,6 +3,7 @@ // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -68,42 +69,46 @@ public unsafe partial struct _Bounds_e__Union public fixed uint dwReserved[6]; /// + [UnscopedRef] public ref int lMinimum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lMinimum, 1)); + return ref Anonymous1.lMinimum; } } /// + [UnscopedRef] public ref int lMaximum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.lMaximum, 1)); + return ref Anonymous1.lMaximum; } } /// + [UnscopedRef] public ref uint dwMinimum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwMinimum, 1)); + return ref Anonymous2.dwMinimum; } } /// + [UnscopedRef] public ref uint dwMaximum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dwMaximum, 1)); + return ref Anonymous2.dwMaximum; } } diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSA.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSA.cs index d4f852fe3b..61229260c5 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSA.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSA.cs @@ -3,6 +3,7 @@ // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,22 +38,24 @@ public unsafe partial struct MIXERLINECONTROLSA public MIXERCONTROLA* pamxctrl; /// + [UnscopedRef] public ref uint dwControlID { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwControlID, 1)); + return ref Anonymous.dwControlID; } } /// + [UnscopedRef] public ref uint dwControlType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwControlType, 1)); + return ref Anonymous.dwControlType; } } diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSW.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSW.cs index a340a5908c..074bef0eec 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSW.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINECONTROLSW.cs @@ -3,6 +3,7 @@ // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,22 +38,24 @@ public unsafe partial struct MIXERLINECONTROLSW public MIXERCONTROLW* pamxctrl; /// + [UnscopedRef] public ref uint dwControlID { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwControlID, 1)); + return ref Anonymous.dwControlID; } } /// + [UnscopedRef] public ref uint dwControlType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwControlType, 1)); + return ref Anonymous.dwControlType; } } diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumITfCompositionView.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumITfCompositionView.cs index 7fcdd88529..98b229dedb 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumITfCompositionView.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumITfCompositionView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5EFD22BA-7838-46CB-88E2-CADB14124F8F")] [NativeTypeName("struct IEnumITfCompositionView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumITfCompositionView : IEnumITfCompositionView.Interface +public unsafe partial struct IEnumITfCompositionView : IEnumITfCompositionView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumITfCompositionView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfContextViews.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfContextViews.cs index d93c56d4b6..2dcf15e8ee 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfContextViews.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfContextViews.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F0C0F8DD-CF38-44E1-BB0F-68CF0D551C78")] [NativeTypeName("struct IEnumTfContextViews : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfContextViews : IEnumTfContextViews.Interface +public unsafe partial struct IEnumTfContextViews : IEnumTfContextViews.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfContextViews)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfContexts.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfContexts.cs index a78df5e351..589ac626f5 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfContexts.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfContexts.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8F1A7EA6-1654-4502-A86E-B2902344D507")] [NativeTypeName("struct IEnumTfContexts : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfContexts : IEnumTfContexts.Interface +public unsafe partial struct IEnumTfContexts : IEnumTfContexts.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfContexts)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfDisplayAttributeInfo.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfDisplayAttributeInfo.cs index 6e5a1c4483..376ba38a0c 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfDisplayAttributeInfo.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfDisplayAttributeInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7CEF04D7-CB75-4E80-A7AB-5F5BC7D332DE")] [NativeTypeName("struct IEnumTfDisplayAttributeInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfDisplayAttributeInfo : IEnumTfDisplayAttributeInfo.Interface +public unsafe partial struct IEnumTfDisplayAttributeInfo : IEnumTfDisplayAttributeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfDisplayAttributeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfDocumentMgrs.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfDocumentMgrs.cs index 9ff9ca9671..3f666848b8 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfDocumentMgrs.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfDocumentMgrs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E808-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct IEnumTfDocumentMgrs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfDocumentMgrs : IEnumTfDocumentMgrs.Interface +public unsafe partial struct IEnumTfDocumentMgrs : IEnumTfDocumentMgrs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfDocumentMgrs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfFunctionProviders.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfFunctionProviders.cs index 20b1a1da44..0d3b0bd86a 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfFunctionProviders.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfFunctionProviders.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E4B24DB0-0990-11D3-8DF0-00105A2799B5")] [NativeTypeName("struct IEnumTfFunctionProviders : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfFunctionProviders : IEnumTfFunctionProviders.Interface +public unsafe partial struct IEnumTfFunctionProviders : IEnumTfFunctionProviders.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfFunctionProviders)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfInputProcessorProfiles.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfInputProcessorProfiles.cs index 6906b5187b..cb176f184f 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfInputProcessorProfiles.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfInputProcessorProfiles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71C6E74D-0F28-11D8-A82A-00065B84435C")] [NativeTypeName("struct IEnumTfInputProcessorProfiles : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfInputProcessorProfiles : IEnumTfInputProcessorProfiles.Interface +public unsafe partial struct IEnumTfInputProcessorProfiles : IEnumTfInputProcessorProfiles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfInputProcessorProfiles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfLanguageProfiles.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfLanguageProfiles.cs index 033aa3765b..37cfcc0b1d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfLanguageProfiles.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfLanguageProfiles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3D61BF11-AC5F-42C8-A4CB-931BCC28C744")] [NativeTypeName("struct IEnumTfLanguageProfiles : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfLanguageProfiles : IEnumTfLanguageProfiles.Interface +public unsafe partial struct IEnumTfLanguageProfiles : IEnumTfLanguageProfiles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfLanguageProfiles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfProperties.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfProperties.cs index 6b8a34e92f..74ea607d4b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfProperties.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("19188CB0-ACA9-11D2-AFC5-00105A2799B5")] [NativeTypeName("struct IEnumTfProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfProperties : IEnumTfProperties.Interface +public unsafe partial struct IEnumTfProperties : IEnumTfProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfPropertyValue.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfPropertyValue.cs index e4e820903c..7ade0d8082 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfPropertyValue.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfPropertyValue.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8ED8981B-7C10-4D7D-9FB3-AB72E9C75F72")] [NativeTypeName("struct IEnumTfPropertyValue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfPropertyValue : IEnumTfPropertyValue.Interface +public unsafe partial struct IEnumTfPropertyValue : IEnumTfPropertyValue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfPropertyValue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfRanges.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfRanges.cs index a0f01c5b35..86d6290446 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfRanges.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfRanges.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F99D3F40-8E32-11D2-BF46-00105A2799B5")] [NativeTypeName("struct IEnumTfRanges : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfRanges : IEnumTfRanges.Interface +public unsafe partial struct IEnumTfRanges : IEnumTfRanges.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfRanges)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/IEnumTfUIElements.cs b/sources/Interop/Windows/Windows/um/msctf/IEnumTfUIElements.cs index abf4af3c8f..671dfe57e9 100644 --- a/sources/Interop/Windows/Windows/um/msctf/IEnumTfUIElements.cs +++ b/sources/Interop/Windows/Windows/um/msctf/IEnumTfUIElements.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("887AA91E-ACBA-4931-84DA-3C5208CF543F")] [NativeTypeName("struct IEnumTfUIElements : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTfUIElements : IEnumTfUIElements.Interface +public unsafe partial struct IEnumTfUIElements : IEnumTfUIElements.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTfUIElements)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITextStoreACPServices.cs b/sources/Interop/Windows/Windows/um/msctf/ITextStoreACPServices.cs index e543808c5e..aafbde67ac 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITextStoreACPServices.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITextStoreACPServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E901-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITextStoreACPServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITextStoreACPServices : ITextStoreACPServices.Interface +public unsafe partial struct ITextStoreACPServices : ITextStoreACPServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITextStoreACPServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfActiveLanguageProfileNotifySink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfActiveLanguageProfileNotifySink.cs index 0e0ef03ba6..17d59d82ea 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfActiveLanguageProfileNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfActiveLanguageProfileNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B246CB75-A93E-4652-BF8C-B3FE0CFD7E57")] [NativeTypeName("struct ITfActiveLanguageProfileNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfActiveLanguageProfileNotifySink : ITfActiveLanguageProfileNotifySink.Interface +public unsafe partial struct ITfActiveLanguageProfileNotifySink : ITfActiveLanguageProfileNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfActiveLanguageProfileNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElement.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElement.cs index 4e13ec18e2..a1f1f5de91 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElement.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1EA138-19DF-11D7-A6D2-00065B84435C")] [NativeTypeName("struct ITfCandidateListUIElement : ITfUIElement")] [NativeInheritance("ITfUIElement")] -public unsafe partial struct ITfCandidateListUIElement : ITfCandidateListUIElement.Interface +public unsafe partial struct ITfCandidateListUIElement : ITfCandidateListUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCandidateListUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElementBehavior.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElementBehavior.cs index 60a40c04cb..b8509e1277 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElementBehavior.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCandidateListUIElementBehavior.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("85FAD185-58CE-497A-9460-355366B64B9A")] [NativeTypeName("struct ITfCandidateListUIElementBehavior : ITfCandidateListUIElement")] [NativeInheritance("ITfCandidateListUIElement")] -public unsafe partial struct ITfCandidateListUIElementBehavior : ITfCandidateListUIElementBehavior.Interface +public unsafe partial struct ITfCandidateListUIElementBehavior : ITfCandidateListUIElementBehavior.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCandidateListUIElementBehavior)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCategoryMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCategoryMgr.cs index 7491124fc9..cb92b5e24f 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCategoryMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCategoryMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C3ACEFB5-F69D-4905-938F-FCADCF4BE830")] [NativeTypeName("struct ITfCategoryMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCategoryMgr : ITfCategoryMgr.Interface +public unsafe partial struct ITfCategoryMgr : ITfCategoryMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCategoryMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextDurationSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextDurationSink.cs index bb50ba389c..1be8c402b1 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextDurationSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextDurationSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("45C35144-154E-4797-BED8-D33AE7BF8794")] [NativeTypeName("struct ITfCleanupContextDurationSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCleanupContextDurationSink : ITfCleanupContextDurationSink.Interface +public unsafe partial struct ITfCleanupContextDurationSink : ITfCleanupContextDurationSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCleanupContextDurationSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextSink.cs index 550364427d..fed46ae9d8 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCleanupContextSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("01689689-7ACB-4E9B-AB7C-7EA46B12B522")] [NativeTypeName("struct ITfCleanupContextSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCleanupContextSink : ITfCleanupContextSink.Interface +public unsafe partial struct ITfCleanupContextSink : ITfCleanupContextSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCleanupContextSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfClientId.cs b/sources/Interop/Windows/Windows/um/msctf/ITfClientId.cs index 846a4752cd..8bbcb9678a 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfClientId.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfClientId.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D60A7B49-1B9F-4BE2-B702-47E9DC05DEC3")] [NativeTypeName("struct ITfClientId : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfClientId : ITfClientId.Interface +public unsafe partial struct ITfClientId : ITfClientId.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfClientId)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCompartment.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCompartment.cs index 90590933bb..1e36a883a4 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCompartment.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCompartment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB08F7A9-607A-4384-8623-056892B64371")] [NativeTypeName("struct ITfCompartment : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCompartment : ITfCompartment.Interface +public unsafe partial struct ITfCompartment : ITfCompartment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCompartment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentEventSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentEventSink.cs index 933dbaf43b..6c3e5f58a1 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentEventSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("743ABD5F-F26D-48DF-8CC5-238492419B64")] [NativeTypeName("struct ITfCompartmentEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCompartmentEventSink : ITfCompartmentEventSink.Interface +public unsafe partial struct ITfCompartmentEventSink : ITfCompartmentEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCompartmentEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentMgr.cs index ac2bee002b..76b779a45d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCompartmentMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7DCF57AC-18AD-438B-824D-979BFFB74B7C")] [NativeTypeName("struct ITfCompartmentMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCompartmentMgr : ITfCompartmentMgr.Interface +public unsafe partial struct ITfCompartmentMgr : ITfCompartmentMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCompartmentMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfComposition.cs b/sources/Interop/Windows/Windows/um/msctf/ITfComposition.cs index 63600d11d8..94a83c4673 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfComposition.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfComposition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("20168D64-5A8F-4A5A-B7BD-CFA29F4D0FD9")] [NativeTypeName("struct ITfComposition : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfComposition : ITfComposition.Interface +public unsafe partial struct ITfComposition : ITfComposition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfComposition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCompositionSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCompositionSink.cs index 27e6673eff..d66177077a 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCompositionSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCompositionSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A781718C-579A-4B15-A280-32B8577ACC5E")] [NativeTypeName("struct ITfCompositionSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCompositionSink : ITfCompositionSink.Interface +public unsafe partial struct ITfCompositionSink : ITfCompositionSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCompositionSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCompositionView.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCompositionView.cs index 35d8171c58..94a1d644c0 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCompositionView.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCompositionView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D7540241-F9A1-4364-BEFC-DBCD2C4395B7")] [NativeTypeName("struct ITfCompositionView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCompositionView : ITfCompositionView.Interface +public unsafe partial struct ITfCompositionView : ITfCompositionView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCompositionView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfConfigureSystemKeystrokeFeed.cs b/sources/Interop/Windows/Windows/um/msctf/ITfConfigureSystemKeystrokeFeed.cs index 5125870651..e0def3bf86 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfConfigureSystemKeystrokeFeed.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfConfigureSystemKeystrokeFeed.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0D2C969A-BC9C-437C-84EE-951C49B1A764")] [NativeTypeName("struct ITfConfigureSystemKeystrokeFeed : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfConfigureSystemKeystrokeFeed : ITfConfigureSystemKeystrokeFeed.Interface +public unsafe partial struct ITfConfigureSystemKeystrokeFeed : ITfConfigureSystemKeystrokeFeed.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfConfigureSystemKeystrokeFeed)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContext.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContext.cs index 250ba02eb8..a6a5958670 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContext.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7FD-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContext : ITfContext.Interface +public unsafe partial struct ITfContext : ITfContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextComposition.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextComposition.cs index 4ab8420da5..a29019d9b3 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextComposition.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextComposition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D40C8AAE-AC92-4FC7-9A11-0EE0E23AA39B")] [NativeTypeName("struct ITfContextComposition : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextComposition : ITfContextComposition.Interface +public unsafe partial struct ITfContextComposition : ITfContextComposition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextComposition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextKeyEventSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextKeyEventSink.cs index b6f997840e..c98262fa34 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextKeyEventSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextKeyEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0552BA5D-C835-4934-BF50-846AAA67432F")] [NativeTypeName("struct ITfContextKeyEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextKeyEventSink : ITfContextKeyEventSink.Interface +public unsafe partial struct ITfContextKeyEventSink : ITfContextKeyEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextKeyEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwner.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwner.cs index 6b233272a1..0d51ccc585 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwner.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E80C-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfContextOwner : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextOwner : ITfContextOwner.Interface +public unsafe partial struct ITfContextOwner : ITfContextOwner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextOwner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionServices.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionServices.cs index c4b663c76c..ff2216a260 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionServices.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("86462810-593B-4916-9764-19C08E9CE110")] [NativeTypeName("struct ITfContextOwnerCompositionServices : ITfContextComposition")] [NativeInheritance("ITfContextComposition")] -public unsafe partial struct ITfContextOwnerCompositionServices : ITfContextOwnerCompositionServices.Interface +public unsafe partial struct ITfContextOwnerCompositionServices : ITfContextOwnerCompositionServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextOwnerCompositionServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionSink.cs index 0fbf6eb74a..0c8fa8510b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerCompositionSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5F20AA40-B57A-4F34-96AB-3576F377CC79")] [NativeTypeName("struct ITfContextOwnerCompositionSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextOwnerCompositionSink : ITfContextOwnerCompositionSink.Interface +public unsafe partial struct ITfContextOwnerCompositionSink : ITfContextOwnerCompositionSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextOwnerCompositionSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerServices.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerServices.cs index 62e81cf677..077365836e 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerServices.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextOwnerServices.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B23EB630-3E1C-11D3-A745-0050040AB407")] [NativeTypeName("struct ITfContextOwnerServices : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextOwnerServices : ITfContextOwnerServices.Interface +public unsafe partial struct ITfContextOwnerServices : ITfContextOwnerServices.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextOwnerServices)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfContextView.cs b/sources/Interop/Windows/Windows/um/msctf/ITfContextView.cs index 0749039226..da962d74df 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfContextView.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfContextView.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2433BF8E-0F9B-435C-BA2C-180611978C30")] [NativeTypeName("struct ITfContextView : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfContextView : ITfContextView.Interface +public unsafe partial struct ITfContextView : ITfContextView.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfContextView)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfCreatePropertyStore.cs b/sources/Interop/Windows/Windows/um/msctf/ITfCreatePropertyStore.cs index 0c03ab4fdc..07b2497e59 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfCreatePropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfCreatePropertyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2463FBF0-B0AF-11D2-AFC5-00105A2799B5")] [NativeTypeName("struct ITfCreatePropertyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfCreatePropertyStore : ITfCreatePropertyStore.Interface +public unsafe partial struct ITfCreatePropertyStore : ITfCreatePropertyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfCreatePropertyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeInfo.cs b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeInfo.cs index 3386f7d494..defd672643 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeInfo.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70528852-2F26-4AEA-8C96-215150578932")] [NativeTypeName("struct ITfDisplayAttributeInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfDisplayAttributeInfo : ITfDisplayAttributeInfo.Interface +public unsafe partial struct ITfDisplayAttributeInfo : ITfDisplayAttributeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfDisplayAttributeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeMgr.cs index c778c2e8f3..35ca7314c7 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8DED7393-5DB1-475C-9E71-A39111B0FF67")] [NativeTypeName("struct ITfDisplayAttributeMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfDisplayAttributeMgr : ITfDisplayAttributeMgr.Interface +public unsafe partial struct ITfDisplayAttributeMgr : ITfDisplayAttributeMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfDisplayAttributeMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeNotifySink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeNotifySink.cs index 1981c81aaa..9a9e6eb2ee 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AD56F402-E162-4F25-908F-7D577CF9BDA9")] [NativeTypeName("struct ITfDisplayAttributeNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfDisplayAttributeNotifySink : ITfDisplayAttributeNotifySink.Interface +public unsafe partial struct ITfDisplayAttributeNotifySink : ITfDisplayAttributeNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfDisplayAttributeNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeProvider.cs b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeProvider.cs index 02f2c54def..dcbb7e16df 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeProvider.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfDisplayAttributeProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FEE47777-163C-4769-996A-6E9C50AD8F54")] [NativeTypeName("struct ITfDisplayAttributeProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfDisplayAttributeProvider : ITfDisplayAttributeProvider.Interface +public unsafe partial struct ITfDisplayAttributeProvider : ITfDisplayAttributeProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfDisplayAttributeProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfDocumentMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfDocumentMgr.cs index a83bf43661..5991c28629 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfDocumentMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfDocumentMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7F4-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfDocumentMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfDocumentMgr : ITfDocumentMgr.Interface +public unsafe partial struct ITfDocumentMgr : ITfDocumentMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfDocumentMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfEditRecord.cs b/sources/Interop/Windows/Windows/um/msctf/ITfEditRecord.cs index 905b4b74ed..c2ff202634 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfEditRecord.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfEditRecord.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("42D4D099-7C1A-4A89-B836-6C6F22160DF0")] [NativeTypeName("struct ITfEditRecord : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfEditRecord : ITfEditRecord.Interface +public unsafe partial struct ITfEditRecord : ITfEditRecord.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfEditRecord)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfEditSession.cs b/sources/Interop/Windows/Windows/um/msctf/ITfEditSession.cs index 67bd472357..1be3fd810b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfEditSession.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfEditSession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E803-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfEditSession : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfEditSession : ITfEditSession.Interface +public unsafe partial struct ITfEditSession : ITfEditSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfEditSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfEditTransactionSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfEditTransactionSink.cs index 32314ae77d..a3e9a963f4 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfEditTransactionSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfEditTransactionSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("708FBF70-B520-416B-B06C-2C41AB44F8BA")] [NativeTypeName("struct ITfEditTransactionSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfEditTransactionSink : ITfEditTransactionSink.Interface +public unsafe partial struct ITfEditTransactionSink : ITfEditTransactionSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfEditTransactionSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfFunction.cs b/sources/Interop/Windows/Windows/um/msctf/ITfFunction.cs index ce103ddab5..456218a2d6 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfFunction.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfFunction.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB593490-098F-11D3-8DF0-00105A2799B5")] [NativeTypeName("struct ITfFunction : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfFunction : ITfFunction.Interface +public unsafe partial struct ITfFunction : ITfFunction.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFunction)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfFunctionProvider.cs b/sources/Interop/Windows/Windows/um/msctf/ITfFunctionProvider.cs index ea6c640b34..c847570548 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfFunctionProvider.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfFunctionProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("101D6610-0990-11D3-8DF0-00105A2799B5")] [NativeTypeName("struct ITfFunctionProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfFunctionProvider : ITfFunctionProvider.Interface +public unsafe partial struct ITfFunctionProvider : ITfFunctionProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfFunctionProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileActivationSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileActivationSink.cs index 4dffb87a67..cdb47db72e 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileActivationSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileActivationSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71C6E74E-0F28-11D8-A82A-00065B84435C")] [NativeTypeName("struct ITfInputProcessorProfileActivationSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInputProcessorProfileActivationSink : ITfInputProcessorProfileActivationSink.Interface +public unsafe partial struct ITfInputProcessorProfileActivationSink : ITfInputProcessorProfileActivationSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputProcessorProfileActivationSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileMgr.cs index df0de76ea9..a15a944aa6 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71C6E74C-0F28-11D8-A82A-00065B84435C")] [NativeTypeName("struct ITfInputProcessorProfileMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInputProcessorProfileMgr : ITfInputProcessorProfileMgr.Interface +public unsafe partial struct ITfInputProcessorProfileMgr : ITfInputProcessorProfileMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputProcessorProfileMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileSubstituteLayout.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileSubstituteLayout.cs index 44d0789ca2..7cecbac03e 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileSubstituteLayout.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfileSubstituteLayout.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4FD67194-1002-4513-BFF2-C0DDF6258552")] [NativeTypeName("struct ITfInputProcessorProfileSubstituteLayout : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInputProcessorProfileSubstituteLayout : ITfInputProcessorProfileSubstituteLayout.Interface +public unsafe partial struct ITfInputProcessorProfileSubstituteLayout : ITfInputProcessorProfileSubstituteLayout.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputProcessorProfileSubstituteLayout)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfiles.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfiles.cs index 9081d652f9..172a3ee94d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfiles.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfiles.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1F02B6C5-7842-4EE6-8A0B-9A24183A95CA")] [NativeTypeName("struct ITfInputProcessorProfiles : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInputProcessorProfiles : ITfInputProcessorProfiles.Interface +public unsafe partial struct ITfInputProcessorProfiles : ITfInputProcessorProfiles.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputProcessorProfiles)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfilesEx.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfilesEx.cs index 357b815342..98bb88de80 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfilesEx.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInputProcessorProfilesEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("892F230F-FE00-4A41-A98E-FCD6DE0D35EF")] [NativeTypeName("struct ITfInputProcessorProfilesEx : ITfInputProcessorProfiles")] [NativeInheritance("ITfInputProcessorProfiles")] -public unsafe partial struct ITfInputProcessorProfilesEx : ITfInputProcessorProfilesEx.Interface +public unsafe partial struct ITfInputProcessorProfilesEx : ITfInputProcessorProfilesEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInputProcessorProfilesEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfInsertAtSelection.cs b/sources/Interop/Windows/Windows/um/msctf/ITfInsertAtSelection.cs index b3dc8cfe83..900f026312 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfInsertAtSelection.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfInsertAtSelection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("55CE16BA-3014-41C1-9CEB-FADE1446AC6C")] [NativeTypeName("struct ITfInsertAtSelection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfInsertAtSelection : ITfInsertAtSelection.Interface +public unsafe partial struct ITfInsertAtSelection : ITfInsertAtSelection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfInsertAtSelection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfKeyEventSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfKeyEventSink.cs index 9525188674..469f74c112 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfKeyEventSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfKeyEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7F5-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfKeyEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfKeyEventSink : ITfKeyEventSink.Interface +public unsafe partial struct ITfKeyEventSink : ITfKeyEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfKeyEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfKeyTraceEventSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfKeyTraceEventSink.cs index 9096eb4c53..9aa3baeb18 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfKeyTraceEventSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfKeyTraceEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1CD4C13B-1C36-4191-A70A-7F3E611F367D")] [NativeTypeName("struct ITfKeyTraceEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfKeyTraceEventSink : ITfKeyTraceEventSink.Interface +public unsafe partial struct ITfKeyTraceEventSink : ITfKeyTraceEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfKeyTraceEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfKeystrokeMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfKeystrokeMgr.cs index 3a986bea53..483b4cdb03 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfKeystrokeMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfKeystrokeMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7F0-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfKeystrokeMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfKeystrokeMgr : ITfKeystrokeMgr.Interface +public unsafe partial struct ITfKeystrokeMgr : ITfKeystrokeMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfKeystrokeMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfLanguageProfileNotifySink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfLanguageProfileNotifySink.cs index 4f79044ad7..d01216816a 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfLanguageProfileNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfLanguageProfileNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("43C9FE15-F494-4C17-9DE2-B8A4AC350AA8")] [NativeTypeName("struct ITfLanguageProfileNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfLanguageProfileNotifySink : ITfLanguageProfileNotifySink.Interface +public unsafe partial struct ITfLanguageProfileNotifySink : ITfLanguageProfileNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfLanguageProfileNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfMessagePump.cs b/sources/Interop/Windows/Windows/um/msctf/ITfMessagePump.cs index 6861ec0d73..25d29cd9fe 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfMessagePump.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfMessagePump.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8F1B8AD8-0B6B-4874-90C5-BD76011E8F7C")] [NativeTypeName("struct ITfMessagePump : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMessagePump : ITfMessagePump.Interface +public unsafe partial struct ITfMessagePump : ITfMessagePump.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMessagePump)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfMouseSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfMouseSink.cs index 556ad49391..60c8d4decc 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfMouseSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfMouseSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A1ADAAA2-3A24-449D-AC96-5183E7F5C217")] [NativeTypeName("struct ITfMouseSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMouseSink : ITfMouseSink.Interface +public unsafe partial struct ITfMouseSink : ITfMouseSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMouseSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfMouseTracker.cs b/sources/Interop/Windows/Windows/um/msctf/ITfMouseTracker.cs index 58ec4ebb29..e23f117a2b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfMouseTracker.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfMouseTracker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("09D146CD-A544-4132-925B-7AFA8EF322D0")] [NativeTypeName("struct ITfMouseTracker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMouseTracker : ITfMouseTracker.Interface +public unsafe partial struct ITfMouseTracker : ITfMouseTracker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMouseTracker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfMouseTrackerACP.cs b/sources/Interop/Windows/Windows/um/msctf/ITfMouseTrackerACP.cs index fed215c1d3..841d1f9ef1 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfMouseTrackerACP.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfMouseTrackerACP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3BDD78E2-C16E-47FD-B883-CE6FACC1A208")] [NativeTypeName("struct ITfMouseTrackerACP : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfMouseTrackerACP : ITfMouseTrackerACP.Interface +public unsafe partial struct ITfMouseTrackerACP : ITfMouseTrackerACP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfMouseTrackerACP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfPersistentPropertyLoaderACP.cs b/sources/Interop/Windows/Windows/um/msctf/ITfPersistentPropertyLoaderACP.cs index 6d2a3a0bb6..66c666636c 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfPersistentPropertyLoaderACP.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfPersistentPropertyLoaderACP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4EF89150-0807-11D3-8DF0-00105A2799B5")] [NativeTypeName("struct ITfPersistentPropertyLoaderACP : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfPersistentPropertyLoaderACP : ITfPersistentPropertyLoaderACP.Interface +public unsafe partial struct ITfPersistentPropertyLoaderACP : ITfPersistentPropertyLoaderACP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfPersistentPropertyLoaderACP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfPreservedKeyNotifySink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfPreservedKeyNotifySink.cs index afa3f3f99e..62fde9c4b4 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfPreservedKeyNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfPreservedKeyNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6F77C993-D2B1-446E-853E-5912EFC8A286")] [NativeTypeName("struct ITfPreservedKeyNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfPreservedKeyNotifySink : ITfPreservedKeyNotifySink.Interface +public unsafe partial struct ITfPreservedKeyNotifySink : ITfPreservedKeyNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfPreservedKeyNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfProperty.cs b/sources/Interop/Windows/Windows/um/msctf/ITfProperty.cs index ad9b986b71..4902b24f00 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfProperty.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfProperty.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E2449660-9542-11D2-BF46-00105A2799B5")] [NativeTypeName("struct ITfProperty : ITfReadOnlyProperty")] [NativeInheritance("ITfReadOnlyProperty")] -public unsafe partial struct ITfProperty : ITfProperty.Interface +public unsafe partial struct ITfProperty : ITfProperty.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfProperty)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfPropertyStore.cs b/sources/Interop/Windows/Windows/um/msctf/ITfPropertyStore.cs index 90a3ca57f1..bcdd38f8c0 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfPropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfPropertyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6834B120-88CB-11D2-BF45-00105A2799B5")] [NativeTypeName("struct ITfPropertyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfPropertyStore : ITfPropertyStore.Interface +public unsafe partial struct ITfPropertyStore : ITfPropertyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfPropertyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfQueryEmbedded.cs b/sources/Interop/Windows/Windows/um/msctf/ITfQueryEmbedded.cs index 95152b03a7..8f7c90fee7 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfQueryEmbedded.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfQueryEmbedded.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0FAB9BDB-D250-4169-84E5-6BE118FDD7A8")] [NativeTypeName("struct ITfQueryEmbedded : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfQueryEmbedded : ITfQueryEmbedded.Interface +public unsafe partial struct ITfQueryEmbedded : ITfQueryEmbedded.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfQueryEmbedded)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfRange.cs b/sources/Interop/Windows/Windows/um/msctf/ITfRange.cs index fdbd0da868..d3c1b0724d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfRange.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfRange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7FF-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfRange : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfRange : ITfRange.Interface +public unsafe partial struct ITfRange : ITfRange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfRange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfRangeACP.cs b/sources/Interop/Windows/Windows/um/msctf/ITfRangeACP.cs index 5ddd9c3a60..fb2f9d2dbb 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfRangeACP.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfRangeACP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("057A6296-029B-4154-B79A-0D461D4EA94C")] [NativeTypeName("struct ITfRangeACP : ITfRange")] [NativeInheritance("ITfRange")] -public unsafe partial struct ITfRangeACP : ITfRangeACP.Interface +public unsafe partial struct ITfRangeACP : ITfRangeACP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfRangeACP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfRangeBackup.cs b/sources/Interop/Windows/Windows/um/msctf/ITfRangeBackup.cs index 0687a3aa02..fa742c69ca 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfRangeBackup.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfRangeBackup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("463A506D-6992-49D2-9B88-93D55E70BB16")] [NativeTypeName("struct ITfRangeBackup : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfRangeBackup : ITfRangeBackup.Interface +public unsafe partial struct ITfRangeBackup : ITfRangeBackup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfRangeBackup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfReadOnlyProperty.cs b/sources/Interop/Windows/Windows/um/msctf/ITfReadOnlyProperty.cs index 676b527f16..3f26e12cfa 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfReadOnlyProperty.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfReadOnlyProperty.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("17D49A3D-F8B8-4B2F-B254-52319DD64C53")] [NativeTypeName("struct ITfReadOnlyProperty : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfReadOnlyProperty : ITfReadOnlyProperty.Interface +public unsafe partial struct ITfReadOnlyProperty : ITfReadOnlyProperty.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfReadOnlyProperty)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfReadingInformationUIElement.cs b/sources/Interop/Windows/Windows/um/msctf/ITfReadingInformationUIElement.cs index 8b19fdfbf2..9f90aaaf8e 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfReadingInformationUIElement.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfReadingInformationUIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1EA139-19DF-11D7-A6D2-00065B84435C")] [NativeTypeName("struct ITfReadingInformationUIElement : ITfUIElement")] [NativeInheritance("ITfUIElement")] -public unsafe partial struct ITfReadingInformationUIElement : ITfReadingInformationUIElement.Interface +public unsafe partial struct ITfReadingInformationUIElement : ITfReadingInformationUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfReadingInformationUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversion.cs b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversion.cs index b7112e8eda..231390d1ee 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversion.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversion.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A415E162-157D-417D-8A8C-0AB26C7D2781")] [NativeTypeName("struct ITfReverseConversion : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfReverseConversion : ITfReverseConversion.Interface +public unsafe partial struct ITfReverseConversion : ITfReverseConversion.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfReverseConversion)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionList.cs b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionList.cs index 21d04b27d1..6818459263 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionList.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("151D69F0-86F4-4674-B721-56911E797F47")] [NativeTypeName("struct ITfReverseConversionList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfReverseConversionList : ITfReverseConversionList.Interface +public unsafe partial struct ITfReverseConversionList : ITfReverseConversionList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfReverseConversionList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionMgr.cs index fd0cd087cb..77cde6c35b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfReverseConversionMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B643C236-C493-41B6-ABB3-692412775CC4")] [NativeTypeName("struct ITfReverseConversionMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfReverseConversionMgr : ITfReverseConversionMgr.Interface +public unsafe partial struct ITfReverseConversionMgr : ITfReverseConversionMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfReverseConversionMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfSource.cs b/sources/Interop/Windows/Windows/um/msctf/ITfSource.cs index ae75641849..03dea3af8b 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfSource.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4EA48A35-60AE-446F-8FD6-E6A8D82459F7")] [NativeTypeName("struct ITfSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSource : ITfSource.Interface +public unsafe partial struct ITfSource : ITfSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfSourceSingle.cs b/sources/Interop/Windows/Windows/um/msctf/ITfSourceSingle.cs index 8605a15a51..ec17b30cb8 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfSourceSingle.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfSourceSingle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("73131F9C-56A9-49DD-B0EE-D046633F7528")] [NativeTypeName("struct ITfSourceSingle : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfSourceSingle : ITfSourceSingle.Interface +public unsafe partial struct ITfSourceSingle : ITfSourceSingle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfSourceSingle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfStatusSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfStatusSink.cs index d0a7959a2e..98c7570218 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfStatusSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfStatusSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6B7D8D73-B267-4F69-B32E-1CA321CE4F45")] [NativeTypeName("struct ITfStatusSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfStatusSink : ITfStatusSink.Interface +public unsafe partial struct ITfStatusSink : ITfStatusSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfStatusSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTextEditSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTextEditSink.cs index d355bc0825..c476089b6d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTextEditSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTextEditSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8127D409-CCD3-4683-967A-B43D5B482BF7")] [NativeTypeName("struct ITfTextEditSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfTextEditSink : ITfTextEditSink.Interface +public unsafe partial struct ITfTextEditSink : ITfTextEditSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTextEditSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessor.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessor.cs index 0acffc3602..0911c12279 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessor.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E7F7-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfTextInputProcessor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfTextInputProcessor : ITfTextInputProcessor.Interface +public unsafe partial struct ITfTextInputProcessor : ITfTextInputProcessor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTextInputProcessor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessorEx.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessorEx.cs index 16247840bc..6bfd9958b3 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessorEx.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTextInputProcessorEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6E4E2102-F9CD-433D-B496-303CE03A6507")] [NativeTypeName("struct ITfTextInputProcessorEx : ITfTextInputProcessor")] [NativeInheritance("ITfTextInputProcessor")] -public unsafe partial struct ITfTextInputProcessorEx : ITfTextInputProcessorEx.Interface +public unsafe partial struct ITfTextInputProcessorEx : ITfTextInputProcessorEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTextInputProcessorEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTextLayoutSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTextLayoutSink.cs index 7ee3af0ed4..361a26415a 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTextLayoutSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTextLayoutSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2AF2D06A-DD5B-4927-A0B4-54F19C91FADE")] [NativeTypeName("struct ITfTextLayoutSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfTextLayoutSink : ITfTextLayoutSink.Interface +public unsafe partial struct ITfTextLayoutSink : ITfTextLayoutSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTextLayoutSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfThreadFocusSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfThreadFocusSink.cs index 1bc570d607..79996e9c85 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfThreadFocusSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfThreadFocusSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C0F1DB0C-3A20-405C-A303-96B6010A885F")] [NativeTypeName("struct ITfThreadFocusSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfThreadFocusSink : ITfThreadFocusSink.Interface +public unsafe partial struct ITfThreadFocusSink : ITfThreadFocusSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfThreadFocusSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr.cs index b6d261e65f..0613e167b0 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E801-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfThreadMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfThreadMgr : ITfThreadMgr.Interface +public unsafe partial struct ITfThreadMgr : ITfThreadMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfThreadMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr2.cs b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr2.cs index 8849be9170..23ce73b60d 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr2.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgr2.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct ITfThreadMgr2 : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct ITfThreadMgr2 : ITfThreadMgr2.Interface +public unsafe partial struct ITfThreadMgr2 : ITfThreadMgr2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfThreadMgr2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEventSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEventSink.cs index 1ec46df95a..ad46495017 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEventSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AA80E80E-2021-11D2-93E0-0060B067B86E")] [NativeTypeName("struct ITfThreadMgrEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfThreadMgrEventSink : ITfThreadMgrEventSink.Interface +public unsafe partial struct ITfThreadMgrEventSink : ITfThreadMgrEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfThreadMgrEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEx.cs b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEx.cs index a9afe8f66f..94af7a8356 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEx.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfThreadMgrEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3E90ADE3-7594-4CB0-BB58-69628F5F458C")] [NativeTypeName("struct ITfThreadMgrEx : ITfThreadMgr")] [NativeInheritance("ITfThreadMgr")] -public unsafe partial struct ITfThreadMgrEx : ITfThreadMgrEx.Interface +public unsafe partial struct ITfThreadMgrEx : ITfThreadMgrEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfThreadMgrEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfToolTipUIElement.cs b/sources/Interop/Windows/Windows/um/msctf/ITfToolTipUIElement.cs index 2a181082f9..59506c2a08 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfToolTipUIElement.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfToolTipUIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("52B18B5C-555D-46B2-B00A-FA680144FBDB")] [NativeTypeName("struct ITfToolTipUIElement : ITfUIElement")] [NativeInheritance("ITfUIElement")] -public unsafe partial struct ITfToolTipUIElement : ITfToolTipUIElement.Interface +public unsafe partial struct ITfToolTipUIElement : ITfToolTipUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfToolTipUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionSink.cs index 07a489f431..a5fbcfc480 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A615096F-1C57-4813-8A15-55EE6E5A839C")] [NativeTypeName("struct ITfTransitoryExtensionSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfTransitoryExtensionSink : ITfTransitoryExtensionSink.Interface +public unsafe partial struct ITfTransitoryExtensionSink : ITfTransitoryExtensionSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTransitoryExtensionSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionUIElement.cs b/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionUIElement.cs index 2c9087f5b9..3a214b8192 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionUIElement.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfTransitoryExtensionUIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("858F956A-972F-42A2-A2F2-0321E1ABE209")] [NativeTypeName("struct ITfTransitoryExtensionUIElement : ITfUIElement")] [NativeInheritance("ITfUIElement")] -public unsafe partial struct ITfTransitoryExtensionUIElement : ITfTransitoryExtensionUIElement.Interface +public unsafe partial struct ITfTransitoryExtensionUIElement : ITfTransitoryExtensionUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfTransitoryExtensionUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfUIElement.cs b/sources/Interop/Windows/Windows/um/msctf/ITfUIElement.cs index 7643a4d99a..fa5c7f3c71 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfUIElement.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfUIElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1EA137-19DF-11D7-A6D2-00065B84435C")] [NativeTypeName("struct ITfUIElement : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfUIElement : ITfUIElement.Interface +public unsafe partial struct ITfUIElement : ITfUIElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfUIElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfUIElementMgr.cs b/sources/Interop/Windows/Windows/um/msctf/ITfUIElementMgr.cs index ca7d955472..41215b38d4 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfUIElementMgr.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfUIElementMgr.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1EA135-19DF-11D7-A6D2-00065B84435C")] [NativeTypeName("struct ITfUIElementMgr : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfUIElementMgr : ITfUIElementMgr.Interface +public unsafe partial struct ITfUIElementMgr : ITfUIElementMgr.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfUIElementMgr)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/ITfUIElementSink.cs b/sources/Interop/Windows/Windows/um/msctf/ITfUIElementSink.cs index 7d132bf0d1..81e99aceb7 100644 --- a/sources/Interop/Windows/Windows/um/msctf/ITfUIElementSink.cs +++ b/sources/Interop/Windows/Windows/um/msctf/ITfUIElementSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EA1EA136-19DF-11D7-A6D2-00065B84435C")] [NativeTypeName("struct ITfUIElementSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITfUIElementSink : ITfUIElementSink.Interface +public unsafe partial struct ITfUIElementSink : ITfUIElementSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITfUIElementSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msctf/TF_DA_COLOR.cs b/sources/Interop/Windows/Windows/um/msctf/TF_DA_COLOR.cs index 9c9d0baecd..152f2ace10 100644 --- a/sources/Interop/Windows/Windows/um/msctf/TF_DA_COLOR.cs +++ b/sources/Interop/Windows/Windows/um/msctf/TF_DA_COLOR.cs @@ -3,6 +3,7 @@ // Ported from um/msctf.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct TF_DA_COLOR public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref int nIndex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.nIndex, 1)); + return ref Anonymous.nIndex; } } /// + [UnscopedRef] public ref COLORREF cr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cr, 1)); + return ref Anonymous.cr; } } diff --git a/sources/Interop/Windows/Windows/um/mssip/SIP_CAP_SET_V3.cs b/sources/Interop/Windows/Windows/um/mssip/SIP_CAP_SET_V3.cs index 8214ab3e12..8febae1757 100644 --- a/sources/Interop/Windows/Windows/um/mssip/SIP_CAP_SET_V3.cs +++ b/sources/Interop/Windows/Windows/um/mssip/SIP_CAP_SET_V3.cs @@ -3,6 +3,7 @@ // Ported from um/mssip.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,22 +28,24 @@ public partial struct SIP_CAP_SET_V3 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint dwFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFlags, 1)); + return ref Anonymous.dwFlags; } } /// + [UnscopedRef] public ref uint dwReserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwReserved, 1)); + return ref Anonymous.dwReserved; } } diff --git a/sources/Interop/Windows/Windows/um/mssip/SIP_SUBJECTINFO.cs b/sources/Interop/Windows/Windows/um/mssip/SIP_SUBJECTINFO.cs index 7e46c51e96..7e428d3c5e 100644 --- a/sources/Interop/Windows/Windows/um/mssip/SIP_SUBJECTINFO.cs +++ b/sources/Interop/Windows/Windows/um/mssip/SIP_SUBJECTINFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -81,32 +82,35 @@ public unsafe partial struct SIP_SUBJECTINFO public void* pClientData; /// + [UnscopedRef] public ref MS_ADDINFO_FLAT* psFlat { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.psFlat; + return ref Anonymous.psFlat; } } /// + [UnscopedRef] public ref MS_ADDINFO_CATALOGMEMBER* psCatMember { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.psCatMember; + return ref Anonymous.psCatMember; } } /// + [UnscopedRef] public ref MS_ADDINFO_BLOB* psBlob { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.psBlob; + return ref Anonymous.psBlob; } } diff --git a/sources/Interop/Windows/Windows/um/msxml/DOMDocument.cs b/sources/Interop/Windows/Windows/um/msxml/DOMDocument.cs index 38cf216ad1..5d9bceb23d 100644 --- a/sources/Interop/Windows/Windows/um/msxml/DOMDocument.cs +++ b/sources/Interop/Windows/Windows/um/msxml/DOMDocument.cs @@ -3,12 +3,16 @@ // Ported from um/msxml.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2933BF90-7B36-11D2-B20E-00C04F983E60")] -public partial struct DOMDocument +public unsafe partial struct DOMDocument : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DOMDocument)); } diff --git a/sources/Interop/Windows/Windows/um/msxml/DOMFreeThreadedDocument.cs b/sources/Interop/Windows/Windows/um/msxml/DOMFreeThreadedDocument.cs index 700d155bbf..1a85886e72 100644 --- a/sources/Interop/Windows/Windows/um/msxml/DOMFreeThreadedDocument.cs +++ b/sources/Interop/Windows/Windows/um/msxml/DOMFreeThreadedDocument.cs @@ -3,12 +3,16 @@ // Ported from um/msxml.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("2933BF91-7B36-11D2-B20E-00C04F983E60")] -public partial struct DOMFreeThreadedDocument +public unsafe partial struct DOMFreeThreadedDocument : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_DOMFreeThreadedDocument)); } diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLAttribute.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLAttribute.cs index 9482edd1bd..13ac3ef30a 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLAttribute.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLAttribute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D4D4A0FC-3B73-11D1-B2B4-00C04FB92596")] [NativeTypeName("struct IXMLAttribute : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLAttribute : IXMLAttribute.Interface +public unsafe partial struct IXMLAttribute : IXMLAttribute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLAttribute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMAttribute.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMAttribute.cs index 9265c05fcc..6399b17a08 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMAttribute.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMAttribute.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF85-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMAttribute : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMAttribute : IXMLDOMAttribute.Interface +public unsafe partial struct IXMLDOMAttribute : IXMLDOMAttribute.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMAttribute)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCDATASection.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCDATASection.cs index 90ffa2f9d1..ea6abb49ad 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCDATASection.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCDATASection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8A-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMCDATASection : IXMLDOMText")] [NativeInheritance("IXMLDOMText")] -public unsafe partial struct IXMLDOMCDATASection : IXMLDOMCDATASection.Interface +public unsafe partial struct IXMLDOMCDATASection : IXMLDOMCDATASection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMCDATASection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCharacterData.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCharacterData.cs index ee29671fbc..810fed13b1 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCharacterData.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMCharacterData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF84-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMCharacterData : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMCharacterData : IXMLDOMCharacterData.Interface +public unsafe partial struct IXMLDOMCharacterData : IXMLDOMCharacterData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMCharacterData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMComment.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMComment.cs index eaf73f0104..6a5e409bf3 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMComment.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMComment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF88-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMComment : IXMLDOMCharacterData")] [NativeInheritance("IXMLDOMCharacterData")] -public unsafe partial struct IXMLDOMComment : IXMLDOMComment.Interface +public unsafe partial struct IXMLDOMComment : IXMLDOMComment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMComment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocument.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocument.cs index adb3678ef3..6bd79d5c13 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocument.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF81-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMDocument : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMDocument : IXMLDOMDocument.Interface +public unsafe partial struct IXMLDOMDocument : IXMLDOMDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentFragment.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentFragment.cs index 2be1cdd239..4f69db391c 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentFragment.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentFragment.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3EFAA413-272F-11D2-836F-0000F87A7782")] [NativeTypeName("struct IXMLDOMDocumentFragment : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMDocumentFragment : IXMLDOMDocumentFragment.Interface +public unsafe partial struct IXMLDOMDocumentFragment : IXMLDOMDocumentFragment.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMDocumentFragment)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentType.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentType.cs index d293d46cda..7d1e04de57 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentType.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMDocumentType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8B-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMDocumentType : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMDocumentType : IXMLDOMDocumentType.Interface +public unsafe partial struct IXMLDOMDocumentType : IXMLDOMDocumentType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMDocumentType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMElement.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMElement.cs index 1dc2f8b32b..0ce0ecddb3 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMElement.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF86-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMElement : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMElement : IXMLDOMElement.Interface +public unsafe partial struct IXMLDOMElement : IXMLDOMElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntity.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntity.cs index 567af86f78..2b8fa7172e 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntity.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntity.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8D-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMEntity : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMEntity : IXMLDOMEntity.Interface +public unsafe partial struct IXMLDOMEntity : IXMLDOMEntity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMEntity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntityReference.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntityReference.cs index bfb669753f..ed7c338576 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntityReference.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMEntityReference.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8E-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMEntityReference : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMEntityReference : IXMLDOMEntityReference.Interface +public unsafe partial struct IXMLDOMEntityReference : IXMLDOMEntityReference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMEntityReference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMImplementation.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMImplementation.cs index eef8d82ad8..a088d78b1d 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMImplementation.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMImplementation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8F-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMImplementation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDOMImplementation : IXMLDOMImplementation.Interface +public unsafe partial struct IXMLDOMImplementation : IXMLDOMImplementation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMImplementation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNamedNodeMap.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNamedNodeMap.cs index 13f24aaf38..e403db44e4 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNamedNodeMap.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNamedNodeMap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF83-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMNamedNodeMap : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDOMNamedNodeMap : IXMLDOMNamedNodeMap.Interface +public unsafe partial struct IXMLDOMNamedNodeMap : IXMLDOMNamedNodeMap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMNamedNodeMap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNode.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNode.cs index c3a1735e4a..20f0cc9281 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNode.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF80-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMNode : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDOMNode : IXMLDOMNode.Interface +public unsafe partial struct IXMLDOMNode : IXMLDOMNode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMNode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNodeList.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNodeList.cs index a094a03262..08bee9fb99 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNodeList.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNodeList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF82-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMNodeList : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDOMNodeList : IXMLDOMNodeList.Interface +public unsafe partial struct IXMLDOMNodeList : IXMLDOMNodeList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMNodeList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNotation.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNotation.cs index baecda3617..90c344a1f3 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNotation.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMNotation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF8C-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMNotation : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMNotation : IXMLDOMNotation.Interface +public unsafe partial struct IXMLDOMNotation : IXMLDOMNotation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMNotation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMParseError.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMParseError.cs index 79f3e2a89b..fdc1a4bb27 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMParseError.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMParseError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3EFAA426-272F-11D2-836F-0000F87A7782")] [NativeTypeName("struct IXMLDOMParseError : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDOMParseError : IXMLDOMParseError.Interface +public unsafe partial struct IXMLDOMParseError : IXMLDOMParseError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMParseError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMProcessingInstruction.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMProcessingInstruction.cs index e96788d51d..6e41ce3acc 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMProcessingInstruction.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMProcessingInstruction.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF89-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMProcessingInstruction : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXMLDOMProcessingInstruction : IXMLDOMProcessingInstruction.Interface +public unsafe partial struct IXMLDOMProcessingInstruction : IXMLDOMProcessingInstruction.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMProcessingInstruction)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMText.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMText.cs index 788c3471e6..289d66207d 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDOMText.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDOMText.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2933BF87-7B36-11D2-B20E-00C04F983E60")] [NativeTypeName("struct IXMLDOMText : IXMLDOMCharacterData")] [NativeInheritance("IXMLDOMCharacterData")] -public unsafe partial struct IXMLDOMText : IXMLDOMText.Interface +public unsafe partial struct IXMLDOMText : IXMLDOMText.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDOMText)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDSOControl.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDSOControl.cs index 168ef95a3b..8a138c1eba 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDSOControl.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDSOControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("310AFA62-0575-11D2-9CA9-0060B0EC3D39")] [NativeTypeName("struct IXMLDSOControl : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDSOControl : IXMLDSOControl.Interface +public unsafe partial struct IXMLDSOControl : IXMLDSOControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDSOControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDocument.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDocument.cs index 3dc09b8581..0cb26c53a3 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDocument.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F52E2B61-18A1-11D1-B105-00805F49916B")] [NativeTypeName("struct IXMLDocument : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDocument : IXMLDocument.Interface +public unsafe partial struct IXMLDocument : IXMLDocument.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDocument)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLDocument2.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLDocument2.cs index 6b89726683..fb62aacec8 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLDocument2.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLDocument2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2B8DE2FE-8D2D-11D1-B2FC-00C04FD915A9")] [NativeTypeName("struct IXMLDocument2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLDocument2 : IXMLDocument2.Interface +public unsafe partial struct IXMLDocument2 : IXMLDocument2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLDocument2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLElement.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLElement.cs index 73525b99eb..9c660879d3 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLElement.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3F7F31AC-E15F-11D0-9C25-00C04FC99C8E")] [NativeTypeName("struct IXMLElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLElement : IXMLElement.Interface +public unsafe partial struct IXMLElement : IXMLElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLElement2.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLElement2.cs index 35d491f7e3..290be62a5f 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLElement2.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLElement2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2B8DE2FF-8D2D-11D1-B2FC-00C04FD915A9")] [NativeTypeName("struct IXMLElement2 : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLElement2 : IXMLElement2.Interface +public unsafe partial struct IXMLElement2 : IXMLElement2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLElement2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLElementCollection.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLElementCollection.cs index b37dee5478..7af6cebc05 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLElementCollection.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLElementCollection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("65725580-9B5D-11D0-9BFE-00C04FC99C8E")] [NativeTypeName("struct IXMLElementCollection : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLElementCollection : IXMLElementCollection.Interface +public unsafe partial struct IXMLElementCollection : IXMLElementCollection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLElementCollection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLError.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLError.cs index 537f78afdb..87f928082d 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLError.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLError.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("948C5AD3-C58D-11D0-9C0B-00C04FC99C8E")] [NativeTypeName("struct IXMLError : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXMLError : IXMLError.Interface +public unsafe partial struct IXMLError : IXMLError.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLError)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXMLHttpRequest.cs b/sources/Interop/Windows/Windows/um/msxml/IXMLHttpRequest.cs index 8879cc3637..034b126967 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXMLHttpRequest.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXMLHttpRequest.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ED8C108D-4349-11D2-91A4-00C04F7969E8")] [NativeTypeName("struct IXMLHttpRequest : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IXMLHttpRequest : IXMLHttpRequest.Interface +public unsafe partial struct IXMLHttpRequest : IXMLHttpRequest.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXMLHttpRequest)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/IXTLRuntime.cs b/sources/Interop/Windows/Windows/um/msxml/IXTLRuntime.cs index f541168064..1cb8cc496b 100644 --- a/sources/Interop/Windows/Windows/um/msxml/IXTLRuntime.cs +++ b/sources/Interop/Windows/Windows/um/msxml/IXTLRuntime.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3EFAA425-272F-11D2-836F-0000F87A7782")] [NativeTypeName("struct IXTLRuntime : IXMLDOMNode")] [NativeInheritance("IXMLDOMNode")] -public unsafe partial struct IXTLRuntime : IXTLRuntime.Interface +public unsafe partial struct IXTLRuntime : IXTLRuntime.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXTLRuntime)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/XMLDOMDocumentEvents.cs b/sources/Interop/Windows/Windows/um/msxml/XMLDOMDocumentEvents.cs index 2b7a279ef9..00c2fafcec 100644 --- a/sources/Interop/Windows/Windows/um/msxml/XMLDOMDocumentEvents.cs +++ b/sources/Interop/Windows/Windows/um/msxml/XMLDOMDocumentEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3EFAA427-272F-11D2-836F-0000F87A7782")] [NativeTypeName("struct XMLDOMDocumentEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct XMLDOMDocumentEvents : XMLDOMDocumentEvents.Interface +public unsafe partial struct XMLDOMDocumentEvents : XMLDOMDocumentEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in DIID_XMLDOMDocumentEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/msxml/XMLDSOControl.cs b/sources/Interop/Windows/Windows/um/msxml/XMLDSOControl.cs index 956f768dc5..729b67cddc 100644 --- a/sources/Interop/Windows/Windows/um/msxml/XMLDSOControl.cs +++ b/sources/Interop/Windows/Windows/um/msxml/XMLDSOControl.cs @@ -3,12 +3,16 @@ // Ported from um/msxml.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("550DDA30-0541-11D2-9CA9-0060B0EC3D39")] -public partial struct XMLDSOControl +public unsafe partial struct XMLDSOControl : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_XMLDSOControl)); } diff --git a/sources/Interop/Windows/Windows/um/msxml/XMLDocument.cs b/sources/Interop/Windows/Windows/um/msxml/XMLDocument.cs index 8092621c02..f69931c5e0 100644 --- a/sources/Interop/Windows/Windows/um/msxml/XMLDocument.cs +++ b/sources/Interop/Windows/Windows/um/msxml/XMLDocument.cs @@ -3,12 +3,16 @@ // Ported from um/msxml.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("CFC399AF-D876-11D0-9C10-00C04FC99C8E")] -public partial struct XMLDocument +public unsafe partial struct XMLDocument : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_XMLDocument)); } diff --git a/sources/Interop/Windows/Windows/um/msxml/XMLHTTPRequest.cs b/sources/Interop/Windows/Windows/um/msxml/XMLHTTPRequest.cs index 9a8096ee08..e86780760f 100644 --- a/sources/Interop/Windows/Windows/um/msxml/XMLHTTPRequest.cs +++ b/sources/Interop/Windows/Windows/um/msxml/XMLHTTPRequest.cs @@ -3,12 +3,16 @@ // Ported from um/msxml.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("ED8C108E-4349-11D2-91A4-00C04F7969E8")] -public partial struct XMLHTTPRequest +public unsafe partial struct XMLHTTPRequest : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_XMLHTTPRequest)); } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_ADD_CREDENTIALS_REQUEST_EX.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_ADD_CREDENTIALS_REQUEST_EX.cs index 3c74a1818d..8ac5556be8 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_ADD_CREDENTIALS_REQUEST_EX.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_ADD_CREDENTIALS_REQUEST_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _PrincipalNames_e__FixedBuffer { public LSA_UNICODE_STRING e0; + [UnscopedRef] public ref LSA_UNICODE_STRING this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref LSA_UNICODE_STRING this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_EXTERNAL_NAME.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_EXTERNAL_NAME.cs index cd0ebaa15d..a2932d3e9b 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_EXTERNAL_NAME.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_EXTERNAL_NAME.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,6 +28,7 @@ public partial struct _Names_e__FixedBuffer { public LSA_UNICODE_STRING e0; + [UnscopedRef] public ref LSA_UNICODE_STRING this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref LSA_UNICODE_STRING this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_NET_ADDRESSES.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_NET_ADDRESSES.cs index 91b6181710..3437a2a5e7 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_NET_ADDRESSES.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_NET_ADDRESSES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Addresses_e__FixedBuffer { public KERB_NET_ADDRESS e0; + [UnscopedRef] public ref KERB_NET_ADDRESS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref KERB_NET_ADDRESS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX2_RESPONSE.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX2_RESPONSE.cs index d1e0682648..f685e2542c 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX2_RESPONSE.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX2_RESPONSE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _Tickets_e__FixedBuffer { public KERB_TICKET_CACHE_INFO_EX2 e0; + [UnscopedRef] public ref KERB_TICKET_CACHE_INFO_EX2 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref KERB_TICKET_CACHE_INFO_EX2 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX3_RESPONSE.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX3_RESPONSE.cs index 1c6049f8f5..428e7f2649 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX3_RESPONSE.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX3_RESPONSE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _Tickets_e__FixedBuffer { public KERB_TICKET_CACHE_INFO_EX3 e0; + [UnscopedRef] public ref KERB_TICKET_CACHE_INFO_EX3 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref KERB_TICKET_CACHE_INFO_EX3 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX_RESPONSE.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX_RESPONSE.cs index 45905c4844..6a12106fe1 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX_RESPONSE.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_EX_RESPONSE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _Tickets_e__FixedBuffer { public KERB_TICKET_CACHE_INFO_EX e0; + [UnscopedRef] public ref KERB_TICKET_CACHE_INFO_EX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref KERB_TICKET_CACHE_INFO_EX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_RESPONSE.cs b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_RESPONSE.cs index 8a4358794a..f69a07f92d 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_RESPONSE.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/KERB_QUERY_TKT_CACHE_RESPONSE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _Tickets_e__FixedBuffer { public KERB_TICKET_CACHE_INFO e0; + [UnscopedRef] public ref KERB_TICKET_CACHE_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref KERB_TICKET_CACHE_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/MSV1_0.cs b/sources/Interop/Windows/Windows/um/ntsecapi/MSV1_0.cs index 6f39331317..0463ed1453 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/MSV1_0.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/MSV1_0.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static partial class MSV1_0 { [NativeTypeName("#define MSV1_0_PACKAGE_NAME \"MICROSOFT_AUTHENTICATION_PACKAGE_V1_0\"")] - public static ReadOnlySpan MSV1_0_PACKAGE_NAME => new byte[] { 0x4D, 0x49, 0x43, 0x52, 0x4F, 0x53, 0x4F, 0x46, 0x54, 0x5F, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4E, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4F, 0x4E, 0x5F, 0x50, 0x41, 0x43, 0x4B, 0x41, 0x47, 0x45, 0x5F, 0x56, 0x31, 0x5F, 0x30, 0x00 }; + public static ReadOnlySpan MSV1_0_PACKAGE_NAME => "MICROSOFT_AUTHENTICATION_PACKAGE_V1_0"u8; [NativeTypeName("#define MSV1_0_PACKAGE_NAMEW L\"MICROSOFT_AUTHENTICATION_PACKAGE_V1_0\"")] public const string MSV1_0_PACKAGE_NAMEW = "MICROSOFT_AUTHENTICATION_PACKAGE_V1_0"; @@ -19,10 +19,10 @@ public static partial class MSV1_0 public const ulong MSV1_0_PACKAGE_NAMEW_LENGTH = 76 - 2; [NativeTypeName("#define MSV1_0_SUBAUTHENTICATION_KEY \"SYSTEM\\\\CurrentControlSet\\\\Control\\\\Lsa\\\\MSV1_0\"")] - public static ReadOnlySpan MSV1_0_SUBAUTHENTICATION_KEY => new byte[] { 0x53, 0x59, 0x53, 0x54, 0x45, 0x4D, 0x5C, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6E, 0x74, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x53, 0x65, 0x74, 0x5C, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x5C, 0x4C, 0x73, 0x61, 0x5C, 0x4D, 0x53, 0x56, 0x31, 0x5F, 0x30, 0x00 }; + public static ReadOnlySpan MSV1_0_SUBAUTHENTICATION_KEY => "SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0"u8; [NativeTypeName("#define MSV1_0_SUBAUTHENTICATION_VALUE \"Auth\"")] - public static ReadOnlySpan MSV1_0_SUBAUTHENTICATION_VALUE => new byte[] { 0x41, 0x75, 0x74, 0x68, 0x00 }; + public static ReadOnlySpan MSV1_0_SUBAUTHENTICATION_VALUE => "Auth"u8; [NativeTypeName("#define MSV1_0_CHALLENGE_LENGTH 8")] public const int MSV1_0_CHALLENGE_LENGTH = 8; diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT.cs b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT.cs deleted file mode 100644 index 4e50b9d9c6..0000000000 --- a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT.cs +++ /dev/null @@ -1,27 +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 um/ntsecapi.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 SE_ADT -{ - [NativeTypeName("#define SE_ADT_OBJECT_ONLY 0x1")] - public const int SE_ADT_OBJECT_ONLY = 0x1; - - [NativeTypeName("#define SE_ADT_PARAMETERS_SELF_RELATIVE 0x00000001")] - public const int SE_ADT_PARAMETERS_SELF_RELATIVE = 0x00000001; - - [NativeTypeName("#define SE_ADT_PARAMETERS_SEND_TO_LSA 0x00000002")] - public const int SE_ADT_PARAMETERS_SEND_TO_LSA = 0x00000002; - - [NativeTypeName("#define SE_ADT_PARAMETER_EXTENSIBLE_AUDIT 0x00000004")] - public const int SE_ADT_PARAMETER_EXTENSIBLE_AUDIT = 0x00000004; - - [NativeTypeName("#define SE_ADT_PARAMETER_GENERIC_AUDIT 0x00000008")] - public const int SE_ADT_PARAMETER_GENERIC_AUDIT = 0x00000008; - - [NativeTypeName("#define SE_ADT_PARAMETER_WRITE_SYNCHRONOUS 0x00000010")] - public const int SE_ADT_PARAMETER_WRITE_SYNCHRONOUS = 0x00000010; -} diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY.cs b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY.cs index 1ed76b27d1..2b72799f68 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -78,6 +79,7 @@ public partial struct _Parameters_e__FixedBuffer public SE_ADT_PARAMETER_ARRAY_ENTRY e30; public SE_ADT_PARAMETER_ARRAY_ENTRY e31; + [UnscopedRef] public ref SE_ADT_PARAMETER_ARRAY_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -88,6 +90,7 @@ public ref SE_ADT_PARAMETER_ARRAY_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_ENTRY.cs b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_ENTRY.cs index 7813bbb811..df19b9138b 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_ENTRY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Data_e__FixedBuffer public nuint e0; public nuint e1; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_EX.cs b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_EX.cs index 9fcd89b892..aa2f80edfa 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_EX.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/SE_ADT_PARAMETER_ARRAY_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -82,6 +83,7 @@ public partial struct _Parameters_e__FixedBuffer public SE_ADT_PARAMETER_ARRAY_ENTRY e30; public SE_ADT_PARAMETER_ARRAY_ENTRY e31; + [UnscopedRef] public ref SE_ADT_PARAMETER_ARRAY_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -92,6 +94,7 @@ public ref SE_ADT_PARAMETER_ARRAY_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/Windows/um/ntsecapi/Windows.cs b/sources/Interop/Windows/Windows/um/ntsecapi/Windows.cs index 3bbaa4df93..d280759250 100644 --- a/sources/Interop/Windows/Windows/um/ntsecapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ntsecapi/Windows.cs @@ -2115,13 +2115,13 @@ public static ref readonly Guid Audit_AccountLogon public const int NEGOTIATE_MAX_PREFIX = 32; [NativeTypeName("#define SAM_PASSWORD_CHANGE_NOTIFY_ROUTINE \"PasswordChangeNotify\"")] - public static ReadOnlySpan SAM_PASSWORD_CHANGE_NOTIFY_ROUTINE => new byte[] { 0x50, 0x61, 0x73, 0x73, 0x77, 0x6F, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6E, 0x67, 0x65, 0x4E, 0x6F, 0x74, 0x69, 0x66, 0x79, 0x00 }; + public static ReadOnlySpan SAM_PASSWORD_CHANGE_NOTIFY_ROUTINE => "PasswordChangeNotify"u8; [NativeTypeName("#define SAM_INIT_NOTIFICATION_ROUTINE \"InitializeChangeNotify\"")] - public static ReadOnlySpan SAM_INIT_NOTIFICATION_ROUTINE => new byte[] { 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x43, 0x68, 0x61, 0x6E, 0x67, 0x65, 0x4E, 0x6F, 0x74, 0x69, 0x66, 0x79, 0x00 }; + public static ReadOnlySpan SAM_INIT_NOTIFICATION_ROUTINE => "InitializeChangeNotify"u8; [NativeTypeName("#define SAM_PASSWORD_FILTER_ROUTINE \"PasswordFilter\"")] - public static ReadOnlySpan SAM_PASSWORD_FILTER_ROUTINE => new byte[] { 0x50, 0x61, 0x73, 0x73, 0x77, 0x6F, 0x72, 0x64, 0x46, 0x69, 0x6C, 0x74, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan SAM_PASSWORD_FILTER_ROUTINE => "PasswordFilter"u8; [NativeTypeName("#define RtlGenRandom SystemFunction036")] public static delegate* RtlGenRandom => &SystemFunction036; @@ -2151,7 +2151,7 @@ public static ref readonly Guid Audit_AccountLogon public const int KERBEROS_REVISION = 6; [NativeTypeName("#define MICROSOFT_KERBEROS_NAME_A \"Kerberos\"")] - public static ReadOnlySpan MICROSOFT_KERBEROS_NAME_A => new byte[] { 0x4B, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6F, 0x73, 0x00 }; + public static ReadOnlySpan MICROSOFT_KERBEROS_NAME_A => "Kerberos"u8; [NativeTypeName("#define MICROSOFT_KERBEROS_NAME_W L\"Kerberos\"")] public const string MICROSOFT_KERBEROS_NAME_W = "Kerberos"; @@ -2205,7 +2205,7 @@ public static ref readonly Guid Audit_AccountLogon public static delegate* AuditQueryGlobalSacl => &AuditQueryGlobalSaclW; [NativeTypeName("#define PKU2U_PACKAGE_NAME_A \"pku2u\"")] - public static ReadOnlySpan PKU2U_PACKAGE_NAME_A => new byte[] { 0x70, 0x6B, 0x75, 0x32, 0x75, 0x00 }; + public static ReadOnlySpan PKU2U_PACKAGE_NAME_A => "pku2u"u8; [NativeTypeName("#define PKU2U_PACKAGE_NAME L\"pku2u\"")] public const string PKU2U_PACKAGE_NAME = "pku2u"; diff --git a/sources/Interop/Windows/Windows/um/oaidl/ARRAYDESC.cs b/sources/Interop/Windows/Windows/um/oaidl/ARRAYDESC.cs index 27b8244247..7bb366cc6b 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ARRAYDESC.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ARRAYDESC.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,6 +28,7 @@ public partial struct _rgbounds_e__FixedBuffer { public SAFEARRAYBOUND e0; + [UnscopedRef] public ref SAFEARRAYBOUND this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref SAFEARRAYBOUND this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/ELEMDESC.cs b/sources/Interop/Windows/Windows/um/oaidl/ELEMDESC.cs index fc410312f6..fa18b9159a 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ELEMDESC.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ELEMDESC.cs @@ -3,6 +3,7 @@ // Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct ELEMDESC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref IDLDESC idldesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.idldesc, 1)); + return ref Anonymous.idldesc; } } /// + [UnscopedRef] public ref PARAMDESC paramdesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.paramdesc, 1)); + return ref Anonymous.paramdesc; } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/ICreateErrorInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/ICreateErrorInfo.cs index 1e5f2af85c..2be6be8256 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ICreateErrorInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ICreateErrorInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("22F03340-547D-101B-8E65-08002B2BD119")] [NativeTypeName("struct ICreateErrorInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateErrorInfo : ICreateErrorInfo.Interface +public unsafe partial struct ICreateErrorInfo : ICreateErrorInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateErrorInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo.cs index dd25faa70b..b647cc7f6f 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020405-0000-0000-C000-000000000046")] [NativeTypeName("struct ICreateTypeInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateTypeInfo : ICreateTypeInfo.Interface +public unsafe partial struct ICreateTypeInfo : ICreateTypeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateTypeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo2.cs b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo2.cs index 3650ba8809..a3025614a8 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo2.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002040E-0000-0000-C000-000000000046")] [NativeTypeName("struct ICreateTypeInfo2 : ICreateTypeInfo")] [NativeInheritance("ICreateTypeInfo")] -public unsafe partial struct ICreateTypeInfo2 : ICreateTypeInfo2.Interface +public unsafe partial struct ICreateTypeInfo2 : ICreateTypeInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateTypeInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib.cs b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib.cs index d0fd965273..4463d3f5d9 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020406-0000-0000-C000-000000000046")] [NativeTypeName("struct ICreateTypeLib : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateTypeLib : ICreateTypeLib.Interface +public unsafe partial struct ICreateTypeLib : ICreateTypeLib.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateTypeLib)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib2.cs b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib2.cs index 8c22382c49..3976dac28e 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib2.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ICreateTypeLib2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0002040F-0000-0000-C000-000000000046")] [NativeTypeName("struct ICreateTypeLib2 : ICreateTypeLib")] [NativeInheritance("ICreateTypeLib")] -public unsafe partial struct ICreateTypeLib2 : ICreateTypeLib2.Interface +public unsafe partial struct ICreateTypeLib2 : ICreateTypeLib2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateTypeLib2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IDispatch.cs b/sources/Interop/Windows/Windows/um/oaidl/IDispatch.cs index 99b1a3b283..9292a20ef4 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IDispatch.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IDispatch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020400-0000-0000-C000-000000000046")] [NativeTypeName("struct IDispatch : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDispatch : IDispatch.Interface +public unsafe partial struct IDispatch : IDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDispatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IEnumVARIANT.cs b/sources/Interop/Windows/Windows/um/oaidl/IEnumVARIANT.cs index 9675bced11..9410ca84ac 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IEnumVARIANT.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IEnumVARIANT.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020404-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumVARIANT : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumVARIANT : IEnumVARIANT.Interface +public unsafe partial struct IEnumVARIANT : IEnumVARIANT.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumVARIANT)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IErrorInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/IErrorInfo.cs index 9dba66e62d..68d0e98f27 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IErrorInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IErrorInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1CF2B120-547D-101B-8E65-08002B2BD119")] [NativeTypeName("struct IErrorInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IErrorInfo : IErrorInfo.Interface +public unsafe partial struct IErrorInfo : IErrorInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IErrorInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IErrorLog.cs b/sources/Interop/Windows/Windows/um/oaidl/IErrorLog.cs index 84eb831cdc..df2a73f2ff 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IErrorLog.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IErrorLog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3127CA40-446E-11CE-8135-00AA004BB851")] [NativeTypeName("struct IErrorLog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IErrorLog : IErrorLog.Interface +public unsafe partial struct IErrorLog : IErrorLog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IErrorLog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IPropertyBag.cs b/sources/Interop/Windows/Windows/um/oaidl/IPropertyBag.cs index 3618f4eb85..520093cf41 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IPropertyBag.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IPropertyBag.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("55272A00-42CB-11CE-8135-00AA004BB851")] [NativeTypeName("struct IPropertyBag : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyBag : IPropertyBag.Interface +public unsafe partial struct IPropertyBag : IPropertyBag.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyBag)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/IRecordInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/IRecordInfo.cs index e3fe587913..31e997a82b 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/IRecordInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/IRecordInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000002F-0000-0000-C000-000000000046")] [NativeTypeName("struct IRecordInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRecordInfo : IRecordInfo.Interface +public unsafe partial struct IRecordInfo : IRecordInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRecordInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ISupportErrorInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/ISupportErrorInfo.cs index a54b75ccd5..4555684109 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ISupportErrorInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ISupportErrorInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DF0B3D60-548F-101B-8E65-08002B2BD119")] [NativeTypeName("struct ISupportErrorInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISupportErrorInfo : ISupportErrorInfo.Interface +public unsafe partial struct ISupportErrorInfo : ISupportErrorInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISupportErrorInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeChangeEvents.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeChangeEvents.cs index b31d866824..3b0cd905b0 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeChangeEvents.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeChangeEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020410-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeChangeEvents : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeChangeEvents : ITypeChangeEvents.Interface +public unsafe partial struct ITypeChangeEvents : ITypeChangeEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeChangeEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeComp.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeComp.cs index 6f22b4d8f2..35f7f351f6 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeComp.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeComp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020403-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeComp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeComp : ITypeComp.Interface +public unsafe partial struct ITypeComp : ITypeComp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeComp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeFactory.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeFactory.cs index 38f5fc7995..29dcd936e4 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeFactory.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000002E-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeFactory : ITypeFactory.Interface +public unsafe partial struct ITypeFactory : ITypeFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo.cs index 6220f47b92..7211fdb167 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020401-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeInfo : ITypeInfo.Interface +public unsafe partial struct ITypeInfo : ITypeInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo2.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo2.cs index 4e7e56b18f..642fb6deab 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo2.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020412-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeInfo2 : ITypeInfo")] [NativeInheritance("ITypeInfo")] -public unsafe partial struct ITypeInfo2 : ITypeInfo2.Interface +public unsafe partial struct ITypeInfo2 : ITypeInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeLib.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeLib.cs index 2101e195f7..f3c40552b1 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeLib.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeLib.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020402-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeLib : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeLib : ITypeLib.Interface +public unsafe partial struct ITypeLib : ITypeLib.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeLib)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeLib2.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeLib2.cs index 2e1f8156be..8a202d57e5 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeLib2.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeLib2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00020411-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeLib2 : ITypeLib")] [NativeInheritance("ITypeLib")] -public unsafe partial struct ITypeLib2 : ITypeLib2.Interface +public unsafe partial struct ITypeLib2 : ITypeLib2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeLib2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistration.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistration.cs index c3458bf588..18c24853b9 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistration.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistration.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("76A3E735-02DF-4A12-98EB-043AD3600AF3")] [NativeTypeName("struct ITypeLibRegistration : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeLibRegistration : ITypeLibRegistration.Interface +public unsafe partial struct ITypeLibRegistration : ITypeLibRegistration.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeLibRegistration)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistrationReader.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistrationReader.cs index 5910d3a888..a49d02df41 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistrationReader.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeLibRegistrationReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ED6A8A2A-B160-4E77-8F73-AA7435CD5C27")] [NativeTypeName("struct ITypeLibRegistrationReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeLibRegistrationReader : ITypeLibRegistrationReader.Interface +public unsafe partial struct ITypeLibRegistrationReader : ITypeLibRegistrationReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeLibRegistrationReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/ITypeMarshal.cs b/sources/Interop/Windows/Windows/um/oaidl/ITypeMarshal.cs index 46eda24b1c..45333dc4c1 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/ITypeMarshal.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/ITypeMarshal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000002D-0000-0000-C000-000000000046")] [NativeTypeName("struct ITypeMarshal : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITypeMarshal : ITypeMarshal.Interface +public unsafe partial struct ITypeMarshal : ITypeMarshal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITypeMarshal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oaidl/SAFEARRAY.cs b/sources/Interop/Windows/Windows/um/oaidl/SAFEARRAY.cs index dfbfc739b1..f7a3d6ab0d 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/SAFEARRAY.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/SAFEARRAY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,6 +40,7 @@ public partial struct _rgsabound_e__FixedBuffer { public SAFEARRAYBOUND e0; + [UnscopedRef] public ref SAFEARRAYBOUND this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref SAFEARRAYBOUND this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/TYPEDESC.cs b/sources/Interop/Windows/Windows/um/oaidl/TYPEDESC.cs index 202f3ab3c1..b82a1caa17 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/TYPEDESC.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/TYPEDESC.cs @@ -3,6 +3,7 @@ // Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,32 +21,35 @@ public unsafe partial struct TYPEDESC public ushort vt; /// + [UnscopedRef] public ref TYPEDESC* lptdesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.lptdesc; + return ref Anonymous.lptdesc; } } /// + [UnscopedRef] public ref ARRAYDESC* lpadesc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.lpadesc; + return ref Anonymous.lpadesc; } } /// + [UnscopedRef] public ref uint hreftype { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hreftype, 1)); + return ref Anonymous.hreftype; } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/VARDESC.cs b/sources/Interop/Windows/Windows/um/oaidl/VARDESC.cs index 2d3266fd07..1cbb78ce50 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/VARDESC.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/VARDESC.cs @@ -3,6 +3,7 @@ // Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,22 +35,24 @@ public unsafe partial struct VARDESC public VARKIND varkind; /// + [UnscopedRef] public ref uint oInst { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.oInst, 1)); + return ref Anonymous.oInst; } } /// + [UnscopedRef] public ref VARIANT* lpvarValue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.lpvarValue; + return ref Anonymous.lpvarValue; } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/VARIANT.cs b/sources/Interop/Windows/Windows/um/oaidl/VARIANT.cs index 85e330750a..dcc1bdf0b7 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/VARIANT.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/VARIANT.cs @@ -3,6 +3,7 @@ // Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,522 +17,574 @@ public unsafe partial struct VARIANT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort vt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.vt, 1)); + return ref Anonymous.Anonymous.vt; } } /// + [UnscopedRef] public ref ushort wReserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved1, 1)); + return ref Anonymous.Anonymous.wReserved1; } } /// + [UnscopedRef] public ref ushort wReserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved2, 1)); + return ref Anonymous.Anonymous.wReserved2; } } /// + [UnscopedRef] public ref ushort wReserved3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved3, 1)); + return ref Anonymous.Anonymous.wReserved3; } } /// + [UnscopedRef] public ref long llVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.llVal, 1)); + return ref Anonymous.Anonymous.Anonymous.llVal; } } /// + [UnscopedRef] public ref int lVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.lVal, 1)); + return ref Anonymous.Anonymous.Anonymous.lVal; } } /// + [UnscopedRef] public ref byte bVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.bVal, 1)); + return ref Anonymous.Anonymous.Anonymous.bVal; } } /// + [UnscopedRef] public ref short iVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.iVal, 1)); + return ref Anonymous.Anonymous.Anonymous.iVal; } } /// + [UnscopedRef] public ref float fltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.fltVal, 1)); + return ref Anonymous.Anonymous.Anonymous.fltVal; } } /// + [UnscopedRef] public ref double dblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.dblVal, 1)); + return ref Anonymous.Anonymous.Anonymous.dblVal; } } /// + [UnscopedRef] public ref short boolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.boolVal, 1)); + return ref Anonymous.Anonymous.Anonymous.boolVal; } } /// + [UnscopedRef] public ref short __OBSOLETE__VARIANT_BOOL { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_BOOL, 1)); + return ref Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_BOOL; } } /// + [UnscopedRef] public ref int scode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.scode, 1)); + return ref Anonymous.Anonymous.Anonymous.scode; } } /// + [UnscopedRef] public ref CY cyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cyVal, 1)); + return ref Anonymous.Anonymous.Anonymous.cyVal; } } /// + [UnscopedRef] public ref double date { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.date, 1)); + return ref Anonymous.Anonymous.Anonymous.date; } } /// + [UnscopedRef] public ref ushort* bstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.bstrVal; + return ref Anonymous.Anonymous.Anonymous.bstrVal; } } /// + [UnscopedRef] public ref IUnknown* punkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.punkVal; + return ref Anonymous.Anonymous.Anonymous.punkVal; } } /// + [UnscopedRef] public ref IDispatch* pdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdispVal; + return ref Anonymous.Anonymous.Anonymous.pdispVal; } } /// + [UnscopedRef] public ref SAFEARRAY* parray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.parray; + return ref Anonymous.Anonymous.Anonymous.parray; } } /// + [UnscopedRef] public ref byte* pbVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pbVal; + return ref Anonymous.Anonymous.Anonymous.pbVal; } } /// + [UnscopedRef] public ref short* piVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.piVal; + return ref Anonymous.Anonymous.Anonymous.piVal; } } /// + [UnscopedRef] public ref int* plVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.plVal; + return ref Anonymous.Anonymous.Anonymous.plVal; } } /// + [UnscopedRef] public ref long* pllVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pllVal; + return ref Anonymous.Anonymous.Anonymous.pllVal; } } /// + [UnscopedRef] public ref float* pfltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pfltVal; + return ref Anonymous.Anonymous.Anonymous.pfltVal; } } /// + [UnscopedRef] public ref double* pdblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdblVal; + return ref Anonymous.Anonymous.Anonymous.pdblVal; } } /// + [UnscopedRef] public ref short* pboolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pboolVal; + return ref Anonymous.Anonymous.Anonymous.pboolVal; } } /// + [UnscopedRef] public ref short* __OBSOLETE__VARIANT_PBOOL { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_PBOOL; + return ref Anonymous.Anonymous.Anonymous.__OBSOLETE__VARIANT_PBOOL; } } /// + [UnscopedRef] public ref int* pscode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pscode; + return ref Anonymous.Anonymous.Anonymous.pscode; } } /// + [UnscopedRef] public ref CY* pcyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pcyVal; + return ref Anonymous.Anonymous.Anonymous.pcyVal; } } /// + [UnscopedRef] public ref double* pdate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdate; + return ref Anonymous.Anonymous.Anonymous.pdate; } } /// + [UnscopedRef] public ref ushort** pbstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pbstrVal; + return ref Anonymous.Anonymous.Anonymous.pbstrVal; } } /// + [UnscopedRef] public ref IUnknown** ppunkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.ppunkVal; + return ref Anonymous.Anonymous.Anonymous.ppunkVal; } } /// + [UnscopedRef] public ref IDispatch** ppdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.ppdispVal; + return ref Anonymous.Anonymous.Anonymous.ppdispVal; } } /// + [UnscopedRef] public ref SAFEARRAY** pparray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pparray; + return ref Anonymous.Anonymous.Anonymous.pparray; } } /// + [UnscopedRef] public ref VARIANT* pvarVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pvarVal; + return ref Anonymous.Anonymous.Anonymous.pvarVal; } } /// + [UnscopedRef] public ref void* byref { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.byref; + return ref Anonymous.Anonymous.Anonymous.byref; } } /// + [UnscopedRef] public ref sbyte cVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.cVal, 1)); + return ref Anonymous.Anonymous.Anonymous.cVal; } } /// + [UnscopedRef] public ref ushort uiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.uiVal, 1)); + return ref Anonymous.Anonymous.Anonymous.uiVal; } } /// + [UnscopedRef] public ref uint ulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.ulVal, 1)); + return ref Anonymous.Anonymous.Anonymous.ulVal; } } /// + [UnscopedRef] public ref ulong ullVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.ullVal, 1)); + return ref Anonymous.Anonymous.Anonymous.ullVal; } } /// + [UnscopedRef] public ref int intVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.intVal, 1)); + return ref Anonymous.Anonymous.Anonymous.intVal; } } /// + [UnscopedRef] public ref uint uintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.uintVal, 1)); + return ref Anonymous.Anonymous.Anonymous.uintVal; } } /// + [UnscopedRef] public ref DECIMAL* pdecVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pdecVal; + return ref Anonymous.Anonymous.Anonymous.pdecVal; } } /// + [UnscopedRef] public ref sbyte* pcVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pcVal; + return ref Anonymous.Anonymous.Anonymous.pcVal; } } /// + [UnscopedRef] public ref ushort* puiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.puiVal; + return ref Anonymous.Anonymous.Anonymous.puiVal; } } /// + [UnscopedRef] public ref uint* pulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pulVal; + return ref Anonymous.Anonymous.Anonymous.pulVal; } } /// + [UnscopedRef] public ref ulong* pullVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pullVal; + return ref Anonymous.Anonymous.Anonymous.pullVal; } } /// + [UnscopedRef] public ref int* pintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.pintVal; + return ref Anonymous.Anonymous.Anonymous.pintVal; } } /// + [UnscopedRef] public ref uint* puintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.puintVal; + return ref Anonymous.Anonymous.Anonymous.puintVal; } } /// + [UnscopedRef] public ref void* pvRecord { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.Anonymous.pvRecord; + return ref Anonymous.Anonymous.Anonymous.Anonymous.pvRecord; } } /// + [UnscopedRef] public ref IRecordInfo* pRecInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous.Anonymous.Anonymous.pRecInfo; + return ref Anonymous.Anonymous.Anonymous.Anonymous.pRecInfo; } } /// + [UnscopedRef] public ref DECIMAL decVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.decVal, 1)); + return ref Anonymous.decVal; } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/_wireSAFEARRAY.cs b/sources/Interop/Windows/Windows/um/oaidl/_wireSAFEARRAY.cs index da761ce9cd..e9ea65df22 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/_wireSAFEARRAY.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/_wireSAFEARRAY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _rgsabound_e__FixedBuffer { public SAFEARRAYBOUND e0; + [UnscopedRef] public ref SAFEARRAYBOUND this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref SAFEARRAYBOUND this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/oaidl/_wireVARIANT.cs b/sources/Interop/Windows/Windows/um/oaidl/_wireVARIANT.cs index 7ffddd8024..2f0426d8f1 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/_wireVARIANT.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/_wireVARIANT.cs @@ -3,6 +3,7 @@ // Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,442 +37,486 @@ public unsafe partial struct _wireVARIANT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref long llVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.llVal, 1)); + return ref Anonymous.llVal; } } /// + [UnscopedRef] public ref int lVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.lVal, 1)); + return ref Anonymous.lVal; } } /// + [UnscopedRef] public ref byte bVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.bVal, 1)); + return ref Anonymous.bVal; } } /// + [UnscopedRef] public ref short iVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.iVal, 1)); + return ref Anonymous.iVal; } } /// + [UnscopedRef] public ref float fltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.fltVal, 1)); + return ref Anonymous.fltVal; } } /// + [UnscopedRef] public ref double dblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dblVal, 1)); + return ref Anonymous.dblVal; } } /// + [UnscopedRef] public ref short boolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.boolVal, 1)); + return ref Anonymous.boolVal; } } /// + [UnscopedRef] public ref int scode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.scode, 1)); + return ref Anonymous.scode; } } /// + [UnscopedRef] public ref CY cyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cyVal, 1)); + return ref Anonymous.cyVal; } } /// + [UnscopedRef] public ref double date { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.date, 1)); + return ref Anonymous.date; } } /// + [UnscopedRef] public ref FLAGGED_WORD_BLOB* bstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.bstrVal; + return ref Anonymous.bstrVal; } } /// + [UnscopedRef] public ref IUnknown* punkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.punkVal; + return ref Anonymous.punkVal; } } /// + [UnscopedRef] public ref IDispatch* pdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pdispVal; + return ref Anonymous.pdispVal; } } /// + [UnscopedRef] public ref _wireSAFEARRAY** parray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.parray; + return ref Anonymous.parray; } } /// + [UnscopedRef] public ref _wireBRECORD* brecVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.brecVal; + return ref Anonymous.brecVal; } } /// + [UnscopedRef] public ref byte* pbVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pbVal; + return ref Anonymous.pbVal; } } /// + [UnscopedRef] public ref short* piVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.piVal; + return ref Anonymous.piVal; } } /// + [UnscopedRef] public ref int* plVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.plVal; + return ref Anonymous.plVal; } } /// + [UnscopedRef] public ref long* pllVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pllVal; + return ref Anonymous.pllVal; } } /// + [UnscopedRef] public ref float* pfltVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pfltVal; + return ref Anonymous.pfltVal; } } /// + [UnscopedRef] public ref double* pdblVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pdblVal; + return ref Anonymous.pdblVal; } } /// + [UnscopedRef] public ref short* pboolVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pboolVal; + return ref Anonymous.pboolVal; } } /// + [UnscopedRef] public ref int* pscode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pscode; + return ref Anonymous.pscode; } } /// + [UnscopedRef] public ref CY* pcyVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pcyVal; + return ref Anonymous.pcyVal; } } /// + [UnscopedRef] public ref double* pdate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pdate; + return ref Anonymous.pdate; } } /// + [UnscopedRef] public ref FLAGGED_WORD_BLOB** pbstrVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pbstrVal; + return ref Anonymous.pbstrVal; } } /// + [UnscopedRef] public ref IUnknown** ppunkVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.ppunkVal; + return ref Anonymous.ppunkVal; } } /// + [UnscopedRef] public ref IDispatch** ppdispVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.ppdispVal; + return ref Anonymous.ppdispVal; } } /// + [UnscopedRef] public ref _wireSAFEARRAY*** pparray { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pparray; + return ref Anonymous.pparray; } } /// + [UnscopedRef] public ref _wireVARIANT** pvarVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pvarVal; + return ref Anonymous.pvarVal; } } /// + [UnscopedRef] public ref sbyte cVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cVal, 1)); + return ref Anonymous.cVal; } } /// + [UnscopedRef] public ref ushort uiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uiVal, 1)); + return ref Anonymous.uiVal; } } /// + [UnscopedRef] public ref uint ulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ulVal, 1)); + return ref Anonymous.ulVal; } } /// + [UnscopedRef] public ref ulong ullVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ullVal, 1)); + return ref Anonymous.ullVal; } } /// + [UnscopedRef] public ref int intVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.intVal, 1)); + return ref Anonymous.intVal; } } /// + [UnscopedRef] public ref uint uintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uintVal, 1)); + return ref Anonymous.uintVal; } } /// + [UnscopedRef] public ref DECIMAL decVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.decVal, 1)); + return ref Anonymous.decVal; } } /// + [UnscopedRef] public ref DECIMAL* pdecVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pdecVal; + return ref Anonymous.pdecVal; } } /// + [UnscopedRef] public ref sbyte* pcVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pcVal; + return ref Anonymous.pcVal; } } /// + [UnscopedRef] public ref ushort* puiVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.puiVal; + return ref Anonymous.puiVal; } } /// + [UnscopedRef] public ref uint* pulVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pulVal; + return ref Anonymous.pulVal; } } /// + [UnscopedRef] public ref ulong* pullVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pullVal; + return ref Anonymous.pullVal; } } /// + [UnscopedRef] public ref int* pintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pintVal; + return ref Anonymous.pintVal; } } /// + [UnscopedRef] public ref uint* puintVal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.puintVal; + return ref Anonymous.puintVal; } } diff --git a/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink.cs b/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink.cs index 48b59e4910..40425d330a 100644 --- a/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink.cs +++ b/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000150-0000-0000-C000-000000000046")] [NativeTypeName("struct AsyncIAdviseSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIAdviseSink : AsyncIAdviseSink.Interface +public unsafe partial struct AsyncIAdviseSink : AsyncIAdviseSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIAdviseSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink2.cs b/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink2.cs index abd6216ac1..e147afd602 100644 --- a/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink2.cs +++ b/sources/Interop/Windows/Windows/um/objidl/AsyncIAdviseSink2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000151-0000-0000-C000-000000000046")] [NativeTypeName("struct AsyncIAdviseSink2 : AsyncIAdviseSink")] [NativeInheritance("AsyncIAdviseSink")] -public unsafe partial struct AsyncIAdviseSink2 : AsyncIAdviseSink2.Interface +public unsafe partial struct AsyncIAdviseSink2 : AsyncIAdviseSink2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIAdviseSink2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IAdviseSink.cs b/sources/Interop/Windows/Windows/um/objidl/IAdviseSink.cs index 9d0a5bf72c..b6b97803af 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IAdviseSink.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IAdviseSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010F-0000-0000-C000-000000000046")] [NativeTypeName("struct IAdviseSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAdviseSink : IAdviseSink.Interface +public unsafe partial struct IAdviseSink : IAdviseSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdviseSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IAdviseSink2.cs b/sources/Interop/Windows/Windows/um/objidl/IAdviseSink2.cs index f4eabea076..b2ebb26832 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IAdviseSink2.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IAdviseSink2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000125-0000-0000-C000-000000000046")] [NativeTypeName("struct IAdviseSink2 : IAdviseSink")] [NativeInheritance("IAdviseSink")] -public unsafe partial struct IAdviseSink2 : IAdviseSink2.Interface +public unsafe partial struct IAdviseSink2 : IAdviseSink2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdviseSink2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IApartmentShutdown.cs b/sources/Interop/Windows/Windows/um/objidl/IApartmentShutdown.cs index 3a34ba34fe..59a9f58684 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IApartmentShutdown.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IApartmentShutdown.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IApartmentShutdown : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IApartmentShutdown : IApartmentShutdown.Interface +public unsafe partial struct IApartmentShutdown : IApartmentShutdown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IApartmentShutdown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IBindCtx.cs b/sources/Interop/Windows/Windows/um/objidl/IBindCtx.cs index cca3e5ad2b..83971931ab 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IBindCtx.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IBindCtx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000E-0000-0000-C000-000000000046")] [NativeTypeName("struct IBindCtx : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindCtx : IBindCtx.Interface +public unsafe partial struct IBindCtx : IBindCtx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindCtx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IBlockingLock.cs b/sources/Interop/Windows/Windows/um/objidl/IBlockingLock.cs index 3101b22372..8fb9c7ca3a 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IBlockingLock.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IBlockingLock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30F3D47A-6447-11D1-8E3C-00C04FB9386D")] [NativeTypeName("struct IBlockingLock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBlockingLock : IBlockingLock.Interface +public unsafe partial struct IBlockingLock : IBlockingLock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBlockingLock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IClassActivator.cs b/sources/Interop/Windows/Windows/um/objidl/IClassActivator.cs index a08653ee7c..ab0a002517 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IClassActivator.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IClassActivator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000140-0000-0000-C000-000000000046")] [NativeTypeName("struct IClassActivator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IClassActivator : IClassActivator.Interface +public unsafe partial struct IClassActivator : IClassActivator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClassActivator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IDataAdviseHolder.cs b/sources/Interop/Windows/Windows/um/objidl/IDataAdviseHolder.cs index 385db5349e..954dcd1c5c 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IDataAdviseHolder.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IDataAdviseHolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000110-0000-0000-C000-000000000046")] [NativeTypeName("struct IDataAdviseHolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDataAdviseHolder : IDataAdviseHolder.Interface +public unsafe partial struct IDataAdviseHolder : IDataAdviseHolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataAdviseHolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IDataObject.cs b/sources/Interop/Windows/Windows/um/objidl/IDataObject.cs index 646e7e5727..07bebb7fbe 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IDataObject.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IDataObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010E-0000-0000-C000-000000000046")] [NativeTypeName("struct IDataObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDataObject : IDataObject.Interface +public unsafe partial struct IDataObject : IDataObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IDirectWriterLock.cs b/sources/Interop/Windows/Windows/um/objidl/IDirectWriterLock.cs index a52eefb709..d69a435487 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IDirectWriterLock.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IDirectWriterLock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E6D4D92-6738-11CF-9608-00AA00680DB4")] [NativeTypeName("struct IDirectWriterLock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDirectWriterLock : IDirectWriterLock.Interface +public unsafe partial struct IDirectWriterLock : IDirectWriterLock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDirectWriterLock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IDummyHICONIncluder.cs b/sources/Interop/Windows/Windows/um/objidl/IDummyHICONIncluder.cs index 89cba7622c..90880f5f59 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IDummyHICONIncluder.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IDummyHICONIncluder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("947990DE-CC28-11D2-A0F7-00805F858FB1")] [NativeTypeName("struct IDummyHICONIncluder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDummyHICONIncluder : IDummyHICONIncluder.Interface +public unsafe partial struct IDummyHICONIncluder : IDummyHICONIncluder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDummyHICONIncluder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IEnumFORMATETC.cs b/sources/Interop/Windows/Windows/um/objidl/IEnumFORMATETC.cs index 62368eb91b..1693774488 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IEnumFORMATETC.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IEnumFORMATETC.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000103-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumFORMATETC : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumFORMATETC : IEnumFORMATETC.Interface +public unsafe partial struct IEnumFORMATETC : IEnumFORMATETC.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumFORMATETC)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IEnumMoniker.cs b/sources/Interop/Windows/Windows/um/objidl/IEnumMoniker.cs index 0e2b75f6ed..10c81f05e4 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IEnumMoniker.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IEnumMoniker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000102-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumMoniker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumMoniker : IEnumMoniker.Interface +public unsafe partial struct IEnumMoniker : IEnumMoniker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumMoniker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IEnumSTATDATA.cs b/sources/Interop/Windows/Windows/um/objidl/IEnumSTATDATA.cs index 767d301c73..66305a1ce1 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IEnumSTATDATA.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IEnumSTATDATA.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000105-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumSTATDATA : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSTATDATA : IEnumSTATDATA.Interface +public unsafe partial struct IEnumSTATDATA : IEnumSTATDATA.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSTATDATA)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IEnumSTATSTG.cs b/sources/Interop/Windows/Windows/um/objidl/IEnumSTATSTG.cs index 82d8ec22ad..4f01c4f674 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IEnumSTATSTG.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IEnumSTATSTG.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000D-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumSTATSTG : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSTATSTG : IEnumSTATSTG.Interface +public unsafe partial struct IEnumSTATSTG : IEnumSTATSTG.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSTATSTG)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IFillLockBytes.cs b/sources/Interop/Windows/Windows/um/objidl/IFillLockBytes.cs index c60fc63cee..ec391d24e5 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IFillLockBytes.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IFillLockBytes.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("99CAF010-415E-11CF-8814-00AA00B569F5")] [NativeTypeName("struct IFillLockBytes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFillLockBytes : IFillLockBytes.Interface +public unsafe partial struct IFillLockBytes : IFillLockBytes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFillLockBytes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IForegroundTransfer.cs b/sources/Interop/Windows/Windows/um/objidl/IForegroundTransfer.cs index 8692a0f2f1..c1bce5bc2e 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IForegroundTransfer.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IForegroundTransfer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000145-0000-0000-C000-000000000046")] [NativeTypeName("struct IForegroundTransfer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IForegroundTransfer : IForegroundTransfer.Interface +public unsafe partial struct IForegroundTransfer : IForegroundTransfer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IForegroundTransfer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IInitializeSpy.cs b/sources/Interop/Windows/Windows/um/objidl/IInitializeSpy.cs index 611450dc21..4e99865aaf 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IInitializeSpy.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IInitializeSpy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000034-0000-0000-C000-000000000046")] [NativeTypeName("struct IInitializeSpy : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeSpy : IInitializeSpy.Interface +public unsafe partial struct IInitializeSpy : IInitializeSpy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeSpy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/ILayoutStorage.cs b/sources/Interop/Windows/Windows/um/objidl/ILayoutStorage.cs index b3e49dea11..e21704e1f7 100644 --- a/sources/Interop/Windows/Windows/um/objidl/ILayoutStorage.cs +++ b/sources/Interop/Windows/Windows/um/objidl/ILayoutStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E6D4D90-6738-11CF-9608-00AA00680DB4")] [NativeTypeName("struct ILayoutStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILayoutStorage : ILayoutStorage.Interface +public unsafe partial struct ILayoutStorage : ILayoutStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILayoutStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/ILockBytes.cs b/sources/Interop/Windows/Windows/um/objidl/ILockBytes.cs index 060a6eaa07..051677d215 100644 --- a/sources/Interop/Windows/Windows/um/objidl/ILockBytes.cs +++ b/sources/Interop/Windows/Windows/um/objidl/ILockBytes.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000A-0000-0000-C000-000000000046")] [NativeTypeName("struct ILockBytes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ILockBytes : ILockBytes.Interface +public unsafe partial struct ILockBytes : ILockBytes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ILockBytes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IMallocSpy.cs b/sources/Interop/Windows/Windows/um/objidl/IMallocSpy.cs index c691752deb..1c615e5880 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IMallocSpy.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IMallocSpy.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000001D-0000-0000-C000-000000000046")] [NativeTypeName("struct IMallocSpy : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMallocSpy : IMallocSpy.Interface +public unsafe partial struct IMallocSpy : IMallocSpy.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMallocSpy)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IMessageFilter.cs b/sources/Interop/Windows/Windows/um/objidl/IMessageFilter.cs index 6847ca878d..b6eb437d97 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IMessageFilter.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IMessageFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000016-0000-0000-C000-000000000046")] [NativeTypeName("struct IMessageFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMessageFilter : IMessageFilter.Interface +public unsafe partial struct IMessageFilter : IMessageFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMessageFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IMoniker.cs b/sources/Interop/Windows/Windows/um/objidl/IMoniker.cs index fd4b7eccae..f0eb8e2024 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IMoniker.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IMoniker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000F-0000-0000-C000-000000000046")] [NativeTypeName("struct IMoniker : IPersistStream")] [NativeInheritance("IPersistStream")] -public unsafe partial struct IMoniker : IMoniker.Interface +public unsafe partial struct IMoniker : IMoniker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMoniker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IOplockStorage.cs b/sources/Interop/Windows/Windows/um/objidl/IOplockStorage.cs index bfe04e6b95..4c07383a2d 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IOplockStorage.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IOplockStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8D19C834-8879-11D1-83E9-00C04FC2C6D4")] [NativeTypeName("struct IOplockStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOplockStorage : IOplockStorage.Interface +public unsafe partial struct IOplockStorage : IOplockStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOplockStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IPersist.cs b/sources/Interop/Windows/Windows/um/objidl/IPersist.cs index a32d3d8a97..7d1fa59074 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IPersist.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IPersist.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010C-0000-0000-C000-000000000046")] [NativeTypeName("struct IPersist : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPersist : IPersist.Interface +public unsafe partial struct IPersist : IPersist.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersist)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IPersistFile.cs b/sources/Interop/Windows/Windows/um/objidl/IPersistFile.cs index 8a699b22c5..487d8ecece 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IPersistFile.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IPersistFile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010B-0000-0000-C000-000000000046")] [NativeTypeName("struct IPersistFile : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistFile : IPersistFile.Interface +public unsafe partial struct IPersistFile : IPersistFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IPersistStorage.cs b/sources/Interop/Windows/Windows/um/objidl/IPersistStorage.cs index d95a160f5a..4597a6b00e 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IPersistStorage.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IPersistStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010A-0000-0000-C000-000000000046")] [NativeTypeName("struct IPersistStorage : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistStorage : IPersistStorage.Interface +public unsafe partial struct IPersistStorage : IPersistStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IPersistStream.cs b/sources/Interop/Windows/Windows/um/objidl/IPersistStream.cs index 1279426177..42cfafa83f 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IPersistStream.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IPersistStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000109-0000-0000-C000-000000000046")] [NativeTypeName("struct IPersistStream : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistStream : IPersistStream.Interface +public unsafe partial struct IPersistStream : IPersistStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IProcessLock.cs b/sources/Interop/Windows/Windows/um/objidl/IProcessLock.cs index c9d1134ddf..361c7a0133 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IProcessLock.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IProcessLock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000001D5-0000-0000-C000-000000000046")] [NativeTypeName("struct IProcessLock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProcessLock : IProcessLock.Interface +public unsafe partial struct IProcessLock : IProcessLock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProcessLock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IProgressNotify.cs b/sources/Interop/Windows/Windows/um/objidl/IProgressNotify.cs index 1f9587409c..348bed8e19 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IProgressNotify.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IProgressNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A9D758A0-4617-11CF-95FC-00AA00680DB4")] [NativeTypeName("struct IProgressNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProgressNotify : IProgressNotify.Interface +public unsafe partial struct IProgressNotify : IProgressNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProgressNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IROTData.cs b/sources/Interop/Windows/Windows/um/objidl/IROTData.cs index 58b5ba166c..b3c0d3c762 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IROTData.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IROTData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F29F6BC0-5021-11CE-AA15-00006901293F")] [NativeTypeName("struct IROTData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IROTData : IROTData.Interface +public unsafe partial struct IROTData : IROTData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IROTData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IRootStorage.cs b/sources/Interop/Windows/Windows/um/objidl/IRootStorage.cs index 1ee453c58e..8c431c53a8 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IRootStorage.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IRootStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000012-0000-0000-C000-000000000046")] [NativeTypeName("struct IRootStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRootStorage : IRootStorage.Interface +public unsafe partial struct IRootStorage : IRootStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRootStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IRunnableObject.cs b/sources/Interop/Windows/Windows/um/objidl/IRunnableObject.cs index dbb7537020..0cce6bc2ae 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IRunnableObject.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IRunnableObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000126-0000-0000-C000-000000000046")] [NativeTypeName("struct IRunnableObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRunnableObject : IRunnableObject.Interface +public unsafe partial struct IRunnableObject : IRunnableObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRunnableObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IRunningObjectTable.cs b/sources/Interop/Windows/Windows/um/objidl/IRunningObjectTable.cs index 9e452de120..debf52c7c4 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IRunningObjectTable.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IRunningObjectTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000010-0000-0000-C000-000000000046")] [NativeTypeName("struct IRunningObjectTable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRunningObjectTable : IRunningObjectTable.Interface +public unsafe partial struct IRunningObjectTable : IRunningObjectTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRunningObjectTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IStorage.cs b/sources/Interop/Windows/Windows/um/objidl/IStorage.cs index 47f010a973..405b74f29f 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IStorage.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000B-0000-0000-C000-000000000046")] [NativeTypeName("struct IStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStorage : IStorage.Interface +public unsafe partial struct IStorage : IStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/ISurrogateService.cs b/sources/Interop/Windows/Windows/um/objidl/ISurrogateService.cs index 4c4d75f095..b48da74a7f 100644 --- a/sources/Interop/Windows/Windows/um/objidl/ISurrogateService.cs +++ b/sources/Interop/Windows/Windows/um/objidl/ISurrogateService.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000001D4-0000-0000-C000-000000000046")] [NativeTypeName("struct ISurrogateService : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISurrogateService : ISurrogateService.Interface +public unsafe partial struct ISurrogateService : ISurrogateService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurrogateService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IThumbnailExtractor.cs b/sources/Interop/Windows/Windows/um/objidl/IThumbnailExtractor.cs index 36e26c8fba..2363838a1e 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IThumbnailExtractor.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IThumbnailExtractor.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("969DC708-5C76-11D1-8D86-0000F804B057")] [NativeTypeName("struct IThumbnailExtractor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IThumbnailExtractor : IThumbnailExtractor.Interface +public unsafe partial struct IThumbnailExtractor : IThumbnailExtractor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailExtractor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/ITimeAndNoticeControl.cs b/sources/Interop/Windows/Windows/um/objidl/ITimeAndNoticeControl.cs index 0b593864fe..30654d2284 100644 --- a/sources/Interop/Windows/Windows/um/objidl/ITimeAndNoticeControl.cs +++ b/sources/Interop/Windows/Windows/um/objidl/ITimeAndNoticeControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BC0BF6AE-8878-11D1-83E9-00C04FC2C6D4")] [NativeTypeName("struct ITimeAndNoticeControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITimeAndNoticeControl : ITimeAndNoticeControl.Interface +public unsafe partial struct ITimeAndNoticeControl : ITimeAndNoticeControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITimeAndNoticeControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/IUrlMon.cs b/sources/Interop/Windows/Windows/um/objidl/IUrlMon.cs index 5e8414cce2..c835b5946c 100644 --- a/sources/Interop/Windows/Windows/um/objidl/IUrlMon.cs +++ b/sources/Interop/Windows/Windows/um/objidl/IUrlMon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000026-0000-0000-C000-000000000046")] [NativeTypeName("struct IUrlMon : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUrlMon : IUrlMon.Interface +public unsafe partial struct IUrlMon : IUrlMon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUrlMon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidl/STGMEDIUM.cs b/sources/Interop/Windows/Windows/um/objidl/STGMEDIUM.cs index 3119ec0401..132462ad4b 100644 --- a/sources/Interop/Windows/Windows/um/objidl/STGMEDIUM.cs +++ b/sources/Interop/Windows/Windows/um/objidl/STGMEDIUM.cs @@ -3,6 +3,7 @@ // Ported from um/objidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,72 +24,79 @@ public unsafe partial struct STGMEDIUM public IUnknown* pUnkForRelease; /// + [UnscopedRef] public ref HBITMAP hBitmap { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hBitmap; + return ref Anonymous.hBitmap; } } /// + [UnscopedRef] public ref HMETAFILEPICT hMetaFilePict { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hMetaFilePict; + return ref Anonymous.hMetaFilePict; } } /// + [UnscopedRef] public ref HENHMETAFILE hEnhMetaFile { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hEnhMetaFile; + return ref Anonymous.hEnhMetaFile; } } /// + [UnscopedRef] public ref HGLOBAL hGlobal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hGlobal; + return ref Anonymous.hGlobal; } } /// + [UnscopedRef] public ref ushort* lpszFileName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.lpszFileName; + return ref Anonymous.lpszFileName; } } /// + [UnscopedRef] public ref IStream* pstm { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pstm; + return ref Anonymous.pstm; } } /// + [UnscopedRef] public ref IStorage* pstg { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pstg; + return ref Anonymous.pstg; } } diff --git a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIMultiQI.cs b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIMultiQI.cs index d2caf8fb39..039551060f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIMultiQI.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIMultiQI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000E0020-0000-0000-C000-000000000046")] [NativeTypeName("struct AsyncIMultiQI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIMultiQI : AsyncIMultiQI.Interface +public unsafe partial struct AsyncIMultiQI : AsyncIMultiQI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIMultiQI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeByte.cs b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeByte.cs index cec4eba051..b3aad6c272 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeByte.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeByte.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACB-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct AsyncIPipeByte : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIPipeByte : AsyncIPipeByte.Interface +public unsafe partial struct AsyncIPipeByte : AsyncIPipeByte.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIPipeByte)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeDouble.cs b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeDouble.cs index 6f96f09310..f6b156b26f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeDouble.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeDouble.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACF-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct AsyncIPipeDouble : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIPipeDouble : AsyncIPipeDouble.Interface +public unsafe partial struct AsyncIPipeDouble : AsyncIPipeDouble.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIPipeDouble)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeLong.cs b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeLong.cs index 9095079a4d..3634b37bb8 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeLong.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/AsyncIPipeLong.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACD-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct AsyncIPipeLong : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct AsyncIPipeLong : AsyncIPipeLong.Interface +public unsafe partial struct AsyncIPipeLong : AsyncIPipeLong.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIPipeLong)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IActivationFilter.cs b/sources/Interop/Windows/Windows/um/objidlbase/IActivationFilter.cs index 4573e817de..9a2c980fef 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IActivationFilter.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IActivationFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000017-0000-0000-C000-000000000046")] [NativeTypeName("struct IActivationFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IActivationFilter : IActivationFilter.Interface +public unsafe partial struct IActivationFilter : IActivationFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IActivationFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAddrExclusionControl.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAddrExclusionControl.cs index e83c017f57..823845b28d 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAddrExclusionControl.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAddrExclusionControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000148-0000-0000-C000-000000000046")] [NativeTypeName("struct IAddrExclusionControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAddrExclusionControl : IAddrExclusionControl.Interface +public unsafe partial struct IAddrExclusionControl : IAddrExclusionControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAddrExclusionControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAddrTrackingControl.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAddrTrackingControl.cs index 7463fb6164..91cdc67c1f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAddrTrackingControl.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAddrTrackingControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000147-0000-0000-C000-000000000046")] [NativeTypeName("struct IAddrTrackingControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAddrTrackingControl : IAddrTrackingControl.Interface +public unsafe partial struct IAddrTrackingControl : IAddrTrackingControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAddrTrackingControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAgileObject.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAgileObject.cs index 80815e308a..9b78eb76b4 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAgileObject.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAgileObject.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IAgileObject : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IAgileObject : IAgileObject.Interface +public unsafe partial struct IAgileObject : IAgileObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAgileObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAgileReference.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAgileReference.cs index 560d9bba1b..e1d63ab353 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAgileReference.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAgileReference.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C03F6A43-65A4-9818-987E-E0B810D2A6F2")] [NativeTypeName("struct IAgileReference : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAgileReference : IAgileReference.Interface +public unsafe partial struct IAgileReference : IAgileReference.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAgileReference)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAsyncManager.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAsyncManager.cs index f04dcfeb6f..280f41393f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAsyncManager.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAsyncManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000002A-0000-0000-C000-000000000046")] [NativeTypeName("struct IAsyncManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAsyncManager : IAsyncManager.Interface +public unsafe partial struct IAsyncManager : IAsyncManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAsyncManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IAsyncRpcChannelBuffer.cs b/sources/Interop/Windows/Windows/um/objidlbase/IAsyncRpcChannelBuffer.cs index 2d77b44568..cc3294f460 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IAsyncRpcChannelBuffer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IAsyncRpcChannelBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A5029FB6-3C34-11D1-9C99-00C04FB998AA")] [NativeTypeName("struct IAsyncRpcChannelBuffer : IRpcChannelBuffer2")] [NativeInheritance("IRpcChannelBuffer2")] -public unsafe partial struct IAsyncRpcChannelBuffer : IAsyncRpcChannelBuffer.Interface +public unsafe partial struct IAsyncRpcChannelBuffer : IAsyncRpcChannelBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAsyncRpcChannelBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ICallFactory.cs b/sources/Interop/Windows/Windows/um/objidlbase/ICallFactory.cs index 387a702c4f..327f5c2793 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ICallFactory.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ICallFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C733A30-2A1C-11CE-ADE5-00AA0044773D")] [NativeTypeName("struct ICallFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICallFactory : ICallFactory.Interface +public unsafe partial struct ICallFactory : ICallFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICallFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ICancelMethodCalls.cs b/sources/Interop/Windows/Windows/um/objidlbase/ICancelMethodCalls.cs index d86f06ec7e..ddd83f8809 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ICancelMethodCalls.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ICancelMethodCalls.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000029-0000-0000-C000-000000000046")] [NativeTypeName("struct ICancelMethodCalls : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICancelMethodCalls : ICancelMethodCalls.Interface +public unsafe partial struct ICancelMethodCalls : ICancelMethodCalls.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICancelMethodCalls)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IChannelHook.cs b/sources/Interop/Windows/Windows/um/objidlbase/IChannelHook.cs index 6a7be0c1c9..c5d4027ae4 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IChannelHook.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IChannelHook.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1008C4A0-7613-11CF-9AF1-0020AF6E72F4")] [NativeTypeName("struct IChannelHook : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IChannelHook : IChannelHook.Interface +public unsafe partial struct IChannelHook : IChannelHook.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IChannelHook)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IClientSecurity.cs b/sources/Interop/Windows/Windows/um/objidlbase/IClientSecurity.cs index ab6f08184b..d443bcd90d 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IClientSecurity.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IClientSecurity.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000013D-0000-0000-C000-000000000046")] [NativeTypeName("struct IClientSecurity : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IClientSecurity : IClientSecurity.Interface +public unsafe partial struct IClientSecurity : IClientSecurity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClientSecurity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IComThreadingInfo.cs b/sources/Interop/Windows/Windows/um/objidlbase/IComThreadingInfo.cs index 0e211b17b8..61706fcbc5 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IComThreadingInfo.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IComThreadingInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000001CE-0000-0000-C000-000000000046")] [NativeTypeName("struct IComThreadingInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IComThreadingInfo : IComThreadingInfo.Interface +public unsafe partial struct IComThreadingInfo : IComThreadingInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IComThreadingInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IEnumString.cs b/sources/Interop/Windows/Windows/um/objidlbase/IEnumString.cs index 14136e57dd..1f3dd8941f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IEnumString.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IEnumString.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000101-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumString : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumString : IEnumString.Interface +public unsafe partial struct IEnumString : IEnumString.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumString)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IEnumUnknown.cs b/sources/Interop/Windows/Windows/um/objidlbase/IEnumUnknown.cs index fb235ab51d..dd33053378 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IEnumUnknown.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IEnumUnknown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000100-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumUnknown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumUnknown : IEnumUnknown.Interface +public unsafe partial struct IEnumUnknown : IEnumUnknown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumUnknown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IExternalConnection.cs b/sources/Interop/Windows/Windows/um/objidlbase/IExternalConnection.cs index 7e34193c14..76969c4ed9 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IExternalConnection.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IExternalConnection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000019-0000-0000-C000-000000000046")] [NativeTypeName("struct IExternalConnection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExternalConnection : IExternalConnection.Interface +public unsafe partial struct IExternalConnection : IExternalConnection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExternalConnection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IFastRundown.cs b/sources/Interop/Windows/Windows/um/objidlbase/IFastRundown.cs index 5730400c97..c51e9c9146 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IFastRundown.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IFastRundown.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IFastRundown : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IFastRundown : IFastRundown.Interface +public unsafe partial struct IFastRundown : IFastRundown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFastRundown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IGlobalInterfaceTable.cs b/sources/Interop/Windows/Windows/um/objidlbase/IGlobalInterfaceTable.cs index 3414d21abe..981cc196b1 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IGlobalInterfaceTable.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IGlobalInterfaceTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000146-0000-0000-C000-000000000046")] [NativeTypeName("struct IGlobalInterfaceTable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGlobalInterfaceTable : IGlobalInterfaceTable.Interface +public unsafe partial struct IGlobalInterfaceTable : IGlobalInterfaceTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGlobalInterfaceTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IGlobalOptions.cs b/sources/Interop/Windows/Windows/um/objidlbase/IGlobalOptions.cs index 30dfaab7b2..7207180a7a 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IGlobalOptions.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IGlobalOptions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000015B-0000-0000-C000-000000000046")] [NativeTypeName("struct IGlobalOptions : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGlobalOptions : IGlobalOptions.Interface +public unsafe partial struct IGlobalOptions : IGlobalOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGlobalOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IInternalUnknown.cs b/sources/Interop/Windows/Windows/um/objidlbase/IInternalUnknown.cs index 2b10c1f109..2ffa54976b 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IInternalUnknown.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IInternalUnknown.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000021-0000-0000-C000-000000000046")] [NativeTypeName("struct IInternalUnknown : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternalUnknown : IInternalUnknown.Interface +public unsafe partial struct IInternalUnknown : IInternalUnknown.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternalUnknown)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMachineGlobalObjectTable.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMachineGlobalObjectTable.cs index c32e8497ec..18d8b3bc4f 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMachineGlobalObjectTable.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMachineGlobalObjectTable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("26D709AC-F70B-4421-A96F-D2878FAFB00D")] [NativeTypeName("struct IMachineGlobalObjectTable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMachineGlobalObjectTable : IMachineGlobalObjectTable.Interface +public unsafe partial struct IMachineGlobalObjectTable : IMachineGlobalObjectTable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMachineGlobalObjectTable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMalloc.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMalloc.cs index 2bb68f0e70..8d1d24b4bb 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMalloc.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMalloc.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000002-0000-0000-C000-000000000046")] [NativeTypeName("struct IMalloc : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMalloc : IMalloc.Interface +public unsafe partial struct IMalloc : IMalloc.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMalloc)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMarshal.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMarshal.cs index 6db57f5a77..df83edd793 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMarshal.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMarshal.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000003-0000-0000-C000-000000000046")] [NativeTypeName("struct IMarshal : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMarshal : IMarshal.Interface +public unsafe partial struct IMarshal : IMarshal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarshal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMarshal2.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMarshal2.cs index 9ae908baee..24dea1ecb8 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMarshal2.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMarshal2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("000001CF-0000-0000-C000-000000000046")] [NativeTypeName("struct IMarshal2 : IMarshal")] [NativeInheritance("IMarshal")] -public unsafe partial struct IMarshal2 : IMarshal2.Interface +public unsafe partial struct IMarshal2 : IMarshal2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarshal2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMarshalingStream.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMarshalingStream.cs index c87a58a2b9..f726faf1a3 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMarshalingStream.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMarshalingStream.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IMarshalingStream : IStream")] [NativeInheritance("IStream")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IMarshalingStream : IMarshalingStream.Interface +public unsafe partial struct IMarshalingStream : IMarshalingStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMarshalingStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IMultiQI.cs b/sources/Interop/Windows/Windows/um/objidlbase/IMultiQI.cs index cb1fbb8071..44c2ff4d4e 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IMultiQI.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IMultiQI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000020-0000-0000-C000-000000000046")] [NativeTypeName("struct IMultiQI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMultiQI : IMultiQI.Interface +public unsafe partial struct IMultiQI : IMultiQI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMultiQI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/INoMarshal.cs b/sources/Interop/Windows/Windows/um/objidlbase/INoMarshal.cs index e369a8abd4..7268801bd4 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/INoMarshal.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/INoMarshal.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct INoMarshal : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct INoMarshal : INoMarshal.Interface +public unsafe partial struct INoMarshal : INoMarshal.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INoMarshal)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IPSFactoryBuffer.cs b/sources/Interop/Windows/Windows/um/objidlbase/IPSFactoryBuffer.cs index 75d7cd0d9f..a0a4f1f4be 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IPSFactoryBuffer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IPSFactoryBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D5F569D0-593B-101A-B569-08002B2DBF7A")] [NativeTypeName("struct IPSFactoryBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPSFactoryBuffer : IPSFactoryBuffer.Interface +public unsafe partial struct IPSFactoryBuffer : IPSFactoryBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPSFactoryBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IPipeByte.cs b/sources/Interop/Windows/Windows/um/objidlbase/IPipeByte.cs index 3075f4c698..32c4bd71c7 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IPipeByte.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IPipeByte.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACA-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct IPipeByte : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPipeByte : IPipeByte.Interface +public unsafe partial struct IPipeByte : IPipeByte.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPipeByte)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IPipeDouble.cs b/sources/Interop/Windows/Windows/um/objidlbase/IPipeDouble.cs index 47f844f708..be0ebe53a3 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IPipeDouble.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IPipeDouble.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACE-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct IPipeDouble : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPipeDouble : IPipeDouble.Interface +public unsafe partial struct IPipeDouble : IPipeDouble.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPipeDouble)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IPipeLong.cs b/sources/Interop/Windows/Windows/um/objidlbase/IPipeLong.cs index efae0e9032..8430f26a22 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IPipeLong.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IPipeLong.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DB2F3ACC-2F86-11D1-8E04-00C04FB9989A")] [NativeTypeName("struct IPipeLong : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPipeLong : IPipeLong.Interface +public unsafe partial struct IPipeLong : IPipeLong.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPipeLong)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IProcessInitControl.cs b/sources/Interop/Windows/Windows/um/objidlbase/IProcessInitControl.cs index 19b2271b76..28146cd9fb 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IProcessInitControl.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IProcessInitControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("72380D55-8D2B-43A3-8513-2B6EF31434E9")] [NativeTypeName("struct IProcessInitControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProcessInitControl : IProcessInitControl.Interface +public unsafe partial struct IProcessInitControl : IProcessInitControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProcessInitControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IReleaseMarshalBuffers.cs b/sources/Interop/Windows/Windows/um/objidlbase/IReleaseMarshalBuffers.cs index 4e8203ab52..801ea68b1d 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IReleaseMarshalBuffers.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IReleaseMarshalBuffers.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB0CB9E8-7996-11D2-872E-0000F8080859")] [NativeTypeName("struct IReleaseMarshalBuffers : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IReleaseMarshalBuffers : IReleaseMarshalBuffers.Interface +public unsafe partial struct IReleaseMarshalBuffers : IReleaseMarshalBuffers.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IReleaseMarshalBuffers)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer.cs index d0336edde3..376024ef25 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D5F56B60-593B-101A-B569-08002B2DBF7A")] [NativeTypeName("struct IRpcChannelBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcChannelBuffer : IRpcChannelBuffer.Interface +public unsafe partial struct IRpcChannelBuffer : IRpcChannelBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcChannelBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer2.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer2.cs index 67b51c3b41..4231f5ebe9 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer2.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("594F31D0-7F19-11D0-B194-00A0C90DC8BF")] [NativeTypeName("struct IRpcChannelBuffer2 : IRpcChannelBuffer")] [NativeInheritance("IRpcChannelBuffer")] -public unsafe partial struct IRpcChannelBuffer2 : IRpcChannelBuffer2.Interface +public unsafe partial struct IRpcChannelBuffer2 : IRpcChannelBuffer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcChannelBuffer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer3.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer3.cs index 6df2a08ad5..34a24747cd 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer3.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcChannelBuffer3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("25B15600-0115-11D0-BF0D-00AA00B8DFD2")] [NativeTypeName("struct IRpcChannelBuffer3 : IRpcChannelBuffer2")] [NativeInheritance("IRpcChannelBuffer2")] -public unsafe partial struct IRpcChannelBuffer3 : IRpcChannelBuffer3.Interface +public unsafe partial struct IRpcChannelBuffer3 : IRpcChannelBuffer3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcChannelBuffer3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcHelper.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcHelper.cs index fa9b6b74c0..27ace9fe99 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcHelper.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcHelper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000149-0000-0000-C000-000000000046")] [NativeTypeName("struct IRpcHelper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcHelper : IRpcHelper.Interface +public unsafe partial struct IRpcHelper : IRpcHelper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcHelper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcOptions.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcOptions.cs index b8b4f86490..6c15f62dfc 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcOptions.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcOptions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000144-0000-0000-C000-000000000046")] [NativeTypeName("struct IRpcOptions : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcOptions : IRpcOptions.Interface +public unsafe partial struct IRpcOptions : IRpcOptions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcOptions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcProxyBuffer.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcProxyBuffer.cs index c3f912686e..c600dea8fd 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcProxyBuffer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcProxyBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D5F56A34-593B-101A-B569-08002B2DBF7A")] [NativeTypeName("struct IRpcProxyBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcProxyBuffer : IRpcProxyBuffer.Interface +public unsafe partial struct IRpcProxyBuffer : IRpcProxyBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcProxyBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcStubBuffer.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcStubBuffer.cs index 0cd9cfc355..a6f57e6e49 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcStubBuffer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcStubBuffer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D5F56AFC-593B-101A-B569-08002B2DBF7A")] [NativeTypeName("struct IRpcStubBuffer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcStubBuffer : IRpcStubBuffer.Interface +public unsafe partial struct IRpcStubBuffer : IRpcStubBuffer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcStubBuffer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IRpcSyntaxNegotiate.cs b/sources/Interop/Windows/Windows/um/objidlbase/IRpcSyntaxNegotiate.cs index aa912f83af..ab546a12ae 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IRpcSyntaxNegotiate.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IRpcSyntaxNegotiate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("58A08519-24C8-4935-B482-3FD823333A4F")] [NativeTypeName("struct IRpcSyntaxNegotiate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRpcSyntaxNegotiate : IRpcSyntaxNegotiate.Interface +public unsafe partial struct IRpcSyntaxNegotiate : IRpcSyntaxNegotiate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRpcSyntaxNegotiate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISequentialStream.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISequentialStream.cs index 12bf2e7dc6..5c843b9a2d 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISequentialStream.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISequentialStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0C733A30-2A1C-11CE-ADE5-00AA0044773D")] [NativeTypeName("struct ISequentialStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISequentialStream : ISequentialStream.Interface +public unsafe partial struct ISequentialStream : ISequentialStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISequentialStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IServerSecurity.cs b/sources/Interop/Windows/Windows/um/objidlbase/IServerSecurity.cs index f0c9a33534..a470c6ff8e 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IServerSecurity.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IServerSecurity.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000013E-0000-0000-C000-000000000046")] [NativeTypeName("struct IServerSecurity : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IServerSecurity : IServerSecurity.Interface +public unsafe partial struct IServerSecurity : IServerSecurity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IServerSecurity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IStdMarshalInfo.cs b/sources/Interop/Windows/Windows/um/objidlbase/IStdMarshalInfo.cs index 55ba0b4a94..8b66dbb231 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IStdMarshalInfo.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IStdMarshalInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000018-0000-0000-C000-000000000046")] [NativeTypeName("struct IStdMarshalInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStdMarshalInfo : IStdMarshalInfo.Interface +public unsafe partial struct IStdMarshalInfo : IStdMarshalInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStdMarshalInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IStream.cs b/sources/Interop/Windows/Windows/um/objidlbase/IStream.cs index 888d9fa968..bcfe52862c 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IStream.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000000C-0000-0000-C000-000000000046")] [NativeTypeName("struct IStream : ISequentialStream")] [NativeInheritance("ISequentialStream")] -public unsafe partial struct IStream : IStream.Interface +public unsafe partial struct IStream : IStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISurrogate.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISurrogate.cs index 58184a4277..587a604af0 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISurrogate.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISurrogate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000022-0000-0000-C000-000000000046")] [NativeTypeName("struct ISurrogate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISurrogate : ISurrogate.Interface +public unsafe partial struct ISurrogate : ISurrogate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISurrogate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronize.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronize.cs index 9afd2c1cd4..6de9876d8a 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronize.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronize.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000030-0000-0000-C000-000000000046")] [NativeTypeName("struct ISynchronize : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISynchronize : ISynchronize.Interface +public unsafe partial struct ISynchronize : ISynchronize.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISynchronize)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeContainer.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeContainer.cs index 74aa447870..13d2dd1741 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeContainer.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000033-0000-0000-C000-000000000046")] [NativeTypeName("struct ISynchronizeContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISynchronizeContainer : ISynchronizeContainer.Interface +public unsafe partial struct ISynchronizeContainer : ISynchronizeContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISynchronizeContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeEvent.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeEvent.cs index d8a34e035f..a49b3c1943 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeEvent.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeEvent.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000032-0000-0000-C000-000000000046")] [NativeTypeName("struct ISynchronizeEvent : ISynchronizeHandle")] [NativeInheritance("ISynchronizeHandle")] -public unsafe partial struct ISynchronizeEvent : ISynchronizeEvent.Interface +public unsafe partial struct ISynchronizeEvent : ISynchronizeEvent.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISynchronizeEvent)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeHandle.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeHandle.cs index 90648e83df..f7a11299ad 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeHandle.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeHandle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000031-0000-0000-C000-000000000046")] [NativeTypeName("struct ISynchronizeHandle : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISynchronizeHandle : ISynchronizeHandle.Interface +public unsafe partial struct ISynchronizeHandle : ISynchronizeHandle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISynchronizeHandle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeMutex.cs b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeMutex.cs index 21d1275cf7..4b78dda03d 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeMutex.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/ISynchronizeMutex.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000025-0000-0000-C000-000000000046")] [NativeTypeName("struct ISynchronizeMutex : ISynchronize")] [NativeInheritance("ISynchronize")] -public unsafe partial struct ISynchronizeMutex : ISynchronizeMutex.Interface +public unsafe partial struct ISynchronizeMutex : ISynchronizeMutex.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISynchronizeMutex)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/objidlbase/IWaitMultiple.cs b/sources/Interop/Windows/Windows/um/objidlbase/IWaitMultiple.cs index d5aaa13251..10c4f0f451 100644 --- a/sources/Interop/Windows/Windows/um/objidlbase/IWaitMultiple.cs +++ b/sources/Interop/Windows/Windows/um/objidlbase/IWaitMultiple.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000002B-0000-0000-C000-000000000046")] [NativeTypeName("struct IWaitMultiple : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWaitMultiple : IWaitMultiple.Interface +public unsafe partial struct IWaitMultiple : IWaitMultiple.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWaitMultiple)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IAdviseSinkEx.cs b/sources/Interop/Windows/Windows/um/ocidl/IAdviseSinkEx.cs index a7d81a3c2d..202f926331 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IAdviseSinkEx.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IAdviseSinkEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3AF24290-0C96-11CE-A0CF-00AA00600AB8")] [NativeTypeName("struct IAdviseSinkEx : IAdviseSink")] [NativeInheritance("IAdviseSink")] -public unsafe partial struct IAdviseSinkEx : IAdviseSinkEx.Interface +public unsafe partial struct IAdviseSinkEx : IAdviseSinkEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAdviseSinkEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IClassFactory2.cs b/sources/Interop/Windows/Windows/um/ocidl/IClassFactory2.cs index 6b65a21d61..9b8615892d 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IClassFactory2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IClassFactory2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B28F-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IClassFactory2 : IClassFactory")] [NativeInheritance("IClassFactory")] -public unsafe partial struct IClassFactory2 : IClassFactory2.Interface +public unsafe partial struct IClassFactory2 : IClassFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClassFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IConnectionPoint.cs b/sources/Interop/Windows/Windows/um/ocidl/IConnectionPoint.cs index 0f8c022a3f..181efddcdc 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IConnectionPoint.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IConnectionPoint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B286-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IConnectionPoint : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IConnectionPoint : IConnectionPoint.Interface +public unsafe partial struct IConnectionPoint : IConnectionPoint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConnectionPoint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IConnectionPointContainer.cs b/sources/Interop/Windows/Windows/um/ocidl/IConnectionPointContainer.cs index e114b73b34..aefffbe1ad 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IConnectionPointContainer.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IConnectionPointContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B284-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IConnectionPointContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IConnectionPointContainer : IConnectionPointContainer.Interface +public unsafe partial struct IConnectionPointContainer : IConnectionPointContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConnectionPointContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IEnumConnectionPoints.cs b/sources/Interop/Windows/Windows/um/ocidl/IEnumConnectionPoints.cs index 93f75df454..1f5e382a34 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IEnumConnectionPoints.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IEnumConnectionPoints.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B285-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IEnumConnectionPoints : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumConnectionPoints : IEnumConnectionPoints.Interface +public unsafe partial struct IEnumConnectionPoints : IEnumConnectionPoints.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumConnectionPoints)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IEnumConnections.cs b/sources/Interop/Windows/Windows/um/ocidl/IEnumConnections.cs index 4d5d1cddd3..4da363ab77 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IEnumConnections.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IEnumConnections.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B287-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IEnumConnections : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumConnections : IEnumConnections.Interface +public unsafe partial struct IEnumConnections : IEnumConnections.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumConnections)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IEnumOleUndoUnits.cs b/sources/Interop/Windows/Windows/um/ocidl/IEnumOleUndoUnits.cs index a4dbe0814f..c3d18a2430 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IEnumOleUndoUnits.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IEnumOleUndoUnits.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B3E7C340-EF97-11CE-9BC9-00AA00608E01")] [NativeTypeName("struct IEnumOleUndoUnits : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumOleUndoUnits : IEnumOleUndoUnits.Interface +public unsafe partial struct IEnumOleUndoUnits : IEnumOleUndoUnits.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumOleUndoUnits)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IFont.cs b/sources/Interop/Windows/Windows/um/ocidl/IFont.cs index 0e335d9ffe..13bf029574 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IFont.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IFont.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BEF6E002-A874-101A-8BBA-00AA00300CAB")] [NativeTypeName("struct IFont : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFont : IFont.Interface +public unsafe partial struct IFont : IFont.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFont)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IFontDisp.cs b/sources/Interop/Windows/Windows/um/ocidl/IFontDisp.cs index bdd3c0ee22..0383fd4b03 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IFontDisp.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IFontDisp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BEF6E003-A874-101A-8BBA-00AA00300CAB")] [NativeTypeName("struct IFontDisp : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFontDisp : IFontDisp.Interface +public unsafe partial struct IFontDisp : IFontDisp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFontDisp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IFontEventsDisp.cs b/sources/Interop/Windows/Windows/um/ocidl/IFontEventsDisp.cs index a8ec0e2741..7c2afbcc5d 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IFontEventsDisp.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IFontEventsDisp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4EF6100A-AF88-11D0-9846-00C04FC29993")] [NativeTypeName("struct IFontEventsDisp : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IFontEventsDisp : IFontEventsDisp.Interface +public unsafe partial struct IFontEventsDisp : IFontEventsDisp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFontEventsDisp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IObjectWithSite.cs b/sources/Interop/Windows/Windows/um/ocidl/IObjectWithSite.cs index 7ac35a97f3..097f582d7f 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IObjectWithSite.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IObjectWithSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FC4801A3-2BA9-11CF-A229-00AA003D7352")] [NativeTypeName("struct IObjectWithSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithSite : IObjectWithSite.Interface +public unsafe partial struct IObjectWithSite : IObjectWithSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleControl.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleControl.cs index 9cd1e9bb68..86d96326f7 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleControl.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B288-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IOleControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleControl : IOleControl.Interface +public unsafe partial struct IOleControl : IOleControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleControlSite.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleControlSite.cs index 662fdf5103..7bac116380 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleControlSite.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleControlSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B289-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IOleControlSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleControlSite : IOleControlSite.Interface +public unsafe partial struct IOleControlSite : IOleControlSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleControlSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceObjectWindowless.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceObjectWindowless.cs index 88d551bc1f..0807b61019 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceObjectWindowless.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceObjectWindowless.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C2056CC-5EF4-101B-8BC8-00AA003E3B29")] [NativeTypeName("struct IOleInPlaceObjectWindowless : IOleInPlaceObject")] [NativeInheritance("IOleInPlaceObject")] -public unsafe partial struct IOleInPlaceObjectWindowless : IOleInPlaceObjectWindowless.Interface +public unsafe partial struct IOleInPlaceObjectWindowless : IOleInPlaceObjectWindowless.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceObjectWindowless)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteEx.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteEx.cs index 693f2720be..1d5f93ec34 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteEx.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9C2CAD80-3424-11CF-B670-00AA004CD6D8")] [NativeTypeName("struct IOleInPlaceSiteEx : IOleInPlaceSite")] [NativeInheritance("IOleInPlaceSite")] -public unsafe partial struct IOleInPlaceSiteEx : IOleInPlaceSiteEx.Interface +public unsafe partial struct IOleInPlaceSiteEx : IOleInPlaceSiteEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceSiteEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteWindowless.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteWindowless.cs index db69608b08..b30c11d135 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteWindowless.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleInPlaceSiteWindowless.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("922EADA0-3424-11CF-B670-00AA004CD6D8")] [NativeTypeName("struct IOleInPlaceSiteWindowless : IOleInPlaceSiteEx")] [NativeInheritance("IOleInPlaceSiteEx")] -public unsafe partial struct IOleInPlaceSiteWindowless : IOleInPlaceSiteWindowless.Interface +public unsafe partial struct IOleInPlaceSiteWindowless : IOleInPlaceSiteWindowless.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceSiteWindowless)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleParentUndoUnit.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleParentUndoUnit.cs index 16ccba547e..08ba7ecb73 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleParentUndoUnit.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleParentUndoUnit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A1FAF330-EF97-11CE-9BC9-00AA00608E01")] [NativeTypeName("struct IOleParentUndoUnit : IOleUndoUnit")] [NativeInheritance("IOleUndoUnit")] -public unsafe partial struct IOleParentUndoUnit : IOleParentUndoUnit.Interface +public unsafe partial struct IOleParentUndoUnit : IOleParentUndoUnit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleParentUndoUnit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleUndoManager.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleUndoManager.cs index 3c6ac27350..16da907dee 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleUndoManager.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleUndoManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D001F200-EF97-11CE-9BC9-00AA00608E01")] [NativeTypeName("struct IOleUndoManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleUndoManager : IOleUndoManager.Interface +public unsafe partial struct IOleUndoManager : IOleUndoManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleUndoManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IOleUndoUnit.cs b/sources/Interop/Windows/Windows/um/ocidl/IOleUndoUnit.cs index af8e3db59f..5202c2d9ed 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IOleUndoUnit.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IOleUndoUnit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("894AD3B0-EF97-11CE-9BC9-00AA00608E01")] [NativeTypeName("struct IOleUndoUnit : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleUndoUnit : IOleUndoUnit.Interface +public unsafe partial struct IOleUndoUnit : IOleUndoUnit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleUndoUnit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPerPropertyBrowsing.cs b/sources/Interop/Windows/Windows/um/ocidl/IPerPropertyBrowsing.cs index ff86ab900d..bf3cba57cb 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPerPropertyBrowsing.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPerPropertyBrowsing.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("376BD3AA-3845-101B-84ED-08002B2EC713")] [NativeTypeName("struct IPerPropertyBrowsing : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPerPropertyBrowsing : IPerPropertyBrowsing.Interface +public unsafe partial struct IPerPropertyBrowsing : IPerPropertyBrowsing.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPerPropertyBrowsing)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPersistMemory.cs b/sources/Interop/Windows/Windows/um/ocidl/IPersistMemory.cs index 27477c3ce3..6dc1e78119 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPersistMemory.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPersistMemory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BD1AE5E0-A6AE-11CE-BD37-504200C10000")] [NativeTypeName("struct IPersistMemory : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistMemory : IPersistMemory.Interface +public unsafe partial struct IPersistMemory : IPersistMemory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistMemory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag.cs b/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag.cs index ecdfccde63..5a24c3297b 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("37D84F60-42CB-11CE-8135-00AA004BB851")] [NativeTypeName("struct IPersistPropertyBag : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistPropertyBag : IPersistPropertyBag.Interface +public unsafe partial struct IPersistPropertyBag : IPersistPropertyBag.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistPropertyBag)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag2.cs b/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag2.cs index 17467db7eb..40e0a2de01 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPersistPropertyBag2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("22F55881-280B-11D0-A8A9-00A0C90C2004")] [NativeTypeName("struct IPersistPropertyBag2 : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistPropertyBag2 : IPersistPropertyBag2.Interface +public unsafe partial struct IPersistPropertyBag2 : IPersistPropertyBag2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistPropertyBag2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPersistStreamInit.cs b/sources/Interop/Windows/Windows/um/ocidl/IPersistStreamInit.cs index 3f1ecea53d..873e7d5639 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPersistStreamInit.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPersistStreamInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7FD52380-4E07-101B-AE2D-08002B2EC713")] [NativeTypeName("struct IPersistStreamInit : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistStreamInit : IPersistStreamInit.Interface +public unsafe partial struct IPersistStreamInit : IPersistStreamInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistStreamInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPicture.cs b/sources/Interop/Windows/Windows/um/ocidl/IPicture.cs index ba86c285c3..c43135a686 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPicture.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPicture.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BF80980-BF32-101A-8BBB-00AA00300CAB")] [NativeTypeName("struct IPicture : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPicture : IPicture.Interface +public unsafe partial struct IPicture : IPicture.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPicture)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPicture2.cs b/sources/Interop/Windows/Windows/um/ocidl/IPicture2.cs index e7f9797cbc..b658a593dc 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPicture2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPicture2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F5185DD8-2012-4B0B-AAD9-F052C6BD482B")] [NativeTypeName("struct IPicture2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPicture2 : IPicture2.Interface +public unsafe partial struct IPicture2 : IPicture2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPicture2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPictureDisp.cs b/sources/Interop/Windows/Windows/um/ocidl/IPictureDisp.cs index fb6e212bd0..2700cd2543 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPictureDisp.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPictureDisp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7BF80981-BF32-101A-8BBB-00AA00300CAB")] [NativeTypeName("struct IPictureDisp : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct IPictureDisp : IPictureDisp.Interface +public unsafe partial struct IPictureDisp : IPictureDisp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPictureDisp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPointerInactive.cs b/sources/Interop/Windows/Windows/um/ocidl/IPointerInactive.cs index f7da7bfc43..3b061d719f 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPointerInactive.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPointerInactive.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("55980BA0-35AA-11CF-B671-00AA004CD6D8")] [NativeTypeName("struct IPointerInactive : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPointerInactive : IPointerInactive.Interface +public unsafe partial struct IPointerInactive : IPointerInactive.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPointerInactive)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPropertyBag2.cs b/sources/Interop/Windows/Windows/um/ocidl/IPropertyBag2.cs index e21dccd9b0..6fb55ae372 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPropertyBag2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPropertyBag2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("22F55882-280B-11D0-A8A9-00A0C90C2004")] [NativeTypeName("struct IPropertyBag2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyBag2 : IPropertyBag2.Interface +public unsafe partial struct IPropertyBag2 : IPropertyBag2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyBag2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPropertyNotifySink.cs b/sources/Interop/Windows/Windows/um/ocidl/IPropertyNotifySink.cs index 4e06e4364a..051412bfb3 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPropertyNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPropertyNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9BFBBC02-EFF1-101A-84ED-00AA00341D07")] [NativeTypeName("struct IPropertyNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyNotifySink : IPropertyNotifySink.Interface +public unsafe partial struct IPropertyNotifySink : IPropertyNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage.cs b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage.cs index 0f3b9e0e98..d6842519c2 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B28D-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IPropertyPage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyPage : IPropertyPage.Interface +public unsafe partial struct IPropertyPage : IPropertyPage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyPage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage2.cs b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage2.cs index daadfa40e3..b851a190db 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("01E44665-24AC-101B-84ED-08002B2EC713")] [NativeTypeName("struct IPropertyPage2 : IPropertyPage")] [NativeInheritance("IPropertyPage")] -public unsafe partial struct IPropertyPage2 : IPropertyPage2.Interface +public unsafe partial struct IPropertyPage2 : IPropertyPage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyPage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPageSite.cs b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPageSite.cs index 6bc8f24f84..34b51b1ab4 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IPropertyPageSite.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IPropertyPageSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B28C-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IPropertyPageSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyPageSite : IPropertyPageSite.Interface +public unsafe partial struct IPropertyPageSite : IPropertyPageSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyPageSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo.cs b/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo.cs index e3ca37fe31..5c813597c4 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B283-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct IProvideClassInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IProvideClassInfo : IProvideClassInfo.Interface +public unsafe partial struct IProvideClassInfo : IProvideClassInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProvideClassInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo2.cs b/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo2.cs index fb130a9ba6..28fde2c0b8 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo2.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IProvideClassInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A6BC3AC0-DBAA-11CE-9DE3-00AA004BB851")] [NativeTypeName("struct IProvideClassInfo2 : IProvideClassInfo")] [NativeInheritance("IProvideClassInfo")] -public unsafe partial struct IProvideClassInfo2 : IProvideClassInfo2.Interface +public unsafe partial struct IProvideClassInfo2 : IProvideClassInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProvideClassInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IProvideMultipleClassInfo.cs b/sources/Interop/Windows/Windows/um/ocidl/IProvideMultipleClassInfo.cs index aff9e8f647..72d5445fcb 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IProvideMultipleClassInfo.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IProvideMultipleClassInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7ABA9C1-8983-11CF-8F20-00805F2CD064")] [NativeTypeName("struct IProvideMultipleClassInfo : IProvideClassInfo2")] [NativeInheritance("IProvideClassInfo2")] -public unsafe partial struct IProvideMultipleClassInfo : IProvideMultipleClassInfo.Interface +public unsafe partial struct IProvideMultipleClassInfo : IProvideMultipleClassInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IProvideMultipleClassInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IQuickActivate.cs b/sources/Interop/Windows/Windows/um/ocidl/IQuickActivate.cs index e986c4f4b2..df7ed8ff80 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IQuickActivate.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IQuickActivate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CF51ED10-62FE-11CF-BF86-00A0C9034836")] [NativeTypeName("struct IQuickActivate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQuickActivate : IQuickActivate.Interface +public unsafe partial struct IQuickActivate : IQuickActivate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQuickActivate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/ISimpleFrameSite.cs b/sources/Interop/Windows/Windows/um/ocidl/ISimpleFrameSite.cs index 1a6124952f..a973b01d7b 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/ISimpleFrameSite.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/ISimpleFrameSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("742B0E01-14E6-101B-914E-00AA00300CAB")] [NativeTypeName("struct ISimpleFrameSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISimpleFrameSite : ISimpleFrameSite.Interface +public unsafe partial struct ISimpleFrameSite : ISimpleFrameSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISimpleFrameSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/ISpecifyPropertyPages.cs b/sources/Interop/Windows/Windows/um/ocidl/ISpecifyPropertyPages.cs index efcf6e68b3..0a46dba8a9 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/ISpecifyPropertyPages.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/ISpecifyPropertyPages.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B196B28B-BAB4-101A-B69C-00AA00341D07")] [NativeTypeName("struct ISpecifyPropertyPages : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpecifyPropertyPages : ISpecifyPropertyPages.Interface +public unsafe partial struct ISpecifyPropertyPages : ISpecifyPropertyPages.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpecifyPropertyPages)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/ocidl/IViewObjectEx.cs b/sources/Interop/Windows/Windows/um/ocidl/IViewObjectEx.cs index 08add246ac..d6569a1f52 100644 --- a/sources/Interop/Windows/Windows/um/ocidl/IViewObjectEx.cs +++ b/sources/Interop/Windows/Windows/um/ocidl/IViewObjectEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3AF24292-0C96-11CE-A0CF-00AA00600AB8")] [NativeTypeName("struct IViewObjectEx : IViewObject2")] [NativeInheritance("IViewObject2")] -public unsafe partial struct IViewObjectEx : IViewObjectEx.Interface +public unsafe partial struct IViewObjectEx : IViewObjectEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObjectEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IContinue.cs b/sources/Interop/Windows/Windows/um/oleidl/IContinue.cs index 33d78370c3..cad265027f 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IContinue.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IContinue.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000012A-0000-0000-C000-000000000046")] [NativeTypeName("struct IContinue : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IContinue : IContinue.Interface +public unsafe partial struct IContinue : IContinue.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IContinue)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IDropSource.cs b/sources/Interop/Windows/Windows/um/oleidl/IDropSource.cs index a8ab2069eb..0d8713b18b 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IDropSource.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IDropSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000121-0000-0000-C000-000000000046")] [NativeTypeName("struct IDropSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDropSource : IDropSource.Interface +public unsafe partial struct IDropSource : IDropSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDropSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IDropSourceNotify.cs b/sources/Interop/Windows/Windows/um/oleidl/IDropSourceNotify.cs index 41df687cbf..c23e6cac16 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IDropSourceNotify.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IDropSourceNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000012B-0000-0000-C000-000000000046")] [NativeTypeName("struct IDropSourceNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDropSourceNotify : IDropSourceNotify.Interface +public unsafe partial struct IDropSourceNotify : IDropSourceNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDropSourceNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IDropTarget.cs b/sources/Interop/Windows/Windows/um/oleidl/IDropTarget.cs index 62d6c8741b..d36f18d605 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IDropTarget.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IDropTarget.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000122-0000-0000-C000-000000000046")] [NativeTypeName("struct IDropTarget : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDropTarget : IDropTarget.Interface +public unsafe partial struct IDropTarget : IDropTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDropTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IEnterpriseDropTarget.cs b/sources/Interop/Windows/Windows/um/oleidl/IEnterpriseDropTarget.cs index e306731314..2bd2e97644 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IEnterpriseDropTarget.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IEnterpriseDropTarget.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IEnterpriseDropTarget : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IEnterpriseDropTarget : IEnterpriseDropTarget.Interface +public unsafe partial struct IEnterpriseDropTarget : IEnterpriseDropTarget.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnterpriseDropTarget)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IEnumOLEVERB.cs b/sources/Interop/Windows/Windows/um/oleidl/IEnumOLEVERB.cs index c025a734bf..938e32da31 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IEnumOLEVERB.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IEnumOLEVERB.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000104-0000-0000-C000-000000000046")] [NativeTypeName("struct IEnumOLEVERB : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumOLEVERB : IEnumOLEVERB.Interface +public unsafe partial struct IEnumOLEVERB : IEnumOLEVERB.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumOLEVERB)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleAdviseHolder.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleAdviseHolder.cs index 559e8d32c3..4121f4dcdd 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleAdviseHolder.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleAdviseHolder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000111-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleAdviseHolder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleAdviseHolder : IOleAdviseHolder.Interface +public unsafe partial struct IOleAdviseHolder : IOleAdviseHolder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleAdviseHolder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleCache.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleCache.cs index e7a9100c75..b5ca5de2df 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleCache.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000011E-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleCache : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleCache : IOleCache.Interface +public unsafe partial struct IOleCache : IOleCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleCache2.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleCache2.cs index f688dce16d..a9166e07e1 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleCache2.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleCache2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000128-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleCache2 : IOleCache")] [NativeInheritance("IOleCache")] -public unsafe partial struct IOleCache2 : IOleCache2.Interface +public unsafe partial struct IOleCache2 : IOleCache2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleCache2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleCacheControl.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleCacheControl.cs index 38a3c879e5..12bf07f2c8 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleCacheControl.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleCacheControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000129-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleCacheControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleCacheControl : IOleCacheControl.Interface +public unsafe partial struct IOleCacheControl : IOleCacheControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleCacheControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleClientSite.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleClientSite.cs index 573d1ce008..2180331bcb 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleClientSite.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleClientSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000118-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleClientSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleClientSite : IOleClientSite.Interface +public unsafe partial struct IOleClientSite : IOleClientSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleClientSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleContainer.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleContainer.cs index c15d89cc7c..9b0d0b8127 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleContainer.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000011B-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleContainer : IParseDisplayName")] [NativeInheritance("IParseDisplayName")] -public unsafe partial struct IOleContainer : IOleContainer.Interface +public unsafe partial struct IOleContainer : IOleContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceActiveObject.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceActiveObject.cs index cebc221af1..46369c0cb1 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceActiveObject.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceActiveObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000117-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleInPlaceActiveObject : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IOleInPlaceActiveObject : IOleInPlaceActiveObject.Interface +public unsafe partial struct IOleInPlaceActiveObject : IOleInPlaceActiveObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceActiveObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceFrame.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceFrame.cs index 0b3c183d38..38f6c2af22 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceFrame.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceFrame.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000116-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleInPlaceFrame : IOleInPlaceUIWindow")] [NativeInheritance("IOleInPlaceUIWindow")] -public unsafe partial struct IOleInPlaceFrame : IOleInPlaceFrame.Interface +public unsafe partial struct IOleInPlaceFrame : IOleInPlaceFrame.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceFrame)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceObject.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceObject.cs index 5d604a8a22..c2a087010a 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceObject.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000113-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleInPlaceObject : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IOleInPlaceObject : IOleInPlaceObject.Interface +public unsafe partial struct IOleInPlaceObject : IOleInPlaceObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceSite.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceSite.cs index 210e8fa16c..9ed8780d97 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceSite.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000119-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleInPlaceSite : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IOleInPlaceSite : IOleInPlaceSite.Interface +public unsafe partial struct IOleInPlaceSite : IOleInPlaceSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceUIWindow.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceUIWindow.cs index 297a7f7571..3d8e97257f 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceUIWindow.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleInPlaceUIWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000115-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleInPlaceUIWindow : IOleWindow")] [NativeInheritance("IOleWindow")] -public unsafe partial struct IOleInPlaceUIWindow : IOleInPlaceUIWindow.Interface +public unsafe partial struct IOleInPlaceUIWindow : IOleInPlaceUIWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleInPlaceUIWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleItemContainer.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleItemContainer.cs index 2d41520d40..6d84f5ccc4 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleItemContainer.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleItemContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000011C-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleItemContainer : IOleContainer")] [NativeInheritance("IOleContainer")] -public unsafe partial struct IOleItemContainer : IOleItemContainer.Interface +public unsafe partial struct IOleItemContainer : IOleItemContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleItemContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleLink.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleLink.cs index 060c8f6566..715cf13804 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleLink.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleLink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000011D-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleLink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleLink : IOleLink.Interface +public unsafe partial struct IOleLink : IOleLink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleLink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleObject.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleObject.cs index f9cd096a27..cf3e2a7cfc 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleObject.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000112-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleObject : IOleObject.Interface +public unsafe partial struct IOleObject : IOleObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IOleWindow.cs b/sources/Interop/Windows/Windows/um/oleidl/IOleWindow.cs index 6ee63b6340..29c940b94e 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IOleWindow.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IOleWindow.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000114-0000-0000-C000-000000000046")] [NativeTypeName("struct IOleWindow : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOleWindow : IOleWindow.Interface +public unsafe partial struct IOleWindow : IOleWindow.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOleWindow)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IParseDisplayName.cs b/sources/Interop/Windows/Windows/um/oleidl/IParseDisplayName.cs index ff43055fea..6cd69148ad 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IParseDisplayName.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IParseDisplayName.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000011A-0000-0000-C000-000000000046")] [NativeTypeName("struct IParseDisplayName : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IParseDisplayName : IParseDisplayName.Interface +public unsafe partial struct IParseDisplayName : IParseDisplayName.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IParseDisplayName)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IViewObject.cs b/sources/Interop/Windows/Windows/um/oleidl/IViewObject.cs index 053f3515ac..01013d71c6 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IViewObject.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IViewObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0000010D-0000-0000-C000-000000000046")] [NativeTypeName("struct IViewObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IViewObject : IViewObject.Interface +public unsafe partial struct IViewObject : IViewObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/oleidl/IViewObject2.cs b/sources/Interop/Windows/Windows/um/oleidl/IViewObject2.cs index 690e98ee1e..2cdb539938 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/IViewObject2.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/IViewObject2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000127-0000-0000-C000-000000000046")] [NativeTypeName("struct IViewObject2 : IViewObject")] [NativeInheritance("IViewObject")] -public unsafe partial struct IViewObject2 : IViewObject2.Interface +public unsafe partial struct IViewObject2 : IViewObject2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IViewObject2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS.cs b/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS.cs index 69beec4c48..9b62946389 100644 --- a/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS.cs +++ b/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS.cs @@ -3,6 +3,7 @@ // Ported from um/projectedfslib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -21,22 +22,24 @@ public partial struct PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Notification_e__Struct Notification { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Notification, 1)); + return ref Anonymous.Notification; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._Enumeration_e__Struct Enumeration { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Enumeration, 1)); + return ref Anonymous.Enumeration; } } diff --git a/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_EXTENDED_INFO.cs b/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_EXTENDED_INFO.cs index f063ae5dc2..a05f9a2518 100644 --- a/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_EXTENDED_INFO.cs +++ b/sources/Interop/Windows/Windows/um/projectedfslib/PRJ_EXTENDED_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/projectedfslib.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -25,12 +26,13 @@ public partial struct PRJ_EXTENDED_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Symlink_e__Struct Symlink { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Symlink, 1)); + return ref Anonymous.Symlink; } } diff --git a/sources/Interop/Windows/Windows/um/propsys/ICreateObject.cs b/sources/Interop/Windows/Windows/um/propsys/ICreateObject.cs index 159383af4a..f1b2d126a5 100644 --- a/sources/Interop/Windows/Windows/um/propsys/ICreateObject.cs +++ b/sources/Interop/Windows/Windows/um/propsys/ICreateObject.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("75121952-E0D0-43E5-9380-1D80483ACF72")] [NativeTypeName("struct ICreateObject : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateObject : ICreateObject.Interface +public unsafe partial struct ICreateObject : ICreateObject.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateObject)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IDelayedPropertyStoreFactory.cs b/sources/Interop/Windows/Windows/um/propsys/IDelayedPropertyStoreFactory.cs index ff4a11e14b..a837def573 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IDelayedPropertyStoreFactory.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IDelayedPropertyStoreFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("40D4577F-E237-4BDB-BD69-58F089431B6A")] [NativeTypeName("struct IDelayedPropertyStoreFactory : IPropertyStoreFactory")] [NativeInheritance("IPropertyStoreFactory")] -public unsafe partial struct IDelayedPropertyStoreFactory : IDelayedPropertyStoreFactory.Interface +public unsafe partial struct IDelayedPropertyStoreFactory : IDelayedPropertyStoreFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDelayedPropertyStoreFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IInitializeWithFile.cs b/sources/Interop/Windows/Windows/um/propsys/IInitializeWithFile.cs index d59faeed71..9e8661e040 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IInitializeWithFile.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IInitializeWithFile.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B7D14566-0509-4CCE-A71F-0A554233BD9B")] [NativeTypeName("struct IInitializeWithFile : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithFile : IInitializeWithFile.Interface +public unsafe partial struct IInitializeWithFile : IInitializeWithFile.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithFile)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IInitializeWithStream.cs b/sources/Interop/Windows/Windows/um/propsys/IInitializeWithStream.cs index 4b3c37b9ee..a5b8d79864 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IInitializeWithStream.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IInitializeWithStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B824B49D-22AC-4161-AC8A-9916E8FA3F7F")] [NativeTypeName("struct IInitializeWithStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInitializeWithStream : IInitializeWithStream.Interface +public unsafe partial struct IInitializeWithStream : IInitializeWithStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInitializeWithStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/INamedPropertyStore.cs b/sources/Interop/Windows/Windows/um/propsys/INamedPropertyStore.cs index c50964fc0f..97e6fd10f9 100644 --- a/sources/Interop/Windows/Windows/um/propsys/INamedPropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/propsys/INamedPropertyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("71604B0F-97B0-4764-8577-2F13E98A1422")] [NativeTypeName("struct INamedPropertyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct INamedPropertyStore : INamedPropertyStore.Interface +public unsafe partial struct INamedPropertyStore : INamedPropertyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_INamedPropertyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IObjectWithPropertyKey.cs b/sources/Interop/Windows/Windows/um/propsys/IObjectWithPropertyKey.cs index 6678e5f97a..360b87d575 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IObjectWithPropertyKey.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IObjectWithPropertyKey.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FC0CA0A7-C316-4FD2-9031-3E628E6D4F23")] [NativeTypeName("struct IObjectWithPropertyKey : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IObjectWithPropertyKey : IObjectWithPropertyKey.Interface +public unsafe partial struct IObjectWithPropertyKey : IObjectWithPropertyKey.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IObjectWithPropertyKey)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage.cs b/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage.cs index 20d6522bd3..e0301b8130 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E318AD57-0AA0-450F-ACA5-6FAB7103D917")] [NativeTypeName("struct IPersistSerializedPropStorage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPersistSerializedPropStorage : IPersistSerializedPropStorage.Interface +public unsafe partial struct IPersistSerializedPropStorage : IPersistSerializedPropStorage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistSerializedPropStorage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage2.cs b/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage2.cs index 23995206f9..a4c9993e96 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage2.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPersistSerializedPropStorage2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("77EFFA68-4F98-4366-BA72-573B3D880571")] [NativeTypeName("struct IPersistSerializedPropStorage2 : IPersistSerializedPropStorage")] [NativeInheritance("IPersistSerializedPropStorage")] -public unsafe partial struct IPersistSerializedPropStorage2 : IPersistSerializedPropStorage2.Interface +public unsafe partial struct IPersistSerializedPropStorage2 : IPersistSerializedPropStorage2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistSerializedPropStorage2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyChange.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyChange.cs index 3397c4d4e2..717ba3efe0 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyChange.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyChange.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F917BC8A-1BBA-4478-A245-1BDE03EB9431")] [NativeTypeName("struct IPropertyChange : IObjectWithPropertyKey")] [NativeInheritance("IObjectWithPropertyKey")] -public unsafe partial struct IPropertyChange : IPropertyChange.Interface +public unsafe partial struct IPropertyChange : IPropertyChange.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyChange)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyChangeArray.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyChangeArray.cs index cffdc17150..b99d72d7ed 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyChangeArray.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyChangeArray.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("380F5CAD-1B5E-42F2-805D-637FD392D31E")] [NativeTypeName("struct IPropertyChangeArray : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyChangeArray : IPropertyChangeArray.Interface +public unsafe partial struct IPropertyChangeArray : IPropertyChangeArray.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyChangeArray)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription.cs index f08832fb7b..1793f0664a 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6F79D558-3E96-4549-A1D1-7D75D2288814")] [NativeTypeName("struct IPropertyDescription : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyDescription : IPropertyDescription.Interface +public unsafe partial struct IPropertyDescription : IPropertyDescription.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescription)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription2.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription2.cs index 07d660312d..5ec4fc8d54 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription2.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescription2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("57D2EDED-5062-400E-B107-5DAE79FE57A6")] [NativeTypeName("struct IPropertyDescription2 : IPropertyDescription")] [NativeInheritance("IPropertyDescription")] -public unsafe partial struct IPropertyDescription2 : IPropertyDescription2.Interface +public unsafe partial struct IPropertyDescription2 : IPropertyDescription2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescription2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionAliasInfo.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionAliasInfo.cs index d9223e7182..04416b7dc5 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionAliasInfo.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionAliasInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F67104FC-2AF9-46FD-B32D-243C1404F3D1")] [NativeTypeName("struct IPropertyDescriptionAliasInfo : IPropertyDescription")] [NativeInheritance("IPropertyDescription")] -public unsafe partial struct IPropertyDescriptionAliasInfo : IPropertyDescriptionAliasInfo.Interface +public unsafe partial struct IPropertyDescriptionAliasInfo : IPropertyDescriptionAliasInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescriptionAliasInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionList.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionList.cs index 1ee5bda30e..7f7bd232f6 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionList.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1F9FC1D0-C39B-4B26-817F-011967D3440E")] [NativeTypeName("struct IPropertyDescriptionList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyDescriptionList : IPropertyDescriptionList.Interface +public unsafe partial struct IPropertyDescriptionList : IPropertyDescriptionList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescriptionList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionRelatedPropertyInfo.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionRelatedPropertyInfo.cs index 57fb9a6754..79775689b6 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionRelatedPropertyInfo.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionRelatedPropertyInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("507393F4-2A3D-4A60-B59E-D9C75716C2DD")] [NativeTypeName("struct IPropertyDescriptionRelatedPropertyInfo : IPropertyDescription")] [NativeInheritance("IPropertyDescription")] -public unsafe partial struct IPropertyDescriptionRelatedPropertyInfo : IPropertyDescriptionRelatedPropertyInfo.Interface +public unsafe partial struct IPropertyDescriptionRelatedPropertyInfo : IPropertyDescriptionRelatedPropertyInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescriptionRelatedPropertyInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionSearchInfo.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionSearchInfo.cs index c304dcfbe9..3226ae7675 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionSearchInfo.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyDescriptionSearchInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("078F91BD-29A2-440F-924E-46A291524520")] [NativeTypeName("struct IPropertyDescriptionSearchInfo : IPropertyDescription")] [NativeInheritance("IPropertyDescription")] -public unsafe partial struct IPropertyDescriptionSearchInfo : IPropertyDescriptionSearchInfo.Interface +public unsafe partial struct IPropertyDescriptionSearchInfo : IPropertyDescriptionSearchInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyDescriptionSearchInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType.cs index 5f549b2346..6cdf029913 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("11E1FBF9-2D56-4A6B-8DB3-7CD193A471F2")] [NativeTypeName("struct IPropertyEnumType : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyEnumType : IPropertyEnumType.Interface +public unsafe partial struct IPropertyEnumType : IPropertyEnumType.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyEnumType)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType2.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType2.cs index 54d434eb73..58478dcc94 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType2.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumType2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B6E051C-5DDD-4321-9070-FE2ACB55E794")] [NativeTypeName("struct IPropertyEnumType2 : IPropertyEnumType")] [NativeInheritance("IPropertyEnumType")] -public unsafe partial struct IPropertyEnumType2 : IPropertyEnumType2.Interface +public unsafe partial struct IPropertyEnumType2 : IPropertyEnumType2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyEnumType2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumTypeList.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumTypeList.cs index 8afeab248e..f2664e14e3 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumTypeList.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyEnumTypeList.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A99400F4-3D84-4557-94BA-1242FB2CC9A6")] [NativeTypeName("struct IPropertyEnumTypeList : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyEnumTypeList : IPropertyEnumTypeList.Interface +public unsafe partial struct IPropertyEnumTypeList : IPropertyEnumTypeList.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyEnumTypeList)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyStore.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyStore.cs index 2f15785cb4..71756dda99 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyStore.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99")] [NativeTypeName("struct IPropertyStore : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyStore : IPropertyStore.Interface +public unsafe partial struct IPropertyStore : IPropertyStore.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyStore)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCache.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCache.cs index 65c11f9896..e92f8986ba 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCache.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3017056D-9A91-4E90-937D-746C72ABBF4F")] [NativeTypeName("struct IPropertyStoreCache : IPropertyStore")] [NativeInheritance("IPropertyStore")] -public unsafe partial struct IPropertyStoreCache : IPropertyStoreCache.Interface +public unsafe partial struct IPropertyStoreCache : IPropertyStoreCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyStoreCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCapabilities.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCapabilities.cs index b0c7530d1c..3e9c296afa 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCapabilities.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreCapabilities.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C8E2D566-186E-4D49-BF41-6909EAD56ACC")] [NativeTypeName("struct IPropertyStoreCapabilities : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyStoreCapabilities : IPropertyStoreCapabilities.Interface +public unsafe partial struct IPropertyStoreCapabilities : IPropertyStoreCapabilities.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyStoreCapabilities)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreFactory.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreFactory.cs index b34a1e3b8e..c924a43422 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreFactory.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertyStoreFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BC110B6D-57E8-4148-A9C6-91015AB2F3A5")] [NativeTypeName("struct IPropertyStoreFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertyStoreFactory : IPropertyStoreFactory.Interface +public unsafe partial struct IPropertyStoreFactory : IPropertyStoreFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertyStoreFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertySystem.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertySystem.cs index 772cfb1a98..057de6d680 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertySystem.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertySystem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CA724E8A-C3E6-442B-88A4-6FB0DB8035A3")] [NativeTypeName("struct IPropertySystem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertySystem : IPropertySystem.Interface +public unsafe partial struct IPropertySystem : IPropertySystem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertySystem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/IPropertySystemChangeNotify.cs b/sources/Interop/Windows/Windows/um/propsys/IPropertySystemChangeNotify.cs index 0b45b315b3..95832c78c7 100644 --- a/sources/Interop/Windows/Windows/um/propsys/IPropertySystemChangeNotify.cs +++ b/sources/Interop/Windows/Windows/um/propsys/IPropertySystemChangeNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FA955FD9-38BE-4879-A6CE-824CF52D609F")] [NativeTypeName("struct IPropertySystemChangeNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPropertySystemChangeNotify : IPropertySystemChangeNotify.Interface +public unsafe partial struct IPropertySystemChangeNotify : IPropertySystemChangeNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPropertySystemChangeNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStore.cs b/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStore.cs index d9406bcd26..4504a96927 100644 --- a/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStore.cs +++ b/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStore.cs @@ -3,12 +3,16 @@ // Ported from um/propsys.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("9A02E012-6303-4E1E-B9A1-630F802592C5")] -public partial struct InMemoryPropertyStore +public unsafe partial struct InMemoryPropertyStore : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_InMemoryPropertyStore)); } diff --git a/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStoreMarshalByValue.cs b/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStoreMarshalByValue.cs index d688f2182b..8cc4965a96 100644 --- a/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStoreMarshalByValue.cs +++ b/sources/Interop/Windows/Windows/um/propsys/InMemoryPropertyStoreMarshalByValue.cs @@ -3,12 +3,16 @@ // Ported from um/propsys.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("D4CA0E2D-6DA7-4B75-A97C-5F306F0EAEDC")] -public partial struct InMemoryPropertyStoreMarshalByValue +public unsafe partial struct InMemoryPropertyStoreMarshalByValue : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_InMemoryPropertyStoreMarshalByValue)); } diff --git a/sources/Interop/Windows/Windows/um/propsys/PropertySystem.cs b/sources/Interop/Windows/Windows/um/propsys/PropertySystem.cs index 0ae1bca549..d4b0c0e009 100644 --- a/sources/Interop/Windows/Windows/um/propsys/PropertySystem.cs +++ b/sources/Interop/Windows/Windows/um/propsys/PropertySystem.cs @@ -3,12 +3,16 @@ // Ported from um/propsys.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("B8967F85-58AE-4F46-9FB2-5D7904798F4B")] -public partial struct PropertySystem +public unsafe partial struct PropertySystem : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_PropertySystem)); } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V1.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V1.cs index 248f903fbe..16eba9a2cf 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V1.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V1.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,62 +50,68 @@ public unsafe partial struct PROPSHEETHEADERA_V1 public delegate* unmanaged pfnCallback; /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hIcon; + return ref Anonymous1.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszIcon; + return ref Anonymous1.pszIcon; } } /// + [UnscopedRef] public ref uint nStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.nStartPage, 1)); + return ref Anonymous2.nStartPage; } } /// + [UnscopedRef] public ref sbyte* pStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pStartPage; + return ref Anonymous2.pStartPage; } } /// + [UnscopedRef] public ref PROPSHEETPAGEA* ppsp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.ppsp; + return ref Anonymous3.ppsp; } } /// + [UnscopedRef] public ref HPROPSHEETPAGE* phpage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.phpage; + return ref Anonymous3.phpage; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V2.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V2.cs index 0ecf174b35..d27c0d2e63 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V2.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERA_V2.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -60,102 +61,112 @@ public unsafe partial struct PROPSHEETHEADERA_V2 public _Anonymous5_e__Union Anonymous5; /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hIcon; + return ref Anonymous1.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszIcon; + return ref Anonymous1.pszIcon; } } /// + [UnscopedRef] public ref uint nStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.nStartPage, 1)); + return ref Anonymous2.nStartPage; } } /// + [UnscopedRef] public ref sbyte* pStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pStartPage; + return ref Anonymous2.pStartPage; } } /// + [UnscopedRef] public ref PROPSHEETPAGEA* ppsp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.ppsp; + return ref Anonymous3.ppsp; } } /// + [UnscopedRef] public ref HPROPSHEETPAGE* phpage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.phpage; + return ref Anonymous3.phpage; } } /// + [UnscopedRef] public ref HBITMAP hbmWatermark { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous4.hbmWatermark; + return ref Anonymous4.hbmWatermark; } } /// + [UnscopedRef] public ref sbyte* pszbmWatermark { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous4.pszbmWatermark; + return ref Anonymous4.pszbmWatermark; } } /// + [UnscopedRef] public ref HBITMAP hbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous5.hbmHeader; + return ref Anonymous5.hbmHeader; } } /// + [UnscopedRef] public ref sbyte* pszbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous5.pszbmHeader; + return ref Anonymous5.pszbmHeader; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V1.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V1.cs index adbc7b3d11..7796c86e11 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V1.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V1.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,62 +50,68 @@ public unsafe partial struct PROPSHEETHEADERW_V1 public delegate* unmanaged pfnCallback; /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hIcon; + return ref Anonymous1.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszIcon; + return ref Anonymous1.pszIcon; } } /// + [UnscopedRef] public ref uint nStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.nStartPage, 1)); + return ref Anonymous2.nStartPage; } } /// + [UnscopedRef] public ref ushort* pStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pStartPage; + return ref Anonymous2.pStartPage; } } /// + [UnscopedRef] public ref PROPSHEETPAGEW* ppsp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.ppsp; + return ref Anonymous3.ppsp; } } /// + [UnscopedRef] public ref HPROPSHEETPAGE* phpage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.phpage; + return ref Anonymous3.phpage; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V2.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V2.cs index bd0f45efe7..8a875dc34f 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V2.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETHEADERW_V2.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -60,102 +61,112 @@ public unsafe partial struct PROPSHEETHEADERW_V2 public _Anonymous5_e__Union Anonymous5; /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hIcon; + return ref Anonymous1.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszIcon; + return ref Anonymous1.pszIcon; } } /// + [UnscopedRef] public ref uint nStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.nStartPage, 1)); + return ref Anonymous2.nStartPage; } } /// + [UnscopedRef] public ref ushort* pStartPage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pStartPage; + return ref Anonymous2.pStartPage; } } /// + [UnscopedRef] public ref PROPSHEETPAGEW* ppsp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.ppsp; + return ref Anonymous3.ppsp; } } /// + [UnscopedRef] public ref HPROPSHEETPAGE* phpage { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.phpage; + return ref Anonymous3.phpage; } } /// + [UnscopedRef] public ref HBITMAP hbmWatermark { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous4.hbmWatermark; + return ref Anonymous4.hbmWatermark; } } /// + [UnscopedRef] public ref ushort* pszbmWatermark { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous4.pszbmWatermark; + return ref Anonymous4.pszbmWatermark; } } /// + [UnscopedRef] public ref HBITMAP hbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous5.hbmHeader; + return ref Anonymous5.hbmHeader; } } /// + [UnscopedRef] public ref ushort* pszbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous5.pszbmHeader; + return ref Anonymous5.pszbmHeader; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA.cs index 0ec77e0550..321953095b 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -64,62 +65,68 @@ public unsafe partial struct PROPSHEETPAGEA public _Anonymous3_e__Union Anonymous3; /// + [UnscopedRef] public ref sbyte* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } /// + [UnscopedRef] public ref HBITMAP hbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.hbmHeader; + return ref Anonymous3.hbmHeader; } } /// + [UnscopedRef] public ref sbyte* pszbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.pszbmHeader; + return ref Anonymous3.pszbmHeader; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V1.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V1.cs index af2c3ab59c..7344a3d195 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V1.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V1.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,42 +50,46 @@ public unsafe partial struct PROPSHEETPAGEA_V1 public uint* pcRefParent; /// + [UnscopedRef] public ref sbyte* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V2.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V2.cs index a2789286a5..737b320151 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V2.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V2.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -57,42 +58,46 @@ public unsafe partial struct PROPSHEETPAGEA_V2 public sbyte* pszHeaderSubTitle; /// + [UnscopedRef] public ref sbyte* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V3.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V3.cs index e072299200..d691d68efd 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V3.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEA_V3.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -60,42 +61,46 @@ public unsafe partial struct PROPSHEETPAGEA_V3 public HANDLE hActCtx; /// + [UnscopedRef] public ref sbyte* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref sbyte* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW.cs index 24c12d0199..414823baaf 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -64,62 +65,68 @@ public unsafe partial struct PROPSHEETPAGEW public _Anonymous3_e__Union Anonymous3; /// + [UnscopedRef] public ref ushort* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } /// + [UnscopedRef] public ref HBITMAP hbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.hbmHeader; + return ref Anonymous3.hbmHeader; } } /// + [UnscopedRef] public ref ushort* pszbmHeader { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous3.pszbmHeader; + return ref Anonymous3.pszbmHeader; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V1.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V1.cs index bf4d5f1382..9f03d1bb7f 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V1.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V1.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,42 +50,46 @@ public unsafe partial struct PROPSHEETPAGEW_V1 public uint* pcRefParent; /// + [UnscopedRef] public ref ushort* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V2.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V2.cs index 632d2cb0a4..8803d4ac7f 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V2.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V2.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -57,42 +58,46 @@ public unsafe partial struct PROPSHEETPAGEW_V2 public ushort* pszHeaderSubTitle; /// + [UnscopedRef] public ref ushort* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V3.cs b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V3.cs index 959528ac89..ac898dadd0 100644 --- a/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V3.cs +++ b/sources/Interop/Windows/Windows/um/prsht/PROPSHEETPAGEW_V3.cs @@ -3,6 +3,7 @@ // Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -60,42 +61,46 @@ public unsafe partial struct PROPSHEETPAGEW_V3 public HANDLE hActCtx; /// + [UnscopedRef] public ref ushort* pszTemplate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszTemplate; + return ref Anonymous1.pszTemplate; } } /// + [UnscopedRef] public ref DLGTEMPLATE* pResource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pResource; + return ref Anonymous1.pResource; } } /// + [UnscopedRef] public ref HICON hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.hIcon; + return ref Anonymous2.hIcon; } } /// + [UnscopedRef] public ref ushort* pszIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszIcon; + return ref Anonymous2.pszIcon; } } diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/DRendezvousSessionEvents.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/DRendezvousSessionEvents.cs index 2a5ea60c7d..4fe47a6daa 100644 --- a/sources/Interop/Windows/Windows/um/rendezvoussession/DRendezvousSessionEvents.cs +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/DRendezvousSessionEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3FA19CF8-64C4-4F53-AE60-635B3806ECA6")] [NativeTypeName("struct DRendezvousSessionEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct DRendezvousSessionEvents : DRendezvousSessionEvents.Interface +public unsafe partial struct DRendezvousSessionEvents : DRendezvousSessionEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in DIID_DRendezvousSessionEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousApplication.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousApplication.cs index 6ec1087fa5..409352c051 100644 --- a/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousApplication.cs +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousApplication.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4F4D070B-A275-49FB-B10D-8EC26387B50D")] [NativeTypeName("struct IRendezvousApplication : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRendezvousApplication : IRendezvousApplication.Interface +public unsafe partial struct IRendezvousApplication : IRendezvousApplication.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRendezvousApplication)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousSession.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousSession.cs index 9ba653830a..20df38ba12 100644 --- a/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousSession.cs +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/IRendezvousSession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9BA4B1DD-8B0C-48B7-9E7C-2F25857C8DF5")] [NativeTypeName("struct IRendezvousSession : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRendezvousSession : IRendezvousSession.Interface +public unsafe partial struct IRendezvousSession : IRendezvousSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRendezvousSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/RendezvousApplication.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/RendezvousApplication.cs index 976e7dfb96..905d237fdb 100644 --- a/sources/Interop/Windows/Windows/um/rendezvoussession/RendezvousApplication.cs +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/RendezvousApplication.cs @@ -3,12 +3,16 @@ // Ported from um/rendezvoussession.h and um/rendezvoussession_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("0B7E019A-B5DE-47FA-8966-9082F82FB192")] -public partial struct RendezvousApplication +public unsafe partial struct RendezvousApplication : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_RendezvousApplication)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/IEnumSpObjectTokens.cs b/sources/Interop/Windows/Windows/um/sapi/IEnumSpObjectTokens.cs index 21995b8f9b..01c8534505 100644 --- a/sources/Interop/Windows/Windows/um/sapi/IEnumSpObjectTokens.cs +++ b/sources/Interop/Windows/Windows/um/sapi/IEnumSpObjectTokens.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("06B64F9E-7FDA-11D2-B4F2-00C04F797396")] [NativeTypeName("struct IEnumSpObjectTokens : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumSpObjectTokens : IEnumSpObjectTokens.Interface +public unsafe partial struct IEnumSpObjectTokens : IEnumSpObjectTokens.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumSpObjectTokens)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpAudio.cs b/sources/Interop/Windows/Windows/um/sapi/ISpAudio.cs index 95ca810827..750b4827a5 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpAudio.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C05C768F-FAE8-4EC2-8E07-338321C12452")] [NativeTypeName("struct ISpAudio : ISpStreamFormat")] [NativeInheritance("ISpStreamFormat")] -public unsafe partial struct ISpAudio : ISpAudio.Interface +public unsafe partial struct ISpAudio : ISpAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpContainerLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/ISpContainerLexicon.cs index 17d3b712cd..5258d5dfbb 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpContainerLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpContainerLexicon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8565572F-C094-41CC-B56E-10BD9C3FF044")] [NativeTypeName("struct ISpContainerLexicon : ISpLexicon")] [NativeInheritance("ISpLexicon")] -public unsafe partial struct ISpContainerLexicon : ISpContainerLexicon.Interface +public unsafe partial struct ISpContainerLexicon : ISpContainerLexicon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpContainerLexicon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpDataKey.cs b/sources/Interop/Windows/Windows/um/sapi/ISpDataKey.cs index d36f623ed7..44cb31b270 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpDataKey.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpDataKey.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("14056581-E16C-11D2-BB90-00C04F8EE6C0")] [NativeTypeName("struct ISpDataKey : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpDataKey : ISpDataKey.Interface +public unsafe partial struct ISpDataKey : ISpDataKey.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpDataKey)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpDisplayAlternates.cs b/sources/Interop/Windows/Windows/um/sapi/ISpDisplayAlternates.cs index 400c48ce41..426ce97bae 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpDisplayAlternates.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpDisplayAlternates.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C8D7C7E2-0DDE-44B7-AFE3-B0C991FBEB5E")] [NativeTypeName("struct ISpDisplayAlternates : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpDisplayAlternates : ISpDisplayAlternates.Interface +public unsafe partial struct ISpDisplayAlternates : ISpDisplayAlternates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpDisplayAlternates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpEnginePronunciation.cs b/sources/Interop/Windows/Windows/um/sapi/ISpEnginePronunciation.cs index 785a80fc85..dfbe1b1fb1 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpEnginePronunciation.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpEnginePronunciation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C360CE4B-76D1-4214-AD68-52657D5083DA")] [NativeTypeName("struct ISpEnginePronunciation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpEnginePronunciation : ISpEnginePronunciation.Interface +public unsafe partial struct ISpEnginePronunciation : ISpEnginePronunciation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpEnginePronunciation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpEventSink.cs b/sources/Interop/Windows/Windows/um/sapi/ISpEventSink.cs index 603bfd0a83..70ec5688bd 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpEventSink.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BE7A9CC9-5F9E-11D2-960F-00C04F8EE628")] [NativeTypeName("struct ISpEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpEventSink : ISpEventSink.Interface +public unsafe partial struct ISpEventSink : ISpEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpEventSource.cs b/sources/Interop/Windows/Windows/um/sapi/ISpEventSource.cs index e2ed68657e..43b074db30 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpEventSource.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpEventSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BE7A9CCE-5F9E-11D2-960F-00C04F8EE628")] [NativeTypeName("struct ISpEventSource : ISpNotifySource")] [NativeInheritance("ISpNotifySource")] -public unsafe partial struct ISpEventSource : ISpEventSource.Interface +public unsafe partial struct ISpEventSource : ISpEventSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpEventSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpEventSource2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpEventSource2.cs index 9d549b5999..7b67498e58 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpEventSource2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpEventSource2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2373A435-6A4B-429E-A6AC-D4231A61975B")] [NativeTypeName("struct ISpEventSource2 : ISpEventSource")] [NativeInheritance("ISpEventSource")] -public unsafe partial struct ISpEventSource2 : ISpEventSource2.Interface +public unsafe partial struct ISpEventSource2 : ISpEventSource2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpEventSource2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder.cs b/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder.cs index 8b64debb3e..ff528c1835 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8137828F-591A-4A42-BE58-49EA7EBAAC68")] [NativeTypeName("struct ISpGrammarBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpGrammarBuilder : ISpGrammarBuilder.Interface +public unsafe partial struct ISpGrammarBuilder : ISpGrammarBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpGrammarBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder2.cs index e5bf6bf359..8580d0d091 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpGrammarBuilder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8AB10026-20CC-4B20-8C22-A49C9BA78F60")] [NativeTypeName("struct ISpGrammarBuilder2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpGrammarBuilder2 : ISpGrammarBuilder2.Interface +public unsafe partial struct ISpGrammarBuilder2 : ISpGrammarBuilder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpGrammarBuilder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/ISpLexicon.cs index 9af611323f..c81985286f 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpLexicon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DA41A7C2-5383-4DB2-916B-6C1719E3DB58")] [NativeTypeName("struct ISpLexicon : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpLexicon : ISpLexicon.Interface +public unsafe partial struct ISpLexicon : ISpLexicon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpLexicon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpMMSysAudio.cs b/sources/Interop/Windows/Windows/um/sapi/ISpMMSysAudio.cs index 6a5c272776..3ef4d463f9 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpMMSysAudio.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpMMSysAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("15806F6E-1D70-4B48-98E6-3B1A007509AB")] [NativeTypeName("struct ISpMMSysAudio : ISpAudio")] [NativeInheritance("ISpAudio")] -public unsafe partial struct ISpMMSysAudio : ISpMMSysAudio.Interface +public unsafe partial struct ISpMMSysAudio : ISpMMSysAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpMMSysAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpNotifySink.cs b/sources/Interop/Windows/Windows/um/sapi/ISpNotifySink.cs index e46df5f198..9542feb7de 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpNotifySink.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpNotifySink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("259684DC-37C3-11D2-9603-00C04F8EE628")] [NativeTypeName("struct ISpNotifySink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpNotifySink : ISpNotifySink.Interface +public unsafe partial struct ISpNotifySink : ISpNotifySink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpNotifySink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpNotifySource.cs b/sources/Interop/Windows/Windows/um/sapi/ISpNotifySource.cs index 3597e88ffa..391a56bb78 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpNotifySource.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpNotifySource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5EFF4AEF-8487-11D2-961C-00C04F8EE628")] [NativeTypeName("struct ISpNotifySource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpNotifySource : ISpNotifySource.Interface +public unsafe partial struct ISpNotifySource : ISpNotifySource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpNotifySource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpNotifyTranslator.cs b/sources/Interop/Windows/Windows/um/sapi/ISpNotifyTranslator.cs index a498965e0d..adbbf0a11c 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpNotifyTranslator.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpNotifyTranslator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ACA16614-5D3D-11D2-960E-00C04F8EE628")] [NativeTypeName("struct ISpNotifyTranslator : ISpNotifySink")] [NativeInheritance("ISpNotifySink")] -public unsafe partial struct ISpNotifyTranslator : ISpNotifyTranslator.Interface +public unsafe partial struct ISpNotifyTranslator : ISpNotifyTranslator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpNotifyTranslator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpObjectToken.cs b/sources/Interop/Windows/Windows/um/sapi/ISpObjectToken.cs index 3300a8fa9d..012f379c2b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpObjectToken.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpObjectToken.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("14056589-E16C-11D2-BB90-00C04F8EE6C0")] [NativeTypeName("struct ISpObjectToken : ISpDataKey")] [NativeInheritance("ISpDataKey")] -public unsafe partial struct ISpObjectToken : ISpObjectToken.Interface +public unsafe partial struct ISpObjectToken : ISpObjectToken.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpObjectToken)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenCategory.cs b/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenCategory.cs index 70da98945a..bd4009a11e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenCategory.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenCategory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2D3D3845-39AF-4850-BBF9-40B49780011D")] [NativeTypeName("struct ISpObjectTokenCategory : ISpDataKey")] [NativeInheritance("ISpDataKey")] -public unsafe partial struct ISpObjectTokenCategory : ISpObjectTokenCategory.Interface +public unsafe partial struct ISpObjectTokenCategory : ISpObjectTokenCategory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpObjectTokenCategory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenInit.cs b/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenInit.cs index 82b740c639..07a5dd4519 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenInit.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpObjectTokenInit.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B8AAB0CF-346F-49D8-9499-C8B03F161D51")] [NativeTypeName("struct ISpObjectTokenInit : ISpObjectToken")] [NativeInheritance("ISpObjectToken")] -public unsafe partial struct ISpObjectTokenInit : ISpObjectTokenInit.Interface +public unsafe partial struct ISpObjectTokenInit : ISpObjectTokenInit.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpObjectTokenInit)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpObjectWithToken.cs b/sources/Interop/Windows/Windows/um/sapi/ISpObjectWithToken.cs index 5483d9bf5e..9afd0214f8 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpObjectWithToken.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpObjectWithToken.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B559F40-E952-11D2-BB91-00C04F8EE6C0")] [NativeTypeName("struct ISpObjectWithToken : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpObjectWithToken : ISpObjectWithToken.Interface +public unsafe partial struct ISpObjectWithToken : ISpObjectWithToken.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpObjectWithToken)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneConverter.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneConverter.cs index 98197814af..a20c00b0f0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneConverter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8445C581-0CAC-4A38-ABFE-9B2CE2826455")] [NativeTypeName("struct ISpPhoneConverter : ISpObjectWithToken")] [NativeInheritance("ISpObjectWithToken")] -public unsafe partial struct ISpPhoneConverter : ISpPhoneConverter.Interface +public unsafe partial struct ISpPhoneConverter : ISpPhoneConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhoneConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetConverter.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetConverter.cs index 31005e226e..82d7034d0a 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetConverter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("133ADCD4-19B4-4020-9FDC-842E78253B17")] [NativeTypeName("struct ISpPhoneticAlphabetConverter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpPhoneticAlphabetConverter : ISpPhoneticAlphabetConverter.Interface +public unsafe partial struct ISpPhoneticAlphabetConverter : ISpPhoneticAlphabetConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhoneticAlphabetConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetSelection.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetSelection.cs index fcdc638632..7b35f3a8e3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetSelection.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhoneticAlphabetSelection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B2745EFD-42CE-48CA-81F1-A96E02538A90")] [NativeTypeName("struct ISpPhoneticAlphabetSelection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpPhoneticAlphabetSelection : ISpPhoneticAlphabetSelection.Interface +public unsafe partial struct ISpPhoneticAlphabetSelection : ISpPhoneticAlphabetSelection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhoneticAlphabetSelection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhrase.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhrase.cs index db7231b959..b8be6a0921 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhrase.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhrase.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1A5C0354-B621-4B5A-8791-D306ED379E53")] [NativeTypeName("struct ISpPhrase : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpPhrase : ISpPhrase.Interface +public unsafe partial struct ISpPhrase : ISpPhrase.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhrase)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhrase2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhrase2.cs index 902dd7a4ed..ce45bd70e3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhrase2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhrase2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F264DA52-E457-4696-B856-A737B717AF79")] [NativeTypeName("struct ISpPhrase2 : ISpPhrase")] [NativeInheritance("ISpPhrase")] -public unsafe partial struct ISpPhrase2 : ISpPhrase2.Interface +public unsafe partial struct ISpPhrase2 : ISpPhrase2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhrase2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpPhraseAlt.cs b/sources/Interop/Windows/Windows/um/sapi/ISpPhraseAlt.cs index 5307ec39e4..85f37a0f91 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpPhraseAlt.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpPhraseAlt.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8FCEBC98-4E49-4067-9C6C-D86A0E092E3D")] [NativeTypeName("struct ISpPhraseAlt : ISpPhrase")] [NativeInheritance("ISpPhrase")] -public unsafe partial struct ISpPhraseAlt : ISpPhraseAlt.Interface +public unsafe partial struct ISpPhraseAlt : ISpPhraseAlt.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpPhraseAlt)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpProperties.cs b/sources/Interop/Windows/Windows/um/sapi/ISpProperties.cs index 0cc94355a5..415ce6891b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpProperties.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5B4FB971-B115-4DE1-AD97-E482E3BF6EE4")] [NativeTypeName("struct ISpProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpProperties : ISpProperties.Interface +public unsafe partial struct ISpProperties : ISpProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoCategory.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoCategory.cs index 4845d4465e..9279c6f57f 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoCategory.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoCategory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DA0CD0F9-14A2-4F09-8C2A-85CC48979345")] [NativeTypeName("struct ISpRecoCategory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpRecoCategory : ISpRecoCategory.Interface +public unsafe partial struct ISpRecoCategory : ISpRecoCategory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoCategory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext.cs index c76cd373a9..d4f2982923 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F740A62F-7C15-489E-8234-940A33D9272D")] [NativeTypeName("struct ISpRecoContext : ISpEventSource")] [NativeInheritance("ISpEventSource")] -public unsafe partial struct ISpRecoContext : ISpRecoContext.Interface +public unsafe partial struct ISpRecoContext : ISpRecoContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext2.cs index d4a2521f8b..732aad6f25 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoContext2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BEAD311C-52FF-437F-9464-6B21054CA73D")] [NativeTypeName("struct ISpRecoContext2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpRecoContext2 : ISpRecoContext2.Interface +public unsafe partial struct ISpRecoContext2 : ISpRecoContext2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoContext2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar.cs index 829a93b941..b250709111 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2177DB29-7F45-47D0-8554-067E91C80502")] [NativeTypeName("struct ISpRecoGrammar : ISpGrammarBuilder")] [NativeInheritance("ISpGrammarBuilder")] -public unsafe partial struct ISpRecoGrammar : ISpRecoGrammar.Interface +public unsafe partial struct ISpRecoGrammar : ISpRecoGrammar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoGrammar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar2.cs index 06c09ab12d..6021a4cbf0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoGrammar2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4B37BC9E-9ED6-44A3-93D3-18F022B79EC3")] [NativeTypeName("struct ISpRecoGrammar2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpRecoGrammar2 : ISpRecoGrammar2.Interface +public unsafe partial struct ISpRecoGrammar2 : ISpRecoGrammar2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoGrammar2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult.cs index 86b3341347..935192ba97 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("20B053BE-E235-43CD-9A2A-8D17A48B7842")] [NativeTypeName("struct ISpRecoResult : ISpPhrase")] [NativeInheritance("ISpPhrase")] -public unsafe partial struct ISpRecoResult : ISpRecoResult.Interface +public unsafe partial struct ISpRecoResult : ISpRecoResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult2.cs index c054d2004c..b39cc4e734 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecoResult2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27CAC6C4-88F2-41F2-8817-0C95E59F1E6E")] [NativeTypeName("struct ISpRecoResult2 : ISpRecoResult")] [NativeInheritance("ISpRecoResult")] -public unsafe partial struct ISpRecoResult2 : ISpRecoResult2.Interface +public unsafe partial struct ISpRecoResult2 : ISpRecoResult2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecoResult2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer.cs index 4daa0b5d11..4aec269dfa 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C2B5F241-DAA0-4507-9E16-5A1EAA2B7A5C")] [NativeTypeName("struct ISpRecognizer : ISpProperties")] [NativeInheritance("ISpProperties")] -public unsafe partial struct ISpRecognizer : ISpRecognizer.Interface +public unsafe partial struct ISpRecognizer : ISpRecognizer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecognizer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer2.cs index 98f929c966..fce7e847c4 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8FC6D974-C81E-4098-93C5-0147F61ED4D3")] [NativeTypeName("struct ISpRecognizer2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpRecognizer2 : ISpRecognizer2.Interface +public unsafe partial struct ISpRecognizer2 : ISpRecognizer2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecognizer2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer3.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer3.cs index 1c1ee61235..b813b35eab 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer3.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRecognizer3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DF1B943C-5838-4AA2-8706-D7CD5B333499")] [NativeTypeName("struct ISpRecognizer3 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpRecognizer3 : ISpRecognizer3.Interface +public unsafe partial struct ISpRecognizer3 : ISpRecognizer3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRecognizer3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpRegDataKey.cs b/sources/Interop/Windows/Windows/um/sapi/ISpRegDataKey.cs index 90e0819d7d..fc0fd285ca 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpRegDataKey.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpRegDataKey.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("92A66E2B-C830-4149-83DF-6FC2BA1E7A5B")] [NativeTypeName("struct ISpRegDataKey : ISpDataKey")] [NativeInheritance("ISpDataKey")] -public unsafe partial struct ISpRegDataKey : ISpRegDataKey.Interface +public unsafe partial struct ISpRegDataKey : ISpRegDataKey.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpRegDataKey)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpResourceManager.cs b/sources/Interop/Windows/Windows/um/sapi/ISpResourceManager.cs index 0cca29ef3b..809e8dda08 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpResourceManager.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpResourceManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("93384E18-5014-43D5-ADBB-A78E055926BD")] [NativeTypeName("struct ISpResourceManager : IServiceProvider")] [NativeInheritance("IServiceProvider")] -public unsafe partial struct ISpResourceManager : ISpResourceManager.Interface +public unsafe partial struct ISpResourceManager : ISpResourceManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpResourceManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpSerializeState.cs b/sources/Interop/Windows/Windows/um/sapi/ISpSerializeState.cs index 1a8a8a2c25..b57065c5d6 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpSerializeState.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpSerializeState.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("21B501A0-0EC7-46C9-92C3-A2BC784C54B9")] [NativeTypeName("struct ISpSerializeState : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpSerializeState : ISpSerializeState.Interface +public unsafe partial struct ISpSerializeState : ISpSerializeState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpSerializeState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpShortcut.cs b/sources/Interop/Windows/Windows/um/sapi/ISpShortcut.cs index a05f18a33b..947a4a4471 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpShortcut.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpShortcut.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3DF681E2-EA56-11D9-8BDE-F66BAD1E3F3A")] [NativeTypeName("struct ISpShortcut : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpShortcut : ISpShortcut.Interface +public unsafe partial struct ISpShortcut : ISpShortcut.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpShortcut)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpStream.cs b/sources/Interop/Windows/Windows/um/sapi/ISpStream.cs index f246ee49db..134127e398 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("12E3CCA9-7518-44C5-A5E7-BA5A79CB929E")] [NativeTypeName("struct ISpStream : ISpStreamFormat")] [NativeInheritance("ISpStreamFormat")] -public unsafe partial struct ISpStream : ISpStream.Interface +public unsafe partial struct ISpStream : ISpStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormat.cs b/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormat.cs index b711b3b4fd..25010d76c3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormat.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormat.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BED530BE-2606-4F4D-A1C0-54C5CDA5566F")] [NativeTypeName("struct ISpStreamFormat : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct ISpStreamFormat : ISpStreamFormat.Interface +public unsafe partial struct ISpStreamFormat : ISpStreamFormat.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpStreamFormat)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormatConverter.cs b/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormatConverter.cs index 15167c6de8..bc97b741ca 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormatConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpStreamFormatConverter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("678A932C-EA71-4446-9B41-78FDA6280A29")] [NativeTypeName("struct ISpStreamFormatConverter : ISpStreamFormat")] [NativeInheritance("ISpStreamFormat")] -public unsafe partial struct ISpStreamFormatConverter : ISpStreamFormatConverter.Interface +public unsafe partial struct ISpStreamFormatConverter : ISpStreamFormatConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpStreamFormatConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpTranscript.cs b/sources/Interop/Windows/Windows/um/sapi/ISpTranscript.cs index 1bcb953666..32309d56c4 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpTranscript.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpTranscript.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("10F63BCE-201A-11D3-AC70-00C04F8EE6C0")] [NativeTypeName("struct ISpTranscript : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISpTranscript : ISpTranscript.Interface +public unsafe partial struct ISpTranscript : ISpTranscript.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpTranscript)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpVoice.cs b/sources/Interop/Windows/Windows/um/sapi/ISpVoice.cs index fd7ca0f480..1713012c8e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpVoice.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpVoice.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6C44DF74-72B9-4992-A1EC-EF996E0422D4")] [NativeTypeName("struct ISpVoice : ISpEventSource")] [NativeInheritance("ISpEventSource")] -public unsafe partial struct ISpVoice : ISpVoice.Interface +public unsafe partial struct ISpVoice : ISpVoice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpVoice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpXMLRecoResult.cs b/sources/Interop/Windows/Windows/um/sapi/ISpXMLRecoResult.cs index 496a5247ba..f8c9f1145e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpXMLRecoResult.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpXMLRecoResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AE39362B-45A8-4074-9B9E-CCF49AA2D0B6")] [NativeTypeName("struct ISpXMLRecoResult : ISpRecoResult")] [NativeInheritance("ISpRecoResult")] -public unsafe partial struct ISpXMLRecoResult : ISpXMLRecoResult.Interface +public unsafe partial struct ISpXMLRecoResult : ISpXMLRecoResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpXMLRecoResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudio.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudio.cs index 3a298398e3..4cb8016904 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudio.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CFF8E175-019E-11D3-A08E-00C04F8EF9B5")] [NativeTypeName("struct ISpeechAudio : ISpeechBaseStream")] [NativeInheritance("ISpeechBaseStream")] -public unsafe partial struct ISpeechAudio : ISpeechAudio.Interface +public unsafe partial struct ISpeechAudio : ISpeechAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioBufferInfo.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioBufferInfo.cs index 8877d96217..7c48ebb2a3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioBufferInfo.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioBufferInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("11B103D8-1142-4EDF-A093-82FB3915F8CC")] [NativeTypeName("struct ISpeechAudioBufferInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechAudioBufferInfo : ISpeechAudioBufferInfo.Interface +public unsafe partial struct ISpeechAudioBufferInfo : ISpeechAudioBufferInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechAudioBufferInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioFormat.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioFormat.cs index 9e7c67f238..59f1522686 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioFormat.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioFormat.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E6E9C590-3E18-40E3-8299-061F98BDE7C7")] [NativeTypeName("struct ISpeechAudioFormat : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechAudioFormat : ISpeechAudioFormat.Interface +public unsafe partial struct ISpeechAudioFormat : ISpeechAudioFormat.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechAudioFormat)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioStatus.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioStatus.cs index a6a609fc51..afb07a9e19 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioStatus.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechAudioStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C62D9C91-7458-47F6-862D-1EF86FB0B278")] [NativeTypeName("struct ISpeechAudioStatus : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechAudioStatus : ISpeechAudioStatus.Interface +public unsafe partial struct ISpeechAudioStatus : ISpeechAudioStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechAudioStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechBaseStream.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechBaseStream.cs index 26a219c42b..cbee3bd3d6 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechBaseStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechBaseStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6450336F-7D49-4CED-8097-49D6DEE37294")] [NativeTypeName("struct ISpeechBaseStream : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechBaseStream : ISpeechBaseStream.Interface +public unsafe partial struct ISpeechBaseStream : ISpeechBaseStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechBaseStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechCustomStream.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechCustomStream.cs index 66582b2940..011593d7b3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechCustomStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechCustomStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1A9E9F4F-104F-4DB8-A115-EFD7FD0C97AE")] [NativeTypeName("struct ISpeechCustomStream : ISpeechBaseStream")] [NativeInheritance("ISpeechBaseStream")] -public unsafe partial struct ISpeechCustomStream : ISpeechCustomStream.Interface +public unsafe partial struct ISpeechCustomStream : ISpeechCustomStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechCustomStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechDataKey.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechDataKey.cs index 34e3179acb..95311cf1dd 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechDataKey.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechDataKey.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD")] [NativeTypeName("struct ISpeechDataKey : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechDataKey : ISpeechDataKey.Interface +public unsafe partial struct ISpeechDataKey : ISpeechDataKey.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechDataKey)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechFileStream.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechFileStream.cs index ba8dc94c6c..bde18c0801 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechFileStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechFileStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.SpeechStreamFileMode; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("AF67F125-AB39-4E93-B4A2-CC2E66E182A7")] [NativeTypeName("struct ISpeechFileStream : ISpeechBaseStream")] [NativeInheritance("ISpeechBaseStream")] -public unsafe partial struct ISpeechFileStream : ISpeechFileStream.Interface +public unsafe partial struct ISpeechFileStream : ISpeechFileStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechFileStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRule.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRule.cs index 6c7e941249..50e5ab9cf8 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRule.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AFE719CF-5DD1-44F2-999C-7A399F1CFCCC")] [NativeTypeName("struct ISpeechGrammarRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechGrammarRule : ISpeechGrammarRule.Interface +public unsafe partial struct ISpeechGrammarRule : ISpeechGrammarRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechGrammarRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleState.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleState.cs index bbf685dbde..804b9fcf90 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleState.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleState.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.SpeechGrammarWordType; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("D4286F2C-EE67-45AE-B928-28D695362EDA")] [NativeTypeName("struct ISpeechGrammarRuleState : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechGrammarRuleState : ISpeechGrammarRuleState.Interface +public unsafe partial struct ISpeechGrammarRuleState : ISpeechGrammarRuleState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechGrammarRuleState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransition.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransition.cs index d0b9ee09e1..57f4785f34 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransition.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransition.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CAFD1DB1-41D1-4A06-9863-E2E81DA17A9A")] [NativeTypeName("struct ISpeechGrammarRuleStateTransition : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechGrammarRuleStateTransition : ISpeechGrammarRuleStateTransition.Interface +public unsafe partial struct ISpeechGrammarRuleStateTransition : ISpeechGrammarRuleStateTransition.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechGrammarRuleStateTransition)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransitions.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransitions.cs index 814e5518fe..d6bf14339c 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransitions.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRuleStateTransitions.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EABCE657-75BC-44A2-AA7F-C56476742963")] [NativeTypeName("struct ISpeechGrammarRuleStateTransitions : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechGrammarRuleStateTransitions : ISpeechGrammarRuleStateTransitions.Interface +public unsafe partial struct ISpeechGrammarRuleStateTransitions : ISpeechGrammarRuleStateTransitions.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechGrammarRuleStateTransitions)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRules.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRules.cs index 0fc492e646..8aaab0a302 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRules.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechGrammarRules.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6FFA3B44-FC2D-40D1-8AFC-32911C7F1AD1")] [NativeTypeName("struct ISpeechGrammarRules : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechGrammarRules : ISpeechGrammarRules.Interface +public unsafe partial struct ISpeechGrammarRules : ISpeechGrammarRules.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechGrammarRules)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexicon.cs index fd5d22b51a..bb7d10621e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexicon.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.SpeechPartOfSpeech; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("3DA7627A-C7AE-4B23-8708-638C50362C25")] [NativeTypeName("struct ISpeechLexicon : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechLexicon : ISpeechLexicon.Interface +public unsafe partial struct ISpeechLexicon : ISpeechLexicon.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechLexicon)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciation.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciation.cs index 15b21ef98e..2451984fa4 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciation.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("95252C5D-9E43-4F4A-9899-48EE73352F9F")] [NativeTypeName("struct ISpeechLexiconPronunciation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechLexiconPronunciation : ISpeechLexiconPronunciation.Interface +public unsafe partial struct ISpeechLexiconPronunciation : ISpeechLexiconPronunciation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechLexiconPronunciation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciations.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciations.cs index c3839a689a..4dcd53efde 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciations.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconPronunciations.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("72829128-5682-4704-A0D4-3E2BB6F2EAD3")] [NativeTypeName("struct ISpeechLexiconPronunciations : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechLexiconPronunciations : ISpeechLexiconPronunciations.Interface +public unsafe partial struct ISpeechLexiconPronunciations : ISpeechLexiconPronunciations.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechLexiconPronunciations)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWord.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWord.cs index e8ce4cec8d..2e63b7eb56 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWord.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWord.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4E5B933C-C9BE-48ED-8842-1EE51BB1D4FF")] [NativeTypeName("struct ISpeechLexiconWord : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechLexiconWord : ISpeechLexiconWord.Interface +public unsafe partial struct ISpeechLexiconWord : ISpeechLexiconWord.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechLexiconWord)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWords.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWords.cs index 9379bff299..c94efb4fef 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWords.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechLexiconWords.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8D199862-415E-47D5-AC4F-FAA608B424E6")] [NativeTypeName("struct ISpeechLexiconWords : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechLexiconWords : ISpeechLexiconWords.Interface +public unsafe partial struct ISpeechLexiconWords : ISpeechLexiconWords.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechLexiconWords)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechMMSysAudio.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechMMSysAudio.cs index dbb556e14a..8503b54d65 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechMMSysAudio.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechMMSysAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3C76AF6D-1FD7-4831-81D1-3B71D5A13C44")] [NativeTypeName("struct ISpeechMMSysAudio : ISpeechAudio")] [NativeInheritance("ISpeechAudio")] -public unsafe partial struct ISpeechMMSysAudio : ISpeechMMSysAudio.Interface +public unsafe partial struct ISpeechMMSysAudio : ISpeechMMSysAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechMMSysAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechMemoryStream.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechMemoryStream.cs index d9f8b737c8..82dc0cb55b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechMemoryStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechMemoryStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EEB14B68-808B-4ABE-A5EA-B51DA7588008")] [NativeTypeName("struct ISpeechMemoryStream : ISpeechBaseStream")] [NativeInheritance("ISpeechBaseStream")] -public unsafe partial struct ISpeechMemoryStream : ISpeechMemoryStream.Interface +public unsafe partial struct ISpeechMemoryStream : ISpeechMemoryStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechMemoryStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectToken.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectToken.cs index ef9c158eac..587026c418 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectToken.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectToken.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C74A3ADC-B727-4500-A84A-B526721C8B8C")] [NativeTypeName("struct ISpeechObjectToken : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechObjectToken : ISpeechObjectToken.Interface +public unsafe partial struct ISpeechObjectToken : ISpeechObjectToken.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechObjectToken)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokenCategory.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokenCategory.cs index 170d7ee4eb..24c51772f3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokenCategory.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokenCategory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CA7EAC50-2D01-4145-86D4-5AE7D70F4469")] [NativeTypeName("struct ISpeechObjectTokenCategory : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechObjectTokenCategory : ISpeechObjectTokenCategory.Interface +public unsafe partial struct ISpeechObjectTokenCategory : ISpeechObjectTokenCategory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechObjectTokenCategory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokens.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokens.cs index ada15292f5..642e9d97c0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokens.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechObjectTokens.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9285B776-2E7B-4BC0-B53E-580EB6FA967F")] [NativeTypeName("struct ISpeechObjectTokens : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechObjectTokens : ISpeechObjectTokens.Interface +public unsafe partial struct ISpeechObjectTokens : ISpeechObjectTokens.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechObjectTokens)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhoneConverter.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhoneConverter.cs index e2f61f436d..739b07f4d3 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhoneConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhoneConverter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C3E4F353-433F-43D6-89A1-6A62A7054C3D")] [NativeTypeName("struct ISpeechPhoneConverter : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhoneConverter : ISpeechPhoneConverter.Interface +public unsafe partial struct ISpeechPhoneConverter : ISpeechPhoneConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhoneConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternate.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternate.cs index c0005560d9..9358cc6103 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternate.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27864A2A-2B9F-4CB8-92D3-0D2722FD1E73")] [NativeTypeName("struct ISpeechPhraseAlternate : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseAlternate : ISpeechPhraseAlternate.Interface +public unsafe partial struct ISpeechPhraseAlternate : ISpeechPhraseAlternate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseAlternate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternates.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternates.cs index bf56202b3c..554decef11 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternates.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseAlternates.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B238B6D5-F276-4C3D-A6C1-2974801C3CC2")] [NativeTypeName("struct ISpeechPhraseAlternates : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseAlternates : ISpeechPhraseAlternates.Interface +public unsafe partial struct ISpeechPhraseAlternates : ISpeechPhraseAlternates.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseAlternates)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElement.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElement.cs index c7c067d9f2..016c4ec393 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElement.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E6176F96-E373-4801-B223-3B62C068C0B4")] [NativeTypeName("struct ISpeechPhraseElement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseElement : ISpeechPhraseElement.Interface +public unsafe partial struct ISpeechPhraseElement : ISpeechPhraseElement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseElement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElements.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElements.cs index 2b01e80deb..2ef144d09c 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElements.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseElements.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0626B328-3478-467D-A0B3-D0853B93DDA3")] [NativeTypeName("struct ISpeechPhraseElements : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseElements : ISpeechPhraseElements.Interface +public unsafe partial struct ISpeechPhraseElements : ISpeechPhraseElements.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseElements)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfo.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfo.cs index ba62fbea05..e93012c55a 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfo.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("961559CF-4E67-4662-8BF0-D93F1FCD61B3")] [NativeTypeName("struct ISpeechPhraseInfo : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseInfo : ISpeechPhraseInfo.Interface +public unsafe partial struct ISpeechPhraseInfo : ISpeechPhraseInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfoBuilder.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfoBuilder.cs index 8061855154..1d2aab4929 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfoBuilder.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseInfoBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B151836-DF3A-4E0A-846C-D2ADC9334333")] [NativeTypeName("struct ISpeechPhraseInfoBuilder : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseInfoBuilder : ISpeechPhraseInfoBuilder.Interface +public unsafe partial struct ISpeechPhraseInfoBuilder : ISpeechPhraseInfoBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseInfoBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperties.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperties.cs index 0add095a63..d710af83f4 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperties.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08166B47-102E-4B23-A599-BDB98DBFD1F4")] [NativeTypeName("struct ISpeechPhraseProperties : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseProperties : ISpeechPhraseProperties.Interface +public unsafe partial struct ISpeechPhraseProperties : ISpeechPhraseProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperty.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperty.cs index c7d4af449e..7c109b1a90 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperty.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseProperty.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CE563D48-961E-4732-A2E1-378A42B430BE")] [NativeTypeName("struct ISpeechPhraseProperty : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseProperty : ISpeechPhraseProperty.Interface +public unsafe partial struct ISpeechPhraseProperty : ISpeechPhraseProperty.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseProperty)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacement.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacement.cs index 4c7d599ffc..86be377596 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacement.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacement.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2890A410-53A7-4FB5-94EC-06D4998E3D02")] [NativeTypeName("struct ISpeechPhraseReplacement : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseReplacement : ISpeechPhraseReplacement.Interface +public unsafe partial struct ISpeechPhraseReplacement : ISpeechPhraseReplacement.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseReplacement)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacements.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacements.cs index 633cdaac9c..211c3f803e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacements.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseReplacements.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("38BC662F-2257-4525-959E-2069D2596C05")] [NativeTypeName("struct ISpeechPhraseReplacements : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseReplacements : ISpeechPhraseReplacements.Interface +public unsafe partial struct ISpeechPhraseReplacements : ISpeechPhraseReplacements.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseReplacements)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRule.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRule.cs index cb475a6d60..5933c015ef 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRule.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRule.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A7BFE112-A4A0-48D9-B602-C313843F6964")] [NativeTypeName("struct ISpeechPhraseRule : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseRule : ISpeechPhraseRule.Interface +public unsafe partial struct ISpeechPhraseRule : ISpeechPhraseRule.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseRule)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRules.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRules.cs index 9fb58cf802..c554ed1bca 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRules.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechPhraseRules.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9047D593-01DD-4B72-81A3-E4A0CA69F407")] [NativeTypeName("struct ISpeechPhraseRules : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechPhraseRules : ISpeechPhraseRules.Interface +public unsafe partial struct ISpeechPhraseRules : ISpeechPhraseRules.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechPhraseRules)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoContext.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoContext.cs index f847aa3ea9..52c6f5252d 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoContext.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("580AA49D-7E1E-4809-B8E2-57DA806104B8")] [NativeTypeName("struct ISpeechRecoContext : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecoContext : ISpeechRecoContext.Interface +public unsafe partial struct ISpeechRecoContext : ISpeechRecoContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoGrammar.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoGrammar.cs index d149258f79..5ff0e511ab 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoGrammar.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoGrammar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.SpeechLoadOption; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("B6D6F79F-2158-4E50-B5BC-9A9CCD852A09")] [NativeTypeName("struct ISpeechRecoGrammar : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecoGrammar : ISpeechRecoGrammar.Interface +public unsafe partial struct ISpeechRecoGrammar : ISpeechRecoGrammar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoGrammar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult.cs index e24f02c9d2..16b69e9b39 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ED2879CF-CED9-4EE6-A534-DE0191D5468D")] [NativeTypeName("struct ISpeechRecoResult : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecoResult : ISpeechRecoResult.Interface +public unsafe partial struct ISpeechRecoResult : ISpeechRecoResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult2.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult2.cs index c7aa74cd67..40129f5619 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult2.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResult2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8E0A246D-D3C8-45DE-8657-04290C458C3C")] [NativeTypeName("struct ISpeechRecoResult2 : ISpeechRecoResult")] [NativeInheritance("ISpeechRecoResult")] -public unsafe partial struct ISpeechRecoResult2 : ISpeechRecoResult2.Interface +public unsafe partial struct ISpeechRecoResult2 : ISpeechRecoResult2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoResult2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultDispatch.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultDispatch.cs index 5c3c38947a..4ab5dc6e85 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultDispatch.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultDispatch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6D60EB64-ACED-40A6-BBF3-4E557F71DEE2")] [NativeTypeName("struct ISpeechRecoResultDispatch : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecoResultDispatch : ISpeechRecoResultDispatch.Interface +public unsafe partial struct ISpeechRecoResultDispatch : ISpeechRecoResultDispatch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoResultDispatch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultTimes.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultTimes.cs index 8e8685df54..a881d8643e 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultTimes.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecoResultTimes.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("62B3B8FB-F6E7-41BE-BDCB-056B1C29EFC0")] [NativeTypeName("struct ISpeechRecoResultTimes : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecoResultTimes : ISpeechRecoResultTimes.Interface +public unsafe partial struct ISpeechRecoResultTimes : ISpeechRecoResultTimes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecoResultTimes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizer.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizer.cs index 4a1d0b46cf..fbac2afa4b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizer.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2D5F1C0C-BD75-4B08-9478-3B11FEA2586C")] [NativeTypeName("struct ISpeechRecognizer : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecognizer : ISpeechRecognizer.Interface +public unsafe partial struct ISpeechRecognizer : ISpeechRecognizer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecognizer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizerStatus.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizerStatus.cs index 6cc7656ff7..89a15b2611 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizerStatus.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechRecognizerStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BFF9E781-53EC-484E-BB8A-0E1B5551E35C")] [NativeTypeName("struct ISpeechRecognizerStatus : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechRecognizerStatus : ISpeechRecognizerStatus.Interface +public unsafe partial struct ISpeechRecognizerStatus : ISpeechRecognizerStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechRecognizerStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechResourceLoader.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechResourceLoader.cs index 008964dd97..5a9d7cb998 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechResourceLoader.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechResourceLoader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B9AC5783-FCD0-4B21-B119-B4F8DA8FD2C3")] [NativeTypeName("struct ISpeechResourceLoader : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechResourceLoader : ISpeechResourceLoader.Interface +public unsafe partial struct ISpeechResourceLoader : ISpeechResourceLoader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechResourceLoader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechTextSelectionInformation.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechTextSelectionInformation.cs index 6d605d0c69..7f1853ddbd 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechTextSelectionInformation.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechTextSelectionInformation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B9C7E7A-6EEE-4DED-9092-11657279ADBE")] [NativeTypeName("struct ISpeechTextSelectionInformation : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechTextSelectionInformation : ISpeechTextSelectionInformation.Interface +public unsafe partial struct ISpeechTextSelectionInformation : ISpeechTextSelectionInformation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechTextSelectionInformation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechVoice.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechVoice.cs index a6047e3c8a..de26102002 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechVoice.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechVoice.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("269316D8-57BD-11D2-9EEE-00C04F797396")] [NativeTypeName("struct ISpeechVoice : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechVoice : ISpeechVoice.Interface +public unsafe partial struct ISpeechVoice : ISpeechVoice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechVoice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechVoiceStatus.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechVoiceStatus.cs index 2a912271f3..a447648654 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechVoiceStatus.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechVoiceStatus.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8BE47B07-57F6-11D2-9EEE-00C04F797396")] [NativeTypeName("struct ISpeechVoiceStatus : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechVoiceStatus : ISpeechVoiceStatus.Interface +public unsafe partial struct ISpeechVoiceStatus : ISpeechVoiceStatus.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechVoiceStatus)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechWaveFormatEx.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechWaveFormatEx.cs index 1eadbccb48..8d6c881f9d 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechWaveFormatEx.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechWaveFormatEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7A1EF0D5-1581-4741-88E4-209A49F11A10")] [NativeTypeName("struct ISpeechWaveFormatEx : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct ISpeechWaveFormatEx : ISpeechWaveFormatEx.Interface +public unsafe partial struct ISpeechWaveFormatEx : ISpeechWaveFormatEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechWaveFormatEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/ISpeechXMLRecoResult.cs b/sources/Interop/Windows/Windows/um/sapi/ISpeechXMLRecoResult.cs index a1563d2a75..fe9e64453b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/ISpeechXMLRecoResult.cs +++ b/sources/Interop/Windows/Windows/um/sapi/ISpeechXMLRecoResult.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AAEC54AF-8F85-4924-944D-B79D39D72E19")] [NativeTypeName("struct ISpeechXMLRecoResult : ISpeechRecoResult")] [NativeInheritance("ISpeechRecoResult")] -public unsafe partial struct ISpeechXMLRecoResult : ISpeechXMLRecoResult.Interface +public unsafe partial struct ISpeechXMLRecoResult : ISpeechXMLRecoResult.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISpeechXMLRecoResult)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/SPPHRASEPROPERTY.cs b/sources/Interop/Windows/Windows/um/sapi/SPPHRASEPROPERTY.cs index 5283fe76ca..26274e8bf5 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SPPHRASEPROPERTY.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SPPHRASEPROPERTY.cs @@ -3,6 +3,7 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,42 +51,46 @@ public unsafe partial struct SPPHRASEPROPERTY public sbyte Confidence; /// + [UnscopedRef] public ref uint ulId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ulId, 1)); + return ref Anonymous.ulId; } } /// + [UnscopedRef] public ref byte bType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.bType, 1)); + return ref Anonymous.Anonymous.bType; } } /// + [UnscopedRef] public ref byte bReserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.bReserved, 1)); + return ref Anonymous.Anonymous.bReserved; } } /// + [UnscopedRef] public ref ushort usArrayIndex { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.usArrayIndex, 1)); + return ref Anonymous.Anonymous.usArrayIndex; } } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpAudioFormat.cs b/sources/Interop/Windows/Windows/um/sapi/SpAudioFormat.cs index 19c399e78d..ede1112df0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpAudioFormat.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpAudioFormat.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("9EF96870-E160-4792-820D-48CF0649E4EC")] -public partial struct SpAudioFormat +public unsafe partial struct SpAudioFormat : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpAudioFormat)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpCompressedLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/SpCompressedLexicon.cs index 7349d02668..60b1077b26 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpCompressedLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpCompressedLexicon.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("90903716-2F42-11D3-9C26-00C04F8EF87C")] -public partial struct SpCompressedLexicon +public unsafe partial struct SpCompressedLexicon : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpCompressedLexicon)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpCustomStream.cs b/sources/Interop/Windows/Windows/um/sapi/SpCustomStream.cs index 2e738a8061..eaf80baab6 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpCustomStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpCustomStream.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("8DBEF13F-1948-4AA8-8CF0-048EEBED95D8")] -public partial struct SpCustomStream +public unsafe partial struct SpCustomStream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpCustomStream)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpFileStream.cs b/sources/Interop/Windows/Windows/um/sapi/SpFileStream.cs index 47549150f1..9c9d640e72 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpFileStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpFileStream.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("947812B3-2AE1-4644-BA86-9E90DED7EC91")] -public partial struct SpFileStream +public unsafe partial struct SpFileStream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpFileStream)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpInProcRecoContext.cs b/sources/Interop/Windows/Windows/um/sapi/SpInProcRecoContext.cs index 3abf40951d..b0b18287ac 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpInProcRecoContext.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpInProcRecoContext.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("73AD6842-ACE0-45E8-A4DD-8795881A2C2A")] -public partial struct SpInProcRecoContext +public unsafe partial struct SpInProcRecoContext : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpInProcRecoContext)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpInprocRecognizer.cs b/sources/Interop/Windows/Windows/um/sapi/SpInprocRecognizer.cs index 2ae1ba4d86..9662e1bfeb 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpInprocRecognizer.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpInprocRecognizer.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("41B89B6B-9399-11D2-9623-00C04F8EE628")] -public partial struct SpInprocRecognizer +public unsafe partial struct SpInprocRecognizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpInprocRecognizer)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/SpLexicon.cs index 518fbba55c..a87c59f7fc 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpLexicon.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("0655E396-25D0-11D3-9C26-00C04F8EF87C")] -public partial struct SpLexicon +public unsafe partial struct SpLexicon : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpLexicon)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioEnum.cs b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioEnum.cs index 7b00194202..eb80a95696 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioEnum.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioEnum.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("AB1890A0-E91F-11D2-BB91-00C04F8EE6C0")] -public partial struct SpMMAudioEnum +public unsafe partial struct SpMMAudioEnum : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpMMAudioEnum)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioIn.cs b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioIn.cs index f61a8d1768..ef3b8a78ae 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioIn.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioIn.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("CF3D2E50-53F2-11D2-960C-00C04F8EE628")] -public partial struct SpMMAudioIn +public unsafe partial struct SpMMAudioIn : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpMMAudioIn)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioOut.cs b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioOut.cs index e71d6b54f9..9d6b5f48f9 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpMMAudioOut.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpMMAudioOut.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("A8C680EB-3D32-11D2-9EE7-00C04F797396")] -public partial struct SpMMAudioOut +public unsafe partial struct SpMMAudioOut : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpMMAudioOut)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpMemoryStream.cs b/sources/Interop/Windows/Windows/um/sapi/SpMemoryStream.cs index a0d2525085..ac934ac639 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpMemoryStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpMemoryStream.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("5FB7EF7D-DFF4-468A-B6B7-2FCBD188F994")] -public partial struct SpMemoryStream +public unsafe partial struct SpMemoryStream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpMemoryStream)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpNotifyTranslator.cs b/sources/Interop/Windows/Windows/um/sapi/SpNotifyTranslator.cs index 5a43bc6213..98c666d820 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpNotifyTranslator.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpNotifyTranslator.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("E2AE5372-5D40-11D2-960E-00C04F8EE628")] -public partial struct SpNotifyTranslator +public unsafe partial struct SpNotifyTranslator : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpNotifyTranslator)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpNullPhoneConverter.cs b/sources/Interop/Windows/Windows/um/sapi/SpNullPhoneConverter.cs index 553bba704e..5e4a669db0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpNullPhoneConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpNullPhoneConverter.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("455F24E9-7396-4A16-9715-7C0FDBE3EFE3")] -public partial struct SpNullPhoneConverter +public unsafe partial struct SpNullPhoneConverter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpNullPhoneConverter)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpObjectToken.cs b/sources/Interop/Windows/Windows/um/sapi/SpObjectToken.cs index bc47ef2c2b..40eed41ddb 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpObjectToken.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpObjectToken.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("EF411752-3736-4CB4-9C8C-8EF4CCB58EFE")] -public partial struct SpObjectToken +public unsafe partial struct SpObjectToken : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpObjectToken)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpObjectTokenCategory.cs b/sources/Interop/Windows/Windows/um/sapi/SpObjectTokenCategory.cs index 0a81d01d1b..ee2c0215e9 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpObjectTokenCategory.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpObjectTokenCategory.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("A910187F-0C7A-45AC-92CC-59EDAFB77B53")] -public partial struct SpObjectTokenCategory +public unsafe partial struct SpObjectTokenCategory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpObjectTokenCategory)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpPhoneConverter.cs b/sources/Interop/Windows/Windows/um/sapi/SpPhoneConverter.cs index 562d90aee4..4af3218fd8 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpPhoneConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpPhoneConverter.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("9185F743-1143-4C28-86B5-BFF14F20E5C8")] -public partial struct SpPhoneConverter +public unsafe partial struct SpPhoneConverter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpPhoneConverter)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpPhoneticAlphabetConverter.cs b/sources/Interop/Windows/Windows/um/sapi/SpPhoneticAlphabetConverter.cs index 95beed55f9..183d82b817 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpPhoneticAlphabetConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpPhoneticAlphabetConverter.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4F414126-DFE3-4629-99EE-797978317EAD")] -public partial struct SpPhoneticAlphabetConverter +public unsafe partial struct SpPhoneticAlphabetConverter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SpPhoneticAlphabetConverter)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpPhraseInfoBuilder.cs b/sources/Interop/Windows/Windows/um/sapi/SpPhraseInfoBuilder.cs index e1e799a3a5..4a8da0f1d2 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpPhraseInfoBuilder.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpPhraseInfoBuilder.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("C23FC28D-C55F-4720-8B32-91F73C2BD5D1")] -public partial struct SpPhraseInfoBuilder +public unsafe partial struct SpPhraseInfoBuilder : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpPhraseInfoBuilder)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpResourceManager.cs b/sources/Interop/Windows/Windows/um/sapi/SpResourceManager.cs index 67551529b5..3fc3a32909 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpResourceManager.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpResourceManager.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("96749373-3391-11D2-9EE3-00C04F797396")] -public partial struct SpResourceManager +public unsafe partial struct SpResourceManager : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpResourceManager)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpSharedRecoContext.cs b/sources/Interop/Windows/Windows/um/sapi/SpSharedRecoContext.cs index 6aca98933b..3ad44209c5 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpSharedRecoContext.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpSharedRecoContext.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("47206204-5ECA-11D2-960F-00C04F8EE628")] -public partial struct SpSharedRecoContext +public unsafe partial struct SpSharedRecoContext : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpSharedRecoContext)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpSharedRecognizer.cs b/sources/Interop/Windows/Windows/um/sapi/SpSharedRecognizer.cs index e92597b462..2ed19f063b 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpSharedRecognizer.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpSharedRecognizer.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("3BEE4890-4FE9-4A37-8C1E-5E7E12791C1F")] -public partial struct SpSharedRecognizer +public unsafe partial struct SpSharedRecognizer : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpSharedRecognizer)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpShortcut.cs b/sources/Interop/Windows/Windows/um/sapi/SpShortcut.cs index 3e186734d4..1683d5eff1 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpShortcut.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpShortcut.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("0D722F1A-9FCF-4E62-96D8-6DF8F01A26AA")] -public partial struct SpShortcut +public unsafe partial struct SpShortcut : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpShortcut)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpStream.cs b/sources/Interop/Windows/Windows/um/sapi/SpStream.cs index 851859d76f..24c59e376d 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpStream.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpStream.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("715D9C59-4442-11D2-9605-00C04F8EE628")] -public partial struct SpStream +public unsafe partial struct SpStream : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpStream)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpStreamFormatConverter.cs b/sources/Interop/Windows/Windows/um/sapi/SpStreamFormatConverter.cs index a280946b8e..b325ca7704 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpStreamFormatConverter.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpStreamFormatConverter.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("7013943A-E2EC-11D2-A086-00C04F8EF9B5")] -public partial struct SpStreamFormatConverter +public unsafe partial struct SpStreamFormatConverter : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpStreamFormatConverter)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpTextSelectionInformation.cs b/sources/Interop/Windows/Windows/um/sapi/SpTextSelectionInformation.cs index 1fd153a8d9..ff811a6602 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpTextSelectionInformation.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpTextSelectionInformation.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("0F92030A-CBFD-4AB8-A164-FF5985547FF6")] -public partial struct SpTextSelectionInformation +public unsafe partial struct SpTextSelectionInformation : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SpTextSelectionInformation)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpUnCompressedLexicon.cs b/sources/Interop/Windows/Windows/um/sapi/SpUnCompressedLexicon.cs index 21b1f72d6a..9aa65aaa67 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpUnCompressedLexicon.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpUnCompressedLexicon.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("C9E37C15-DF92-4727-85D6-72E5EEB6995A")] -public partial struct SpUnCompressedLexicon +public unsafe partial struct SpUnCompressedLexicon : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpUnCompressedLexicon)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpVoice.cs b/sources/Interop/Windows/Windows/um/sapi/SpVoice.cs index 8be206eb50..20eddd7907 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpVoice.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpVoice.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("96749377-3391-11D2-9EE3-00C04F797396")] -public partial struct SpVoice +public unsafe partial struct SpVoice : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpVoice)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/SpWaveFormatEx.cs b/sources/Interop/Windows/Windows/um/sapi/SpWaveFormatEx.cs index 4e8a26fa49..609e11c9fd 100644 --- a/sources/Interop/Windows/Windows/um/sapi/SpWaveFormatEx.cs +++ b/sources/Interop/Windows/Windows/um/sapi/SpWaveFormatEx.cs @@ -3,12 +3,16 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.CLSID; namespace TerraFX.Interop.Windows; /// [Guid("C79A574C-63BE-44B9-801F-283F87F898BE")] -public partial struct SpWaveFormatEx +public unsafe partial struct SpWaveFormatEx : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_SpWaveFormatEx)); } diff --git a/sources/Interop/Windows/Windows/um/sapi/_ISpeechRecoContextEvents.cs b/sources/Interop/Windows/Windows/um/sapi/_ISpeechRecoContextEvents.cs index 1e87494348..6cfe692267 100644 --- a/sources/Interop/Windows/Windows/um/sapi/_ISpeechRecoContextEvents.cs +++ b/sources/Interop/Windows/Windows/um/sapi/_ISpeechRecoContextEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7B8FCB42-0E9D-4F00-A048-7B04D6179D3D")] [NativeTypeName("struct _ISpeechRecoContextEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct _ISpeechRecoContextEvents : _ISpeechRecoContextEvents.Interface +public unsafe partial struct _ISpeechRecoContextEvents : _ISpeechRecoContextEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in DIID__ISpeechRecoContextEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/sapi/_ISpeechVoiceEvents.cs b/sources/Interop/Windows/Windows/um/sapi/_ISpeechVoiceEvents.cs index 37acc68246..681ec038d0 100644 --- a/sources/Interop/Windows/Windows/um/sapi/_ISpeechVoiceEvents.cs +++ b/sources/Interop/Windows/Windows/um/sapi/_ISpeechVoiceEvents.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A372ACD1-3BEF-4BBD-8FFB-CB3E2B416AF8")] [NativeTypeName("struct _ISpeechVoiceEvents : IDispatch")] [NativeInheritance("IDispatch")] -public unsafe partial struct _ISpeechVoiceEvents : _ISpeechVoiceEvents.Interface +public unsafe partial struct _ISpeechVoiceEvents : _ISpeechVoiceEvents.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in DIID__ISpeechVoiceEvents)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs b/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs index cb1acba986..c2f7de0728 100644 --- a/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs +++ b/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static partial class DEFAULT { [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_A \"Default TLS SSP\"")] - public static ReadOnlySpan DEFAULT_TLS_SSP_NAME_A => new byte[] { 0x44, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x20, 0x54, 0x4C, 0x53, 0x20, 0x53, 0x53, 0x50, 0x00 }; + public static ReadOnlySpan DEFAULT_TLS_SSP_NAME_A => "Default TLS SSP"u8; [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_W L\"Default TLS SSP\"")] public const string DEFAULT_TLS_SSP_NAME_W = "Default TLS SSP"; diff --git a/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs b/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs index 16312795bd..d43f95d2ef 100644 --- a/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs +++ b/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static partial class SCHANNEL { [NativeTypeName("#define SCHANNEL_NAME_A \"Schannel\"")] - public static ReadOnlySpan SCHANNEL_NAME_A => new byte[] { 0x53, 0x63, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x00 }; + public static ReadOnlySpan SCHANNEL_NAME_A => "Schannel"u8; [NativeTypeName("#define SCHANNEL_NAME_W L\"Schannel\"")] public const string SCHANNEL_NAME_W = "Schannel"; diff --git a/sources/Interop/Windows/Windows/um/schannel/SUBSCRIBE_GENERIC_TLS_EXTENSION.cs b/sources/Interop/Windows/Windows/um/schannel/SUBSCRIBE_GENERIC_TLS_EXTENSION.cs index 9c917a29de..bad868faad 100644 --- a/sources/Interop/Windows/Windows/um/schannel/SUBSCRIBE_GENERIC_TLS_EXTENSION.cs +++ b/sources/Interop/Windows/Windows/um/schannel/SUBSCRIBE_GENERIC_TLS_EXTENSION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _Subscriptions_e__FixedBuffer { public TLS_EXTENSION_SUBSCRIPTION e0; + [UnscopedRef] public ref TLS_EXTENSION_SUBSCRIPTION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref TLS_EXTENSION_SUBSCRIPTION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/schannel/Windows.cs b/sources/Interop/Windows/Windows/um/schannel/Windows.cs index cc87211a17..1eedc98a88 100644 --- a/sources/Interop/Windows/Windows/um/schannel/Windows.cs +++ b/sources/Interop/Windows/Windows/um/schannel/Windows.cs @@ -34,31 +34,31 @@ public static unsafe partial class Windows public static extern int SslGetServerIdentity([NativeTypeName("PBYTE")] byte* ClientHello, [NativeTypeName("DWORD")] uint ClientHelloSize, [NativeTypeName("PBYTE *")] byte** ServerIdentity, [NativeTypeName("PDWORD")] uint* ServerIdentitySize, [NativeTypeName("DWORD")] uint Flags); [NativeTypeName("#define UNISP_NAME_A \"Microsoft Unified Security Protocol Provider\"")] - public static ReadOnlySpan UNISP_NAME_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x55, 0x6E, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x50, 0x72, 0x6F, 0x74, 0x6F, 0x63, 0x6F, 0x6C, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan UNISP_NAME_A => "Microsoft Unified Security Protocol Provider"u8; [NativeTypeName("#define UNISP_NAME_W L\"Microsoft Unified Security Protocol Provider\"")] public const string UNISP_NAME_W = "Microsoft Unified Security Protocol Provider"; [NativeTypeName("#define SSL2SP_NAME_A \"Microsoft SSL 2.0\"")] - public static ReadOnlySpan SSL2SP_NAME_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x53, 0x53, 0x4C, 0x20, 0x32, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan SSL2SP_NAME_A => "Microsoft SSL 2.0"u8; [NativeTypeName("#define SSL2SP_NAME_W L\"Microsoft SSL 2.0\"")] public const string SSL2SP_NAME_W = "Microsoft SSL 2.0"; [NativeTypeName("#define SSL3SP_NAME_A \"Microsoft SSL 3.0\"")] - public static ReadOnlySpan SSL3SP_NAME_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x53, 0x53, 0x4C, 0x20, 0x33, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan SSL3SP_NAME_A => "Microsoft SSL 3.0"u8; [NativeTypeName("#define SSL3SP_NAME_W L\"Microsoft SSL 3.0\"")] public const string SSL3SP_NAME_W = "Microsoft SSL 3.0"; [NativeTypeName("#define TLS1SP_NAME_A \"Microsoft TLS 1.0\"")] - public static ReadOnlySpan TLS1SP_NAME_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x54, 0x4C, 0x53, 0x20, 0x31, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan TLS1SP_NAME_A => "Microsoft TLS 1.0"u8; [NativeTypeName("#define TLS1SP_NAME_W L\"Microsoft TLS 1.0\"")] public const string TLS1SP_NAME_W = "Microsoft TLS 1.0"; [NativeTypeName("#define PCT1SP_NAME_A \"Microsoft PCT 1.0\"")] - public static ReadOnlySpan PCT1SP_NAME_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x50, 0x43, 0x54, 0x20, 0x31, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan PCT1SP_NAME_A => "Microsoft PCT 1.0"u8; [NativeTypeName("#define PCT1SP_NAME_W L\"Microsoft PCT 1.0\"")] public const string PCT1SP_NAME_W = "Microsoft PCT 1.0"; diff --git a/sources/Interop/Windows/Windows/um/servprov/IServiceProvider.cs b/sources/Interop/Windows/Windows/um/servprov/IServiceProvider.cs index feaec3219c..f9204d0a25 100644 --- a/sources/Interop/Windows/Windows/um/servprov/IServiceProvider.cs +++ b/sources/Interop/Windows/Windows/um/servprov/IServiceProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6D5140C1-7436-11CE-8034-00AA006009FA")] [NativeTypeName("struct IServiceProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IServiceProvider : IServiceProvider.Interface +public unsafe partial struct IServiceProvider : IServiceProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IServiceProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shappmgr/IAppPublisher.cs b/sources/Interop/Windows/Windows/um/shappmgr/IAppPublisher.cs index 095935fddf..f7b162b92e 100644 --- a/sources/Interop/Windows/Windows/um/shappmgr/IAppPublisher.cs +++ b/sources/Interop/Windows/Windows/um/shappmgr/IAppPublisher.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("07250A10-9CF9-11D1-9076-006008059382")] [NativeTypeName("struct IAppPublisher : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAppPublisher : IAppPublisher.Interface +public unsafe partial struct IAppPublisher : IAppPublisher.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAppPublisher)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shappmgr/IEnumPublishedApps.cs b/sources/Interop/Windows/Windows/um/shappmgr/IEnumPublishedApps.cs index e282876be6..bbdf6c78ea 100644 --- a/sources/Interop/Windows/Windows/um/shappmgr/IEnumPublishedApps.cs +++ b/sources/Interop/Windows/Windows/um/shappmgr/IEnumPublishedApps.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0B124F8C-91F0-11D1-B8B5-006008059382")] [NativeTypeName("struct IEnumPublishedApps : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumPublishedApps : IEnumPublishedApps.Interface +public unsafe partial struct IEnumPublishedApps : IEnumPublishedApps.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumPublishedApps)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp.cs b/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp.cs index 3cb080b017..c69a26f139 100644 --- a/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp.cs +++ b/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1BC752E0-9046-11D1-B8B3-006008059382")] [NativeTypeName("struct IPublishedApp : IShellApp")] [NativeInheritance("IShellApp")] -public unsafe partial struct IPublishedApp : IPublishedApp.Interface +public unsafe partial struct IPublishedApp : IPublishedApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPublishedApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp2.cs b/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp2.cs index 1850514701..12f88462d9 100644 --- a/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp2.cs +++ b/sources/Interop/Windows/Windows/um/shappmgr/IPublishedApp2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("12B81347-1B3A-4A04-AA61-3F768B67FD7E")] [NativeTypeName("struct IPublishedApp2 : IPublishedApp")] [NativeInheritance("IPublishedApp")] -public unsafe partial struct IPublishedApp2 : IPublishedApp2.Interface +public unsafe partial struct IPublishedApp2 : IPublishedApp2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPublishedApp2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shappmgr/IShellApp.cs b/sources/Interop/Windows/Windows/um/shappmgr/IShellApp.cs index 89b0cd260a..a9e4951e9b 100644 --- a/sources/Interop/Windows/Windows/um/shappmgr/IShellApp.cs +++ b/sources/Interop/Windows/Windows/um/shappmgr/IShellApp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3E14960-935F-11D1-B8B8-006008059382")] [NativeTypeName("struct IShellApp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellApp : IShellApp.Interface +public unsafe partial struct IShellApp : IShellApp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellApp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/CIE4ConnectionPoint.cs b/sources/Interop/Windows/Windows/um/shdeprecated/CIE4ConnectionPoint.cs index a11c1c050c..47d0ea4e24 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/CIE4ConnectionPoint.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/CIE4ConnectionPoint.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000000-0000-0000-0000-000000000000")] [NativeTypeName("struct CIE4ConnectionPoint : IConnectionPoint")] [NativeInheritance("IConnectionPoint")] -public unsafe partial struct CIE4ConnectionPoint : CIE4ConnectionPoint.Interface +public unsafe partial struct CIE4ConnectionPoint : CIE4ConnectionPoint.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_CIE4ConnectionPoint)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService.cs index a404361bb6..0da9fdcd0b 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("02BA3B52-0547-11D1-B833-00C04FC9B31F")] [NativeTypeName("struct IBrowserService : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBrowserService : IBrowserService.Interface +public unsafe partial struct IBrowserService : IBrowserService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBrowserService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService2.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService2.cs index adeebc7afe..3fa717af88 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService2.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("68BD21CC-438B-11D2-A560-00A0C92DBFE8")] [NativeTypeName("struct IBrowserService2 : IBrowserService")] [NativeInheritance("IBrowserService")] -public unsafe partial struct IBrowserService2 : IBrowserService2.Interface +public unsafe partial struct IBrowserService2 : IBrowserService2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBrowserService2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService3.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService3.cs index 09d40c4445..52354a1f40 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService3.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("27D7CE21-762D-48F3-86F3-40E2FD3749C4")] [NativeTypeName("struct IBrowserService3 : IBrowserService2")] [NativeInheritance("IBrowserService2")] -public unsafe partial struct IBrowserService3 : IBrowserService3.Interface +public unsafe partial struct IBrowserService3 : IBrowserService3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBrowserService3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService4.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService4.cs index d1ac7186ec..5a0d8d5aff 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService4.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IBrowserService4.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("639F1BFF-E135-4096-ABD8-E0F504D649A4")] [NativeTypeName("struct IBrowserService4 : IBrowserService3")] [NativeInheritance("IBrowserService3")] -public unsafe partial struct IBrowserService4 : IBrowserService4.Interface +public unsafe partial struct IBrowserService4 : IBrowserService4.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBrowserService4)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupport.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupport.cs index 3b1c8159bf..f6f2dc13f2 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupport.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0D7D1D00-6FC0-11D0-A974-00C04FD705A2")] [NativeTypeName("struct IExpDispSupport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExpDispSupport : IExpDispSupport.Interface +public unsafe partial struct IExpDispSupport : IExpDispSupport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExpDispSupport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupportXP.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupportXP.cs index 34ebd073b2..71c46aae24 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupportXP.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IExpDispSupportXP.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2F0DD58C-F789-4F14-99FB-9293B3C9C212")] [NativeTypeName("struct IExpDispSupportXP : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IExpDispSupportXP : IExpDispSupportXP.Interface +public unsafe partial struct IExpDispSupportXP : IExpDispSupportXP.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IExpDispSupportXP)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/IShellService.cs b/sources/Interop/Windows/Windows/um/shdeprecated/IShellService.cs index 45e8f7acf7..8be32e0b9c 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/IShellService.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/IShellService.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5836FB00-8187-11CF-A12B-00AA004AE837")] [NativeTypeName("struct IShellService : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellService : IShellService.Interface +public unsafe partial struct IShellService : IShellService.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellService)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/ITrackShellMenu.cs b/sources/Interop/Windows/Windows/um/shdeprecated/ITrackShellMenu.cs index f1f936c111..4694f4c722 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/ITrackShellMenu.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/ITrackShellMenu.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8278F932-2A3E-11D2-838F-00C04FD918D0")] [NativeTypeName("struct ITrackShellMenu : IShellMenu")] [NativeInheritance("IShellMenu")] -public unsafe partial struct ITrackShellMenu : ITrackShellMenu.Interface +public unsafe partial struct ITrackShellMenu : ITrackShellMenu.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITrackShellMenu)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/ITravelEntry.cs b/sources/Interop/Windows/Windows/um/shdeprecated/ITravelEntry.cs index 7ba420e5c0..0663ef2c03 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/ITravelEntry.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/ITravelEntry.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F46EDB3B-BC2F-11D0-9412-00AA00A3EBD3")] [NativeTypeName("struct ITravelEntry : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITravelEntry : ITravelEntry.Interface +public unsafe partial struct ITravelEntry : ITravelEntry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITravelEntry)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/ITravelLog.cs b/sources/Interop/Windows/Windows/um/shdeprecated/ITravelLog.cs index f48697e442..86932b9fa7 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/ITravelLog.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/ITravelLog.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("66A9CB08-4802-11D2-A561-00A0C92DBFE8")] [NativeTypeName("struct ITravelLog : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITravelLog : ITravelLog.Interface +public unsafe partial struct ITravelLog : ITravelLog.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITravelLog)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/TrackShellMenu.cs b/sources/Interop/Windows/Windows/um/shdeprecated/TrackShellMenu.cs index 245cc441df..c04607df4a 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/TrackShellMenu.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/TrackShellMenu.cs @@ -3,12 +3,16 @@ // Ported from um/shdeprecated.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("8278F931-2A3E-11D2-838F-00C04FD918D0")] -public partial struct TrackShellMenu +public unsafe partial struct TrackShellMenu : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_TrackShellMenu)); } diff --git a/sources/Interop/Windows/Windows/um/shellapi/APPBARDATA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/APPBARDATA.Manual.cs index 5561c9d21f..6fe0eee627 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/APPBARDATA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/APPBARDATA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,92 +34,104 @@ public static uint SizeOf public APPBARDATA64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HWND hWnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hWnd, 1)); + return ref _value32.hWnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hWnd, 1)); + return ref _value64.hWnd; } } } + [UnscopedRef] public ref uint uCallbackMessage { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uCallbackMessage, 1)); + return ref _value32.uCallbackMessage; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uCallbackMessage, 1)); + return ref _value64.uCallbackMessage; } } } + [UnscopedRef] public ref uint uEdge { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uEdge, 1)); + return ref _value32.uEdge; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uEdge, 1)); + return ref _value64.uEdge; } } } + [UnscopedRef] public ref RECT rc { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.rc, 1)); + return ref _value32.rc; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.rc, 1)); + return ref _value64.rc; } } } + [UnscopedRef] public ref LPARAM lParam { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.lParam, 1)); + return ref _value32.lParam; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.lParam, 1)); + return ref _value64.lParam; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/ASSOCIATIONELEMENT.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/ASSOCIATIONELEMENT.Manual.cs index 01711bfa07..64ead78a86 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/ASSOCIATIONELEMENT.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/ASSOCIATIONELEMENT.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,48 +33,54 @@ public static uint SizeOf [FieldOffset(0)] public ASSOCIATIONELEMENT64 _value64; + [UnscopedRef] public ref ASSOCCLASS ac { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.ac, 1)); + return ref _value32.ac; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.ac, 1)); + return ref _value64.ac; } } } + [UnscopedRef] public ref HKEY hkClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hkClass, 1)); + return ref _value32.hkClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hkClass, 1)); + return ref _value64.hkClass; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* pszClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszClass; + return ref _value32.pszClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszClass; + return ref _value64.pszClass; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOA.Manual.cs index 2c1dd15b69..59e79c4e76 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,79 +33,89 @@ public static uint SizeOf [FieldOffset(0)] public DRAGINFO64A _value64; + [UnscopedRef] public ref uint uSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uSize, 1)); + return ref _value32.uSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uSize, 1)); + return ref _value64.uSize; } } } + [UnscopedRef] public ref POINT pt { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.pt, 1)); + return ref _value32.pt; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.pt, 1)); + return ref _value64.pt; } } } + [UnscopedRef] public ref BOOL fNC { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fNC, 1)); + return ref _value32.fNC; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fNC, 1)); + return ref _value64.fNC; } } } [NativeTypeName("PZZSTR")] + [UnscopedRef] public ref sbyte* lpFileList { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpFileList; + return ref _value32.lpFileList; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpFileList; + return ref _value64.lpFileList; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint grfKeyState { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.grfKeyState, 1)); + return ref _value32.grfKeyState; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.grfKeyState, 1)); + return ref _value64.grfKeyState; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOW.Manual.cs index 8a36df7718..3b567e29e1 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/DRAGINFOW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,79 +33,89 @@ public static uint SizeOf [FieldOffset(0)] public DRAGINFO64W _value64; + [UnscopedRef] public ref uint uSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uSize, 1)); + return ref _value32.uSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uSize, 1)); + return ref _value64.uSize; } } } + [UnscopedRef] public ref POINT pt { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.pt, 1)); + return ref _value32.pt; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.pt, 1)); + return ref _value64.pt; } } } + [UnscopedRef] public ref BOOL fNC { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fNC, 1)); + return ref _value32.fNC; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fNC, 1)); + return ref _value64.fNC; } } } [NativeTypeName("PZZWSTR")] + [UnscopedRef] public ref ushort* lpFileList { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpFileList; + return ref _value32.lpFileList; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpFileList; + return ref _value64.lpFileList; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint grfKeyState { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.grfKeyState, 1)); + return ref _value32.grfKeyState; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.grfKeyState, 1)); + return ref _value64.grfKeyState; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32A.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32A.Manual.cs index bfaa21fa74..ed86ad92e3 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32A.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,21 +51,23 @@ public unsafe partial struct NOTIFYICONDATA32A public HICON hBalloonIcon; + [UnscopedRef] public ref uint uTimeout { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uTimeout, 1)); + return ref Anonymous.uTimeout; } } + [UnscopedRef] public ref uint uVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uVersion, 1)); + return ref Anonymous.uVersion; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32W.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32W.Manual.cs index f7d8874f5d..be4664ee39 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA32W.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,21 +51,23 @@ public unsafe partial struct NOTIFYICONDATA32W public HICON hBalloonIcon; + [UnscopedRef] public ref uint uTimeout { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uTimeout, 1)); + return ref Anonymous.uTimeout; } } + [UnscopedRef] public ref uint uVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uVersion, 1)); + return ref Anonymous.uVersion; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64A.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64A.Manual.cs index e8a2a1a153..9271fffb9e 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64A.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,21 +50,23 @@ public unsafe partial struct NOTIFYICONDATA64A public HICON hBalloonIcon; + [UnscopedRef] public ref uint uTimeout { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uTimeout, 1)); + return ref Anonymous.uTimeout; } } + [UnscopedRef] public ref uint uVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uVersion, 1)); + return ref Anonymous.uVersion; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64W.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64W.Manual.cs index 0fcbc2a881..48351806e6 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATA64W.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,21 +50,23 @@ public unsafe partial struct NOTIFYICONDATA64W public HICON hBalloonIcon; + [UnscopedRef] public ref uint uTimeout { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uTimeout, 1)); + return ref Anonymous.uTimeout; } } + [UnscopedRef] public ref uint uVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uVersion, 1)); + return ref Anonymous.uVersion; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAA.Manual.cs index 8b7ea249de..8ee0c9ea75 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAA.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,92 +35,104 @@ public static uint SizeOf public NOTIFYICONDATA64A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HWND hWnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hWnd, 1)); + return ref _value32.hWnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hWnd, 1)); + return ref _value64.hWnd; } } } + [UnscopedRef] public ref uint uID { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uID, 1)); + return ref _value32.uID; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uID, 1)); + return ref _value64.uID; } } } + [UnscopedRef] public ref uint uFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uFlags, 1)); + return ref _value32.uFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uFlags, 1)); + return ref _value64.uFlags; } } } + [UnscopedRef] public ref uint uCallbackMessage { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uCallbackMessage, 1)); + return ref _value32.uCallbackMessage; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uCallbackMessage, 1)); + return ref _value64.uCallbackMessage; } } } + [UnscopedRef] public ref HICON hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hIcon, 1)); + return ref _value32.hIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hIcon, 1)); + return ref _value64.hIcon; } } } @@ -140,33 +154,37 @@ public Span szTip } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwState { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwState, 1)); + return ref _value32.dwState; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwState, 1)); + return ref _value64.dwState; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwStateMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwStateMask, 1)); + return ref _value32.dwStateMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwStateMask, 1)); + return ref _value64.dwStateMask; } } } @@ -204,53 +222,61 @@ public Span szInfoTitle } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwInfoFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwInfoFlags, 1)); + return ref _value32.dwInfoFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwInfoFlags, 1)); + return ref _value64.dwInfoFlags; } } } + [UnscopedRef] public ref Guid guidItem { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.guidItem, 1)); + return ref _value32.guidItem; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.guidItem, 1)); + return ref _value64.guidItem; } } } + [UnscopedRef] public ref HICON hBalloonIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hBalloonIcon, 1)); + return ref _value32.hBalloonIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hBalloonIcon, 1)); + return ref _value64.hBalloonIcon; } } } + [UnscopedRef] public ref uint uTimeout { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -264,8 +290,10 @@ public ref uint uTimeout } } + [UnscopedRef] public ref uint uVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -278,5 +306,4 @@ public ref uint uVersion } } } - } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAW.Manual.cs index 534137e04d..d5599e878e 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONDATAW.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,92 +35,104 @@ public static uint SizeOf public NOTIFYICONDATA64W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HWND hWnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hWnd, 1)); + return ref _value32.hWnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hWnd, 1)); + return ref _value64.hWnd; } } } + [UnscopedRef] public ref uint uID { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uID, 1)); + return ref _value32.uID; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uID, 1)); + return ref _value64.uID; } } } + [UnscopedRef] public ref uint uFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uFlags, 1)); + return ref _value32.uFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uFlags, 1)); + return ref _value64.uFlags; } } } + [UnscopedRef] public ref uint uCallbackMessage { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uCallbackMessage, 1)); + return ref _value32.uCallbackMessage; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uCallbackMessage, 1)); + return ref _value64.uCallbackMessage; } } } + [UnscopedRef] public ref HICON hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hIcon, 1)); + return ref _value32.hIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hIcon, 1)); + return ref _value64.hIcon; } } } @@ -140,33 +154,37 @@ public Span szTip } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwState { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwState, 1)); + return ref _value32.dwState; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwState, 1)); + return ref _value64.dwState; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwStateMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwStateMask, 1)); + return ref _value32.dwStateMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwStateMask, 1)); + return ref _value64.dwStateMask; } } } @@ -204,53 +222,61 @@ public Span szInfoTitle } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwInfoFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwInfoFlags, 1)); + return ref _value32.dwInfoFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwInfoFlags, 1)); + return ref _value64.dwInfoFlags; } } } + [UnscopedRef] public ref Guid guidItem { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.guidItem, 1)); + return ref _value32.guidItem; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.guidItem, 1)); + return ref _value64.guidItem; } } } + [UnscopedRef] public ref HICON hBalloonIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hBalloonIcon, 1)); + return ref _value32.hBalloonIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hBalloonIcon, 1)); + return ref _value64.hBalloonIcon; } } } + [UnscopedRef] public ref uint uTimeout { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -264,8 +290,10 @@ public ref uint uTimeout } } + [UnscopedRef] public ref uint uVersion { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -278,5 +306,4 @@ public ref uint uVersion } } } - } diff --git a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONIDENTIFIER.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONIDENTIFIER.Manual.cs index 722296589d..b17c34f208 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONIDENTIFIER.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/NOTIFYICONIDENTIFIER.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,62 +35,70 @@ public static uint SizeOf public NOTIFYICONIDENTIFIER64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HWND hWnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hWnd, 1)); + return ref _value32.hWnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hWnd, 1)); + return ref _value64.hWnd; } } } + [UnscopedRef] public ref uint uID { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uID, 1)); + return ref _value32.uID; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uID, 1)); + return ref _value64.uID; } } } + [UnscopedRef] public ref Guid guidItem { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.guidItem, 1)); + return ref _value32.guidItem; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.guidItem, 1)); + return ref _value64.guidItem; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOA.Manual.cs index 28bf71645e..166d15ed73 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,79 +34,89 @@ public static uint SizeOf public OPEN_PRINTER_PROPS_INFO64A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwSize, 1)); + return ref _value32.dwSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwSize, 1)); + return ref _value64.dwSize; } } } [NativeTypeName("LPSTR")] + [UnscopedRef] public ref sbyte* pszSheetName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszSheetName; + return ref _value32.pszSheetName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszSheetName; + return ref _value64.pszSheetName; } } } + [UnscopedRef] public ref uint uSheetIndex { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uSheetIndex, 1)); + return ref _value32.uSheetIndex; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uSheetIndex, 1)); + return ref _value64.uSheetIndex; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwFlags, 1)); + return ref _value32.dwFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwFlags, 1)); + return ref _value64.dwFlags; } } } + [UnscopedRef] public ref BOOL bModal { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.bModal, 1)); + return ref _value32.bModal; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.bModal, 1)); + return ref _value64.bModal; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOW.Manual.cs index 0be1ac2204..97ff648b59 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/OPEN_PRINTER_PROPS_INFOW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,79 +34,89 @@ public static uint SizeOf public OPEN_PRINTER_PROPS_INFO64W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwSize, 1)); + return ref _value32.dwSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwSize, 1)); + return ref _value64.dwSize; } } } [NativeTypeName("LPWSTR")] + [UnscopedRef] public ref ushort* pszSheetName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszSheetName; + return ref _value32.pszSheetName; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszSheetName; + return ref _value64.pszSheetName; } } } + [UnscopedRef] public ref uint uSheetIndex { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.uSheetIndex, 1)); + return ref _value32.uSheetIndex; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.uSheetIndex, 1)); + return ref _value64.uSheetIndex; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwFlags, 1)); + return ref _value32.dwFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwFlags, 1)); + return ref _value64.dwFlags; } } } + [UnscopedRef] public ref BOOL bModal { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.bModal, 1)); + return ref _value32.bModal; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.bModal, 1)); + return ref _value64.bModal; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHCREATEPROCESSINFOW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHCREATEPROCESSINFOW.Manual.cs index 71cd5a3ff8..b2c4bc71dd 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHCREATEPROCESSINFOW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHCREATEPROCESSINFOW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,206 +34,232 @@ public static uint SizeOf public SHCREATEPROCESSINFO64W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("ULONG")] + [UnscopedRef] public ref uint fMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fMask, 1)); + return ref _value32.fMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fMask, 1)); + return ref _value64.fMask; } } } + [UnscopedRef] public ref HWND hwnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwnd, 1)); + return ref _value32.hwnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwnd, 1)); + return ref _value64.hwnd; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* pszFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszFile; + return ref _value32.pszFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszFile; + return ref _value64.pszFile; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* pszParameters { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszParameters; + return ref _value32.pszParameters; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszParameters; + return ref _value64.pszParameters; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* pszCurrentDirectory { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszCurrentDirectory; + return ref _value32.pszCurrentDirectory; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszCurrentDirectory; + return ref _value64.pszCurrentDirectory; } } } + [UnscopedRef] public ref HANDLE hUserToken { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hUserToken, 1)); + return ref _value32.hUserToken; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hUserToken, 1)); + return ref _value64.hUserToken; } } } [NativeTypeName("LPSECURITY_ATTRIBUTES")] + [UnscopedRef] public ref SECURITY_ATTRIBUTES* lpProcessAttributes { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpProcessAttributes; + return ref _value32.lpProcessAttributes; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpProcessAttributes; + return ref _value64.lpProcessAttributes; } } } [NativeTypeName("LPSECURITY_ATTRIBUTES")] + [UnscopedRef] public ref SECURITY_ATTRIBUTES* lpThreadAttributes { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpThreadAttributes; + return ref _value32.lpThreadAttributes; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpThreadAttributes; + return ref _value64.lpThreadAttributes; } } } + [UnscopedRef] public ref BOOL bInheritHandles { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.bInheritHandles, 1)); + return ref _value32.bInheritHandles; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.bInheritHandles, 1)); + return ref _value64.bInheritHandles; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwCreationFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwCreationFlags, 1)); + return ref _value32.dwCreationFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwCreationFlags, 1)); + return ref _value64.dwCreationFlags; } } } [NativeTypeName("LPSTARTUPINFOW")] + [UnscopedRef] public ref STARTUPINFOW* lpStartupInfo { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpStartupInfo; + return ref _value32.lpStartupInfo; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpStartupInfo; + return ref _value64.lpStartupInfo; } } } [NativeTypeName("LPPROCESS_INFORMATION")] + [UnscopedRef] public ref PROCESS_INFORMATION* lpProcessInformation { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpProcessInformation; + return ref _value32.lpProcessInformation; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpProcessInformation; + return ref _value64.lpProcessInformation; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32A.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32A.Manual.cs index 25dded867f..f6e74e8dac 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32A.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,21 +51,23 @@ public unsafe partial struct SHELLEXECUTEINFO32A public HANDLE hProcess; + [UnscopedRef] public ref HANDLE hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hIcon, 1)); + return ref Anonymous.hIcon; } } + [UnscopedRef] public ref HANDLE hMonitor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hMonitor, 1)); + return ref Anonymous.hMonitor; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32W.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32W.Manual.cs index 71506c39cf..2dfd02fab8 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO32W.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,21 +51,23 @@ public unsafe partial struct SHELLEXECUTEINFO32W public HANDLE hProcess; + [UnscopedRef] public ref HANDLE hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hIcon, 1)); + return ref Anonymous.hIcon; } } + [UnscopedRef] public ref HANDLE hMonitor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hMonitor, 1)); + return ref Anonymous.hMonitor; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64A.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64A.Manual.cs index b42bd080d6..2dd35202d9 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64A.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64A.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,21 +50,23 @@ public unsafe partial struct SHELLEXECUTEINFO64A public HANDLE hProcess; + [UnscopedRef] public ref HANDLE hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hIcon, 1)); + return ref Anonymous.hIcon; } } + [UnscopedRef] public ref HANDLE hMonitor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hMonitor, 1)); + return ref Anonymous.hMonitor; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64W.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64W.Manual.cs index fcea96582b..c8ba0a27be 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64W.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFO64W.Manual.cs @@ -3,6 +3,7 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,21 +50,23 @@ public unsafe partial struct SHELLEXECUTEINFO64W public HANDLE hProcess; + [UnscopedRef] public ref HANDLE hIcon { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hIcon, 1)); + return ref Anonymous.hIcon; } } + [UnscopedRef] public ref HANDLE hMonitor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hMonitor, 1)); + return ref Anonymous.hMonitor; } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOA.Manual.cs index 0d353cbe52..bfc29e70e3 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,225 +34,255 @@ public static uint SizeOf public SHELLEXECUTEINFO64A _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("ULONG")] + [UnscopedRef] public ref uint fMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fMask, 1)); + return ref _value32.fMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fMask, 1)); + return ref _value64.fMask; } } } + [UnscopedRef] public ref HWND hwnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwnd, 1)); + return ref _value32.hwnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwnd, 1)); + return ref _value64.hwnd; } } } [NativeTypeName("LPCSTR")] + [UnscopedRef] public ref sbyte* lpVerb { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpVerb; + return ref _value32.lpVerb; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpVerb; + return ref _value64.lpVerb; } } } [NativeTypeName("LPCSTR")] + [UnscopedRef] public ref sbyte* lpFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpFile; + return ref _value32.lpFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpFile; + return ref _value64.lpFile; } } } [NativeTypeName("LPCSTR")] + [UnscopedRef] public ref sbyte* lpParameters { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpParameters; + return ref _value32.lpParameters; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpParameters; + return ref _value64.lpParameters; } } } [NativeTypeName("LPCSTR")] + [UnscopedRef] public ref sbyte* lpDirectory { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpDirectory; + return ref _value32.lpDirectory; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpDirectory; + return ref _value64.lpDirectory; } } } + [UnscopedRef] public ref int nShow { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.nShow, 1)); + return ref _value32.nShow; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.nShow, 1)); + return ref _value64.nShow; } } } + [UnscopedRef] public ref HINSTANCE hInstApp { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hInstApp, 1)); + return ref _value32.hInstApp; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hInstApp, 1)); + return ref _value64.hInstApp; } } } + [UnscopedRef] public ref void* lpIDList { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpIDList; + return ref _value32.lpIDList; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpIDList; + return ref _value64.lpIDList; } } } [NativeTypeName("LPCSTR")] + [UnscopedRef] public ref sbyte* lpClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpClass; + return ref _value32.lpClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpClass; + return ref _value64.lpClass; } } } + [UnscopedRef] public ref HKEY hkeyClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hkeyClass, 1)); + return ref _value32.hkeyClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hkeyClass, 1)); + return ref _value64.hkeyClass; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwHotKey { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwHotKey, 1)); + return ref _value32.dwHotKey; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwHotKey, 1)); + return ref _value64.dwHotKey; } } } + [UnscopedRef] public ref HANDLE hProcess { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hProcess, 1)); + return ref _value32.hProcess; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hProcess, 1)); + return ref _value64.hProcess; } } } + [UnscopedRef] public ref HANDLE hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -264,8 +296,10 @@ public ref HANDLE hIcon } } + [UnscopedRef] public ref HANDLE hMonitor { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -278,5 +312,4 @@ public ref HANDLE hMonitor } } } - } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOW.Manual.cs index ebf596c55c..dc2b1471fc 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHELLEXECUTEINFOW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,225 +34,255 @@ public static uint SizeOf public SHELLEXECUTEINFO64W _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("ULONG")] + [UnscopedRef] public ref uint fMask { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fMask, 1)); + return ref _value32.fMask; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fMask, 1)); + return ref _value64.fMask; } } } + [UnscopedRef] public ref HWND hwnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwnd, 1)); + return ref _value32.hwnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwnd, 1)); + return ref _value64.hwnd; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* lpVerb { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpVerb; + return ref _value32.lpVerb; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpVerb; + return ref _value64.lpVerb; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* lpFile { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpFile; + return ref _value32.lpFile; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpFile; + return ref _value64.lpFile; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* lpParameters { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpParameters; + return ref _value32.lpParameters; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpParameters; + return ref _value64.lpParameters; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* lpDirectory { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpDirectory; + return ref _value32.lpDirectory; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpDirectory; + return ref _value64.lpDirectory; } } } + [UnscopedRef] public ref int nShow { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.nShow, 1)); + return ref _value32.nShow; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.nShow, 1)); + return ref _value64.nShow; } } } + [UnscopedRef] public ref HINSTANCE hInstApp { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hInstApp, 1)); + return ref _value32.hInstApp; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hInstApp, 1)); + return ref _value64.hInstApp; } } } + [UnscopedRef] public ref void* lpIDList { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpIDList; + return ref _value32.lpIDList; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpIDList; + return ref _value64.lpIDList; } } } [NativeTypeName("LPCWSTR")] + [UnscopedRef] public ref ushort* lpClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpClass; + return ref _value32.lpClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpClass; + return ref _value64.lpClass; } } } + [UnscopedRef] public ref HKEY hkeyClass { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hkeyClass, 1)); + return ref _value32.hkeyClass; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hkeyClass, 1)); + return ref _value64.hkeyClass; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwHotKey { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwHotKey, 1)); + return ref _value32.dwHotKey; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwHotKey, 1)); + return ref _value64.dwHotKey; } } } + [UnscopedRef] public ref HANDLE hProcess { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hProcess, 1)); + return ref _value32.hProcess; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hProcess, 1)); + return ref _value64.hProcess; } } } + [UnscopedRef] public ref HANDLE hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -264,8 +296,10 @@ public ref HANDLE hIcon } } + [UnscopedRef] public ref HANDLE hMonitor { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -278,5 +312,4 @@ public ref HANDLE hMonitor } } } - } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOA.Manual.cs index f9f3b591f8..47cfc1c658 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOA.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,55 +34,63 @@ public static uint SizeOf [FieldOffset(0)] public SHFILEINFO64A _value64; + [UnscopedRef] public ref HICON hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hIcon, 1)); + return ref _value32.hIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hIcon, 1)); + return ref _value64.hIcon; } } } + [UnscopedRef] public ref int iIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.iIcon, 1)); + return ref _value32.iIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.iIcon, 1)); + return ref _value64.iIcon; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwAttributes { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwAttributes, 1)); + return ref _value32.dwAttributes; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwAttributes, 1)); + return ref _value64.dwAttributes; } } } [NativeTypeName("CHAR [260]")] + [UnscopedRef] public Span szDisplayName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -95,8 +105,10 @@ public Span szDisplayName } [NativeTypeName("CHAR [80]")] + [UnscopedRef] public Span szTypeName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOW.Manual.cs index ee087c732d..8ee2a148c9 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHFILEINFOW.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,55 +34,63 @@ public static uint SizeOf [FieldOffset(0)] public SHFILEINFO64W _value64; + [UnscopedRef] public ref HICON hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hIcon, 1)); + return ref _value32.hIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hIcon, 1)); + return ref _value64.hIcon; } } } + [UnscopedRef] public ref int iIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.iIcon, 1)); + return ref _value32.iIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.iIcon, 1)); + return ref _value64.iIcon; } } } [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint dwAttributes { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.dwAttributes, 1)); + return ref _value32.dwAttributes; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.dwAttributes, 1)); + return ref _value64.dwAttributes; } } } [NativeTypeName("WCHAR [260]")] + [UnscopedRef] public Span szDisplayName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) @@ -95,8 +105,10 @@ public Span szDisplayName } [NativeTypeName("WCHAR [80]")] + [UnscopedRef] public Span szTypeName { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTA.Manual.cs index a12cff8282..509ee039d0 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,127 +33,143 @@ public static uint SizeOf [FieldOffset(0)] public SHFILEOPSTRUCT64A _value64; + [UnscopedRef] public ref HWND hwnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwnd, 1)); + return ref _value32.hwnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwnd, 1)); + return ref _value64.hwnd; } } } + [UnscopedRef] public ref uint wFunc { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.wFunc, 1)); + return ref _value32.wFunc; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.wFunc, 1)); + return ref _value64.wFunc; } } } [NativeTypeName("PCZZSTR")] + [UnscopedRef] public ref sbyte* pFrom { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pFrom; + return ref _value32.pFrom; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pFrom; + return ref _value64.pFrom; } } } [NativeTypeName("PCZZSTR")] + [UnscopedRef] public ref sbyte* pTo { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pTo; + return ref _value32.pTo; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pTo; + return ref _value64.pTo; } } } [NativeTypeName("FILEOP_FLAGS")] + [UnscopedRef] public ref ushort fFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fFlags, 1)); + return ref _value32.fFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fFlags, 1)); + return ref _value64.fFlags; } } } + [UnscopedRef] public ref BOOL fAnyOperationsAborted { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fAnyOperationsAborted, 1)); + return ref _value32.fAnyOperationsAborted; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fAnyOperationsAborted, 1)); + return ref _value64.fAnyOperationsAborted; } } } [NativeTypeName("LPVOID")] + [UnscopedRef] public ref void* hNameMappings { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).hNameMappings; + return ref _value32.hNameMappings; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).hNameMappings; + return ref _value64.hNameMappings; } } } [NativeTypeName("PCSTR")] + [UnscopedRef] public ref sbyte* lpszProgressTitle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpszProgressTitle; + return ref _value32.lpszProgressTitle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpszProgressTitle; + return ref _value64.lpszProgressTitle; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTW.Manual.cs index c723b5c6da..59d79d5e3d 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHFILEOPSTRUCTW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -31,127 +33,143 @@ public static uint SizeOf [FieldOffset(0)] public SHFILEOPSTRUCT64W _value64; + [UnscopedRef] public ref HWND hwnd { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hwnd, 1)); + return ref _value32.hwnd; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hwnd, 1)); + return ref _value64.hwnd; } } } + [UnscopedRef] public ref uint wFunc { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.wFunc, 1)); + return ref _value32.wFunc; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.wFunc, 1)); + return ref _value64.wFunc; } } } [NativeTypeName("PCZZWSTR")] + [UnscopedRef] public ref ushort* pFrom { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pFrom; + return ref _value32.pFrom; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pFrom; + return ref _value64.pFrom; } } } [NativeTypeName("PCZZWSTR")] + [UnscopedRef] public ref ushort* pTo { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pTo; + return ref _value32.pTo; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pTo; + return ref _value64.pTo; } } } [NativeTypeName("FILEOP_FLAGS")] + [UnscopedRef] public ref ushort fFlags { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fFlags, 1)); + return ref _value32.fFlags; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fFlags, 1)); + return ref _value64.fFlags; } } } + [UnscopedRef] public ref BOOL fAnyOperationsAborted { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.fAnyOperationsAborted, 1)); + return ref _value32.fAnyOperationsAborted; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.fAnyOperationsAborted, 1)); + return ref _value64.fAnyOperationsAborted; } } } [NativeTypeName("LPVOID")] + [UnscopedRef] public ref void* hNameMappings { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).hNameMappings; + return ref _value32.hNameMappings; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).hNameMappings; + return ref _value64.hNameMappings; } } } [NativeTypeName("PCWSTR")] + [UnscopedRef] public ref ushort* lpszProgressTitle { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).lpszProgressTitle; + return ref _value32.lpszProgressTitle; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).lpszProgressTitle; + return ref _value64.lpszProgressTitle; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGA.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGA.Manual.cs index 5f66b173c3..108345aaab 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGA.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGA.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,63 +34,71 @@ public static uint SizeOf public SHNAMEMAPPING64A _value64; [NativeTypeName("LPSTR")] + [UnscopedRef] public ref sbyte* pszOldPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszOldPath; + return ref _value32.pszOldPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszOldPath; + return ref _value64.pszOldPath; } } } [NativeTypeName("LPSTR")] + [UnscopedRef] public ref sbyte* pszNewPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszNewPath; + return ref _value32.pszNewPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszNewPath; + return ref _value64.pszNewPath; } } } + [UnscopedRef] public ref int cchOldPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cchOldPath, 1)); + return ref _value32.cchOldPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cchOldPath, 1)); + return ref _value64.cchOldPath; } } } + [UnscopedRef] public ref int cchNewPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cchNewPath, 1)); + return ref _value32.cchNewPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cchNewPath, 1)); + return ref _value64.cchNewPath; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGW.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGW.Manual.cs index 87ee33cf10..2093285463 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGW.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHNAMEMAPPINGW.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,63 +34,71 @@ public static uint SizeOf public SHNAMEMAPPING64W _value64; [NativeTypeName("LPWSTR")] + [UnscopedRef] public ref ushort* pszOldPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszOldPath; + return ref _value32.pszOldPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszOldPath; + return ref _value64.pszOldPath; } } } [NativeTypeName("LPWSTR")] + [UnscopedRef] public ref ushort* pszNewPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32, 1)).pszNewPath; + return ref _value32.pszNewPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64, 1)).pszNewPath; + return ref _value64.pszNewPath; } } } + [UnscopedRef] public ref int cchOldPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cchOldPath, 1)); + return ref _value32.cchOldPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cchOldPath, 1)); + return ref _value64.cchOldPath; } } } + [UnscopedRef] public ref int cchNewPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cchNewPath, 1)); + return ref _value32.cchNewPath; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cchNewPath, 1)); + return ref _value64.cchNewPath; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHQUERYRBINFO.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHQUERYRBINFO.Manual.cs index 125e36f3c1..f5ba07a5e2 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHQUERYRBINFO.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHQUERYRBINFO.Manual.cs @@ -3,6 +3,8 @@ // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -32,49 +34,55 @@ public static uint SizeOf public SHQUERYRBINFO64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } [NativeTypeName("long long")] + [UnscopedRef] public ref long i64Size { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.i64Size, 1)); + return ref _value32.i64Size; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.i64Size, 1)); + return ref _value64.i64Size; } } } [NativeTypeName("long long")] + [UnscopedRef] public ref long i64NumItems { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.i64NumItems, 1)); + return ref _value32.i64NumItems; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.i64NumItems, 1)); + return ref _value64.i64NumItems; } } } diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHSTOCKICONINFO.Manual.cs b/sources/Interop/Windows/Windows/um/shellapi/SHSTOCKICONINFO.Manual.cs index 8e7ebd2c90..342edf2c7f 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/SHSTOCKICONINFO.Manual.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/SHSTOCKICONINFO.Manual.cs @@ -4,6 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows; @@ -33,69 +35,79 @@ public static uint SizeOf public SHSTOCKICONINFO64 _value64; [NativeTypeName("DWORD")] + [UnscopedRef] public ref uint cbSize { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.cbSize, 1)); + return ref _value32.cbSize; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.cbSize, 1)); + return ref _value64.cbSize; } } } + [UnscopedRef] public ref HICON hIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.hIcon, 1)); + return ref _value32.hIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.hIcon, 1)); + return ref _value64.hIcon; } } } + [UnscopedRef] public ref int iSysImageIndex { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.iSysImageIndex, 1)); + return ref _value32.iSysImageIndex; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.iSysImageIndex, 1)); + return ref _value64.iSysImageIndex; } } } + [UnscopedRef] public ref int iIcon { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value32.iIcon, 1)); + return ref _value32.iIcon; } else { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref _value64.iIcon, 1)); + return ref _value64.iIcon; } } } [NativeTypeName("WCHAR [260]")] + [UnscopedRef] public Span szPath { + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (sizeof(nint) == 4) diff --git a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageData.cs b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageData.cs index 4e17bffe74..a632ecc46d 100644 --- a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageData.cs +++ b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageData.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BFDEEC12-8040-4403-A5EA-9E07DAFCF530")] [NativeTypeName("struct IShellImageData : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellImageData : IShellImageData.Interface +public unsafe partial struct IShellImageData : IShellImageData.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellImageData)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataAbort.cs b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataAbort.cs index 387ee2d53f..9067bd64be 100644 --- a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataAbort.cs +++ b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataAbort.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("53FB8E58-50C0-4003-B4AA-0C8DF28E7F3A")] [NativeTypeName("struct IShellImageDataAbort : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellImageDataAbort : IShellImageDataAbort.Interface +public unsafe partial struct IShellImageDataAbort : IShellImageDataAbort.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellImageDataAbort)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataFactory.cs b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataFactory.cs index 72022017ca..06213fd51a 100644 --- a/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataFactory.cs +++ b/sources/Interop/Windows/Windows/um/shimgdata/IShellImageDataFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9BE8ED5C-EDAB-4D75-90F3-BD5BDBB21C82")] [NativeTypeName("struct IShellImageDataFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IShellImageDataFactory : IShellImageDataFactory.Interface +public unsafe partial struct IShellImageDataFactory : IShellImageDataFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IShellImageDataFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/shimgdata/ShellImageDataFactory.cs b/sources/Interop/Windows/Windows/um/shimgdata/ShellImageDataFactory.cs index 5d5acf5d87..6136a6e25a 100644 --- a/sources/Interop/Windows/Windows/um/shimgdata/ShellImageDataFactory.cs +++ b/sources/Interop/Windows/Windows/um/shimgdata/ShellImageDataFactory.cs @@ -3,12 +3,16 @@ // Ported from um/shimgdata.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("66E4E4FB-F385-4DD0-8D74-A2EFD1BC6178")] -public partial struct ShellImageDataFactory +public unsafe partial struct ShellImageDataFactory : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ShellImageDataFactory)); } diff --git a/sources/Interop/Windows/Windows/um/shtypes/STRRET.cs b/sources/Interop/Windows/Windows/um/shtypes/STRRET.cs index b29c7cf059..021507465c 100644 --- a/sources/Interop/Windows/Windows/um/shtypes/STRRET.cs +++ b/sources/Interop/Windows/Windows/um/shtypes/STRRET.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,26 +21,29 @@ public unsafe partial struct STRRET public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ushort* pOleStr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pOleStr; + return ref Anonymous.pOleStr; } } /// + [UnscopedRef] public ref uint uOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.uOffset, 1)); + return ref Anonymous.uOffset; } } /// + [UnscopedRef] public Span cStr { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/strmif/DVD_MenuAttributes.cs b/sources/Interop/Windows/Windows/um/strmif/DVD_MenuAttributes.cs index 9522fac172..df5253cfad 100644 --- a/sources/Interop/Windows/Windows/um/strmif/DVD_MenuAttributes.cs +++ b/sources/Interop/Windows/Windows/um/strmif/DVD_MenuAttributes.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -43,6 +44,7 @@ public partial struct _fCompatibleRegion_e__FixedBuffer public BOOL e6; public BOOL e7; + [UnscopedRef] public ref BOOL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -53,6 +55,7 @@ public ref BOOL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/Windows/um/strmif/DVD_MultichannelAudioAttributes.cs b/sources/Interop/Windows/Windows/um/strmif/DVD_MultichannelAudioAttributes.cs index 4b8e4879d8..fa82b94092 100644 --- a/sources/Interop/Windows/Windows/um/strmif/DVD_MultichannelAudioAttributes.cs +++ b/sources/Interop/Windows/Windows/um/strmif/DVD_MultichannelAudioAttributes.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,6 +33,7 @@ public partial struct _Info_e__FixedBuffer public DVD_MUA_MixingInfo e6; public DVD_MUA_MixingInfo e7; + [UnscopedRef] public ref DVD_MUA_MixingInfo this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -42,6 +44,7 @@ public ref DVD_MUA_MixingInfo this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } @@ -57,6 +60,7 @@ public partial struct _Coeff_e__FixedBuffer public DVD_MUA_Coeff e6; public DVD_MUA_Coeff e7; + [UnscopedRef] public ref DVD_MUA_Coeff this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -67,6 +71,7 @@ public ref DVD_MUA_Coeff this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } diff --git a/sources/Interop/Windows/Windows/um/strmif/DVD_TitleAttributes.cs b/sources/Interop/Windows/Windows/um/strmif/DVD_TitleAttributes.cs index 627a3c4fd9..04ffc1ea4e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/DVD_TitleAttributes.cs +++ b/sources/Interop/Windows/Windows/um/strmif/DVD_TitleAttributes.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -40,22 +41,24 @@ public partial struct DVD_TitleAttributes public _SubpictureAttributes_e__FixedBuffer SubpictureAttributes; /// + [UnscopedRef] public ref DVD_TITLE_APPMODE AppMode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.AppMode, 1)); + return ref Anonymous.AppMode; } } /// + [UnscopedRef] public ref DVD_HMSF_TIMECODE TitleLength { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TitleLength, 1)); + return ref Anonymous.TitleLength; } } @@ -84,6 +87,7 @@ public partial struct _AudioAttributes_e__FixedBuffer public DVD_AudioAttributes e6; public DVD_AudioAttributes e7; + [UnscopedRef] public ref DVD_AudioAttributes this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -94,6 +98,7 @@ public ref DVD_AudioAttributes this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } @@ -109,6 +114,7 @@ public partial struct _MultichannelAudioAttributes_e__FixedBuffer public DVD_MultichannelAudioAttributes e6; public DVD_MultichannelAudioAttributes e7; + [UnscopedRef] public ref DVD_MultichannelAudioAttributes this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -119,6 +125,7 @@ public ref DVD_MultichannelAudioAttributes this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } @@ -158,6 +165,7 @@ public partial struct _SubpictureAttributes_e__FixedBuffer public DVD_SubpictureAttributes e30; public DVD_SubpictureAttributes e31; + [UnscopedRef] public ref DVD_SubpictureAttributes this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -168,6 +176,7 @@ public ref DVD_SubpictureAttributes this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoDecoder.cs b/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoDecoder.cs index 0ba88a83ea..14de65a920 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoDecoder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoDecoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13350-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMAnalogVideoDecoder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMAnalogVideoDecoder : IAMAnalogVideoDecoder.Interface +public unsafe partial struct IAMAnalogVideoDecoder : IAMAnalogVideoDecoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMAnalogVideoDecoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoEncoder.cs b/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoEncoder.cs index 427fcf9159..7d26b1fedd 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoEncoder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMAnalogVideoEncoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E133B0-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMAnalogVideoEncoder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMAnalogVideoEncoder : IAMAnalogVideoEncoder.Interface +public unsafe partial struct IAMAnalogVideoEncoder : IAMAnalogVideoEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMAnalogVideoEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMAsyncReaderTimestampScaling.cs b/sources/Interop/Windows/Windows/um/strmif/IAMAsyncReaderTimestampScaling.cs index 4699f4312b..54e85ff77c 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMAsyncReaderTimestampScaling.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMAsyncReaderTimestampScaling.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CF7B26FC-9A00-485B-8147-3E789D5E8F67")] [NativeTypeName("struct IAMAsyncReaderTimestampScaling : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMAsyncReaderTimestampScaling : IAMAsyncReaderTimestampScaling.Interface +public unsafe partial struct IAMAsyncReaderTimestampScaling : IAMAsyncReaderTimestampScaling.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMAsyncReaderTimestampScaling)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMAudioInputMixer.cs b/sources/Interop/Windows/Windows/um/strmif/IAMAudioInputMixer.cs index 0acb95e418..c3b0a332d8 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMAudioInputMixer.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMAudioInputMixer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("54C39221-8380-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct IAMAudioInputMixer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMAudioInputMixer : IAMAudioInputMixer.Interface +public unsafe partial struct IAMAudioInputMixer : IAMAudioInputMixer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMAudioInputMixer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMAudioRendererStats.cs b/sources/Interop/Windows/Windows/um/strmif/IAMAudioRendererStats.cs index 5ef133143c..566f71e0b1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMAudioRendererStats.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMAudioRendererStats.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("22320CB2-D41A-11D2-BF7C-D7CB9DF0BF93")] [NativeTypeName("struct IAMAudioRendererStats : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMAudioRendererStats : IAMAudioRendererStats.Interface +public unsafe partial struct IAMAudioRendererStats : IAMAudioRendererStats.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMAudioRendererStats)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMBufferNegotiation.cs b/sources/Interop/Windows/Windows/um/strmif/IAMBufferNegotiation.cs index a64383142b..b4ab606196 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMBufferNegotiation.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMBufferNegotiation.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56ED71A0-AF5F-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct IAMBufferNegotiation : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMBufferNegotiation : IAMBufferNegotiation.Interface +public unsafe partial struct IAMBufferNegotiation : IAMBufferNegotiation.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMBufferNegotiation)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMCameraControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMCameraControl.cs index d968daf498..36967e5137 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMCameraControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMCameraControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13370-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMCameraControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMCameraControl : IAMCameraControl.Interface +public unsafe partial struct IAMCameraControl : IAMCameraControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMCameraControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMCertifiedOutputProtection.cs b/sources/Interop/Windows/Windows/um/strmif/IAMCertifiedOutputProtection.cs index 965f61c09e..cb0050e505 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMCertifiedOutputProtection.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMCertifiedOutputProtection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6FEDED3E-0FF1-4901-A2F1-43F7012C8515")] [NativeTypeName("struct IAMCertifiedOutputProtection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMCertifiedOutputProtection : IAMCertifiedOutputProtection.Interface +public unsafe partial struct IAMCertifiedOutputProtection : IAMCertifiedOutputProtection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMCertifiedOutputProtection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMClockAdjust.cs b/sources/Interop/Windows/Windows/um/strmif/IAMClockAdjust.cs index cb6f0d1a46..997acfb036 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMClockAdjust.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMClockAdjust.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4D5466B0-A49C-11D1-ABE8-00A0C905F375")] [NativeTypeName("struct IAMClockAdjust : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMClockAdjust : IAMClockAdjust.Interface +public unsafe partial struct IAMClockAdjust : IAMClockAdjust.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMClockAdjust)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMClockSlave.cs b/sources/Interop/Windows/Windows/um/strmif/IAMClockSlave.cs index 2f4408af49..ae8f591cc7 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMClockSlave.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMClockSlave.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9FD52741-176D-4B36-8F51-CA8F933223BE")] [NativeTypeName("struct IAMClockSlave : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMClockSlave : IAMClockSlave.Interface +public unsafe partial struct IAMClockSlave : IAMClockSlave.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMClockSlave)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMCopyCaptureFileProgress.cs b/sources/Interop/Windows/Windows/um/strmif/IAMCopyCaptureFileProgress.cs index be4735461b..e38af38840 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMCopyCaptureFileProgress.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMCopyCaptureFileProgress.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("670D1D20-A068-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct IAMCopyCaptureFileProgress : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMCopyCaptureFileProgress : IAMCopyCaptureFileProgress.Interface +public unsafe partial struct IAMCopyCaptureFileProgress : IAMCopyCaptureFileProgress.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMCopyCaptureFileProgress)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMCrossbar.cs b/sources/Interop/Windows/Windows/um/strmif/IAMCrossbar.cs index 814b314384..32bf1dc221 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMCrossbar.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMCrossbar.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13380-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMCrossbar : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMCrossbar : IAMCrossbar.Interface +public unsafe partial struct IAMCrossbar : IAMCrossbar.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMCrossbar)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMDecoderCaps.cs b/sources/Interop/Windows/Windows/um/strmif/IAMDecoderCaps.cs index cb2cc1f48c..f679a5d9db 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMDecoderCaps.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMDecoderCaps.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C0DFF467-D499-4986-972B-E1D9090FA941")] [NativeTypeName("struct IAMDecoderCaps : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMDecoderCaps : IAMDecoderCaps.Interface +public unsafe partial struct IAMDecoderCaps : IAMDecoderCaps.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMDecoderCaps)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryAllocator.cs b/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryAllocator.cs index d254560756..85dbe49d4d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryAllocator.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryAllocator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6545BF0-E76B-11D0-BD52-00A0C911CE86")] [NativeTypeName("struct IAMDevMemoryAllocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMDevMemoryAllocator : IAMDevMemoryAllocator.Interface +public unsafe partial struct IAMDevMemoryAllocator : IAMDevMemoryAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMDevMemoryAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryControl.cs index 4b43212d15..ec48265feb 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMDevMemoryControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6545BF1-E76B-11D0-BD52-00A0C911CE86")] [NativeTypeName("struct IAMDevMemoryControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMDevMemoryControl : IAMDevMemoryControl.Interface +public unsafe partial struct IAMDevMemoryControl : IAMDevMemoryControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMDevMemoryControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMDeviceRemoval.cs b/sources/Interop/Windows/Windows/um/strmif/IAMDeviceRemoval.cs index 049c1e88a5..7b6488a200 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMDeviceRemoval.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMDeviceRemoval.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F90A6130-B658-11D2-AE49-0000F8754B99")] [NativeTypeName("struct IAMDeviceRemoval : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMDeviceRemoval : IAMDeviceRemoval.Interface +public unsafe partial struct IAMDeviceRemoval : IAMDeviceRemoval.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMDeviceRemoval)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMDroppedFrames.cs b/sources/Interop/Windows/Windows/um/strmif/IAMDroppedFrames.cs index 991a7c7607..a1f77c3d1c 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMDroppedFrames.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMDroppedFrames.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13344-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMDroppedFrames : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMDroppedFrames : IAMDroppedFrames.Interface +public unsafe partial struct IAMDroppedFrames : IAMDroppedFrames.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMDroppedFrames)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMExtDevice.cs b/sources/Interop/Windows/Windows/um/strmif/IAMExtDevice.cs index 0ae2fd16db..af31d3d5f1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMExtDevice.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMExtDevice.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B5730A90-1A2C-11CF-8C23-00AA006B6814")] [NativeTypeName("struct IAMExtDevice : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMExtDevice : IAMExtDevice.Interface +public unsafe partial struct IAMExtDevice : IAMExtDevice.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMExtDevice)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMExtTransport.cs b/sources/Interop/Windows/Windows/um/strmif/IAMExtTransport.cs index 978a4266f1..6b1fa4897e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMExtTransport.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMExtTransport.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A03CD5F0-3045-11CF-8C44-00AA006B6814")] [NativeTypeName("struct IAMExtTransport : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMExtTransport : IAMExtTransport.Interface +public unsafe partial struct IAMExtTransport : IAMExtTransport.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMExtTransport)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMFilterGraphCallback.cs b/sources/Interop/Windows/Windows/um/strmif/IAMFilterGraphCallback.cs index 375d10ee66..6db879914d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMFilterGraphCallback.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMFilterGraphCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868FD-0AD4-11CE-B0A3-0020AF0BA770")] [NativeTypeName("struct IAMFilterGraphCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMFilterGraphCallback : IAMFilterGraphCallback.Interface +public unsafe partial struct IAMFilterGraphCallback : IAMFilterGraphCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMFilterGraphCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMFilterMiscFlags.cs b/sources/Interop/Windows/Windows/um/strmif/IAMFilterMiscFlags.cs index 2bf55af7c0..21e110b3f8 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMFilterMiscFlags.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMFilterMiscFlags.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2DD74950-A890-11D1-ABE8-00A0C905F375")] [NativeTypeName("struct IAMFilterMiscFlags : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMFilterMiscFlags : IAMFilterMiscFlags.Interface +public unsafe partial struct IAMFilterMiscFlags : IAMFilterMiscFlags.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMFilterMiscFlags)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMGraphBuilderCallback.cs b/sources/Interop/Windows/Windows/um/strmif/IAMGraphBuilderCallback.cs index 9f0a4a60ab..4df6e9de61 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMGraphBuilderCallback.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMGraphBuilderCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4995F511-9DDB-4F12-BD3B-F04611807B79")] [NativeTypeName("struct IAMGraphBuilderCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMGraphBuilderCallback : IAMGraphBuilderCallback.Interface +public unsafe partial struct IAMGraphBuilderCallback : IAMGraphBuilderCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMGraphBuilderCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMGraphStreams.cs b/sources/Interop/Windows/Windows/um/strmif/IAMGraphStreams.cs index ccb8162f48..dba58c092b 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMGraphStreams.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMGraphStreams.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("632105FA-072E-11D3-8AF9-00C04FB6BD3D")] [NativeTypeName("struct IAMGraphStreams : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMGraphStreams : IAMGraphStreams.Interface +public unsafe partial struct IAMGraphStreams : IAMGraphStreams.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMGraphStreams)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMLatency.cs b/sources/Interop/Windows/Windows/um/strmif/IAMLatency.cs index 08db72e4fb..93d5eadcb9 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMLatency.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMLatency.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("62EA93BA-EC62-11D2-B770-00C04FB6BD3D")] [NativeTypeName("struct IAMLatency : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMLatency : IAMLatency.Interface +public unsafe partial struct IAMLatency : IAMLatency.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMLatency)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMOpenProgress.cs b/sources/Interop/Windows/Windows/um/strmif/IAMOpenProgress.cs index d9e71424db..67dec528d0 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMOpenProgress.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMOpenProgress.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8E1C39A1-DE53-11CF-AA63-0080C744528D")] [NativeTypeName("struct IAMOpenProgress : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMOpenProgress : IAMOpenProgress.Interface +public unsafe partial struct IAMOpenProgress : IAMOpenProgress.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMOpenProgress)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMOverlayFX.cs b/sources/Interop/Windows/Windows/um/strmif/IAMOverlayFX.cs index 2de5a271ac..ee296ba5b5 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMOverlayFX.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMOverlayFX.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("62FAE250-7E65-4460-BFC9-6398B322073C")] [NativeTypeName("struct IAMOverlayFX : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMOverlayFX : IAMOverlayFX.Interface +public unsafe partial struct IAMOverlayFX : IAMOverlayFX.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMOverlayFX)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMPhysicalPinInfo.cs b/sources/Interop/Windows/Windows/um/strmif/IAMPhysicalPinInfo.cs index eb6297dc0e..a13c78d073 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMPhysicalPinInfo.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMPhysicalPinInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F938C991-3029-11CF-8C44-00AA006B6814")] [NativeTypeName("struct IAMPhysicalPinInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMPhysicalPinInfo : IAMPhysicalPinInfo.Interface +public unsafe partial struct IAMPhysicalPinInfo : IAMPhysicalPinInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMPhysicalPinInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMPluginControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMPluginControl.cs index 1791372db9..bd560cce6f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMPluginControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMPluginControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0E26A181-F40C-4635-8786-976284B52981")] [NativeTypeName("struct IAMPluginControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMPluginControl : IAMPluginControl.Interface +public unsafe partial struct IAMPluginControl : IAMPluginControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMPluginControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMPushSource.cs b/sources/Interop/Windows/Windows/um/strmif/IAMPushSource.cs index 0876724dfd..15142c341d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMPushSource.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMPushSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F185FE76-E64E-11D2-B76E-00C04FB6BD3D")] [NativeTypeName("struct IAMPushSource : IAMLatency")] [NativeInheritance("IAMLatency")] -public unsafe partial struct IAMPushSource : IAMPushSource.Interface +public unsafe partial struct IAMPushSource : IAMPushSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMPushSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMResourceControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMResourceControl.cs index 2892606f24..df1bfc73c9 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMResourceControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMResourceControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("8389D2D0-77D7-11D1-ABE6-00A0C905F375")] [NativeTypeName("struct IAMResourceControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMResourceControl : IAMResourceControl.Interface +public unsafe partial struct IAMResourceControl : IAMResourceControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMResourceControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMStreamConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IAMStreamConfig.cs index f1378b5b48..9ae115ec4a 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMStreamConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMStreamConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13340-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMStreamConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMStreamConfig : IAMStreamConfig.Interface +public unsafe partial struct IAMStreamConfig : IAMStreamConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMStreamConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMStreamControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMStreamControl.cs index b32003e296..8d87715b4d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMStreamControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMStreamControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73881-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct IAMStreamControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMStreamControl : IAMStreamControl.Interface +public unsafe partial struct IAMStreamControl : IAMStreamControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMStreamControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMStreamSelect.cs b/sources/Interop/Windows/Windows/um/strmif/IAMStreamSelect.cs index cbca7d925b..fd8bfaf100 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMStreamSelect.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMStreamSelect.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C1960960-17F5-11D1-ABE1-00A0C905F375")] [NativeTypeName("struct IAMStreamSelect : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMStreamSelect : IAMStreamSelect.Interface +public unsafe partial struct IAMStreamSelect : IAMStreamSelect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMStreamSelect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTVAudio.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTVAudio.cs index 37d7a9bf4a..3fe958703e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTVAudio.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTVAudio.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83EC1C30-23D1-11D1-99E6-00A0C9560266")] [NativeTypeName("struct IAMTVAudio : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTVAudio : IAMTVAudio.Interface +public unsafe partial struct IAMTVAudio : IAMTVAudio.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTVAudio)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTVAudioNotification.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTVAudioNotification.cs index 50a038295a..24891ad693 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTVAudioNotification.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTVAudioNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("83EC1C33-23D1-11D1-99E6-00A0C9560266")] [NativeTypeName("struct IAMTVAudioNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTVAudioNotification : IAMTVAudioNotification.Interface +public unsafe partial struct IAMTVAudioNotification : IAMTVAudioNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTVAudioNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTVTuner.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTVTuner.cs index 31533784cd..133353c7a5 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTVTuner.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTVTuner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("211A8766-03AC-11D1-8D13-00AA00BD8339")] [NativeTypeName("struct IAMTVTuner : IAMTuner")] [NativeInheritance("IAMTuner")] -public unsafe partial struct IAMTVTuner : IAMTVTuner.Interface +public unsafe partial struct IAMTVTuner : IAMTVTuner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTVTuner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeDisplay.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeDisplay.cs index 41d664fc5f..19849104fe 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeDisplay.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeDisplay.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B496CE2-811B-11CF-8C77-00AA006B6814")] [NativeTypeName("struct IAMTimecodeDisplay : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTimecodeDisplay : IAMTimecodeDisplay.Interface +public unsafe partial struct IAMTimecodeDisplay : IAMTimecodeDisplay.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTimecodeDisplay)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeGenerator.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeGenerator.cs index 01fda5572c..11f46e41ea 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeGenerator.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeGenerator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B496CE0-811B-11CF-8C77-00AA006B6814")] [NativeTypeName("struct IAMTimecodeGenerator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTimecodeGenerator : IAMTimecodeGenerator.Interface +public unsafe partial struct IAMTimecodeGenerator : IAMTimecodeGenerator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTimecodeGenerator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeReader.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeReader.cs index 15d9042a0b..a50a0b2779 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeReader.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTimecodeReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9B496CE1-811B-11CF-8C77-00AA006B6814")] [NativeTypeName("struct IAMTimecodeReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTimecodeReader : IAMTimecodeReader.Interface +public unsafe partial struct IAMTimecodeReader : IAMTimecodeReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTimecodeReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTuner.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTuner.cs index e29f1cafd1..2787fcb84e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTuner.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTuner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("211A8761-03AC-11D1-8D13-00AA00BD8339")] [NativeTypeName("struct IAMTuner : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTuner : IAMTuner.Interface +public unsafe partial struct IAMTuner : IAMTuner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTuner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMTunerNotification.cs b/sources/Interop/Windows/Windows/um/strmif/IAMTunerNotification.cs index dafbb23cec..ecc7b1d14c 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMTunerNotification.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMTunerNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("211A8760-03AC-11D1-8D13-00AA00BD8339")] [NativeTypeName("struct IAMTunerNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMTunerNotification : IAMTunerNotification.Interface +public unsafe partial struct IAMTunerNotification : IAMTunerNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMTunerNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVfwCaptureDialogs.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVfwCaptureDialogs.cs index ce7307cd42..da4b07b659 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVfwCaptureDialogs.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVfwCaptureDialogs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8D715A0-6E5E-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct IAMVfwCaptureDialogs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVfwCaptureDialogs : IAMVfwCaptureDialogs.Interface +public unsafe partial struct IAMVfwCaptureDialogs : IAMVfwCaptureDialogs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVfwCaptureDialogs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVfwCompressDialogs.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVfwCompressDialogs.cs index 45795fc7e9..328bdd25e9 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVfwCompressDialogs.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVfwCompressDialogs.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8D715A3-6E5E-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct IAMVfwCompressDialogs : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVfwCompressDialogs : IAMVfwCompressDialogs.Interface +public unsafe partial struct IAMVfwCompressDialogs : IAMVfwCompressDialogs.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVfwCompressDialogs)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVideoCompression.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVideoCompression.cs index 04edebbba2..7aeb5001e0 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVideoCompression.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVideoCompression.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13343-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMVideoCompression : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVideoCompression : IAMVideoCompression.Interface +public unsafe partial struct IAMVideoCompression : IAMVideoCompression.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVideoCompression)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVideoControl.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVideoControl.cs index 5f0b1fca90..7462f565b3 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVideoControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVideoControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6A2E0670-28E4-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMVideoControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVideoControl : IAMVideoControl.Interface +public unsafe partial struct IAMVideoControl : IAMVideoControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVideoControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVideoDecimationProperties.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVideoDecimationProperties.cs index 0509fa1760..84e4a24da7 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVideoDecimationProperties.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVideoDecimationProperties.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("60D32930-13DA-11D3-9EC6-C4FCAEF5C7BE")] [NativeTypeName("struct IAMVideoDecimationProperties : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVideoDecimationProperties : IAMVideoDecimationProperties.Interface +public unsafe partial struct IAMVideoDecimationProperties : IAMVideoDecimationProperties.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVideoDecimationProperties)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMVideoProcAmp.cs b/sources/Interop/Windows/Windows/um/strmif/IAMVideoProcAmp.cs index d729753ef0..21d3a9e25c 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMVideoProcAmp.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMVideoProcAmp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C6E13360-30AC-11D0-A18C-00A0C9118956")] [NativeTypeName("struct IAMVideoProcAmp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMVideoProcAmp : IAMVideoProcAmp.Interface +public unsafe partial struct IAMVideoProcAmp : IAMVideoProcAmp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMVideoProcAmp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAMovieSetup.cs b/sources/Interop/Windows/Windows/um/strmif/IAMovieSetup.cs index 7b11300692..91d6738802 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAMovieSetup.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAMovieSetup.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3D8CEC0-7E5A-11CF-BBC5-00805F6CEF20")] [NativeTypeName("struct IAMovieSetup : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAMovieSetup : IAMovieSetup.Interface +public unsafe partial struct IAMovieSetup : IAMovieSetup.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAMovieSetup)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IAsyncReader.cs b/sources/Interop/Windows/Windows/um/strmif/IAsyncReader.cs index d7f67eee45..29246e77a9 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IAsyncReader.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IAsyncReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868AA-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IAsyncReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAsyncReader : IAsyncReader.Interface +public unsafe partial struct IAsyncReader : IAsyncReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAsyncReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IBPCSatelliteTuner.cs b/sources/Interop/Windows/Windows/um/strmif/IBPCSatelliteTuner.cs index 3ef28b9901..202ec9d50d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IBPCSatelliteTuner.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IBPCSatelliteTuner.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("211A8765-03AC-11D1-8D13-00AA00BD8339")] [NativeTypeName("struct IBPCSatelliteTuner : IAMTuner")] [NativeInheritance("IAMTuner")] -public unsafe partial struct IBPCSatelliteTuner : IBPCSatelliteTuner.Interface +public unsafe partial struct IBPCSatelliteTuner : IBPCSatelliteTuner.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBPCSatelliteTuner)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IBaseFilter.cs b/sources/Interop/Windows/Windows/um/strmif/IBaseFilter.cs index d55a01d7f2..54b895c5ab 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IBaseFilter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IBaseFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86895-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IBaseFilter : IMediaFilter")] [NativeInheritance("IMediaFilter")] -public unsafe partial struct IBaseFilter : IBaseFilter.Interface +public unsafe partial struct IBaseFilter : IBaseFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBaseFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder.cs b/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder.cs index 774fdffe86..35b8952ece 100644 --- a/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BF87B6E0-8C27-11D0-B3F0-00AA003761C5")] [NativeTypeName("struct ICaptureGraphBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICaptureGraphBuilder : ICaptureGraphBuilder.Interface +public unsafe partial struct ICaptureGraphBuilder : ICaptureGraphBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICaptureGraphBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder2.cs b/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder2.cs index 4a942d6b95..319e00331b 100644 --- a/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/ICaptureGraphBuilder2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("93E5A4E0-2D50-11D2-ABFA-00A0C9C6E38D")] [NativeTypeName("struct ICaptureGraphBuilder2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICaptureGraphBuilder2 : ICaptureGraphBuilder2.Interface +public unsafe partial struct ICaptureGraphBuilder2 : ICaptureGraphBuilder2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICaptureGraphBuilder2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/ICodecAPI.cs b/sources/Interop/Windows/Windows/um/strmif/ICodecAPI.cs index afc7651319..da86eaafa3 100644 --- a/sources/Interop/Windows/Windows/um/strmif/ICodecAPI.cs +++ b/sources/Interop/Windows/Windows/um/strmif/ICodecAPI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("901DB4C7-31CE-41A2-85DC-8FA0BF41B8DA")] [NativeTypeName("struct ICodecAPI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICodecAPI : ICodecAPI.Interface +public unsafe partial struct ICodecAPI : ICodecAPI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICodecAPI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IConfigAviMux.cs b/sources/Interop/Windows/Windows/um/strmif/IConfigAviMux.cs index fb0aef7b5b..162a6a65f1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IConfigAviMux.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IConfigAviMux.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5ACD6AA0-F482-11CE-8B67-00AA00A3F1A6")] [NativeTypeName("struct IConfigAviMux : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IConfigAviMux : IConfigAviMux.Interface +public unsafe partial struct IConfigAviMux : IConfigAviMux.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConfigAviMux)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IConfigInterleaving.cs b/sources/Interop/Windows/Windows/um/strmif/IConfigInterleaving.cs index d368cb040f..57673f0907 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IConfigInterleaving.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IConfigInterleaving.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BEE3D220-157B-11D0-BD23-00A0C911CE86")] [NativeTypeName("struct IConfigInterleaving : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IConfigInterleaving : IConfigInterleaving.Interface +public unsafe partial struct IConfigInterleaving : IConfigInterleaving.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IConfigInterleaving)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/ICreateDevEnum.cs b/sources/Interop/Windows/Windows/um/strmif/ICreateDevEnum.cs index d143d2218a..ae4b1c7314 100644 --- a/sources/Interop/Windows/Windows/um/strmif/ICreateDevEnum.cs +++ b/sources/Interop/Windows/Windows/um/strmif/ICreateDevEnum.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("29840822-5B84-11D0-BD3B-00A0C911CE86")] [NativeTypeName("struct ICreateDevEnum : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICreateDevEnum : ICreateDevEnum.Interface +public unsafe partial struct ICreateDevEnum : ICreateDevEnum.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICreateDevEnum)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideo.cs b/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideo.cs index 10d0cb1a2f..769d8d8728 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideo.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideo.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("153ACC21-D83B-11D1-82BF-00A0C9696C8F")] [NativeTypeName("struct IDDrawExclModeVideo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDDrawExclModeVideo : IDDrawExclModeVideo.Interface +public unsafe partial struct IDDrawExclModeVideo : IDDrawExclModeVideo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDDrawExclModeVideo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideoCallback.cs b/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideoCallback.cs index 876462825c..fa46c2b54e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideoCallback.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDDrawExclModeVideoCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("913C24A0-20AB-11D2-9038-00A0C9697298")] [NativeTypeName("struct IDDrawExclModeVideoCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDDrawExclModeVideoCallback : IDDrawExclModeVideoCallback.Interface +public unsafe partial struct IDDrawExclModeVideoCallback : IDDrawExclModeVideoCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDDrawExclModeVideoCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDVEnc.cs b/sources/Interop/Windows/Windows/um/strmif/IDVEnc.cs index 1ab4827ce6..0cf8814eca 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDVEnc.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDVEnc.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D18E17A0-AACB-11D0-AFB0-00AA00B67A42")] [NativeTypeName("struct IDVEnc : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDVEnc : IDVEnc.Interface +public unsafe partial struct IDVEnc : IDVEnc.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDVEnc)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDVRGB219.cs b/sources/Interop/Windows/Windows/um/strmif/IDVRGB219.cs index 77f3ba3803..0f2f597b2d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDVRGB219.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDVRGB219.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("58473A19-2BC8-4663-8012-25F81BABDDD1")] [NativeTypeName("struct IDVRGB219 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDVRGB219 : IDVRGB219.Interface +public unsafe partial struct IDVRGB219 : IDVRGB219.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDVRGB219)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDVSplitter.cs b/sources/Interop/Windows/Windows/um/strmif/IDVSplitter.cs index c7bca1c368..c2b11aa94a 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDVSplitter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDVSplitter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("92A3A302-DA7C-4A1F-BA7E-1802BB5D2D02")] [NativeTypeName("struct IDVSplitter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDVSplitter : IDVSplitter.Interface +public unsafe partial struct IDVSplitter : IDVSplitter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDVSplitter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDecimateVideoImage.cs b/sources/Interop/Windows/Windows/um/strmif/IDecimateVideoImage.cs index 9938c3bdf6..d67239ec9f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDecimateVideoImage.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDecimateVideoImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2E5EA3E0-E924-11D2-B6DA-00A0C995E8DF")] [NativeTypeName("struct IDecimateVideoImage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDecimateVideoImage : IDecimateVideoImage.Interface +public unsafe partial struct IDecimateVideoImage : IDecimateVideoImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDecimateVideoImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDistributorNotify.cs b/sources/Interop/Windows/Windows/um/strmif/IDistributorNotify.cs index 9422890d3b..8264668ee1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDistributorNotify.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDistributorNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868AF-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IDistributorNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDistributorNotify : IDistributorNotify.Interface +public unsafe partial struct IDistributorNotify : IDistributorNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDistributorNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDrawVideoImage.cs b/sources/Interop/Windows/Windows/um/strmif/IDrawVideoImage.cs index 8c5a1951bd..a9a1aaa65b 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDrawVideoImage.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDrawVideoImage.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("48EFB120-AB49-11D2-AED2-00A0C995E8D5")] [NativeTypeName("struct IDrawVideoImage : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDrawVideoImage : IDrawVideoImage.Interface +public unsafe partial struct IDrawVideoImage : IDrawVideoImage.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDrawVideoImage)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdCmd.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdCmd.cs index 147e2afab9..c11d83c341 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdCmd.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdCmd.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5A4A97E4-94EE-4A55-9751-74B5643AA27D")] [NativeTypeName("struct IDvdCmd : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdCmd : IDvdCmd.Interface +public unsafe partial struct IDvdCmd : IDvdCmd.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdCmd)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdControl.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdControl.cs index 32fbe702b2..13879d9f9d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A70EFE61-E2A3-11D0-A9BE-00AA0061BE93")] [NativeTypeName("struct IDvdControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdControl : IDvdControl.Interface +public unsafe partial struct IDvdControl : IDvdControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdControl2.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdControl2.cs index 9c3ecfbd14..40aa561bb6 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdControl2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdControl2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("33BC7430-EEC0-11D2-8201-00A0C9D74842")] [NativeTypeName("struct IDvdControl2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdControl2 : IDvdControl2.Interface +public unsafe partial struct IDvdControl2 : IDvdControl2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdControl2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdGraphBuilder.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdGraphBuilder.cs index 064e271124..4343d8a137 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdGraphBuilder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdGraphBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FCC152B6-F372-11D0-8E00-00C04FD7C08B")] [NativeTypeName("struct IDvdGraphBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdGraphBuilder : IDvdGraphBuilder.Interface +public unsafe partial struct IDvdGraphBuilder : IDvdGraphBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdGraphBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdInfo.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdInfo.cs index a5f51793e6..d011a36519 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdInfo.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A70EFE60-E2A3-11D0-A9BE-00AA0061BE93")] [NativeTypeName("struct IDvdInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdInfo : IDvdInfo.Interface +public unsafe partial struct IDvdInfo : IDvdInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdInfo2.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdInfo2.cs index 5069999ae6..7373aaed29 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdInfo2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("34151510-EEC0-11D2-8201-00A0C9D74842")] [NativeTypeName("struct IDvdInfo2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdInfo2 : IDvdInfo2.Interface +public unsafe partial struct IDvdInfo2 : IDvdInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IDvdState.cs b/sources/Interop/Windows/Windows/um/strmif/IDvdState.cs index 03633f28d1..9158c124e4 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IDvdState.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IDvdState.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("86303D6D-1C4A-4087-AB42-F711167048EF")] [NativeTypeName("struct IDvdState : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDvdState : IDvdState.Interface +public unsafe partial struct IDvdState : IDvdState.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDvdState)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEncoderAPI.cs b/sources/Interop/Windows/Windows/um/strmif/IEncoderAPI.cs index b1e6077b59..40db250f0d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEncoderAPI.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEncoderAPI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70423839-6ACC-4B23-B079-21DBF08156A5")] [NativeTypeName("struct IEncoderAPI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEncoderAPI : IEncoderAPI.Interface +public unsafe partial struct IEncoderAPI : IEncoderAPI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEncoderAPI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEnumFilters.cs b/sources/Interop/Windows/Windows/um/strmif/IEnumFilters.cs index 08cec28790..b01aa76440 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEnumFilters.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEnumFilters.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86893-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IEnumFilters : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumFilters : IEnumFilters.Interface +public unsafe partial struct IEnumFilters : IEnumFilters.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumFilters)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEnumMediaTypes.cs b/sources/Interop/Windows/Windows/um/strmif/IEnumMediaTypes.cs index 121b9d816b..a9c51b8c0f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEnumMediaTypes.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEnumMediaTypes.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("89C31040-846B-11CE-97D3-00AA0055595A")] [NativeTypeName("struct IEnumMediaTypes : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumMediaTypes : IEnumMediaTypes.Interface +public unsafe partial struct IEnumMediaTypes : IEnumMediaTypes.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumMediaTypes)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEnumPins.cs b/sources/Interop/Windows/Windows/um/strmif/IEnumPins.cs index 3c59a4577f..e667847ad2 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEnumPins.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEnumPins.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86892-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IEnumPins : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumPins : IEnumPins.Interface +public unsafe partial struct IEnumPins : IEnumPins.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumPins)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEnumRegFilters.cs b/sources/Interop/Windows/Windows/um/strmif/IEnumRegFilters.cs index 848aaa2bc3..52ed7fb85b 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEnumRegFilters.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEnumRegFilters.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A4-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IEnumRegFilters : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumRegFilters : IEnumRegFilters.Interface +public unsafe partial struct IEnumRegFilters : IEnumRegFilters.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumRegFilters)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IEnumStreamIdMap.cs b/sources/Interop/Windows/Windows/um/strmif/IEnumStreamIdMap.cs index 98829fea1e..7925da6c54 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IEnumStreamIdMap.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IEnumStreamIdMap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("945C1566-6202-46FC-96C7-D87F289C6534")] [NativeTypeName("struct IEnumStreamIdMap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumStreamIdMap : IEnumStreamIdMap.Interface +public unsafe partial struct IEnumStreamIdMap : IEnumStreamIdMap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumStreamIdMap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter.cs b/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter.cs index 569791e7f6..c3ad6a33ab 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A2104830-7C70-11CF-8BCE-00AA00A3F1A6")] [NativeTypeName("struct IFileSinkFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileSinkFilter : IFileSinkFilter.Interface +public unsafe partial struct IFileSinkFilter : IFileSinkFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSinkFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter2.cs b/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter2.cs index 0b32711a60..e9a3c45739 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFileSinkFilter2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00855B90-CE1B-11D0-BD4F-00A0C911CE86")] [NativeTypeName("struct IFileSinkFilter2 : IFileSinkFilter")] [NativeInheritance("IFileSinkFilter")] -public unsafe partial struct IFileSinkFilter2 : IFileSinkFilter2.Interface +public unsafe partial struct IFileSinkFilter2 : IFileSinkFilter2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSinkFilter2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFileSourceFilter.cs b/sources/Interop/Windows/Windows/um/strmif/IFileSourceFilter.cs index d596526617..68c230b1da 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFileSourceFilter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFileSourceFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A6-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IFileSourceFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFileSourceFilter : IFileSourceFilter.Interface +public unsafe partial struct IFileSourceFilter : IFileSourceFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFileSourceFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterChain.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterChain.cs index 6c50cfa6c7..fb75fa82a9 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterChain.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterChain.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DCFBDCF6-0DC2-45F5-9AB2-7C330EA09C29")] [NativeTypeName("struct IFilterChain : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFilterChain : IFilterChain.Interface +public unsafe partial struct IFilterChain : IFilterChain.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterChain)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph.cs index f38a9b47ca..47402f4dda 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A8689F-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IFilterGraph : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFilterGraph : IFilterGraph.Interface +public unsafe partial struct IFilterGraph : IFilterGraph.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterGraph)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph2.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph2.cs index 9d4cfcc345..bd4be916fd 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73882-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct IFilterGraph2 : IGraphBuilder")] [NativeInheritance("IGraphBuilder")] -public unsafe partial struct IFilterGraph2 : IFilterGraph2.Interface +public unsafe partial struct IFilterGraph2 : IFilterGraph2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterGraph2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph3.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph3.cs index 2f16eabc3e..4a134f0992 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterGraph3.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterGraph3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AAF38154-B80B-422F-91E6-B66467509A07")] [NativeTypeName("struct IFilterGraph3 : IFilterGraph2")] [NativeInheritance("IFilterGraph2")] -public unsafe partial struct IFilterGraph3 : IFilterGraph3.Interface +public unsafe partial struct IFilterGraph3 : IFilterGraph3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterGraph3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper.cs index 53b3cfc3cb..9b33d812f8 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A3-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IFilterMapper : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFilterMapper : IFilterMapper.Interface +public unsafe partial struct IFilterMapper : IFilterMapper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterMapper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper2.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper2.cs index 1008cb4a82..79a2a51754 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B79BB0B0-33C1-11D1-ABE1-00A0C905F375")] [NativeTypeName("struct IFilterMapper2 : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IFilterMapper2 : IFilterMapper2.Interface +public unsafe partial struct IFilterMapper2 : IFilterMapper2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterMapper2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper3.cs b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper3.cs index 169771b917..03929743e0 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IFilterMapper3.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IFilterMapper3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B79BB0B1-33C1-11D1-ABE1-00A0C905F375")] [NativeTypeName("struct IFilterMapper3 : IFilterMapper2")] [NativeInheritance("IFilterMapper2")] -public unsafe partial struct IFilterMapper3 : IFilterMapper3.Interface +public unsafe partial struct IFilterMapper3 : IFilterMapper3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IFilterMapper3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IGetCapabilitiesKey.cs b/sources/Interop/Windows/Windows/um/strmif/IGetCapabilitiesKey.cs index 3e90069232..d68f939c69 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IGetCapabilitiesKey.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IGetCapabilitiesKey.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A8809222-07BB-48EA-951C-33158100625B")] [NativeTypeName("struct IGetCapabilitiesKey : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGetCapabilitiesKey : IGetCapabilitiesKey.Interface +public unsafe partial struct IGetCapabilitiesKey : IGetCapabilitiesKey.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGetCapabilitiesKey)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IGraphBuilder.cs b/sources/Interop/Windows/Windows/um/strmif/IGraphBuilder.cs index 92a9b35b6f..15af24529d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IGraphBuilder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IGraphBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A9-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IGraphBuilder : IFilterGraph")] [NativeInheritance("IFilterGraph")] -public unsafe partial struct IGraphBuilder : IGraphBuilder.Interface +public unsafe partial struct IGraphBuilder : IGraphBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IGraphConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IGraphConfig.cs index a1ee4e7361..3c0ed0d1c6 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IGraphConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IGraphConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("03A1EB8E-32BF-4245-8502-114D08A9CB88")] [NativeTypeName("struct IGraphConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGraphConfig : IGraphConfig.Interface +public unsafe partial struct IGraphConfig : IGraphConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IGraphConfigCallback.cs b/sources/Interop/Windows/Windows/um/strmif/IGraphConfigCallback.cs index 1f9c487b5b..884f64fa69 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IGraphConfigCallback.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IGraphConfigCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ADE0FD60-D19D-11D2-ABF6-00A0C905F375")] [NativeTypeName("struct IGraphConfigCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGraphConfigCallback : IGraphConfigCallback.Interface +public unsafe partial struct IGraphConfigCallback : IGraphConfigCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphConfigCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IGraphVersion.cs b/sources/Interop/Windows/Windows/um/strmif/IGraphVersion.cs index b819f2f909..b71f238c1f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IGraphVersion.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IGraphVersion.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868AB-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IGraphVersion : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGraphVersion : IGraphVersion.Interface +public unsafe partial struct IGraphVersion : IGraphVersion.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGraphVersion)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IIPDVDec.cs b/sources/Interop/Windows/Windows/um/strmif/IIPDVDec.cs index 97cfe6f74a..11960ffb88 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IIPDVDec.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IIPDVDec.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B8E8BD60-0BFE-11D0-AF91-00AA00B67A42")] [NativeTypeName("struct IIPDVDec : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IIPDVDec : IIPDVDec.Interface +public unsafe partial struct IIPDVDec : IIPDVDec.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IIPDVDec)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IKsPropertySet.cs b/sources/Interop/Windows/Windows/um/strmif/IKsPropertySet.cs index 473a4c493a..776eaf8e15 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IKsPropertySet.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IKsPropertySet.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("31EFAC30-515C-11D0-A9AA-00AA0061BE93")] [NativeTypeName("struct IKsPropertySet : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IKsPropertySet : IKsPropertySet.Interface +public unsafe partial struct IKsPropertySet : IKsPropertySet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IKsPropertySet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMPEG2StreamIdMap.cs b/sources/Interop/Windows/Windows/um/strmif/IMPEG2StreamIdMap.cs index 1440cf8dd3..8cf72777e7 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMPEG2StreamIdMap.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMPEG2StreamIdMap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D0E04C47-25B8-4369-925A-362A01D95444")] [NativeTypeName("struct IMPEG2StreamIdMap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMPEG2StreamIdMap : IMPEG2StreamIdMap.Interface +public unsafe partial struct IMPEG2StreamIdMap : IMPEG2StreamIdMap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMPEG2StreamIdMap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaEventSink.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaEventSink.cs index 6c6348b2aa..093bdc6491 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaEventSink.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaEventSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A2-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaEventSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaEventSink : IMediaEventSink.Interface +public unsafe partial struct IMediaEventSink : IMediaEventSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaEventSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaFilter.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaFilter.cs index 3ae5cfff9d..061c5f50d3 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaFilter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86899-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaFilter : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IMediaFilter : IMediaFilter.Interface +public unsafe partial struct IMediaFilter : IMediaFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaPropertyBag.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaPropertyBag.cs index e93b356cc3..16cfa0b0b5 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaPropertyBag.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaPropertyBag.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("6025A880-C0D5-11D0-BD4E-00A0C911CE86")] [NativeTypeName("struct IMediaPropertyBag : IPropertyBag")] [NativeInheritance("IPropertyBag")] -public unsafe partial struct IMediaPropertyBag : IMediaPropertyBag.Interface +public unsafe partial struct IMediaPropertyBag : IMediaPropertyBag.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaPropertyBag)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaSample.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaSample.cs index 0ee35ef956..0b0d0d1c2d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaSample.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaSample.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A8689A-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMediaSample : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaSample : IMediaSample.Interface +public unsafe partial struct IMediaSample : IMediaSample.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaSample)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaSample2.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaSample2.cs index dd49450c88..b7466327c6 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaSample2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaSample2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73884-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct IMediaSample2 : IMediaSample")] [NativeInheritance("IMediaSample")] -public unsafe partial struct IMediaSample2 : IMediaSample2.Interface +public unsafe partial struct IMediaSample2 : IMediaSample2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaSample2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaSample2Config.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaSample2Config.cs index 1c0a450b0f..8a0aeb7577 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaSample2Config.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaSample2Config.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("68961E68-832B-41EA-BC91-63593F3E70E3")] [NativeTypeName("struct IMediaSample2Config : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaSample2Config : IMediaSample2Config.Interface +public unsafe partial struct IMediaSample2Config : IMediaSample2Config.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaSample2Config)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMediaSeeking.cs b/sources/Interop/Windows/Windows/um/strmif/IMediaSeeking.cs index 5236042d43..f463ead32e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMediaSeeking.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMediaSeeking.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73880-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct IMediaSeeking : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMediaSeeking : IMediaSeeking.Interface +public unsafe partial struct IMediaSeeking : IMediaSeeking.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMediaSeeking)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMemAllocator.cs b/sources/Interop/Windows/Windows/um/strmif/IMemAllocator.cs index 96b6e8750a..661549a2b1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMemAllocator.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMemAllocator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A8689C-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMemAllocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMemAllocator : IMemAllocator.Interface +public unsafe partial struct IMemAllocator : IMemAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMemAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorCallbackTemp.cs b/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorCallbackTemp.cs index 73e414a34a..e3d13a8c39 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorCallbackTemp.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorCallbackTemp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("379A0CF0-C1DE-11D2-ABF5-00A0C905F375")] [NativeTypeName("struct IMemAllocatorCallbackTemp : IMemAllocator")] [NativeInheritance("IMemAllocator")] -public unsafe partial struct IMemAllocatorCallbackTemp : IMemAllocatorCallbackTemp.Interface +public unsafe partial struct IMemAllocatorCallbackTemp : IMemAllocatorCallbackTemp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMemAllocatorCallbackTemp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorNotifyCallbackTemp.cs b/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorNotifyCallbackTemp.cs index 1e50471725..d027262c6e 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorNotifyCallbackTemp.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMemAllocatorNotifyCallbackTemp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("92980B30-C1DE-11D2-ABF5-00A0C905F375")] [NativeTypeName("struct IMemAllocatorNotifyCallbackTemp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMemAllocatorNotifyCallbackTemp : IMemAllocatorNotifyCallbackTemp.Interface +public unsafe partial struct IMemAllocatorNotifyCallbackTemp : IMemAllocatorNotifyCallbackTemp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMemAllocatorNotifyCallbackTemp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMemInputPin.cs b/sources/Interop/Windows/Windows/um/strmif/IMemInputPin.cs index 572bba8201..b87f18d4ea 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMemInputPin.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMemInputPin.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A8689D-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IMemInputPin : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMemInputPin : IMemInputPin.Interface +public unsafe partial struct IMemInputPin : IMemInputPin.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMemInputPin)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IMpeg2Demultiplexer.cs b/sources/Interop/Windows/Windows/um/strmif/IMpeg2Demultiplexer.cs index 83d8717b38..acc28b8914 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IMpeg2Demultiplexer.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IMpeg2Demultiplexer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("436EEE9C-264F-4242-90E1-4E330C107512")] [NativeTypeName("struct IMpeg2Demultiplexer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMpeg2Demultiplexer : IMpeg2Demultiplexer.Interface +public unsafe partial struct IMpeg2Demultiplexer : IMpeg2Demultiplexer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMpeg2Demultiplexer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IOverlay.cs b/sources/Interop/Windows/Windows/um/strmif/IOverlay.cs index be015a6476..9054cf9732 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IOverlay.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IOverlay.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A1-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IOverlay : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOverlay : IOverlay.Interface +public unsafe partial struct IOverlay : IOverlay.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOverlay)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify.cs b/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify.cs index 48454ad96e..c444e38ca7 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A0-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IOverlayNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IOverlayNotify : IOverlayNotify.Interface +public unsafe partial struct IOverlayNotify : IOverlayNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOverlayNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify2.cs b/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify2.cs index 58121b15fe..f8ff5627ab 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IOverlayNotify2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("680EFA10-D535-11D1-87C8-00A0C9223196")] [NativeTypeName("struct IOverlayNotify2 : IOverlayNotify")] [NativeInheritance("IOverlayNotify")] -public unsafe partial struct IOverlayNotify2 : IOverlayNotify2.Interface +public unsafe partial struct IOverlayNotify2 : IOverlayNotify2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IOverlayNotify2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IPersistMediaPropertyBag.cs b/sources/Interop/Windows/Windows/um/strmif/IPersistMediaPropertyBag.cs index f91f8cf227..d7d9af6bed 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IPersistMediaPropertyBag.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IPersistMediaPropertyBag.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5738E040-B67F-11D0-BD4D-00A0C911CE86")] [NativeTypeName("struct IPersistMediaPropertyBag : IPersist")] [NativeInheritance("IPersist")] -public unsafe partial struct IPersistMediaPropertyBag : IPersistMediaPropertyBag.Interface +public unsafe partial struct IPersistMediaPropertyBag : IPersistMediaPropertyBag.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistMediaPropertyBag)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IPin.cs b/sources/Interop/Windows/Windows/um/strmif/IPin.cs index a5f4244786..245802ccb6 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IPin.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IPin.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86891-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IPin : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPin : IPin.Interface +public unsafe partial struct IPin : IPin.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPin)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IPinConnection.cs b/sources/Interop/Windows/Windows/um/strmif/IPinConnection.cs index 7e590affe3..16061f0d8f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IPinConnection.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IPinConnection.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4A9A62D3-27D4-403D-91E9-89F540E55534")] [NativeTypeName("struct IPinConnection : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPinConnection : IPinConnection.Interface +public unsafe partial struct IPinConnection : IPinConnection.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPinConnection)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IPinFlowControl.cs b/sources/Interop/Windows/Windows/um/strmif/IPinFlowControl.cs index 81c3632a50..bcfe3f0578 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IPinFlowControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IPinFlowControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C56E9858-DBF3-4F6B-8119-384AF2060DEB")] [NativeTypeName("struct IPinFlowControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPinFlowControl : IPinFlowControl.Interface +public unsafe partial struct IPinFlowControl : IPinFlowControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPinFlowControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IQualityControl.cs b/sources/Interop/Windows/Windows/um/strmif/IQualityControl.cs index 8aecbbb09b..77d26c0b23 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IQualityControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IQualityControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868A5-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IQualityControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IQualityControl : IQualityControl.Interface +public unsafe partial struct IQualityControl : IQualityControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IQualityControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IReferenceClock.cs b/sources/Interop/Windows/Windows/um/strmif/IReferenceClock.cs index 741fbdb45b..c9b189234a 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IReferenceClock.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IReferenceClock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A86897-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IReferenceClock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IReferenceClock : IReferenceClock.Interface +public unsafe partial struct IReferenceClock : IReferenceClock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IReferenceClock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IReferenceClock2.cs b/sources/Interop/Windows/Windows/um/strmif/IReferenceClock2.cs index 0411ac1d9c..2b4dc16184 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IReferenceClock2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IReferenceClock2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73885-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct IReferenceClock2 : IReferenceClock")] [NativeInheritance("IReferenceClock")] -public unsafe partial struct IReferenceClock2 : IReferenceClock2.Interface +public unsafe partial struct IReferenceClock2 : IReferenceClock2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IReferenceClock2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IReferenceClockTimerControl.cs b/sources/Interop/Windows/Windows/um/strmif/IReferenceClockTimerControl.cs index cb7e4aa6a7..a26e8ef8fc 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IReferenceClockTimerControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IReferenceClockTimerControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EBEC459C-2ECA-4D42-A8AF-30DF557614B8")] [NativeTypeName("struct IReferenceClockTimerControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IReferenceClockTimerControl : IReferenceClockTimerControl.Interface +public unsafe partial struct IReferenceClockTimerControl : IReferenceClockTimerControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IReferenceClockTimerControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IRegisterServiceProvider.cs b/sources/Interop/Windows/Windows/um/strmif/IRegisterServiceProvider.cs index 7aeda39b52..94faa0c258 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IRegisterServiceProvider.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IRegisterServiceProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7B3A2F01-0751-48DD-B556-004785171C54")] [NativeTypeName("struct IRegisterServiceProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IRegisterServiceProvider : IRegisterServiceProvider.Interface +public unsafe partial struct IRegisterServiceProvider : IRegisterServiceProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IRegisterServiceProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IResourceConsumer.cs b/sources/Interop/Windows/Windows/um/strmif/IResourceConsumer.cs index 5824f45633..f17816f6ad 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IResourceConsumer.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IResourceConsumer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868AD-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IResourceConsumer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IResourceConsumer : IResourceConsumer.Interface +public unsafe partial struct IResourceConsumer : IResourceConsumer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IResourceConsumer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IResourceManager.cs b/sources/Interop/Windows/Windows/um/strmif/IResourceManager.cs index 8e92d25cdc..7dd6173226 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IResourceManager.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IResourceManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868AC-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IResourceManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IResourceManager : IResourceManager.Interface +public unsafe partial struct IResourceManager : IResourceManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IResourceManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/ISeekingPassThru.cs b/sources/Interop/Windows/Windows/um/strmif/ISeekingPassThru.cs index 0bbb55e3da..1ea9f5e4b3 100644 --- a/sources/Interop/Windows/Windows/um/strmif/ISeekingPassThru.cs +++ b/sources/Interop/Windows/Windows/um/strmif/ISeekingPassThru.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("36B73883-C2C8-11CF-8B46-00805F6CEF60")] [NativeTypeName("struct ISeekingPassThru : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISeekingPassThru : ISeekingPassThru.Interface +public unsafe partial struct ISeekingPassThru : ISeekingPassThru.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISeekingPassThru)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IStreamBuilder.cs b/sources/Interop/Windows/Windows/um/strmif/IStreamBuilder.cs index 63cb6e4455..cdd00039df 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IStreamBuilder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IStreamBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("56A868BF-0AD4-11CE-B03A-0020AF0BA770")] [NativeTypeName("struct IStreamBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IStreamBuilder : IStreamBuilder.Interface +public unsafe partial struct IStreamBuilder : IStreamBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IStreamBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRAspectRatioControl.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRAspectRatioControl.cs index bbb617efeb..98813342c2 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRAspectRatioControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRAspectRatioControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EDE80B5C-BAD6-4623-B537-65586C9F8DFD")] [NativeTypeName("struct IVMRAspectRatioControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRAspectRatioControl : IVMRAspectRatioControl.Interface +public unsafe partial struct IVMRAspectRatioControl : IVMRAspectRatioControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRAspectRatioControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRDeinterlaceControl.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRDeinterlaceControl.cs index c0bf8efaab..6096963b0d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRDeinterlaceControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRDeinterlaceControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("BB057577-0DB8-4E6A-87A7-1A8C9A505A0F")] [NativeTypeName("struct IVMRDeinterlaceControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRDeinterlaceControl : IVMRDeinterlaceControl.Interface +public unsafe partial struct IVMRDeinterlaceControl : IVMRDeinterlaceControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRDeinterlaceControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRFilterConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRFilterConfig.cs index 9a77239335..8f6b7c7f3d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRFilterConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRFilterConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9E5530C5-7034-48B4-BB46-0B8A6EFC8E36")] [NativeTypeName("struct IVMRFilterConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRFilterConfig : IVMRFilterConfig.Interface +public unsafe partial struct IVMRFilterConfig : IVMRFilterConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRFilterConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRImageCompositor.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRImageCompositor.cs index 75010f539f..f154d14a19 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRImageCompositor.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRImageCompositor.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("7A4FB5AF-479F-4074-BB40-CE6722E43C82")] [NativeTypeName("struct IVMRImageCompositor : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRImageCompositor : IVMRImageCompositor.Interface +public unsafe partial struct IVMRImageCompositor : IVMRImageCompositor.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRImageCompositor)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenter.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenter.cs index 672a3e1063..7f234f2881 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenter.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CE704FE7-E71E-41FB-BAA2-C4403E1182F5")] [NativeTypeName("struct IVMRImagePresenter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRImagePresenter : IVMRImagePresenter.Interface +public unsafe partial struct IVMRImagePresenter : IVMRImagePresenter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRImagePresenter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterConfig.cs index bf20ac3ffa..a38b379d80 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9F3A1C85-8555-49BA-935F-BE5B5B29D178")] [NativeTypeName("struct IVMRImagePresenterConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRImagePresenterConfig : IVMRImagePresenterConfig.Interface +public unsafe partial struct IVMRImagePresenterConfig : IVMRImagePresenterConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRImagePresenterConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterExclModeConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterExclModeConfig.cs index 351db04fc8..95906e642d 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterExclModeConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRImagePresenterExclModeConfig.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("E6F7CE40-4673-44F1-8F77-5499D68CB4EA")] [NativeTypeName("struct IVMRImagePresenterExclModeConfig : IVMRImagePresenterConfig")] [NativeInheritance("IVMRImagePresenterConfig")] -public unsafe partial struct IVMRImagePresenterExclModeConfig : IVMRImagePresenterExclModeConfig.Interface +public unsafe partial struct IVMRImagePresenterExclModeConfig : IVMRImagePresenterExclModeConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRImagePresenterExclModeConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRMixerBitmap.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRMixerBitmap.cs index ee27602239..3fcf4ca347 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRMixerBitmap.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRMixerBitmap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1E673275-0257-40AA-AF20-7C608D4A0428")] [NativeTypeName("struct IVMRMixerBitmap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRMixerBitmap : IVMRMixerBitmap.Interface +public unsafe partial struct IVMRMixerBitmap : IVMRMixerBitmap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRMixerBitmap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRMixerControl.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRMixerControl.cs index d69619fbb2..e17e588aae 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRMixerControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRMixerControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("1C1A17B0-BED0-415D-974B-DC6696131599")] [NativeTypeName("struct IVMRMixerControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRMixerControl : IVMRMixerControl.Interface +public unsafe partial struct IVMRMixerControl : IVMRMixerControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRMixerControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRMonitorConfig.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRMonitorConfig.cs index a1f356d147..6e1ffa7966 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRMonitorConfig.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRMonitorConfig.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9CF0B1B6-FBAA-4B7F-88CF-CF1F130A0DCE")] [NativeTypeName("struct IVMRMonitorConfig : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRMonitorConfig : IVMRMonitorConfig.Interface +public unsafe partial struct IVMRMonitorConfig : IVMRMonitorConfig.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRMonitorConfig)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRSurface.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRSurface.cs index dab486f4e2..168e491568 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRSurface.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRSurface.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("A9849BBE-9EC8-4263-B764-62730F0D15D0")] [NativeTypeName("struct IVMRSurface : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRSurface : IVMRSurface.Interface +public unsafe partial struct IVMRSurface : IVMRSurface.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRSurface)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocator.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocator.cs index c650f3f8f8..51b4094e0c 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocator.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocator.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("31CE832E-4484-458B-8CCA-F4D7E3DB0B52")] [NativeTypeName("struct IVMRSurfaceAllocator : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRSurfaceAllocator : IVMRSurfaceAllocator.Interface +public unsafe partial struct IVMRSurfaceAllocator : IVMRSurfaceAllocator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRSurfaceAllocator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocatorNotify.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocatorNotify.cs index 21805937ee..8cd50bbcf1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocatorNotify.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRSurfaceAllocatorNotify.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("AADA05A8-5A4E-4729-AF0B-CEA27AED51E2")] [NativeTypeName("struct IVMRSurfaceAllocatorNotify : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRSurfaceAllocatorNotify : IVMRSurfaceAllocatorNotify.Interface +public unsafe partial struct IVMRSurfaceAllocatorNotify : IVMRSurfaceAllocatorNotify.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRSurfaceAllocatorNotify)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRVideoStreamControl.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRVideoStreamControl.cs index fdf2c313c1..db85b7bb44 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRVideoStreamControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRVideoStreamControl.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -14,8 +15,10 @@ namespace TerraFX.Interop.Windows; [Guid("058D1F11-2A54-4BEF-BD54-DF706626B727")] [NativeTypeName("struct IVMRVideoStreamControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRVideoStreamControl : IVMRVideoStreamControl.Interface +public unsafe partial struct IVMRVideoStreamControl : IVMRVideoStreamControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRVideoStreamControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVMRWindowlessControl.cs b/sources/Interop/Windows/Windows/um/strmif/IVMRWindowlessControl.cs index e66050df99..2e7a1891f4 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVMRWindowlessControl.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVMRWindowlessControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("0EB1088C-4DCD-46F0-878F-39DAE86A51B7")] [NativeTypeName("struct IVMRWindowlessControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVMRWindowlessControl : IVMRWindowlessControl.Interface +public unsafe partial struct IVMRWindowlessControl : IVMRWindowlessControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVMRWindowlessControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVPManager.cs b/sources/Interop/Windows/Windows/um/strmif/IVPManager.cs index 275dc5d19e..19c3e623bc 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVPManager.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVPManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AAC18C18-E186-46D2-825D-A1F8DC8E395A")] [NativeTypeName("struct IVPManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVPManager : IVPManager.Interface +public unsafe partial struct IVPManager : IVPManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVPManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVideoEncoder.cs b/sources/Interop/Windows/Windows/um/strmif/IVideoEncoder.cs index 6b89a96212..c8f6980458 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVideoEncoder.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVideoEncoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("02997C3B-8E1B-460E-9270-545E0DE9563E")] [NativeTypeName("struct IVideoEncoder : IEncoderAPI")] [NativeInheritance("IEncoderAPI")] -public unsafe partial struct IVideoEncoder : IVideoEncoder.Interface +public unsafe partial struct IVideoEncoder : IVideoEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVideoEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/IVideoFrameStep.cs b/sources/Interop/Windows/Windows/um/strmif/IVideoFrameStep.cs index e3763bc65e..46a8b3aa4f 100644 --- a/sources/Interop/Windows/Windows/um/strmif/IVideoFrameStep.cs +++ b/sources/Interop/Windows/Windows/um/strmif/IVideoFrameStep.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E46A9787-2B71-444D-A4B5-1FAB7B708D6A")] [NativeTypeName("struct IVideoFrameStep : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IVideoFrameStep : IVideoFrameStep.Interface +public unsafe partial struct IVideoFrameStep : IVideoFrameStep.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IVideoFrameStep)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/strmif/REGFILTER2.cs b/sources/Interop/Windows/Windows/um/strmif/REGFILTER2.cs index 9265ffa0fc..f56207f115 100644 --- a/sources/Interop/Windows/Windows/um/strmif/REGFILTER2.cs +++ b/sources/Interop/Windows/Windows/um/strmif/REGFILTER2.cs @@ -3,6 +3,7 @@ // Ported from um/strmif.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,42 +25,46 @@ public unsafe partial struct REGFILTER2 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint cPins { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.cPins, 1)); + return ref Anonymous.Anonymous1.cPins; } } /// + [UnscopedRef] public ref REGFILTERPINS* rgPins { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous1.rgPins; + return ref Anonymous.Anonymous1.rgPins; } } /// + [UnscopedRef] public ref uint cPins2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2.cPins2, 1)); + return ref Anonymous.Anonymous2.cPins2; } } /// + [UnscopedRef] public ref REGFILTERPINS2* rgPins2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Anonymous2.rgPins2; + return ref Anonymous.Anonymous2.rgPins2; } } diff --git a/sources/Interop/Windows/Windows/um/strmif/TIMECODE.cs b/sources/Interop/Windows/Windows/um/strmif/TIMECODE.cs index 795f721b00..a3ee2238a0 100644 --- a/sources/Interop/Windows/Windows/um/strmif/TIMECODE.cs +++ b/sources/Interop/Windows/Windows/um/strmif/TIMECODE.cs @@ -3,6 +3,7 @@ // Ported from um/strmif.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,32 +24,35 @@ public partial struct TIMECODE public ulong qw; /// + [UnscopedRef] public ref ushort wFrameRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.wFrameRate, 1)); + return ref Anonymous.wFrameRate; } } /// + [UnscopedRef] public ref ushort wFrameFract { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.wFrameFract, 1)); + return ref Anonymous.wFrameFract; } } /// + [UnscopedRef] public ref uint dwFrames { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFrames, 1)); + return ref Anonymous.dwFrames; } } diff --git a/sources/Interop/Windows/Windows/um/sysinfoapi/SYSTEM_INFO.cs b/sources/Interop/Windows/Windows/um/sysinfoapi/SYSTEM_INFO.cs index d9b9c5233a..529fc288a5 100644 --- a/sources/Interop/Windows/Windows/um/sysinfoapi/SYSTEM_INFO.cs +++ b/sources/Interop/Windows/Windows/um/sysinfoapi/SYSTEM_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/sysinfoapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -52,32 +53,35 @@ public unsafe partial struct SYSTEM_INFO public ushort wProcessorRevision; /// + [UnscopedRef] public ref uint dwOemId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwOemId, 1)); + return ref Anonymous.dwOemId; } } /// + [UnscopedRef] public ref ushort wProcessorArchitecture { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wProcessorArchitecture, 1)); + return ref Anonymous.Anonymous.wProcessorArchitecture; } } /// + [UnscopedRef] public ref ushort wReserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.wReserved, 1)); + return ref Anonymous.Anonymous.wReserved; } } diff --git a/sources/Interop/Windows/Windows/um/thumbcache/ISharedBitmap.cs b/sources/Interop/Windows/Windows/um/thumbcache/ISharedBitmap.cs index 65c3925821..f7323c4c63 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/ISharedBitmap.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/ISharedBitmap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("091162A4-BC96-411F-AAE8-C5122CD03363")] [NativeTypeName("struct ISharedBitmap : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISharedBitmap : ISharedBitmap.Interface +public unsafe partial struct ISharedBitmap : ISharedBitmap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISharedBitmap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCache.cs b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCache.cs index 5c7fcd688d..6d214794f0 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCache.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCache.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F676C15D-596A-4CE2-8234-33996F445DB1")] [NativeTypeName("struct IThumbnailCache : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IThumbnailCache : IThumbnailCache.Interface +public unsafe partial struct IThumbnailCache : IThumbnailCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCachePrimer.cs b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCachePrimer.cs index a4a2f5946b..9bfbf5e0cc 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCachePrimer.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailCachePrimer.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IThumbnailCachePrimer : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IThumbnailCachePrimer : IThumbnailCachePrimer.Interface +public unsafe partial struct IThumbnailCachePrimer : IThumbnailCachePrimer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailCachePrimer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailProvider.cs b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailProvider.cs index 19a7c4ceed..546e1a214a 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailProvider.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E357FCCD-A995-4576-B01F-234630154E96")] [NativeTypeName("struct IThumbnailProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IThumbnailProvider : IThumbnailProvider.Interface +public unsafe partial struct IThumbnailProvider : IThumbnailProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailSettings.cs b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailSettings.cs index f824f9ae7b..b9b9bfc4d9 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailSettings.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/IThumbnailSettings.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IThumbnailSettings : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IThumbnailSettings : IThumbnailSettings.Interface +public unsafe partial struct IThumbnailSettings : IThumbnailSettings.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailSettings)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbcache/LocalThumbnailCache.cs b/sources/Interop/Windows/Windows/um/thumbcache/LocalThumbnailCache.cs index 5474914afb..082dcb0e93 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/LocalThumbnailCache.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/LocalThumbnailCache.cs @@ -3,12 +3,16 @@ // Ported from um/thumbcache.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("50EF4544-AC9F-4A8E-B21B-8A26180DB13F")] -public partial struct LocalThumbnailCache +public unsafe partial struct LocalThumbnailCache : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_LocalThumbnailCache)); } diff --git a/sources/Interop/Windows/Windows/um/thumbcache/SharedBitmap.cs b/sources/Interop/Windows/Windows/um/thumbcache/SharedBitmap.cs index 6cc71217b0..54bbf79eb0 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/SharedBitmap.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/SharedBitmap.cs @@ -3,12 +3,16 @@ // Ported from um/thumbcache.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("4DB26476-6787-4046-B836-E8412A9E8A27")] -public partial struct SharedBitmap +public unsafe partial struct SharedBitmap : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_SharedBitmap)); } diff --git a/sources/Interop/Windows/Windows/um/thumbnailstreamcache/IThumbnailStreamCache.cs b/sources/Interop/Windows/Windows/um/thumbnailstreamcache/IThumbnailStreamCache.cs index 8940b7d477..9ba786103c 100644 --- a/sources/Interop/Windows/Windows/um/thumbnailstreamcache/IThumbnailStreamCache.cs +++ b/sources/Interop/Windows/Windows/um/thumbnailstreamcache/IThumbnailStreamCache.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IThumbnailStreamCache : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IThumbnailStreamCache : IThumbnailStreamCache.Interface +public unsafe partial struct IThumbnailStreamCache : IThumbnailStreamCache.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IThumbnailStreamCache)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/thumbnailstreamcache/ThumbnailStreamCache.cs b/sources/Interop/Windows/Windows/um/thumbnailstreamcache/ThumbnailStreamCache.cs index a0ac936412..eb2b7842df 100644 --- a/sources/Interop/Windows/Windows/um/thumbnailstreamcache/ThumbnailStreamCache.cs +++ b/sources/Interop/Windows/Windows/um/thumbnailstreamcache/ThumbnailStreamCache.cs @@ -3,12 +3,16 @@ // Ported from um/thumbnailstreamcache.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; /// [Guid("CBE0FED3-4B91-4E90-8354-8A8C84EC6872")] -public partial struct ThumbnailStreamCache +public unsafe partial struct ThumbnailStreamCache : INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ThumbnailStreamCache)); } diff --git a/sources/Interop/Windows/Windows/um/tlogstg/IEnumTravelLogEntry.cs b/sources/Interop/Windows/Windows/um/tlogstg/IEnumTravelLogEntry.cs index c3f887002a..43a385baa1 100644 --- a/sources/Interop/Windows/Windows/um/tlogstg/IEnumTravelLogEntry.cs +++ b/sources/Interop/Windows/Windows/um/tlogstg/IEnumTravelLogEntry.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7EBFDD85-AD18-11D3-A4C5-00C04F72D6B8")] [NativeTypeName("struct IEnumTravelLogEntry : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEnumTravelLogEntry : IEnumTravelLogEntry.Interface +public unsafe partial struct IEnumTravelLogEntry : IEnumTravelLogEntry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEnumTravelLogEntry)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogClient.cs b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogClient.cs index 82014ae90a..dea5bdf322 100644 --- a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogClient.cs +++ b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogClient.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("241C033E-E659-43DA-AA4D-4086DBC4758D")] [NativeTypeName("struct ITravelLogClient : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITravelLogClient : ITravelLogClient.Interface +public unsafe partial struct ITravelLogClient : ITravelLogClient.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITravelLogClient)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogEntry.cs b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogEntry.cs index b80c892d31..6f1cc12d01 100644 --- a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogEntry.cs +++ b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogEntry.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7EBFDD87-AD18-11D3-A4C5-00C04F72D6B8")] [NativeTypeName("struct ITravelLogEntry : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITravelLogEntry : ITravelLogEntry.Interface +public unsafe partial struct ITravelLogEntry : ITravelLogEntry.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITravelLogEntry)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogStg.cs b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogStg.cs index 413c7dd72d..0358daddbc 100644 --- a/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogStg.cs +++ b/sources/Interop/Windows/Windows/um/tlogstg/ITravelLogStg.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7EBFDD80-AD18-11D3-A4C5-00C04F72D6B8")] [NativeTypeName("struct ITravelLogStg : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ITravelLogStg : ITravelLogStg.Interface +public unsafe partial struct ITravelLogStg : ITravelLogStg.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ITravelLogStg)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IAuthenticate.cs b/sources/Interop/Windows/Windows/um/urlmon/IAuthenticate.cs index b59757c9cb..80bd18a519 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IAuthenticate.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IAuthenticate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D0-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IAuthenticate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IAuthenticate : IAuthenticate.Interface +public unsafe partial struct IAuthenticate : IAuthenticate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAuthenticate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IAuthenticateEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IAuthenticateEx.cs index 33c5cd0278..2cc07c5f37 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IAuthenticateEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IAuthenticateEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("2AD1EDAF-D83D-48B5-9ADF-03DBE19F53BD")] [NativeTypeName("struct IAuthenticateEx : IAuthenticate")] [NativeInheritance("IAuthenticate")] -public unsafe partial struct IAuthenticateEx : IAuthenticateEx.Interface +public unsafe partial struct IAuthenticateEx : IAuthenticateEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IAuthenticateEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindCallbackRedirect.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindCallbackRedirect.cs index 26fe4ea074..b327149be8 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindCallbackRedirect.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindCallbackRedirect.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("11C81BC2-121E-4ED5-B9C4-B430BD54F2C0")] [NativeTypeName("struct IBindCallbackRedirect : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindCallbackRedirect : IBindCallbackRedirect.Interface +public unsafe partial struct IBindCallbackRedirect : IBindCallbackRedirect.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindCallbackRedirect)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindHost.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindHost.cs index 0395660ac7..bd211fd556 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindHost.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindHost.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FC4801A1-2BA9-11CF-A229-00AA003D7352")] [NativeTypeName("struct IBindHost : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindHost : IBindHost.Interface +public unsafe partial struct IBindHost : IBindHost.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindHost)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindHttpSecurity.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindHttpSecurity.cs index 5217a5a602..9446937e59 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindHttpSecurity.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindHttpSecurity.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A9EDA967-F50E-4A33-B358-206F6EF3086D")] [NativeTypeName("struct IBindHttpSecurity : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindHttpSecurity : IBindHttpSecurity.Interface +public unsafe partial struct IBindHttpSecurity : IBindHttpSecurity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindHttpSecurity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindProtocol.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindProtocol.cs index 9d27ced114..fbd005be71 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindProtocol.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindProtocol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9CD-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IBindProtocol : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindProtocol : IBindProtocol.Interface +public unsafe partial struct IBindProtocol : IBindProtocol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindProtocol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallback.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallback.cs index 4e7b3f3ab7..daae51bf52 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallback.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C1-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IBindStatusCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBindStatusCallback : IBindStatusCallback.Interface +public unsafe partial struct IBindStatusCallback : IBindStatusCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindStatusCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallbackEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallbackEx.cs index 616e4bfcf7..3dec782c4c 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallbackEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBindStatusCallbackEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AAA74EF9-8EE7-4659-88D9-F8C504DA73CC")] [NativeTypeName("struct IBindStatusCallbackEx : IBindStatusCallback")] [NativeInheritance("IBindStatusCallback")] -public unsafe partial struct IBindStatusCallbackEx : IBindStatusCallbackEx.Interface +public unsafe partial struct IBindStatusCallbackEx : IBindStatusCallbackEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBindStatusCallbackEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IBinding.cs b/sources/Interop/Windows/Windows/um/urlmon/IBinding.cs index 2346e6f72f..25bf6b51e7 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IBinding.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IBinding.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C0-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IBinding : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IBinding : IBinding.Interface +public unsafe partial struct IBinding : IBinding.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IBinding)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/ICatalogFileInfo.cs b/sources/Interop/Windows/Windows/um/urlmon/ICatalogFileInfo.cs index 5e937eb979..119f5d79a5 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/ICatalogFileInfo.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/ICatalogFileInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("711C7600-6B48-11D1-B403-00AA00B92AF1")] [NativeTypeName("struct ICatalogFileInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ICatalogFileInfo : ICatalogFileInfo.Interface +public unsafe partial struct ICatalogFileInfo : ICatalogFileInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICatalogFileInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/ICodeInstall.cs b/sources/Interop/Windows/Windows/um/urlmon/ICodeInstall.cs index bb9b7b2bf2..407ee5463c 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/ICodeInstall.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/ICodeInstall.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D1-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct ICodeInstall : IWindowForBindingUI")] [NativeInheritance("IWindowForBindingUI")] -public unsafe partial struct ICodeInstall : ICodeInstall.Interface +public unsafe partial struct ICodeInstall : ICodeInstall.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ICodeInstall)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IDataFilter.cs b/sources/Interop/Windows/Windows/um/urlmon/IDataFilter.cs index 7cdffd414c..3d2a982cd6 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IDataFilter.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IDataFilter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("69D14C80-C18E-11D0-A9CE-006097942311")] [NativeTypeName("struct IDataFilter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IDataFilter : IDataFilter.Interface +public unsafe partial struct IDataFilter : IDataFilter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDataFilter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IEncodingFilterFactory.cs b/sources/Interop/Windows/Windows/um/urlmon/IEncodingFilterFactory.cs index e41ec46333..f9ab9b41fb 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IEncodingFilterFactory.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IEncodingFilterFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("70BDDE00-C18E-11D0-A9CE-006097942311")] [NativeTypeName("struct IEncodingFilterFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IEncodingFilterFactory : IEncodingFilterFactory.Interface +public unsafe partial struct IEncodingFilterFactory : IEncodingFilterFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IEncodingFilterFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IGetBindHandle.cs b/sources/Interop/Windows/Windows/um/urlmon/IGetBindHandle.cs index 567383b5c6..f4970d4284 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IGetBindHandle.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IGetBindHandle.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("AF0FF408-129D-4B20-91F0-02BD23D88352")] [NativeTypeName("struct IGetBindHandle : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IGetBindHandle : IGetBindHandle.Interface +public unsafe partial struct IGetBindHandle : IGetBindHandle.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IGetBindHandle)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate.cs b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate.cs index 7c8700217d..804303b39f 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D2-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHttpNegotiate : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IHttpNegotiate : IHttpNegotiate.Interface +public unsafe partial struct IHttpNegotiate : IHttpNegotiate.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHttpNegotiate)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate2.cs b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate2.cs index 54c1219d52..a1a28107ed 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate2.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4F9F9FCB-E0F4-48EB-B7AB-FA2EA9365CB4")] [NativeTypeName("struct IHttpNegotiate2 : IHttpNegotiate")] [NativeInheritance("IHttpNegotiate")] -public unsafe partial struct IHttpNegotiate2 : IHttpNegotiate2.Interface +public unsafe partial struct IHttpNegotiate2 : IHttpNegotiate2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHttpNegotiate2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate3.cs b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate3.cs index f7aa5c4cb5..6110d517a4 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate3.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IHttpNegotiate3.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("57B6C80A-34C2-4602-BC26-66A02FC57153")] [NativeTypeName("struct IHttpNegotiate3 : IHttpNegotiate2")] [NativeInheritance("IHttpNegotiate2")] -public unsafe partial struct IHttpNegotiate3 : IHttpNegotiate3.Interface +public unsafe partial struct IHttpNegotiate3 : IHttpNegotiate3.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHttpNegotiate3)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IHttpSecurity.cs b/sources/Interop/Windows/Windows/um/urlmon/IHttpSecurity.cs index 8047b52e8a..c20a96356e 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IHttpSecurity.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IHttpSecurity.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D7-BAFA-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IHttpSecurity : IWindowForBindingUI")] [NativeInheritance("IWindowForBindingUI")] -public unsafe partial struct IHttpSecurity : IHttpSecurity.Interface +public unsafe partial struct IHttpSecurity : IHttpSecurity.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IHttpSecurity)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternet.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternet.cs index d0d0717a90..9260c9a3e7 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternet.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternet.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E0-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternet : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternet : IInternet.Interface +public unsafe partial struct IInternet : IInternet.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternet)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfo.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfo.cs index 509f9ae42f..647cad04be 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfo.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E1-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetBindInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetBindInfo : IInternetBindInfo.Interface +public unsafe partial struct IInternetBindInfo : IInternetBindInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetBindInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfoEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfoEx.cs index 983057a3c8..94d03b9740 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfoEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetBindInfoEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A3E015B7-A82C-4DCD-A150-569AEEED36AB")] [NativeTypeName("struct IInternetBindInfoEx : IInternetBindInfo")] [NativeInheritance("IInternetBindInfo")] -public unsafe partial struct IInternetBindInfoEx : IInternetBindInfoEx.Interface +public unsafe partial struct IInternetBindInfoEx : IInternetBindInfoEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetBindInfoEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetHostSecurityManager.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetHostSecurityManager.cs index 7013a95793..9d4d739859 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetHostSecurityManager.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetHostSecurityManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3AF280B6-CB3F-11D0-891E-00C04FB6BFC4")] [NativeTypeName("struct IInternetHostSecurityManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetHostSecurityManager : IInternetHostSecurityManager.Interface +public unsafe partial struct IInternetHostSecurityManager : IInternetHostSecurityManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetHostSecurityManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetPriority.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetPriority.cs index c94de6f143..42ee20bafa 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetPriority.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetPriority.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9EB-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetPriority : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetPriority : IInternetPriority.Interface +public unsafe partial struct IInternetPriority : IInternetPriority.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetPriority)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocol.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocol.cs index a3236baaa2..cb4cf63d0b 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocol.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E4-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetProtocol : IInternetProtocolRoot")] [NativeInheritance("IInternetProtocolRoot")] -public unsafe partial struct IInternetProtocol : IInternetProtocol.Interface +public unsafe partial struct IInternetProtocol : IInternetProtocol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolEx.cs index ff3c0e8474..188df46b5a 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("C7A98E66-1010-492C-A1C8-C809E1F75905")] [NativeTypeName("struct IInternetProtocolEx : IInternetProtocol")] [NativeInheritance("IInternetProtocol")] -public unsafe partial struct IInternetProtocolEx : IInternetProtocolEx.Interface +public unsafe partial struct IInternetProtocolEx : IInternetProtocolEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocolEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolInfo.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolInfo.cs index f0a02f68a4..c1a410d993 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolInfo.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9EC-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetProtocolInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetProtocolInfo : IInternetProtocolInfo.Interface +public unsafe partial struct IInternetProtocolInfo : IInternetProtocolInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocolInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolRoot.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolRoot.cs index 2638a38600..95ebde6a90 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolRoot.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolRoot.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E3-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetProtocolRoot : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetProtocolRoot : IInternetProtocolRoot.Interface +public unsafe partial struct IInternetProtocolRoot : IInternetProtocolRoot.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocolRoot)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSink.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSink.cs index 2fa28e1acd..e627d66a01 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSink.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSink.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E5-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetProtocolSink : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetProtocolSink : IInternetProtocolSink.Interface +public unsafe partial struct IInternetProtocolSink : IInternetProtocolSink.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocolSink)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSinkStackable.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSinkStackable.cs index 0071b2f274..786dac5610 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSinkStackable.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetProtocolSinkStackable.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9F0-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetProtocolSinkStackable : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetProtocolSinkStackable : IInternetProtocolSinkStackable.Interface +public unsafe partial struct IInternetProtocolSinkStackable : IInternetProtocolSinkStackable.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetProtocolSinkStackable)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManager.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManager.cs index c9416ecfb3..080de8f899 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManager.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9EE-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetSecurityManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetSecurityManager : IInternetSecurityManager.Interface +public unsafe partial struct IInternetSecurityManager : IInternetSecurityManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetSecurityManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx.cs index f875e35413..a6c8462f53 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F164EDF1-CC7C-4F0D-9A94-34222625C393")] [NativeTypeName("struct IInternetSecurityManagerEx : IInternetSecurityManager")] [NativeInheritance("IInternetSecurityManager")] -public unsafe partial struct IInternetSecurityManagerEx : IInternetSecurityManagerEx.Interface +public unsafe partial struct IInternetSecurityManagerEx : IInternetSecurityManagerEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetSecurityManagerEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx2.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx2.cs index 1093cec1d3..0ef8fa3876 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx2.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityManagerEx2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F1E50292-A795-4117-8E09-2B560A72AC60")] [NativeTypeName("struct IInternetSecurityManagerEx2 : IInternetSecurityManagerEx")] [NativeInheritance("IInternetSecurityManagerEx")] -public unsafe partial struct IInternetSecurityManagerEx2 : IInternetSecurityManagerEx2.Interface +public unsafe partial struct IInternetSecurityManagerEx2 : IInternetSecurityManagerEx2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetSecurityManagerEx2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityMgrSite.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityMgrSite.cs index aa93447e23..9c074980b3 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityMgrSite.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetSecurityMgrSite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9ED-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetSecurityMgrSite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetSecurityMgrSite : IInternetSecurityMgrSite.Interface +public unsafe partial struct IInternetSecurityMgrSite : IInternetSecurityMgrSite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetSecurityMgrSite)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetSession.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetSession.cs index e9234dea97..703ea029f3 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetSession.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetSession.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E7-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetSession : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetSession : IInternetSession.Interface +public unsafe partial struct IInternetSession : IInternetSession.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetSession)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetThreadSwitch.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetThreadSwitch.cs index d0feb1cbc6..d0568eb838 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetThreadSwitch.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetThreadSwitch.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9E8-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetThreadSwitch : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetThreadSwitch : IInternetThreadSwitch.Interface +public unsafe partial struct IInternetThreadSwitch : IInternetThreadSwitch.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetThreadSwitch)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManager.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManager.cs index 8e2d15aba2..c43fecd6f9 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManager.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManager.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9EF-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IInternetZoneManager : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IInternetZoneManager : IInternetZoneManager.Interface +public unsafe partial struct IInternetZoneManager : IInternetZoneManager.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetZoneManager)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx.cs index c90eed2340..d5042ffb30 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A4C23339-8E06-431E-9BF4-7E711C085648")] [NativeTypeName("struct IInternetZoneManagerEx : IInternetZoneManager")] [NativeInheritance("IInternetZoneManager")] -public unsafe partial struct IInternetZoneManagerEx : IInternetZoneManagerEx.Interface +public unsafe partial struct IInternetZoneManagerEx : IInternetZoneManagerEx.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetZoneManagerEx)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx2.cs b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx2.cs index 8143fc832e..662231e52e 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx2.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IInternetZoneManagerEx2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EDC17559-DD5D-4846-8EEF-8BECBA5A4ABF")] [NativeTypeName("struct IInternetZoneManagerEx2 : IInternetZoneManagerEx")] [NativeInheritance("IInternetZoneManagerEx")] -public unsafe partial struct IInternetZoneManagerEx2 : IInternetZoneManagerEx2.Interface +public unsafe partial struct IInternetZoneManagerEx2 : IInternetZoneManagerEx2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInternetZoneManagerEx2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IMonikerProp.cs b/sources/Interop/Windows/Windows/um/urlmon/IMonikerProp.cs index 7205710971..80a055b32c 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IMonikerProp.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IMonikerProp.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A5CA5F7F-1847-4D87-9C5B-918509F7511D")] [NativeTypeName("struct IMonikerProp : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IMonikerProp : IMonikerProp.Interface +public unsafe partial struct IMonikerProp : IMonikerProp.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IMonikerProp)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IPersistMoniker.cs b/sources/Interop/Windows/Windows/um/urlmon/IPersistMoniker.cs index de2491979a..c2e7cef551 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IPersistMoniker.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IPersistMoniker.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9C9-BAF9-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IPersistMoniker : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IPersistMoniker : IPersistMoniker.Interface +public unsafe partial struct IPersistMoniker : IPersistMoniker.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IPersistMoniker)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/ISoftDistExt.cs b/sources/Interop/Windows/Windows/um/urlmon/ISoftDistExt.cs index dc89e6c710..e335e0d9bc 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/ISoftDistExt.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/ISoftDistExt.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B15B8DC1-C7E1-11D0-8680-00AA00BDCB71")] [NativeTypeName("struct ISoftDistExt : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct ISoftDistExt : ISoftDistExt.Interface +public unsafe partial struct ISoftDistExt : ISoftDistExt.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ISoftDistExt)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IUri.cs b/sources/Interop/Windows/Windows/um/urlmon/IUri.cs index bd4a644c1e..fde05c2101 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IUri.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IUri.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A39EE748-6A27-4817-A6F2-13914BEF5890")] [NativeTypeName("struct IUri : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUri : IUri.Interface +public unsafe partial struct IUri : IUri.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUri)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IUriBuilder.cs b/sources/Interop/Windows/Windows/um/urlmon/IUriBuilder.cs index 89d18b808f..0842edbb3c 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IUriBuilder.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IUriBuilder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4221B2E1-8955-46C0-BD5B-DE9897565DE7")] [NativeTypeName("struct IUriBuilder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUriBuilder : IUriBuilder.Interface +public unsafe partial struct IUriBuilder : IUriBuilder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUriBuilder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IUriBuilderFactory.cs b/sources/Interop/Windows/Windows/um/urlmon/IUriBuilderFactory.cs index 05b36c836c..9e63da148b 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IUriBuilderFactory.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IUriBuilderFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E982CE48-0B96-440C-BC37-0C869B27A29E")] [NativeTypeName("struct IUriBuilderFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUriBuilderFactory : IUriBuilderFactory.Interface +public unsafe partial struct IUriBuilderFactory : IUriBuilderFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUriBuilderFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IUriContainer.cs b/sources/Interop/Windows/Windows/um/urlmon/IUriContainer.cs index 264c0f30bf..2733a85160 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IUriContainer.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IUriContainer.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A158A630-ED6F-45FB-B987-F68676F57752")] [NativeTypeName("struct IUriContainer : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IUriContainer : IUriContainer.Interface +public unsafe partial struct IUriContainer : IUriContainer.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUriContainer)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints.cs index ac34934ede..5537d3c8fa 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DD1EC3B3-8391-4FDB-A9E6-347C3CAAA7DD")] [NativeTypeName("struct IWinInetCacheHints : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWinInetCacheHints : IWinInetCacheHints.Interface +public unsafe partial struct IWinInetCacheHints : IWinInetCacheHints.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetCacheHints)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints2.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints2.cs index c272c4b636..fd2950441d 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints2.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetCacheHints2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7857AEAC-D31F-49BF-884E-DD46DF36780A")] [NativeTypeName("struct IWinInetCacheHints2 : IWinInetCacheHints")] [NativeInheritance("IWinInetCacheHints")] -public unsafe partial struct IWinInetCacheHints2 : IWinInetCacheHints2.Interface +public unsafe partial struct IWinInetCacheHints2 : IWinInetCacheHints2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetCacheHints2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetFileStream.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetFileStream.cs index 3b6ba67dac..d06d4e9f42 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetFileStream.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetFileStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F134C4B7-B1F8-4E75-B886-74B90943BECB")] [NativeTypeName("struct IWinInetFileStream : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWinInetFileStream : IWinInetFileStream.Interface +public unsafe partial struct IWinInetFileStream : IWinInetFileStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetFileStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpInfo.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpInfo.cs index a20669cafe..0a6e47ef39 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpInfo.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D8-BAFA-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IWinInetHttpInfo : IWinInetInfo")] [NativeInheritance("IWinInetInfo")] -public unsafe partial struct IWinInetHttpInfo : IWinInetHttpInfo.Interface +public unsafe partial struct IWinInetHttpInfo : IWinInetHttpInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetHttpInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpTimeouts.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpTimeouts.cs index 385d7a1bca..61a65435a1 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpTimeouts.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetHttpTimeouts.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F286FA56-C1FD-4270-8E67-B3EB790A81E8")] [NativeTypeName("struct IWinInetHttpTimeouts : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWinInetHttpTimeouts : IWinInetHttpTimeouts.Interface +public unsafe partial struct IWinInetHttpTimeouts : IWinInetHttpTimeouts.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetHttpTimeouts)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWinInetInfo.cs b/sources/Interop/Windows/Windows/um/urlmon/IWinInetInfo.cs index 949d1907ec..8c5c366fa6 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWinInetInfo.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWinInetInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D6-BAFA-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IWinInetInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWinInetInfo : IWinInetInfo.Interface +public unsafe partial struct IWinInetInfo : IWinInetInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWinInetInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWindowForBindingUI.cs b/sources/Interop/Windows/Windows/um/urlmon/IWindowForBindingUI.cs index 01a8d0fb5a..eeb392af4a 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWindowForBindingUI.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWindowForBindingUI.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("79EAC9D5-BAFA-11CE-8C82-00AA004BA90B")] [NativeTypeName("struct IWindowForBindingUI : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWindowForBindingUI : IWindowForBindingUI.Interface +public unsafe partial struct IWindowForBindingUI : IWindowForBindingUI.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWindowForBindingUI)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IWrappedProtocol.cs b/sources/Interop/Windows/Windows/um/urlmon/IWrappedProtocol.cs index 3e8374b7ff..ae68fda766 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IWrappedProtocol.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IWrappedProtocol.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("53C84785-8425-4DC5-971B-E58D9C19F9B6")] [NativeTypeName("struct IWrappedProtocol : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWrappedProtocol : IWrappedProtocol.Interface +public unsafe partial struct IWrappedProtocol : IWrappedProtocol.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWrappedProtocol)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier.cs b/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier.cs index a591ed5dd5..8501ff6bbc 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("CD45F185-1B21-48E2-967B-EAD743A8914E")] [NativeTypeName("struct IZoneIdentifier : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IZoneIdentifier : IZoneIdentifier.Interface +public unsafe partial struct IZoneIdentifier : IZoneIdentifier.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IZoneIdentifier)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier2.cs b/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier2.cs index 16e2ba705e..e1c06e1720 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier2.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/IZoneIdentifier2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EB5E760C-09EF-45C0-B510-70830CE31E6A")] [NativeTypeName("struct IZoneIdentifier2 : IZoneIdentifier")] [NativeInheritance("IZoneIdentifier")] -public unsafe partial struct IZoneIdentifier2 : IZoneIdentifier2.Interface +public unsafe partial struct IZoneIdentifier2 : IZoneIdentifier2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IZoneIdentifier2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wcmapi/WCM_PROFILE_INFO_LIST.cs b/sources/Interop/Windows/Windows/um/wcmapi/WCM_PROFILE_INFO_LIST.cs index d8b08142f3..a37bac318a 100644 --- a/sources/Interop/Windows/Windows/um/wcmapi/WCM_PROFILE_INFO_LIST.cs +++ b/sources/Interop/Windows/Windows/um/wcmapi/WCM_PROFILE_INFO_LIST.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -27,6 +28,7 @@ public partial struct _ProfileInfo_e__FixedBuffer { public WCM_PROFILE_INFO e0; + [UnscopedRef] public ref WCM_PROFILE_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -37,6 +39,7 @@ public ref WCM_PROFILE_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmap.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmap.cs index 2867d592fe..3c5a658f41 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmap.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmap.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000121-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmap : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmap : IWICBitmap.Interface +public unsafe partial struct IWICBitmap : IWICBitmap.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmap)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapClipper.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapClipper.cs index f0d06df2a3..d1b5faba05 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapClipper.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapClipper.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E4FBCF03-223D-4E81-9333-D635556DD1B5")] [NativeTypeName("struct IWICBitmapClipper : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapClipper : IWICBitmapClipper.Interface +public unsafe partial struct IWICBitmapClipper : IWICBitmapClipper.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapClipper)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecInfo.cs index 9091df66c5..42ba7711ab 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E87A44C4-B76E-4C47-8B09-298EB12A2714")] [NativeTypeName("struct IWICBitmapCodecInfo : IWICComponentInfo")] [NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface +public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecProgressNotification.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecProgressNotification.cs index 6a3dc5769d..283e977439 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecProgressNotification.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapCodecProgressNotification.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("64C1024E-C3CF-4462-8078-88C2B11C46D9")] [NativeTypeName("struct IWICBitmapCodecProgressNotification : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapCodecProgressNotification : IWICBitmapCodecProgressNotification.Interface +public unsafe partial struct IWICBitmapCodecProgressNotification : IWICBitmapCodecProgressNotification.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecProgressNotification)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoder.cs index 426b1c9661..740d9d33ed 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9EDDE9E7-8DEE-47EA-99DF-E6FAF2ED44BF")] [NativeTypeName("struct IWICBitmapDecoder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapDecoder : IWICBitmapDecoder.Interface +public unsafe partial struct IWICBitmapDecoder : IWICBitmapDecoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoderInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoderInfo.cs index 5ab6a091d7..9fc301fe34 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoderInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapDecoderInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("D8CD007F-D08F-4191-9BFC-236EA7F0E4B5")] [NativeTypeName("struct IWICBitmapDecoderInfo : IWICBitmapCodecInfo")] [NativeInheritance("IWICBitmapCodecInfo")] -public unsafe partial struct IWICBitmapDecoderInfo : IWICBitmapDecoderInfo.Interface +public unsafe partial struct IWICBitmapDecoderInfo : IWICBitmapDecoderInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoderInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoder.cs index 61b26a6c4c..76bdb6a399 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000103-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmapEncoder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapEncoder : IWICBitmapEncoder.Interface +public unsafe partial struct IWICBitmapEncoder : IWICBitmapEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoderInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoderInfo.cs index e7bf07f6a8..e257b1d857 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoderInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapEncoderInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("94C9B4EE-A09F-4F92-8A1E-4A9BCE7E76FB")] [NativeTypeName("struct IWICBitmapEncoderInfo : IWICBitmapCodecInfo")] [NativeInheritance("IWICBitmapCodecInfo")] -public unsafe partial struct IWICBitmapEncoderInfo : IWICBitmapEncoderInfo.Interface +public unsafe partial struct IWICBitmapEncoderInfo : IWICBitmapEncoderInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoderInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFlipRotator.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFlipRotator.cs index d22e6226db..bd4067c229 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFlipRotator.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFlipRotator.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("5009834F-2D6A-41CE-9E1B-17C5AFF7A782")] [NativeTypeName("struct IWICBitmapFlipRotator : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapFlipRotator : IWICBitmapFlipRotator.Interface +public unsafe partial struct IWICBitmapFlipRotator : IWICBitmapFlipRotator.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFlipRotator)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameDecode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameDecode.cs index 86d2176527..6e77a62e60 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameDecode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameDecode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B16811B-6A43-4EC9-A813-3D930C13B940")] [NativeTypeName("struct IWICBitmapFrameDecode : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapFrameDecode : IWICBitmapFrameDecode.Interface +public unsafe partial struct IWICBitmapFrameDecode : IWICBitmapFrameDecode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameDecode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameEncode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameEncode.cs index 7a6e8ef96a..3b54a975cf 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameEncode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapFrameEncode.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000105-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmapFrameEncode : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapFrameEncode : IWICBitmapFrameEncode.Interface +public unsafe partial struct IWICBitmapFrameEncode : IWICBitmapFrameEncode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameEncode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapLock.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapLock.cs index 69a1473ae6..43ae412fc8 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapLock.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapLock.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000123-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmapLock : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapLock : IWICBitmapLock.Interface +public unsafe partial struct IWICBitmapLock : IWICBitmapLock.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapLock)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapScaler.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapScaler.cs index 01346e247f..f9224ab469 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapScaler.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapScaler.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000302-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmapScaler : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapScaler : IWICBitmapScaler.Interface +public unsafe partial struct IWICBitmapScaler : IWICBitmapScaler.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapScaler)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSource.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSource.cs index 0883160f89..3ab06f670f 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSource.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSource.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000120-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICBitmapSource : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapSource : IWICBitmapSource.Interface +public unsafe partial struct IWICBitmapSource : IWICBitmapSource.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSource)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSourceTransform.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSourceTransform.cs index daee91cc6c..1d6795075c 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSourceTransform.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICBitmapSourceTransform.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3B16811B-6A43-4EC9-B713-3D5A0C13B940")] [NativeTypeName("struct IWICBitmapSourceTransform : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapSourceTransform : IWICBitmapSourceTransform.Interface +public unsafe partial struct IWICBitmapSourceTransform : IWICBitmapSourceTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSourceTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICColorContext.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICColorContext.cs index a0c36c284f..a9a99f8c18 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICColorContext.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICColorContext.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("3C613A02-34B2-44EA-9A7C-45AEA9C6FD6D")] [NativeTypeName("struct IWICColorContext : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICColorContext : IWICColorContext.Interface +public unsafe partial struct IWICColorContext : IWICColorContext.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorContext)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICColorTransform.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICColorTransform.cs index e66222c4c6..079b6005f5 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICColorTransform.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICColorTransform.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B66F034F-D0E2-40AB-B436-6DE39E321A94")] [NativeTypeName("struct IWICColorTransform : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICColorTransform : IWICColorTransform.Interface +public unsafe partial struct IWICColorTransform : IWICColorTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICComponentInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICComponentInfo.cs index 5c1a949ae2..a131e66501 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICComponentInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICComponentInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("23BC3F0A-698B-4357-886B-F24D50671334")] [NativeTypeName("struct IWICComponentInfo : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICComponentInfo : IWICComponentInfo.Interface +public unsafe partial struct IWICComponentInfo : IWICComponentInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsDecoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsDecoder.cs index c10d130d5b..5976af3926 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsDecoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsDecoder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICDdsDecoder : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICDdsDecoder : IWICDdsDecoder.Interface +public unsafe partial struct IWICDdsDecoder : IWICDdsDecoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsDecoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsEncoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsEncoder.cs index 0bbc20327e..6e8b4e4c29 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsEncoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsEncoder.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICDdsEncoder : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICDdsEncoder : IWICDdsEncoder.Interface +public unsafe partial struct IWICDdsEncoder : IWICDdsEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsFrameDecode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsFrameDecode.cs index e124990fca..fd14ed2beb 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICDdsFrameDecode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICDdsFrameDecode.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICDdsFrameDecode : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICDdsFrameDecode : IWICDdsFrameDecode.Interface +public unsafe partial struct IWICDdsFrameDecode : IWICDdsFrameDecode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsFrameDecode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRaw.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRaw.cs index 0a7b2511d3..84fbc97354 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRaw.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRaw.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FBEC5E44-F7BE-4B65-B7F8-C0C81FEF026D")] [NativeTypeName("struct IWICDevelopRaw : IWICBitmapFrameDecode")] [NativeInheritance("IWICBitmapFrameDecode")] -public unsafe partial struct IWICDevelopRaw : IWICDevelopRaw.Interface +public unsafe partial struct IWICDevelopRaw : IWICDevelopRaw.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRaw)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRawNotificationCallback.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRawNotificationCallback.cs index e833baf344..753cbfd627 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRawNotificationCallback.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICDevelopRawNotificationCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("95C75A6E-3E8C-4EC2-85A8-AEBCC551E59B")] [NativeTypeName("struct IWICDevelopRawNotificationCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICDevelopRawNotificationCallback : IWICDevelopRawNotificationCallback.Interface +public unsafe partial struct IWICDevelopRawNotificationCallback : IWICDevelopRawNotificationCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRawNotificationCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICEnumMetadataItem.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICEnumMetadataItem.cs index 706b4f8f32..74a5e69891 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICEnumMetadataItem.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICEnumMetadataItem.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DC2BB46D-3F07-481E-8625-220C4AEDBB33")] [NativeTypeName("struct IWICEnumMetadataItem : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICEnumMetadataItem : IWICEnumMetadataItem.Interface +public unsafe partial struct IWICEnumMetadataItem : IWICEnumMetadataItem.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICEnumMetadataItem)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICFastMetadataEncoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICFastMetadataEncoder.cs index f780fbd192..e1afcbae8c 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICFastMetadataEncoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICFastMetadataEncoder.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B84E2C09-78C9-4AC4-8BD3-524AE1663A2F")] [NativeTypeName("struct IWICFastMetadataEncoder : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICFastMetadataEncoder : IWICFastMetadataEncoder.Interface +public unsafe partial struct IWICFastMetadataEncoder : IWICFastMetadataEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFastMetadataEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverter.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverter.cs index a6fac330fb..40ec7220c2 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverter.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000301-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICFormatConverter : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICFormatConverter : IWICFormatConverter.Interface +public unsafe partial struct IWICFormatConverter : IWICFormatConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverterInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverterInfo.cs index e467a50c32..09a37b10cc 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverterInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICFormatConverterInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9F34FB65-13F4-4F15-BC57-3726B5E53D9F")] [NativeTypeName("struct IWICFormatConverterInfo : IWICComponentInfo")] [NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICFormatConverterInfo : IWICFormatConverterInfo.Interface +public unsafe partial struct IWICFormatConverterInfo : IWICFormatConverterInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverterInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICImageEncoder.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICImageEncoder.cs index f9b27a1c12..ba2a28d45a 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICImageEncoder.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICImageEncoder.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICImageEncoder : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IWICImageEncoder : IWICImageEncoder.Interface +public unsafe partial struct IWICImageEncoder : IWICImageEncoder.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImageEncoder)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory.cs index 3aa0cbb5bf..0e32891d00 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EC5EC8A9-C395-4314-9C77-54D7A935FF70")] [NativeTypeName("struct IWICImagingFactory : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICImagingFactory : IWICImagingFactory.Interface +public unsafe partial struct IWICImagingFactory : IWICImagingFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory2.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory2.cs index 4f3c19463f..fbe1a68679 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory2.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICImagingFactory2.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICImagingFactory2 : IWICImagingFactory")] [NativeInheritance("IWICImagingFactory")] [SupportedOSPlatform("windows6.2")] -public unsafe partial struct IWICImagingFactory2 : IWICImagingFactory2.Interface +public unsafe partial struct IWICImagingFactory2 : IWICImagingFactory2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameDecode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameDecode.cs index c7de139ac9..3ba2e98d8a 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameDecode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameDecode.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICJpegFrameDecode : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IWICJpegFrameDecode : IWICJpegFrameDecode.Interface +public unsafe partial struct IWICJpegFrameDecode : IWICJpegFrameDecode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameDecode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameEncode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameEncode.cs index ecba802b78..68fdf9e2ae 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameEncode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICJpegFrameEncode.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.DirectX; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -16,8 +17,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICJpegFrameEncode : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows10.0")] -public unsafe partial struct IWICJpegFrameEncode : IWICJpegFrameEncode.Interface +public unsafe partial struct IWICJpegFrameEncode : IWICJpegFrameEncode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameEncode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryReader.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryReader.cs index 9f7b01e1d5..17228441a7 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryReader.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("30989668-E1C9-4597-B395-458EEDB808DF")] [NativeTypeName("struct IWICMetadataQueryReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataQueryReader : IWICMetadataQueryReader.Interface +public unsafe partial struct IWICMetadataQueryReader : IWICMetadataQueryReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryWriter.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryWriter.cs index 9e46e342e9..4a87350dd1 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryWriter.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICMetadataQueryWriter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A721791A-0DEF-4D06-BD91-2118BF1DB10B")] [NativeTypeName("struct IWICMetadataQueryWriter : IWICMetadataQueryReader")] [NativeInheritance("IWICMetadataQueryReader")] -public unsafe partial struct IWICMetadataQueryWriter : IWICMetadataQueryWriter.Interface +public unsafe partial struct IWICMetadataQueryWriter : IWICMetadataQueryWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPalette.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPalette.cs index 05fa5d30f7..52b1481f2e 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPalette.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPalette.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00000040-A8F2-4877-BA0A-FD2B6645FB94")] [NativeTypeName("struct IWICPalette : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICPalette : IWICPalette.Interface +public unsafe partial struct IWICPalette : IWICPalette.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPalette)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo.cs index 48c583b105..cc12b8b5e7 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("E8EDA601-3D48-431A-AB44-69059BE88BBE")] [NativeTypeName("struct IWICPixelFormatInfo : IWICComponentInfo")] [NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICPixelFormatInfo : IWICPixelFormatInfo.Interface +public unsafe partial struct IWICPixelFormatInfo : IWICPixelFormatInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo2.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo2.cs index 9dabd9e21f..52a87981dc 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo2.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPixelFormatInfo2.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("A9DB33A2-AF5F-43C7-B679-74F5984B5AA4")] [NativeTypeName("struct IWICPixelFormatInfo2 : IWICPixelFormatInfo")] [NativeInheritance("IWICPixelFormatInfo")] -public unsafe partial struct IWICPixelFormatInfo2 : IWICPixelFormatInfo2.Interface +public unsafe partial struct IWICPixelFormatInfo2 : IWICPixelFormatInfo2.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo2)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapFrameEncode.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapFrameEncode.cs index 6d3b18981b..b808663304 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapFrameEncode.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapFrameEncode.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICPlanarBitmapFrameEncode : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICPlanarBitmapFrameEncode : IWICPlanarBitmapFrameEncode.Interface +public unsafe partial struct IWICPlanarBitmapFrameEncode : IWICPlanarBitmapFrameEncode.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapFrameEncode)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapSourceTransform.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapSourceTransform.cs index b7ff75b66d..357bf3deb5 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapSourceTransform.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarBitmapSourceTransform.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICPlanarBitmapSourceTransform : IUnknown")] [NativeInheritance("IUnknown")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICPlanarBitmapSourceTransform : IWICPlanarBitmapSourceTransform.Interface +public unsafe partial struct IWICPlanarBitmapSourceTransform : IWICPlanarBitmapSourceTransform.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapSourceTransform)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarFormatConverter.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarFormatConverter.cs index 1f9262effc..a6dbdef3cd 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarFormatConverter.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICPlanarFormatConverter.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -15,8 +16,10 @@ namespace TerraFX.Interop.Windows; [NativeTypeName("struct IWICPlanarFormatConverter : IWICBitmapSource")] [NativeInheritance("IWICBitmapSource")] [SupportedOSPlatform("windows6.3")] -public unsafe partial struct IWICPlanarFormatConverter : IWICPlanarFormatConverter.Interface +public unsafe partial struct IWICPlanarFormatConverter : IWICPlanarFormatConverter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarFormatConverter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICProgressCallback.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICProgressCallback.cs index 86cd973023..3a4b8faaf1 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICProgressCallback.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICProgressCallback.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("4776F9CD-9517-45FA-BF24-E89C5EC5C60C")] [NativeTypeName("struct IWICProgressCallback : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICProgressCallback : IWICProgressCallback.Interface +public unsafe partial struct IWICProgressCallback : IWICProgressCallback.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressCallback)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICProgressiveLevelControl.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICProgressiveLevelControl.cs index 096cc45971..ca249cd295 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICProgressiveLevelControl.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICProgressiveLevelControl.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("DAAC296F-7AA5-4DBF-8D15-225C5976F891")] [NativeTypeName("struct IWICProgressiveLevelControl : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICProgressiveLevelControl : IWICProgressiveLevelControl.Interface +public unsafe partial struct IWICProgressiveLevelControl : IWICProgressiveLevelControl.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressiveLevelControl)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/IWICStream.cs b/sources/Interop/Windows/Windows/um/wincodec/IWICStream.cs index 015bf1e138..0594c2a183 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/IWICStream.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/IWICStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("135FF860-22B7-4DDF-B0F6-218F4F299A43")] [NativeTypeName("struct IWICStream : IStream")] [NativeInheritance("IStream")] -public unsafe partial struct IWICStream : IWICStream.Interface +public unsafe partial struct IWICStream : IWICStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodec/WICRawToneCurve.cs b/sources/Interop/Windows/Windows/um/wincodec/WICRawToneCurve.cs index 0adb7c61dd..1bfa14df56 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/WICRawToneCurve.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/WICRawToneCurve.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _aPoints_e__FixedBuffer { public WICRawToneCurvePoint e0; + [UnscopedRef] public ref WICRawToneCurvePoint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref WICRawToneCurvePoint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICComponentFactory.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICComponentFactory.cs index 4424e53d6b..076cba8341 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICComponentFactory.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICComponentFactory.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("412D0C3A-9650-44FA-AF5B-DD2A06C8E8FB")] [NativeTypeName("struct IWICComponentFactory : IWICImagingFactory")] [NativeInheritance("IWICImagingFactory")] -public unsafe partial struct IWICComponentFactory : IWICComponentFactory.Interface +public unsafe partial struct IWICComponentFactory : IWICComponentFactory.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentFactory)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockReader.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockReader.cs index cb8f902f7d..4442523945 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockReader.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("FEAA2A8D-B3F3-43E4-B25C-D1DE990A1AE1")] [NativeTypeName("struct IWICMetadataBlockReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataBlockReader : IWICMetadataBlockReader.Interface +public unsafe partial struct IWICMetadataBlockReader : IWICMetadataBlockReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockWriter.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockWriter.cs index 1a9132e3fe..090c814c41 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockWriter.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataBlockWriter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("08FB9676-B444-41E8-8DBE-6A53A542BFF1")] [NativeTypeName("struct IWICMetadataBlockWriter : IWICMetadataBlockReader")] [NativeInheritance("IWICMetadataBlockReader")] -public unsafe partial struct IWICMetadataBlockWriter : IWICMetadataBlockWriter.Interface +public unsafe partial struct IWICMetadataBlockWriter : IWICMetadataBlockWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataHandlerInfo.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataHandlerInfo.cs index b4ad14bb81..0731638006 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataHandlerInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataHandlerInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("ABA958BF-C672-44D1-8D61-CE6DF2E682C2")] [NativeTypeName("struct IWICMetadataHandlerInfo : IWICComponentInfo")] [NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.Interface +public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataHandlerInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReader.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReader.cs index 35e8cfd2f1..6611957c9f 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReader.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("9204FE99-D8FC-4FD5-A001-9536B067A899")] [NativeTypeName("struct IWICMetadataReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataReader : IWICMetadataReader.Interface +public unsafe partial struct IWICMetadataReader : IWICMetadataReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReaderInfo.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReaderInfo.cs index 699eaccc07..66755e40ad 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReaderInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataReaderInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("EEBF1F5B-07C1-4447-A3AB-22ACAF78A804")] [NativeTypeName("struct IWICMetadataReaderInfo : IWICMetadataHandlerInfo")] [NativeInheritance("IWICMetadataHandlerInfo")] -public unsafe partial struct IWICMetadataReaderInfo : IWICMetadataReaderInfo.Interface +public unsafe partial struct IWICMetadataReaderInfo : IWICMetadataReaderInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReaderInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriter.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriter.cs index a109fd1b83..ed67b32c96 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriter.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("F7836E16-3BE0-470B-86BB-160D0AECD7DE")] [NativeTypeName("struct IWICMetadataWriter : IWICMetadataReader")] [NativeInheritance("IWICMetadataReader")] -public unsafe partial struct IWICMetadataWriter : IWICMetadataWriter.Interface +public unsafe partial struct IWICMetadataWriter : IWICMetadataWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriterInfo.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriterInfo.cs index 022dbc4926..dec8b5c5fb 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriterInfo.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICMetadataWriterInfo.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("B22E3FBA-3925-4323-B5C1-9EBFC430F236")] [NativeTypeName("struct IWICMetadataWriterInfo : IWICMetadataHandlerInfo")] [NativeInheritance("IWICMetadataHandlerInfo")] -public unsafe partial struct IWICMetadataWriterInfo : IWICMetadataWriterInfo.Interface +public unsafe partial struct IWICMetadataWriterInfo : IWICMetadataWriterInfo.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriterInfo)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICPersistStream.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICPersistStream.cs index 4bd4dfe450..ca673d9572 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICPersistStream.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICPersistStream.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("00675040-6908-45F8-86A3-49C7DFD6D9AD")] [NativeTypeName("struct IWICPersistStream : IPersistStream")] [NativeInheritance("IPersistStream")] -public unsafe partial struct IWICPersistStream : IWICPersistStream.Interface +public unsafe partial struct IWICPersistStream : IWICPersistStream.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPersistStream)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICStreamProvider.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICStreamProvider.cs index 70003c9ece..05a23154a1 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/IWICStreamProvider.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/IWICStreamProvider.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("449494BC-B468-4927-96D7-BA90D31AB505")] [NativeTypeName("struct IWICStreamProvider : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IWICStreamProvider : IWICStreamProvider.Interface +public unsafe partial struct IWICStreamProvider : IWICStreamProvider.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStreamProvider)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/wincred/CRED.cs b/sources/Interop/Windows/Windows/um/wincred/CRED.cs index 10870173f9..36c10195e6 100644 --- a/sources/Interop/Windows/Windows/um/wincred/CRED.cs +++ b/sources/Interop/Windows/Windows/um/wincred/CRED.cs @@ -37,7 +37,7 @@ public static partial class CRED public const string CRED_SESSION_WILDCARD_NAME_W = "*Session"; [NativeTypeName("#define CRED_SESSION_WILDCARD_NAME_A \"*Session\"")] - public static ReadOnlySpan CRED_SESSION_WILDCARD_NAME_A => new byte[] { 0x2A, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x00 }; + public static ReadOnlySpan CRED_SESSION_WILDCARD_NAME_A => "*Session"u8; [NativeTypeName("#define CRED_UNIVERSAL_WILDCARD_W L'*'")] public const ushort CRED_UNIVERSAL_WILDCARD_W = '*'; @@ -52,7 +52,7 @@ public static partial class CRED public const string CRED_TARGETNAME_DOMAIN_NAMESPACE_W = "Domain"; [NativeTypeName("#define CRED_TARGETNAME_DOMAIN_NAMESPACE_A \"Domain\"")] - public static ReadOnlySpan CRED_TARGETNAME_DOMAIN_NAMESPACE_A => new byte[] { 0x44, 0x6F, 0x6D, 0x61, 0x69, 0x6E, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_DOMAIN_NAMESPACE_A => "Domain"u8; [NativeTypeName("#define CRED_TARGETNAME_DOMAIN_NAMESPACE_LENGTH (sizeof(CRED_TARGETNAME_DOMAIN_NAMESPACE_A)-1)")] public const uint CRED_TARGETNAME_DOMAIN_NAMESPACE_LENGTH = (7 - 1); @@ -61,7 +61,7 @@ public static partial class CRED public const string CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_W = "LegacyGeneric"; [NativeTypeName("#define CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_A \"LegacyGeneric\"")] - public static ReadOnlySpan CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_A => new byte[] { 0x4C, 0x65, 0x67, 0x61, 0x63, 0x79, 0x47, 0x65, 0x6E, 0x65, 0x72, 0x69, 0x63, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_A => "LegacyGeneric"u8; [NativeTypeName("#define CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_LENGTH (sizeof(CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_A)-1)")] public const uint CRED_TARGETNAME_LEGACYGENERIC_NAMESPACE_LENGTH = (14 - 1); @@ -88,7 +88,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_TARGET_W = "target"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_TARGET_A \"target\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_TARGET_A => new byte[] { 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_TARGET_A => "target"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_TARGET_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_TARGET_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_TARGET_LENGTH = (7 - 1); @@ -97,7 +97,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_NAME_W = "name"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NAME_A \"name\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NAME_A => new byte[] { 0x6E, 0x61, 0x6D, 0x65, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NAME_A => "name"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NAME_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_NAME_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_NAME_LENGTH = (5 - 1); @@ -106,7 +106,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_BATCH_W = "batch"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_BATCH_A \"batch\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_BATCH_A => new byte[] { 0x62, 0x61, 0x74, 0x63, 0x68, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_BATCH_A => "batch"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_BATCH_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_BATCH_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_BATCH_LENGTH = (6 - 1); @@ -115,7 +115,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_W = "interactive"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_A \"interactive\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_A => new byte[] { 0x69, 0x6E, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_A => "interactive"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_INTERACTIVE_LENGTH = (12 - 1); @@ -124,7 +124,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_SERVICE_W = "service"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_SERVICE_A \"service\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_SERVICE_A => new byte[] { 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_SERVICE_A => "service"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_SERVICE_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_SERVICE_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_SERVICE_LENGTH = (8 - 1); @@ -133,7 +133,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_NETWORK_W = "network"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NETWORK_A \"network\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NETWORK_A => new byte[] { 0x6E, 0x65, 0x74, 0x77, 0x6F, 0x72, 0x6B, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NETWORK_A => "network"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NETWORK_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_NETWORK_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_NETWORK_LENGTH = (8 - 1); @@ -142,7 +142,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_W = "networkcleartext"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_A \"networkcleartext\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_A => new byte[] { 0x6E, 0x65, 0x74, 0x77, 0x6F, 0x72, 0x6B, 0x63, 0x6C, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_A => "networkcleartext"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_NETWORKCLEARTEXT_LENGTH = (17 - 1); @@ -151,7 +151,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_W = "remoteinteractive"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_A \"remoteinteractive\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_A => new byte[] { 0x72, 0x65, 0x6D, 0x6F, 0x74, 0x65, 0x69, 0x6E, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_A => "remoteinteractive"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_REMOTEINTERACTIVE_LENGTH = (18 - 1); @@ -160,7 +160,7 @@ public static partial class CRED public const string CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_W = "cachedinteractive"; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_A \"cachedinteractive\"")] - public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_A => new byte[] { 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x69, 0x6E, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x00 }; + public static ReadOnlySpan CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_A => "cachedinteractive"u8; [NativeTypeName("#define CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_LENGTH (sizeof(CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_A)-1)")] public const uint CRED_TARGETNAME_ATTRIBUTE_CACHEDINTERACTIVE_LENGTH = (18 - 1); diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT.cs index 629dc96a80..f9b89fea18 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT.cs @@ -88,13 +88,13 @@ public static unsafe partial class CERT public const int CERT_RDN_ENABLE_PUNYCODE_FLAG = 0x02000000; [NativeTypeName("#define CERT_RSA_PUBLIC_KEY_OBJID szOID_RSA_RSA")] - public static ReadOnlySpan CERT_RSA_PUBLIC_KEY_OBJID => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan CERT_RSA_PUBLIC_KEY_OBJID => "1.2.840.113549.1.1.1"u8; [NativeTypeName("#define CERT_DEFAULT_OID_PUBLIC_KEY_SIGN szOID_RSA_RSA")] - public static ReadOnlySpan CERT_DEFAULT_OID_PUBLIC_KEY_SIGN => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan CERT_DEFAULT_OID_PUBLIC_KEY_SIGN => "1.2.840.113549.1.1.1"u8; [NativeTypeName("#define CERT_DEFAULT_OID_PUBLIC_KEY_XCHG szOID_RSA_RSA")] - public static ReadOnlySpan CERT_DEFAULT_OID_PUBLIC_KEY_XCHG => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan CERT_DEFAULT_OID_PUBLIC_KEY_XCHG => "1.2.840.113549.1.1.1"u8; [NativeTypeName("#define CERT_V1 0")] public const int CERT_V1 = 0; @@ -904,10 +904,10 @@ public static unsafe partial class CERT public const string CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME = "PeerUsages"; [NativeTypeName("#define CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME_A \"PeerUsages\"")] - public static ReadOnlySpan CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME_A => new byte[] { 0x50, 0x65, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x73, 0x00 }; + public static ReadOnlySpan CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME_A => "PeerUsages"u8; [NativeTypeName("#define CERT_PROT_ROOT_PEER_USAGES_DEFAULT_A szOID_PKIX_KP_CLIENT_AUTH \"\\0\" \\\r\n szOID_PKIX_KP_EMAIL_PROTECTION \"\\0\" \\\r\n szOID_KP_EFS \"\\0\"")] - public static ReadOnlySpan CERT_PROT_ROOT_PEER_USAGES_DEFAULT_A => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x32, 0x00, 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x34, 0x00, 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x00, 0x00 }; + public static ReadOnlySpan CERT_PROT_ROOT_PEER_USAGES_DEFAULT_A => "1.3.6.1.5.5.7.3.2\\01.3.6.1.5.5.7.3.4\\01.3.6.1.4.1.311.10.3.4\\0"u8; [NativeTypeName("#define CERT_TRUST_PUB_SAFER_GROUP_POLICY_REGPATH CERT_GROUP_POLICY_SYSTEM_STORE_REGPATH L\"\\\\TrustedPublisher\\\\Safer\"")] public const string CERT_TRUST_PUB_SAFER_GROUP_POLICY_REGPATH = "Software\\Policies\\Microsoft\\SystemCertificates\\TrustedPublisher\\Safer"; @@ -997,7 +997,7 @@ public static unsafe partial class CERT public const string CERT_AUTH_ROOT_CTL_FILENAME = "authroot.stl"; [NativeTypeName("#define CERT_AUTH_ROOT_CTL_FILENAME_A \"authroot.stl\"")] - public static ReadOnlySpan CERT_AUTH_ROOT_CTL_FILENAME_A => new byte[] { 0x61, 0x75, 0x74, 0x68, 0x72, 0x6F, 0x6F, 0x74, 0x2E, 0x73, 0x74, 0x6C, 0x00 }; + public static ReadOnlySpan CERT_AUTH_ROOT_CTL_FILENAME_A => "authroot.stl"u8; [NativeTypeName("#define CERT_AUTH_ROOT_CAB_FILENAME L\"authrootstl.cab\"")] public const string CERT_AUTH_ROOT_CAB_FILENAME = "authrootstl.cab"; @@ -1021,7 +1021,7 @@ public static unsafe partial class CERT public const string CERT_DISALLOWED_CERT_CTL_FILENAME = "disallowedcert.stl"; [NativeTypeName("#define CERT_DISALLOWED_CERT_CTL_FILENAME_A \"disallowedcert.stl\"")] - public static ReadOnlySpan CERT_DISALLOWED_CERT_CTL_FILENAME_A => new byte[] { 0x64, 0x69, 0x73, 0x61, 0x6C, 0x6C, 0x6F, 0x77, 0x65, 0x64, 0x63, 0x65, 0x72, 0x74, 0x2E, 0x73, 0x74, 0x6C, 0x00 }; + public static ReadOnlySpan CERT_DISALLOWED_CERT_CTL_FILENAME_A => "disallowedcert.stl"u8; [NativeTypeName("#define CERT_DISALLOWED_CERT_CAB_FILENAME L\"disallowedcertstl.cab\"")] public const string CERT_DISALLOWED_CERT_CAB_FILENAME = "disallowedcertstl.cab"; @@ -1042,7 +1042,7 @@ public static unsafe partial class CERT public const string CERT_PIN_RULES_CTL_FILENAME = "pinrules.stl"; [NativeTypeName("#define CERT_PIN_RULES_CTL_FILENAME_A \"pinrules.stl\"")] - public static ReadOnlySpan CERT_PIN_RULES_CTL_FILENAME_A => new byte[] { 0x70, 0x69, 0x6E, 0x72, 0x75, 0x6C, 0x65, 0x73, 0x2E, 0x73, 0x74, 0x6C, 0x00 }; + public static ReadOnlySpan CERT_PIN_RULES_CTL_FILENAME_A => "pinrules.stl"u8; [NativeTypeName("#define CERT_PIN_RULES_CAB_FILENAME L\"pinrulesstl.cab\"")] public const string CERT_PIN_RULES_CAB_FILENAME = "pinrulesstl.cab"; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_ALT_NAME_ENTRY.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_ALT_NAME_ENTRY.cs index dc96967bac..3551b2f726 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_ALT_NAME_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_ALT_NAME_ENTRY.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,72 +21,79 @@ public unsafe partial struct CERT_ALT_NAME_ENTRY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CERT_OTHER_NAME* pOtherName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pOtherName; + return ref Anonymous.pOtherName; } } /// + [UnscopedRef] public ref ushort* pwszRfc822Name { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszRfc822Name; + return ref Anonymous.pwszRfc822Name; } } /// + [UnscopedRef] public ref ushort* pwszDNSName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszDNSName; + return ref Anonymous.pwszDNSName; } } /// + [UnscopedRef] public ref CRYPT_DATA_BLOB DirectoryName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DirectoryName, 1)); + return ref Anonymous.DirectoryName; } } /// + [UnscopedRef] public ref ushort* pwszURL { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pwszURL; + return ref Anonymous.pwszURL; } } /// + [UnscopedRef] public ref CRYPT_DATA_BLOB IPAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.IPAddress, 1)); + return ref Anonymous.IPAddress; } } /// + [UnscopedRef] public ref sbyte* pszRegisteredID { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pszRegisteredID; + return ref Anonymous.pszRegisteredID; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_BIOMETRIC_DATA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_BIOMETRIC_DATA.cs index 173a1f051d..7b1c561ac4 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_BIOMETRIC_DATA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_BIOMETRIC_DATA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,22 +24,24 @@ public unsafe partial struct CERT_BIOMETRIC_DATA public CERT_HASHED_URL HashedUrl; /// + [UnscopedRef] public ref uint dwPredefined { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwPredefined, 1)); + return ref Anonymous.dwPredefined; } } /// + [UnscopedRef] public ref sbyte* pszObjId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pszObjId; + return ref Anonymous.pszObjId; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_ID.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_ID.cs index 001b0fed46..77eaead7a7 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_ID.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_ID.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,32 +21,35 @@ public partial struct CERT_ID public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CERT_ISSUER_SERIAL_NUMBER IssuerSerialNumber { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.IssuerSerialNumber, 1)); + return ref Anonymous.IssuerSerialNumber; } } /// + [UnscopedRef] public ref CRYPT_DATA_BLOB KeyId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.KeyId, 1)); + return ref Anonymous.KeyId; } } /// + [UnscopedRef] public ref CRYPT_DATA_BLOB HashId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HashId, 1)); + return ref Anonymous.HashId; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_KEY_CONTEXT.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_KEY_CONTEXT.cs index b842f215ee..d4855649c6 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_KEY_CONTEXT.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_KEY_CONTEXT.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,22 +25,24 @@ public partial struct CERT_KEY_CONTEXT public uint dwKeySpec; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_IMAGE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_IMAGE_INFO.cs index 00623d422c..3bb8ea888d 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_IMAGE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_IMAGE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -40,22 +41,24 @@ public unsafe partial struct CERT_LOGOTYPE_IMAGE_INFO public ushort* pwszLanguage; /// + [UnscopedRef] public ref uint dwNumBits { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwNumBits, 1)); + return ref Anonymous.dwNumBits; } } /// + [UnscopedRef] public ref uint dwTableSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwTableSize, 1)); + return ref Anonymous.dwTableSize; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_INFO.cs index 376c9b6efe..7bf9789e00 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_LOGOTYPE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,22 +21,24 @@ public unsafe partial struct CERT_LOGOTYPE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CERT_LOGOTYPE_DATA* pLogotypeDirectInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pLogotypeDirectInfo; + return ref Anonymous.pLogotypeDirectInfo; } } /// + [UnscopedRef] public ref CERT_LOGOTYPE_REFERENCE* pLogotypeIndirectInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pLogotypeIndirectInfo; + return ref Anonymous.pLogotypeIndirectInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_STRONG_SIGN_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_STRONG_SIGN_PARA.cs index d165174586..db59befd24 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_STRONG_SIGN_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_STRONG_SIGN_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -26,32 +27,35 @@ public unsafe partial struct CERT_STRONG_SIGN_PARA public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref void* pvInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pvInfo; + return ref Anonymous.pvInfo; } } /// + [UnscopedRef] public ref CERT_STRONG_SIGN_SERIALIZED_INFO* pSerializedInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSerializedInfo; + return ref Anonymous.pSerializedInfo; } } /// + [UnscopedRef] public ref sbyte* pszOID { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pszOID; + return ref Anonymous.pszOID; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CERT_SYSTEM_STORE_RELOCATE_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CERT_SYSTEM_STORE_RELOCATE_PARA.cs index a91b70e8c7..014e5a2792 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CERT_SYSTEM_STORE_RELOCATE_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CERT_SYSTEM_STORE_RELOCATE_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,52 +21,57 @@ public unsafe partial struct CERT_SYSTEM_STORE_RELOCATE_PARA public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref HKEY hKeyBase { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.hKeyBase; + return ref Anonymous1.hKeyBase; } } /// + [UnscopedRef] public ref void* pvBase { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pvBase; + return ref Anonymous1.pvBase; } } /// + [UnscopedRef] public ref void* pvSystemStore { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pvSystemStore; + return ref Anonymous2.pvSystemStore; } } /// + [UnscopedRef] public ref sbyte* pszSystemStore { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszSystemStore; + return ref Anonymous2.pszSystemStore; } } /// + [UnscopedRef] public ref ushort* pwszSystemStore { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pwszSystemStore; + return ref Anonymous2.pwszSystemStore; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMC_STATUS_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMC_STATUS_INFO.cs index 1204bc166c..f4e08af234 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMC_STATUS_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMC_STATUS_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,22 +37,24 @@ public unsafe partial struct CMC_STATUS_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint dwFailInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwFailInfo, 1)); + return ref Anonymous.dwFailInfo; } } /// + [UnscopedRef] public ref CMC_PEND_INFO* pPendInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pPendInfo; + return ref Anonymous.pPendInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMC_TAGGED_REQUEST.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMC_TAGGED_REQUEST.cs index b380a08a64..650a7471d6 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMC_TAGGED_REQUEST.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMC_TAGGED_REQUEST.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,12 +21,13 @@ public unsafe partial struct CMC_TAGGED_REQUEST public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CMC_TAGGED_CERT_REQUEST* pTaggedCertRequest { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pTaggedCertRequest; + return ref Anonymous.pTaggedCertRequest; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG.cs index 7242eaa53d..5a4896da78 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG.cs @@ -361,13 +361,13 @@ public static unsafe partial class CMSG public const int CMSG_VERIFY_COUNTER_SIGN_ENABLE_STRONG_FLAG = 0x00000001; [NativeTypeName("#define CMSG_OID_GEN_ENCRYPT_KEY_FUNC \"CryptMsgDllGenEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_GEN_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x6E, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_GEN_ENCRYPT_KEY_FUNC => "CryptMsgDllGenEncryptKey"u8; [NativeTypeName("#define CMSG_OID_EXPORT_ENCRYPT_KEY_FUNC \"CryptMsgDllExportEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_EXPORT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_EXPORT_ENCRYPT_KEY_FUNC => "CryptMsgDllExportEncryptKey"u8; [NativeTypeName("#define CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC \"CryptMsgDllImportEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC => "CryptMsgDllImportEncryptKey"u8; [NativeTypeName("#define CMSG_DEFAULT_INSTALLABLE_FUNC_OID ((LPCSTR) 1)")] public static sbyte* CMSG_DEFAULT_INSTALLABLE_FUNC_OID => ((sbyte*)(1)); @@ -385,13 +385,13 @@ public static unsafe partial class CMSG public const int CMSG_CONTENT_ENCRYPT_RELEASE_CONTEXT_FLAG = 0x00008000; [NativeTypeName("#define CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC \"CryptMsgDllGenContentEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x6E, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC => "CryptMsgDllGenContentEncryptKey"u8; [NativeTypeName("#define CMSG_OID_CAPI1_GEN_CONTENT_ENCRYPT_KEY_FUNC CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_GEN_CONTENT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x6E, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_GEN_CONTENT_ENCRYPT_KEY_FUNC => "CryptMsgDllGenContentEncryptKey"u8; [NativeTypeName("#define CMSG_OID_CNG_GEN_CONTENT_ENCRYPT_KEY_FUNC \"CryptMsgDllCNGGenContentEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_CNG_GEN_CONTENT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x47, 0x65, 0x6E, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_GEN_CONTENT_ENCRYPT_KEY_FUNC => "CryptMsgDllCNGGenContentEncryptKey"u8; [NativeTypeName("#define CMSG_KEY_TRANS_ENCRYPT_FREE_PARA_FLAG 0x00000001")] public const int CMSG_KEY_TRANS_ENCRYPT_FREE_PARA_FLAG = 0x00000001; @@ -400,13 +400,13 @@ public static unsafe partial class CMSG public const int CMSG_KEY_TRANS_ENCRYPT_FREE_OBJID_FLAG = 0x00000002; [NativeTypeName("#define CMSG_OID_EXPORT_KEY_TRANS_FUNC \"CryptMsgDllExportKeyTrans\"")] - public static ReadOnlySpan CMSG_OID_EXPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_EXPORT_KEY_TRANS_FUNC => "CryptMsgDllExportKeyTrans"u8; [NativeTypeName("#define CMSG_OID_CAPI1_EXPORT_KEY_TRANS_FUNC CMSG_OID_EXPORT_KEY_TRANS_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_KEY_TRANS_FUNC => "CryptMsgDllExportKeyTrans"u8; [NativeTypeName("#define CMSG_OID_CNG_EXPORT_KEY_TRANS_FUNC \"CryptMsgDllCNGExportKeyTrans\"")] - public static ReadOnlySpan CMSG_OID_CNG_EXPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_EXPORT_KEY_TRANS_FUNC => "CryptMsgDllCNGExportKeyTrans"u8; [NativeTypeName("#define CMSG_KEY_AGREE_ENCRYPT_FREE_PARA_FLAG 0x00000001")] public const int CMSG_KEY_AGREE_ENCRYPT_FREE_PARA_FLAG = 0x00000001; @@ -427,13 +427,13 @@ public static unsafe partial class CMSG public const int CMSG_KEY_AGREE_ENCRYPT_FREE_OBJID_FLAG = 0x00000020; [NativeTypeName("#define CMSG_OID_EXPORT_KEY_AGREE_FUNC \"CryptMsgDllExportKeyAgree\"")] - public static ReadOnlySpan CMSG_OID_EXPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_EXPORT_KEY_AGREE_FUNC => "CryptMsgDllExportKeyAgree"u8; [NativeTypeName("#define CMSG_OID_CAPI1_EXPORT_KEY_AGREE_FUNC CMSG_OID_EXPORT_KEY_AGREE_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_KEY_AGREE_FUNC => "CryptMsgDllExportKeyAgree"u8; [NativeTypeName("#define CMSG_OID_CNG_EXPORT_KEY_AGREE_FUNC \"CryptMsgDllCNGExportKeyAgree\"")] - public static ReadOnlySpan CMSG_OID_CNG_EXPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_EXPORT_KEY_AGREE_FUNC => "CryptMsgDllCNGExportKeyAgree"u8; [NativeTypeName("#define CMSG_MAIL_LIST_ENCRYPT_FREE_PARA_FLAG 0x00000001")] public const int CMSG_MAIL_LIST_ENCRYPT_FREE_PARA_FLAG = 0x00000001; @@ -442,37 +442,37 @@ public static unsafe partial class CMSG public const int CMSG_MAIL_LIST_ENCRYPT_FREE_OBJID_FLAG = 0x00000002; [NativeTypeName("#define CMSG_OID_EXPORT_MAIL_LIST_FUNC \"CryptMsgDllExportMailList\"")] - public static ReadOnlySpan CMSG_OID_EXPORT_MAIL_LIST_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4D, 0x61, 0x69, 0x6C, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan CMSG_OID_EXPORT_MAIL_LIST_FUNC => "CryptMsgDllExportMailList"u8; [NativeTypeName("#define CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC CMSG_OID_EXPORT_MAIL_LIST_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x4D, 0x61, 0x69, 0x6C, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC => "CryptMsgDllExportMailList"u8; [NativeTypeName("#define CMSG_OID_IMPORT_KEY_TRANS_FUNC \"CryptMsgDllImportKeyTrans\"")] - public static ReadOnlySpan CMSG_OID_IMPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_IMPORT_KEY_TRANS_FUNC => "CryptMsgDllImportKeyTrans"u8; [NativeTypeName("#define CMSG_OID_CAPI1_IMPORT_KEY_TRANS_FUNC CMSG_OID_IMPORT_KEY_TRANS_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_KEY_TRANS_FUNC => "CryptMsgDllImportKeyTrans"u8; [NativeTypeName("#define CMSG_OID_IMPORT_KEY_AGREE_FUNC \"CryptMsgDllImportKeyAgree\"")] - public static ReadOnlySpan CMSG_OID_IMPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_IMPORT_KEY_AGREE_FUNC => "CryptMsgDllImportKeyAgree"u8; [NativeTypeName("#define CMSG_OID_CAPI1_IMPORT_KEY_AGREE_FUNC CMSG_OID_IMPORT_KEY_AGREE_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_KEY_AGREE_FUNC => "CryptMsgDllImportKeyAgree"u8; [NativeTypeName("#define CMSG_OID_IMPORT_MAIL_LIST_FUNC \"CryptMsgDllImportMailList\"")] - public static ReadOnlySpan CMSG_OID_IMPORT_MAIL_LIST_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4D, 0x61, 0x69, 0x6C, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan CMSG_OID_IMPORT_MAIL_LIST_FUNC => "CryptMsgDllImportMailList"u8; [NativeTypeName("#define CMSG_OID_CAPI1_IMPORT_MAIL_LIST_FUNC CMSG_OID_IMPORT_MAIL_LIST_FUNC")] - public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_MAIL_LIST_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4D, 0x61, 0x69, 0x6C, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan CMSG_OID_CAPI1_IMPORT_MAIL_LIST_FUNC => "CryptMsgDllImportMailList"u8; [NativeTypeName("#define CMSG_OID_CNG_IMPORT_KEY_TRANS_FUNC \"CryptMsgDllCNGImportKeyTrans\"")] - public static ReadOnlySpan CMSG_OID_CNG_IMPORT_KEY_TRANS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6E, 0x73, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_IMPORT_KEY_TRANS_FUNC => "CryptMsgDllCNGImportKeyTrans"u8; [NativeTypeName("#define CMSG_OID_CNG_IMPORT_KEY_AGREE_FUNC \"CryptMsgDllCNGImportKeyAgree\"")] - public static ReadOnlySpan CMSG_OID_CNG_IMPORT_KEY_AGREE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x4B, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_IMPORT_KEY_AGREE_FUNC => "CryptMsgDllCNGImportKeyAgree"u8; [NativeTypeName("#define CMSG_OID_CNG_IMPORT_CONTENT_ENCRYPT_KEY_FUNC \"CryptMsgDllCNGImportContentEncryptKey\"")] - public static ReadOnlySpan CMSG_OID_CNG_IMPORT_CONTENT_ENCRYPT_KEY_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x4D, 0x73, 0x67, 0x44, 0x6C, 0x6C, 0x43, 0x4E, 0x47, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x45, 0x6E, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x00 }; + public static ReadOnlySpan CMSG_OID_CNG_IMPORT_CONTENT_ENCRYPT_KEY_FUNC => "CryptMsgDllCNGImportContentEncryptKey"u8; [NativeTypeName("#define CMSG_TRUSTED_SIGNER_FLAG 0x1")] public const int CMSG_TRUSTED_SIGNER_FLAG = 0x1; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CMS_RECIPIENT_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CMS_RECIPIENT_INFO.cs index 82f1d3efde..c1a15d3394 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CMS_RECIPIENT_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CMS_RECIPIENT_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,32 +21,35 @@ public unsafe partial struct CMSG_CMS_RECIPIENT_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CMSG_KEY_TRANS_RECIPIENT_INFO* pKeyTrans { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pKeyTrans; + return ref Anonymous.pKeyTrans; } } /// + [UnscopedRef] public ref CMSG_KEY_AGREE_RECIPIENT_INFO* pKeyAgree { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pKeyAgree; + return ref Anonymous.pKeyAgree; } } /// + [UnscopedRef] public ref CMSG_MAIL_LIST_RECIPIENT_INFO* pMailList { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pMailList; + return ref Anonymous.pMailList; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CONTENT_ENCRYPT_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CONTENT_ENCRYPT_INFO.cs index b233c5eea2..6d3f7e6e29 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CONTENT_ENCRYPT_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CONTENT_ENCRYPT_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -66,22 +67,24 @@ public unsafe partial struct CMSG_CONTENT_ENCRYPT_INFO public uint cbContentEncryptKey; /// + [UnscopedRef] public ref HCRYPTKEY hContentEncryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hContentEncryptKey, 1)); + return ref Anonymous.hContentEncryptKey; } } /// + [UnscopedRef] public ref void* hCNGContentEncryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.hCNGContentEncryptKey; + return ref Anonymous.hCNGContentEncryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_DECRYPT_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_DECRYPT_PARA.cs index e8934af2c0..f1510bd4c3 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_DECRYPT_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_DECRYPT_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,22 +29,24 @@ public partial struct CMSG_CTRL_DECRYPT_PARA public uint dwRecipientIndex; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_AGREE_DECRYPT_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_AGREE_DECRYPT_PARA.cs index cc3f28dd6d..5eba5146c3 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_AGREE_DECRYPT_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_AGREE_DECRYPT_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,22 +40,24 @@ public unsafe partial struct CMSG_CTRL_KEY_AGREE_DECRYPT_PARA public CRYPT_BIT_BLOB OriginatorPublicKey; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_TRANS_DECRYPT_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_TRANS_DECRYPT_PARA.cs index 543aa0ffc1..c2d0e4dbb6 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_TRANS_DECRYPT_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_KEY_TRANS_DECRYPT_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,22 +33,24 @@ public unsafe partial struct CMSG_CTRL_KEY_TRANS_DECRYPT_PARA public uint dwRecipientIndex; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_MAIL_LIST_DECRYPT_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_MAIL_LIST_DECRYPT_PARA.cs index 793ea3d37e..aff1868158 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_MAIL_LIST_DECRYPT_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_CTRL_MAIL_LIST_DECRYPT_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,22 +36,24 @@ public unsafe partial struct CMSG_CTRL_MAIL_LIST_DECRYPT_PARA public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref HCRYPTKEY hKeyEncryptionKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hKeyEncryptionKey, 1)); + return ref Anonymous.hKeyEncryptionKey; } } /// + [UnscopedRef] public ref void* pvKeyEncryptionKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pvKeyEncryptionKey; + return ref Anonymous.pvKeyEncryptionKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_ENCRYPT_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_ENCRYPT_INFO.cs index f5d2ca6ed8..b0bbb96a30 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_ENCRYPT_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_ENCRYPT_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -46,22 +47,24 @@ public unsafe partial struct CMSG_KEY_AGREE_ENCRYPT_INFO public uint dwFlags; /// + [UnscopedRef] public ref CERT_ID OriginatorCertId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.OriginatorCertId, 1)); + return ref Anonymous.OriginatorCertId; } } /// + [UnscopedRef] public ref CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.OriginatorPublicKeyInfo, 1)); + return ref Anonymous.OriginatorPublicKeyInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO.cs index 3f634cfb1a..22cfb23146 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -54,22 +55,24 @@ public unsafe partial struct CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO public CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO** rgpRecipientEncryptedKeys; /// + [UnscopedRef] public ref CRYPT_ALGORITHM_IDENTIFIER* pEphemeralAlgorithm { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pEphemeralAlgorithm; + return ref Anonymous.pEphemeralAlgorithm; } } /// + [UnscopedRef] public ref CERT_ID* pSenderId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pSenderId; + return ref Anonymous.pSenderId; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_INFO.cs index 9e4c387226..f53183bb7d 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_KEY_AGREE_RECIPIENT_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,22 +39,24 @@ public unsafe partial struct CMSG_KEY_AGREE_RECIPIENT_INFO public CMSG_RECIPIENT_ENCRYPTED_KEY_INFO** rgpRecipientEncryptedKeys; /// + [UnscopedRef] public ref CERT_ID OriginatorCertId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.OriginatorCertId, 1)); + return ref Anonymous.OriginatorCertId; } } /// + [UnscopedRef] public ref CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.OriginatorPublicKeyInfo, 1)); + return ref Anonymous.OriginatorPublicKeyInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO.cs index 4b499345e8..b3ac19365f 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -43,22 +44,24 @@ public unsafe partial struct CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO public CRYPT_ATTRIBUTE_TYPE_VALUE* pOtherAttr; /// + [UnscopedRef] public ref HCRYPTKEY hKeyEncryptionKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hKeyEncryptionKey, 1)); + return ref Anonymous.hKeyEncryptionKey; } } /// + [UnscopedRef] public ref void* pvKeyEncryptionKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pvKeyEncryptionKey; + return ref Anonymous.pvKeyEncryptionKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_RECIPIENT_ENCODE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_RECIPIENT_ENCODE_INFO.cs index 581043aefe..ac1f2e9c39 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_RECIPIENT_ENCODE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_RECIPIENT_ENCODE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,32 +21,35 @@ public unsafe partial struct CMSG_RECIPIENT_ENCODE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO* pKeyTrans { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pKeyTrans; + return ref Anonymous.pKeyTrans; } } /// + [UnscopedRef] public ref CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO* pKeyAgree { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pKeyAgree; + return ref Anonymous.pKeyAgree; } } /// + [UnscopedRef] public ref CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO* pMailList { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pMailList; + return ref Anonymous.pMailList; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_SIGNER_ENCODE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_SIGNER_ENCODE_INFO.cs index b356cd728d..d65fc1a3ff 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CMSG_SIGNER_ENCODE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMSG_SIGNER_ENCODE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,22 +51,24 @@ public unsafe partial struct CMSG_SIGNER_ENCODE_INFO public CRYPT_ATTRIBUTE* rgUnauthAttr; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CONTEXT.cs b/sources/Interop/Windows/Windows/um/wincrypt/CONTEXT.cs index 8c113345b4..c69c12bf4a 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CONTEXT.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CONTEXT.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static unsafe partial class CONTEXT { [NativeTypeName("#define CONTEXT_OID_CREATE_OBJECT_CONTEXT_FUNC \"ContextDllCreateObjectContext\"")] - public static ReadOnlySpan CONTEXT_OID_CREATE_OBJECT_CONTEXT_FUNC => new byte[] { 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x44, 0x6C, 0x6C, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x00 }; + public static ReadOnlySpan CONTEXT_OID_CREATE_OBJECT_CONTEXT_FUNC => "ContextDllCreateObjectContext"u8; [NativeTypeName("#define CONTEXT_OID_CERTIFICATE ((LPCSTR)1)")] public static sbyte* CONTEXT_OID_CERTIFICATE => ((sbyte*)(1)); diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CRL_DIST_POINT_NAME.cs b/sources/Interop/Windows/Windows/um/wincrypt/CRL_DIST_POINT_NAME.cs index 34bf4bcea1..65246870fa 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CRL_DIST_POINT_NAME.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CRL_DIST_POINT_NAME.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,12 +21,13 @@ public partial struct CRL_DIST_POINT_NAME public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CERT_ALT_NAME_INFO FullName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FullName, 1)); + return ref Anonymous.FullName; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT.cs b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT.cs index f72c67ad1f..e774b7ea0b 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT.cs @@ -385,40 +385,40 @@ public static unsafe partial class CRYPT public const int CRYPT_RC2_128BIT_VERSION = 58; [NativeTypeName("#define CRYPT_OID_ENCODE_OBJECT_FUNC \"CryptDllEncodeObject\"")] - public static ReadOnlySpan CRYPT_OID_ENCODE_OBJECT_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan CRYPT_OID_ENCODE_OBJECT_FUNC => "CryptDllEncodeObject"u8; [NativeTypeName("#define CRYPT_OID_DECODE_OBJECT_FUNC \"CryptDllDecodeObject\"")] - public static ReadOnlySpan CRYPT_OID_DECODE_OBJECT_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x44, 0x65, 0x63, 0x6F, 0x64, 0x65, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan CRYPT_OID_DECODE_OBJECT_FUNC => "CryptDllDecodeObject"u8; [NativeTypeName("#define CRYPT_OID_ENCODE_OBJECT_EX_FUNC \"CryptDllEncodeObjectEx\"")] - public static ReadOnlySpan CRYPT_OID_ENCODE_OBJECT_EX_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_ENCODE_OBJECT_EX_FUNC => "CryptDllEncodeObjectEx"u8; [NativeTypeName("#define CRYPT_OID_DECODE_OBJECT_EX_FUNC \"CryptDllDecodeObjectEx\"")] - public static ReadOnlySpan CRYPT_OID_DECODE_OBJECT_EX_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x44, 0x65, 0x63, 0x6F, 0x64, 0x65, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_DECODE_OBJECT_EX_FUNC => "CryptDllDecodeObjectEx"u8; [NativeTypeName("#define CRYPT_OID_CREATE_COM_OBJECT_FUNC \"CryptDllCreateCOMObject\"")] - public static ReadOnlySpan CRYPT_OID_CREATE_COM_OBJECT_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x4F, 0x4D, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan CRYPT_OID_CREATE_COM_OBJECT_FUNC => "CryptDllCreateCOMObject"u8; [NativeTypeName("#define CRYPT_OID_VERIFY_REVOCATION_FUNC \"CertDllVerifyRevocation\"")] - public static ReadOnlySpan CRYPT_OID_VERIFY_REVOCATION_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x76, 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x00 }; + public static ReadOnlySpan CRYPT_OID_VERIFY_REVOCATION_FUNC => "CertDllVerifyRevocation"u8; [NativeTypeName("#define CRYPT_OID_VERIFY_CTL_USAGE_FUNC \"CertDllVerifyCTLUsage\"")] - public static ReadOnlySpan CRYPT_OID_VERIFY_CTL_USAGE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x54, 0x4C, 0x55, 0x73, 0x61, 0x67, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_VERIFY_CTL_USAGE_FUNC => "CertDllVerifyCTLUsage"u8; [NativeTypeName("#define CRYPT_OID_FORMAT_OBJECT_FUNC \"CryptDllFormatObject\"")] - public static ReadOnlySpan CRYPT_OID_FORMAT_OBJECT_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x46, 0x6F, 0x72, 0x6D, 0x61, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan CRYPT_OID_FORMAT_OBJECT_FUNC => "CryptDllFormatObject"u8; [NativeTypeName("#define CRYPT_OID_FIND_OID_INFO_FUNC \"CryptDllFindOIDInfo\"")] - public static ReadOnlySpan CRYPT_OID_FIND_OID_INFO_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x46, 0x69, 0x6E, 0x64, 0x4F, 0x49, 0x44, 0x49, 0x6E, 0x66, 0x6F, 0x00 }; + public static ReadOnlySpan CRYPT_OID_FIND_OID_INFO_FUNC => "CryptDllFindOIDInfo"u8; [NativeTypeName("#define CRYPT_OID_FIND_LOCALIZED_NAME_FUNC \"CryptDllFindLocalizedName\"")] - public static ReadOnlySpan CRYPT_OID_FIND_LOCALIZED_NAME_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x46, 0x69, 0x6E, 0x64, 0x4C, 0x6F, 0x63, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x64, 0x4E, 0x61, 0x6D, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_FIND_LOCALIZED_NAME_FUNC => "CryptDllFindLocalizedName"u8; [NativeTypeName("#define CRYPT_OID_REGPATH \"Software\\\\Microsoft\\\\Cryptography\\\\OID\"")] - public static ReadOnlySpan CRYPT_OID_REGPATH => new byte[] { 0x53, 0x6F, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5C, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x5C, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x79, 0x5C, 0x4F, 0x49, 0x44, 0x00 }; + public static ReadOnlySpan CRYPT_OID_REGPATH => "Software\\Microsoft\\Cryptography\\OID"u8; [NativeTypeName("#define CRYPT_OID_REG_ENCODING_TYPE_PREFIX \"EncodingType \"")] - public static ReadOnlySpan CRYPT_OID_REG_ENCODING_TYPE_PREFIX => new byte[] { 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x69, 0x6E, 0x67, 0x54, 0x79, 0x70, 0x65, 0x20, 0x00 }; + public static ReadOnlySpan CRYPT_OID_REG_ENCODING_TYPE_PREFIX => "EncodingType "u8; [NativeTypeName("#define CRYPT_OID_REG_DLL_VALUE_NAME L\"Dll\"")] public const string CRYPT_OID_REG_DLL_VALUE_NAME = "Dll"; @@ -427,13 +427,13 @@ public static unsafe partial class CRYPT public const string CRYPT_OID_REG_FUNC_NAME_VALUE_NAME = "FuncName"; [NativeTypeName("#define CRYPT_OID_REG_FUNC_NAME_VALUE_NAME_A \"FuncName\"")] - public static ReadOnlySpan CRYPT_OID_REG_FUNC_NAME_VALUE_NAME_A => new byte[] { 0x46, 0x75, 0x6E, 0x63, 0x4E, 0x61, 0x6D, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_REG_FUNC_NAME_VALUE_NAME_A => "FuncName"u8; [NativeTypeName("#define CRYPT_OID_REG_FLAGS_VALUE_NAME L\"CryptFlags\"")] public const string CRYPT_OID_REG_FLAGS_VALUE_NAME = "CryptFlags"; [NativeTypeName("#define CRYPT_DEFAULT_OID \"DEFAULT\"")] - public static ReadOnlySpan CRYPT_DEFAULT_OID => new byte[] { 0x44, 0x45, 0x46, 0x41, 0x55, 0x4C, 0x54, 0x00 }; + public static ReadOnlySpan CRYPT_DEFAULT_OID => "DEFAULT"u8; [NativeTypeName("#define CRYPT_INSTALL_OID_FUNC_BEFORE_FLAG 1")] public const int CRYPT_INSTALL_OID_FUNC_BEFORE_FLAG = 1; @@ -574,31 +574,31 @@ public static unsafe partial class CRYPT public const int CRYPT_LOCALIZED_NAME_ENCODING_TYPE = 0; [NativeTypeName("#define CRYPT_LOCALIZED_NAME_OID \"LocalizedNames\"")] - public static ReadOnlySpan CRYPT_LOCALIZED_NAME_OID => new byte[] { 0x4C, 0x6F, 0x63, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x64, 0x4E, 0x61, 0x6D, 0x65, 0x73, 0x00 }; + public static ReadOnlySpan CRYPT_LOCALIZED_NAME_OID => "LocalizedNames"u8; [NativeTypeName("#define CRYPT_OID_OPEN_STORE_PROV_FUNC \"CertDllOpenStoreProv\"")] - public static ReadOnlySpan CRYPT_OID_OPEN_STORE_PROV_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x4F, 0x70, 0x65, 0x6E, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x50, 0x72, 0x6F, 0x76, 0x00 }; + public static ReadOnlySpan CRYPT_OID_OPEN_STORE_PROV_FUNC => "CertDllOpenStoreProv"u8; [NativeTypeName("#define CRYPT_OID_OPEN_SYSTEM_STORE_PROV_FUNC \"CertDllOpenSystemStoreProv\"")] - public static ReadOnlySpan CRYPT_OID_OPEN_SYSTEM_STORE_PROV_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x4F, 0x70, 0x65, 0x6E, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x50, 0x72, 0x6F, 0x76, 0x00 }; + public static ReadOnlySpan CRYPT_OID_OPEN_SYSTEM_STORE_PROV_FUNC => "CertDllOpenSystemStoreProv"u8; [NativeTypeName("#define CRYPT_OID_REGISTER_SYSTEM_STORE_FUNC \"CertDllRegisterSystemStore\"")] - public static ReadOnlySpan CRYPT_OID_REGISTER_SYSTEM_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_REGISTER_SYSTEM_STORE_FUNC => "CertDllRegisterSystemStore"u8; [NativeTypeName("#define CRYPT_OID_UNREGISTER_SYSTEM_STORE_FUNC \"CertDllUnregisterSystemStore\"")] - public static ReadOnlySpan CRYPT_OID_UNREGISTER_SYSTEM_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x55, 0x6E, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_UNREGISTER_SYSTEM_STORE_FUNC => "CertDllUnregisterSystemStore"u8; [NativeTypeName("#define CRYPT_OID_ENUM_SYSTEM_STORE_FUNC \"CertDllEnumSystemStore\"")] - public static ReadOnlySpan CRYPT_OID_ENUM_SYSTEM_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x6E, 0x75, 0x6D, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_ENUM_SYSTEM_STORE_FUNC => "CertDllEnumSystemStore"u8; [NativeTypeName("#define CRYPT_OID_REGISTER_PHYSICAL_STORE_FUNC \"CertDllRegisterPhysicalStore\"")] - public static ReadOnlySpan CRYPT_OID_REGISTER_PHYSICAL_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6C, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_REGISTER_PHYSICAL_STORE_FUNC => "CertDllRegisterPhysicalStore"u8; [NativeTypeName("#define CRYPT_OID_UNREGISTER_PHYSICAL_STORE_FUNC \"CertDllUnregisterPhysicalStore\"")] - public static ReadOnlySpan CRYPT_OID_UNREGISTER_PHYSICAL_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x55, 0x6E, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6C, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_UNREGISTER_PHYSICAL_STORE_FUNC => "CertDllUnregisterPhysicalStore"u8; [NativeTypeName("#define CRYPT_OID_ENUM_PHYSICAL_STORE_FUNC \"CertDllEnumPhysicalStore\"")] - public static ReadOnlySpan CRYPT_OID_ENUM_PHYSICAL_STORE_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x6E, 0x75, 0x6D, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6C, 0x53, 0x74, 0x6F, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_ENUM_PHYSICAL_STORE_FUNC => "CertDllEnumPhysicalStore"u8; [NativeTypeName("#define CRYPT_OID_SYSTEM_STORE_LOCATION_VALUE_NAME L\"SystemStoreLocation\"")] public const string CRYPT_OID_SYSTEM_STORE_LOCATION_VALUE_NAME = "SystemStoreLocation"; @@ -640,13 +640,13 @@ public static unsafe partial class CRYPT public const int CRYPT_VERIFY_CERT_SIGN_CHECK_WEAK_HASH_FLAG = 0x00000008; [NativeTypeName("#define CRYPT_OID_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC \"CryptDllExtractEncodedSignatureParameters\"")] - public static ReadOnlySpan CRYPT_OID_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x64, 0x53, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6D, 0x65, 0x74, 0x65, 0x72, 0x73, 0x00 }; + public static ReadOnlySpan CRYPT_OID_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC => "CryptDllExtractEncodedSignatureParameters"u8; [NativeTypeName("#define CRYPT_OID_SIGN_AND_ENCODE_HASH_FUNC \"CryptDllSignAndEncodeHash\"")] - public static ReadOnlySpan CRYPT_OID_SIGN_AND_ENCODE_HASH_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x53, 0x69, 0x67, 0x6E, 0x41, 0x6E, 0x64, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x48, 0x61, 0x73, 0x68, 0x00 }; + public static ReadOnlySpan CRYPT_OID_SIGN_AND_ENCODE_HASH_FUNC => "CryptDllSignAndEncodeHash"u8; [NativeTypeName("#define CRYPT_OID_VERIFY_ENCODED_SIGNATURE_FUNC \"CryptDllVerifyEncodedSignature\"")] - public static ReadOnlySpan CRYPT_OID_VERIFY_ENCODED_SIGNATURE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x64, 0x53, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_VERIFY_ENCODED_SIGNATURE_FUNC => "CryptDllVerifyEncodedSignature"u8; [NativeTypeName("#define CRYPT_DEFAULT_CONTEXT_AUTO_RELEASE_FLAG 0x00000001")] public const int CRYPT_DEFAULT_CONTEXT_AUTO_RELEASE_FLAG = 0x00000001; @@ -661,19 +661,19 @@ public static unsafe partial class CRYPT public const int CRYPT_DEFAULT_CONTEXT_MULTI_CERT_SIGN_OID = 2; [NativeTypeName("#define CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FUNC \"CryptDllExportPublicKeyInfoEx\"")] - public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FUNC => "CryptDllExportPublicKeyInfoEx"u8; [NativeTypeName("#define CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC \"CryptDllExportPublicKeyInfoEx2\"")] - public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x32, 0x00 }; + public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC => "CryptDllExportPublicKeyInfoEx2"u8; [NativeTypeName("#define CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC \"CryptDllExportPublicKeyInfoFromBCryptKeyHandle\"")] - public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x46, 0x72, 0x6F, 0x6D, 0x42, 0x43, 0x72, 0x79, 0x70, 0x74, 0x4B, 0x65, 0x79, 0x48, 0x61, 0x6E, 0x64, 0x6C, 0x65, 0x00 }; + public static ReadOnlySpan CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC => "CryptDllExportPublicKeyInfoFromBCryptKeyHandle"u8; [NativeTypeName("#define CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_FUNC \"CryptDllImportPublicKeyInfoEx\"")] - public static ReadOnlySpan CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_FUNC => "CryptDllImportPublicKeyInfoEx"u8; [NativeTypeName("#define CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC \"CryptDllImportPublicKeyInfoEx2\"")] - public static ReadOnlySpan CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x32, 0x00 }; + public static ReadOnlySpan CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC => "CryptDllImportPublicKeyInfoEx2"u8; [NativeTypeName("#define CRYPT_ACQUIRE_CACHE_FLAG 0x00000001")] public const int CRYPT_ACQUIRE_CACHE_FLAG = 0x00000001; @@ -715,10 +715,10 @@ public static unsafe partial class CRYPT public const int CRYPT_FIND_SILENT_KEYSET_FLAG = 0x00000040; [NativeTypeName("#define CRYPT_OID_IMPORT_PRIVATE_KEY_INFO_FUNC \"CryptDllImportPrivateKeyInfoEx\"")] - public static ReadOnlySpan CRYPT_OID_IMPORT_PRIVATE_KEY_INFO_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_IMPORT_PRIVATE_KEY_INFO_FUNC => "CryptDllImportPrivateKeyInfoEx"u8; [NativeTypeName("#define CRYPT_OID_EXPORT_PRIVATE_KEY_INFO_FUNC \"CryptDllExportPrivateKeyInfoEx\"")] - public static ReadOnlySpan CRYPT_OID_EXPORT_PRIVATE_KEY_INFO_FUNC => new byte[] { 0x43, 0x72, 0x79, 0x70, 0x74, 0x44, 0x6C, 0x6C, 0x45, 0x78, 0x70, 0x6F, 0x72, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4B, 0x65, 0x79, 0x49, 0x6E, 0x66, 0x6F, 0x45, 0x78, 0x00 }; + public static ReadOnlySpan CRYPT_OID_EXPORT_PRIVATE_KEY_INFO_FUNC => "CryptDllExportPrivateKeyInfoEx"u8; [NativeTypeName("#define CRYPT_DELETE_KEYSET CRYPT_DELETEKEYSET")] public const int CRYPT_DELETE_KEYSET = 0x00000010; @@ -859,7 +859,7 @@ public static unsafe partial class CRYPT public const int CRYPT_KEYID_SET_NEW_FLAG = 0x00002000; [NativeTypeName("#define CRYPT_OID_VERIFY_CERTIFICATE_CHAIN_POLICY_FUNC \"CertDllVerifyCertificateChainPolicy\"")] - public static ReadOnlySpan CRYPT_OID_VERIFY_CERTIFICATE_CHAIN_POLICY_FUNC => new byte[] { 0x43, 0x65, 0x72, 0x74, 0x44, 0x6C, 0x6C, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6E, 0x50, 0x6F, 0x6C, 0x69, 0x63, 0x79, 0x00 }; + public static ReadOnlySpan CRYPT_OID_VERIFY_CERTIFICATE_CHAIN_POLICY_FUNC => "CertDllVerifyCertificateChainPolicy"u8; [NativeTypeName("#define CRYPT_STRING_BASE64HEADER 0x00000000")] public const int CRYPT_STRING_BASE64HEADER = 0x00000000; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_KEY_SIGN_MESSAGE_PARA.cs b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_KEY_SIGN_MESSAGE_PARA.cs index 03916a0d7b..6f27a9ebd0 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_KEY_SIGN_MESSAGE_PARA.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_KEY_SIGN_MESSAGE_PARA.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,22 +38,24 @@ public unsafe partial struct CRYPT_KEY_SIGN_MESSAGE_PARA public CRYPT_ALGORITHM_IDENTIFIER PubKeyAlgorithm; /// + [UnscopedRef] public ref HCRYPTPROV hCryptProv { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hCryptProv, 1)); + return ref Anonymous.hCryptProv; } } /// + [UnscopedRef] public ref nuint hNCryptKey { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.hNCryptKey, 1)); + return ref Anonymous.hNCryptKey; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_OID_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_OID_INFO.cs index b8e4b47c61..15203a2bc2 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_OID_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/CRYPT_OID_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,32 +36,35 @@ public unsafe partial struct CRYPT_OID_INFO public CRYPT_DATA_BLOB ExtraInfo; /// + [UnscopedRef] public ref uint dwValue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwValue, 1)); + return ref Anonymous.dwValue; } } /// + [UnscopedRef] public ref uint Algid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Algid, 1)); + return ref Anonymous.Algid; } } /// + [UnscopedRef] public ref uint dwLength { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.dwLength, 1)); + return ref Anonymous.dwLength; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/HTTPSPolicyCallbackData.cs b/sources/Interop/Windows/Windows/um/wincrypt/HTTPSPolicyCallbackData.cs index af7ebe0c06..9e2d56e805 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/HTTPSPolicyCallbackData.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/HTTPSPolicyCallbackData.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,22 +29,24 @@ public unsafe partial struct HTTPSPolicyCallbackData public ushort* pwszServerName; /// + [UnscopedRef] public ref uint cbStruct { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbStruct, 1)); + return ref Anonymous.cbStruct; } } /// + [UnscopedRef] public ref uint cbSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.cbSize, 1)); + return ref Anonymous.cbSize; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/MS.cs b/sources/Interop/Windows/Windows/um/wincrypt/MS.cs index baca4b3020..809448196c 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/MS.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/MS.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static partial class MS { [NativeTypeName("#define MS_DEF_PROV_A \"Microsoft Base Cryptographic Provider v1.0\"")] - public static ReadOnlySpan MS_DEF_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan MS_DEF_PROV_A => "Microsoft Base Cryptographic Provider v1.0"u8; [NativeTypeName("#define MS_DEF_PROV_W L\"Microsoft Base Cryptographic Provider v1.0\"")] public const string MS_DEF_PROV_W = "Microsoft Base Cryptographic Provider v1.0"; @@ -19,7 +19,7 @@ public static partial class MS public const string MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"; [NativeTypeName("#define MS_ENHANCED_PROV_A \"Microsoft Enhanced Cryptographic Provider v1.0\"")] - public static ReadOnlySpan MS_ENHANCED_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan MS_ENHANCED_PROV_A => "Microsoft Enhanced Cryptographic Provider v1.0"u8; [NativeTypeName("#define MS_ENHANCED_PROV_W L\"Microsoft Enhanced Cryptographic Provider v1.0\"")] public const string MS_ENHANCED_PROV_W = "Microsoft Enhanced Cryptographic Provider v1.0"; @@ -28,7 +28,7 @@ public static partial class MS public const string MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"; [NativeTypeName("#define MS_STRONG_PROV_A \"Microsoft Strong Cryptographic Provider\"")] - public static ReadOnlySpan MS_STRONG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x53, 0x74, 0x72, 0x6F, 0x6E, 0x67, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_STRONG_PROV_A => "Microsoft Strong Cryptographic Provider"u8; [NativeTypeName("#define MS_STRONG_PROV_W L\"Microsoft Strong Cryptographic Provider\"")] public const string MS_STRONG_PROV_W = "Microsoft Strong Cryptographic Provider"; @@ -37,7 +37,7 @@ public static partial class MS public const string MS_STRONG_PROV = "Microsoft Strong Cryptographic Provider"; [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_A \"Microsoft RSA Signature Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_RSA_SIG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_DEF_RSA_SIG_PROV_A => "Microsoft RSA Signature Cryptographic Provider"u8; [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_W L\"Microsoft RSA Signature Cryptographic Provider\"")] public const string MS_DEF_RSA_SIG_PROV_W = "Microsoft RSA Signature Cryptographic Provider"; @@ -46,7 +46,7 @@ public static partial class MS public const string MS_DEF_RSA_SIG_PROV = "Microsoft RSA Signature Cryptographic Provider"; [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_A \"Microsoft RSA SChannel Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_RSA_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_DEF_RSA_SCHANNEL_PROV_A => "Microsoft RSA SChannel Cryptographic Provider"u8; [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_W L\"Microsoft RSA SChannel Cryptographic Provider\"")] public const string MS_DEF_RSA_SCHANNEL_PROV_W = "Microsoft RSA SChannel Cryptographic Provider"; @@ -55,7 +55,7 @@ public static partial class MS public const string MS_DEF_RSA_SCHANNEL_PROV = "Microsoft RSA SChannel Cryptographic Provider"; [NativeTypeName("#define MS_DEF_DSS_PROV_A \"Microsoft Base DSS Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DSS_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_DEF_DSS_PROV_A => "Microsoft Base DSS Cryptographic Provider"u8; [NativeTypeName("#define MS_DEF_DSS_PROV_W L\"Microsoft Base DSS Cryptographic Provider\"")] public const string MS_DEF_DSS_PROV_W = "Microsoft Base DSS Cryptographic Provider"; @@ -64,7 +64,7 @@ public static partial class MS public const string MS_DEF_DSS_PROV = "Microsoft Base DSS Cryptographic Provider"; [NativeTypeName("#define MS_DEF_DSS_DH_PROV_A \"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_DEF_DSS_DH_PROV_A => "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"u8; [NativeTypeName("#define MS_DEF_DSS_DH_PROV_W L\"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] public const string MS_DEF_DSS_DH_PROV_W = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; @@ -73,7 +73,7 @@ public static partial class MS public const string MS_DEF_DSS_DH_PROV = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; [NativeTypeName("#define MS_ENH_DSS_DH_PROV_A \"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] - public static ReadOnlySpan MS_ENH_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_ENH_DSS_DH_PROV_A => "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"u8; [NativeTypeName("#define MS_ENH_DSS_DH_PROV_W L\"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] public const string MS_ENH_DSS_DH_PROV_W = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; @@ -82,7 +82,7 @@ public static partial class MS public const string MS_ENH_DSS_DH_PROV = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_A \"Microsoft DH SChannel Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DH_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x48, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_DEF_DH_SCHANNEL_PROV_A => "Microsoft DH SChannel Cryptographic Provider"u8; [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_W L\"Microsoft DH SChannel Cryptographic Provider\"")] public const string MS_DEF_DH_SCHANNEL_PROV_W = "Microsoft DH SChannel Cryptographic Provider"; @@ -91,7 +91,7 @@ public static partial class MS public const string MS_DEF_DH_SCHANNEL_PROV = "Microsoft DH SChannel Cryptographic Provider"; [NativeTypeName("#define MS_SCARD_PROV_A \"Microsoft Base Smart Card Crypto Provider\"")] - public static ReadOnlySpan MS_SCARD_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x53, 0x6D, 0x61, 0x72, 0x74, 0x20, 0x43, 0x61, 0x72, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_SCARD_PROV_A => "Microsoft Base Smart Card Crypto Provider"u8; [NativeTypeName("#define MS_SCARD_PROV_W L\"Microsoft Base Smart Card Crypto Provider\"")] public const string MS_SCARD_PROV_W = "Microsoft Base Smart Card Crypto Provider"; @@ -100,13 +100,13 @@ public static partial class MS public const string MS_SCARD_PROV = "Microsoft Base Smart Card Crypto Provider"; [NativeTypeName("#define MS_ENH_RSA_AES_PROV_A \"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] - public static ReadOnlySpan MS_ENH_RSA_AES_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + public static ReadOnlySpan MS_ENH_RSA_AES_PROV_A => "Microsoft Enhanced RSA and AES Cryptographic Provider"u8; [NativeTypeName("#define MS_ENH_RSA_AES_PROV_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] public const string MS_ENH_RSA_AES_PROV_W = "Microsoft Enhanced RSA and AES Cryptographic Provider"; [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_A \"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] - public static ReadOnlySpan MS_ENH_RSA_AES_PROV_XP_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x28, 0x50, 0x72, 0x6F, 0x74, 0x6F, 0x74, 0x79, 0x70, 0x65, 0x29, 0x00 }; + public static ReadOnlySpan MS_ENH_RSA_AES_PROV_XP_A => "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"u8; [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] public const string MS_ENH_RSA_AES_PROV_XP_W = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_ENTRY.cs b/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_ENTRY.cs index 2510c3b617..138d706a8d 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_ENTRY.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,12 +38,13 @@ public unsafe partial struct OCSP_BASIC_RESPONSE_ENTRY public CERT_EXTENSION* rgExtension; /// + [UnscopedRef] public ref OCSP_BASIC_REVOKED_INFO* pRevokedInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.pRevokedInfo; + return ref Anonymous.pRevokedInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_INFO.cs b/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_INFO.cs index 0ac40cd42e..007d52c045 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/OCSP_BASIC_RESPONSE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -43,22 +44,24 @@ public unsafe partial struct OCSP_BASIC_RESPONSE_INFO public CERT_EXTENSION* rgExtension; /// + [UnscopedRef] public ref CRYPT_DATA_BLOB ByNameResponderId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ByNameResponderId, 1)); + return ref Anonymous.ByNameResponderId; } } /// + [UnscopedRef] public ref CRYPT_DATA_BLOB ByKeyResponderId { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ByKeyResponderId, 1)); + return ref Anonymous.ByKeyResponderId; } } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs b/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs index 50d9f671f1..695ee9e981 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs @@ -76,16 +76,16 @@ public static partial class PKCS12 public const uint PKCS12_EXPORT_RESERVED_MASK = 0xffff0000; [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA1 \"1.2.840.113549.2.7\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA1 => "1.2.840.113549.2.7"u8; [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA256 \"1.2.840.113549.2.9\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA256 => "1.2.840.113549.2.9"u8; [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA384 \"1.2.840.113549.2.10\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA384 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA384 => "1.2.840.113549.2.10"u8; [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA512 \"1.2.840.113549.2.11\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA512 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA512 => "1.2.840.113549.2.11"u8; [NativeTypeName("#define PKCS12_PBES2_ALG_AES256_SHA256 L\"AES256-SHA256\"")] public const string PKCS12_PBES2_ALG_AES256_SHA256 = "AES256-SHA256"; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/SCHEME.cs b/sources/Interop/Windows/Windows/um/wincrypt/SCHEME.cs index d1cde7ca0c..669b3221c2 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/SCHEME.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/SCHEME.cs @@ -10,8 +10,8 @@ namespace TerraFX.Interop.Windows; public static partial class SCHEME { [NativeTypeName("#define SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC \"SchemeDllRetrieveEncodedObject\"")] - public static ReadOnlySpan SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC => new byte[] { 0x53, 0x63, 0x68, 0x65, 0x6D, 0x65, 0x44, 0x6C, 0x6C, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x64, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC => "SchemeDllRetrieveEncodedObject"u8; [NativeTypeName("#define SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC \"SchemeDllRetrieveEncodedObjectW\"")] - public static ReadOnlySpan SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC => new byte[] { 0x53, 0x63, 0x68, 0x65, 0x6D, 0x65, 0x44, 0x6C, 0x6C, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6E, 0x63, 0x6F, 0x64, 0x65, 0x64, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x57, 0x00 }; + public static ReadOnlySpan SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC => "SchemeDllRetrieveEncodedObjectW"u8; } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs b/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs index 5fdc4d0dfd..14dc4635d3 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs @@ -25,11 +25,11 @@ public static partial class SSL public const int SSL_KEY_PIN_ERROR_TEXT_LENGTH = 512; [NativeTypeName("#define SSL_OBJECT_LOCATOR_PFX_FUNC \"SslObjectLocatorInitializePfx\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_PFX_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x50, 0x66, 0x78, 0x00 }; + public static ReadOnlySpan SSL_OBJECT_LOCATOR_PFX_FUNC => "SslObjectLocatorInitializePfx"u8; [NativeTypeName("#define SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC \"SslObjectLocatorInitializeIssuerList\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + public static ReadOnlySpan SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC => "SslObjectLocatorInitializeIssuerList"u8; [NativeTypeName("#define SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC \"SslObjectLocatorInitializeCertValidationConfig\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x43, 0x65, 0x72, 0x74, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x43, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x00 }; + public static ReadOnlySpan SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC => "SslObjectLocatorInitializeCertValidationConfig"u8; } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/TIME.cs b/sources/Interop/Windows/Windows/um/wincrypt/TIME.cs index 981c5e5542..8e66bb8db4 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/TIME.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/TIME.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static unsafe partial class TIME { [NativeTypeName("#define TIME_VALID_OID_GET_OBJECT_FUNC \"TimeValidDllGetObject\"")] - public static ReadOnlySpan TIME_VALID_OID_GET_OBJECT_FUNC => new byte[] { 0x54, 0x69, 0x6D, 0x65, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan TIME_VALID_OID_GET_OBJECT_FUNC => "TimeValidDllGetObject"u8; [NativeTypeName("#define TIME_VALID_OID_GET_CTL ((LPCSTR)1)")] public static sbyte* TIME_VALID_OID_GET_CTL => ((sbyte*)(1)); @@ -28,7 +28,7 @@ public static unsafe partial class TIME public static sbyte* TIME_VALID_OID_GET_FRESHEST_CRL_FROM_CRL => ((sbyte*)(5)); [NativeTypeName("#define TIME_VALID_OID_FLUSH_OBJECT_FUNC \"TimeValidDllFlushObject\"")] - public static ReadOnlySpan TIME_VALID_OID_FLUSH_OBJECT_FUNC => new byte[] { 0x54, 0x69, 0x6D, 0x65, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x44, 0x6C, 0x6C, 0x46, 0x6C, 0x75, 0x73, 0x68, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan TIME_VALID_OID_FLUSH_OBJECT_FUNC => "TimeValidDllFlushObject"u8; [NativeTypeName("#define TIME_VALID_OID_FLUSH_CTL ((LPCSTR)1)")] public static sbyte* TIME_VALID_OID_FLUSH_CTL => ((sbyte*)(1)); diff --git a/sources/Interop/Windows/Windows/um/wincrypt/URL.cs b/sources/Interop/Windows/Windows/um/wincrypt/URL.cs index 2dbc103fd2..7b8e574fb4 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/URL.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/URL.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows; public static unsafe partial class URL { [NativeTypeName("#define URL_OID_GET_OBJECT_URL_FUNC \"UrlDllGetObjectUrl\"")] - public static ReadOnlySpan URL_OID_GET_OBJECT_URL_FUNC => new byte[] { 0x55, 0x72, 0x6C, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6C, 0x00 }; + public static ReadOnlySpan URL_OID_GET_OBJECT_URL_FUNC => "UrlDllGetObjectUrl"u8; [NativeTypeName("#define URL_OID_CERTIFICATE_ISSUER ((LPCSTR)1)")] public static sbyte* URL_OID_CERTIFICATE_ISSUER => ((sbyte*)(1)); diff --git a/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs b/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs index b99962806e..33ee265ac3 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs @@ -1362,28 +1362,28 @@ public static unsafe partial class Windows public const int MAXUIDLEN = 64; [NativeTypeName("#define EXPO_OFFLOAD_REG_VALUE \"ExpoOffload\"")] - public static ReadOnlySpan EXPO_OFFLOAD_REG_VALUE => new byte[] { 0x45, 0x78, 0x70, 0x6F, 0x4F, 0x66, 0x66, 0x6C, 0x6F, 0x61, 0x64, 0x00 }; + public static ReadOnlySpan EXPO_OFFLOAD_REG_VALUE => "ExpoOffload"u8; [NativeTypeName("#define EXPO_OFFLOAD_FUNC_NAME \"OffloadModExpo\"")] - public static ReadOnlySpan EXPO_OFFLOAD_FUNC_NAME => new byte[] { 0x4F, 0x66, 0x66, 0x6C, 0x6F, 0x61, 0x64, 0x4D, 0x6F, 0x64, 0x45, 0x78, 0x70, 0x6F, 0x00 }; + public static ReadOnlySpan EXPO_OFFLOAD_FUNC_NAME => "OffloadModExpo"u8; [NativeTypeName("#define szKEY_CRYPTOAPI_PRIVATE_KEY_OPTIONS \"Software\\\\Policies\\\\Microsoft\\\\Cryptography\"")] - public static ReadOnlySpan szKEY_CRYPTOAPI_PRIVATE_KEY_OPTIONS => new byte[] { 0x53, 0x6F, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5C, 0x50, 0x6F, 0x6C, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5C, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x5C, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x79, 0x00 }; + public static ReadOnlySpan szKEY_CRYPTOAPI_PRIVATE_KEY_OPTIONS => "Software\\Policies\\Microsoft\\Cryptography"u8; [NativeTypeName("#define szKEY_CACHE_ENABLED \"CachePrivateKeys\"")] - public static ReadOnlySpan szKEY_CACHE_ENABLED => new byte[] { 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4B, 0x65, 0x79, 0x73, 0x00 }; + public static ReadOnlySpan szKEY_CACHE_ENABLED => "CachePrivateKeys"u8; [NativeTypeName("#define szKEY_CACHE_SECONDS \"PrivateKeyLifetimeSeconds\"")] - public static ReadOnlySpan szKEY_CACHE_SECONDS => new byte[] { 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4B, 0x65, 0x79, 0x4C, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6D, 0x65, 0x53, 0x65, 0x63, 0x6F, 0x6E, 0x64, 0x73, 0x00 }; + public static ReadOnlySpan szKEY_CACHE_SECONDS => "PrivateKeyLifetimeSeconds"u8; [NativeTypeName("#define szPRIV_KEY_CACHE_MAX_ITEMS \"PrivKeyCacheMaxItems\"")] - public static ReadOnlySpan szPRIV_KEY_CACHE_MAX_ITEMS => new byte[] { 0x50, 0x72, 0x69, 0x76, 0x4B, 0x65, 0x79, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4D, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6D, 0x73, 0x00 }; + public static ReadOnlySpan szPRIV_KEY_CACHE_MAX_ITEMS => "PrivKeyCacheMaxItems"u8; [NativeTypeName("#define cPRIV_KEY_CACHE_MAX_ITEMS_DEFAULT 20")] public const int cPRIV_KEY_CACHE_MAX_ITEMS_DEFAULT = 20; [NativeTypeName("#define szPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS \"PrivKeyCachePurgeIntervalSeconds\"")] - public static ReadOnlySpan szPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS => new byte[] { 0x50, 0x72, 0x69, 0x76, 0x4B, 0x65, 0x79, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6C, 0x53, 0x65, 0x63, 0x6F, 0x6E, 0x64, 0x73, 0x00 }; + public static ReadOnlySpan szPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS => "PrivKeyCachePurgeIntervalSeconds"u8; [NativeTypeName("#define cPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS_DEFAULT 86400")] public const int cPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS_DEFAULT = 86400; @@ -1467,22 +1467,22 @@ public static unsafe partial class Windows public const int SORTED_CTL_EXT_HASHED_SUBJECT_IDENTIFIER_FLAG = 0x1; [NativeTypeName("#define szOIDVerisign_MessageType \"2.16.840.1.113733.1.9.2\"")] - public static ReadOnlySpan szOIDVerisign_MessageType => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOIDVerisign_MessageType => "2.16.840.1.113733.1.9.2"u8; [NativeTypeName("#define szOIDVerisign_PkiStatus \"2.16.840.1.113733.1.9.3\"")] - public static ReadOnlySpan szOIDVerisign_PkiStatus => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOIDVerisign_PkiStatus => "2.16.840.1.113733.1.9.3"u8; [NativeTypeName("#define szOIDVerisign_FailInfo \"2.16.840.1.113733.1.9.4\"")] - public static ReadOnlySpan szOIDVerisign_FailInfo => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOIDVerisign_FailInfo => "2.16.840.1.113733.1.9.4"u8; [NativeTypeName("#define szOIDVerisign_SenderNonce \"2.16.840.1.113733.1.9.5\"")] - public static ReadOnlySpan szOIDVerisign_SenderNonce => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOIDVerisign_SenderNonce => "2.16.840.1.113733.1.9.5"u8; [NativeTypeName("#define szOIDVerisign_RecipientNonce \"2.16.840.1.113733.1.9.6\"")] - public static ReadOnlySpan szOIDVerisign_RecipientNonce => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOIDVerisign_RecipientNonce => "2.16.840.1.113733.1.9.6"u8; [NativeTypeName("#define szOIDVerisign_TransactionID \"2.16.840.1.113733.1.9.7\"")] - public static ReadOnlySpan szOIDVerisign_TransactionID => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOIDVerisign_TransactionID => "2.16.840.1.113733.1.9.7"u8; [NativeTypeName("#define NETSCAPE_SSL_CLIENT_AUTH_CERT_TYPE 0x80")] public const int NETSCAPE_SSL_CLIENT_AUTH_CERT_TYPE = 0x80; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/sz.cs b/sources/Interop/Windows/Windows/um/wincrypt/sz.cs index 22b053cf18..e1c49aa0a1 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/sz.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/sz.cs @@ -10,53 +10,53 @@ namespace TerraFX.Interop.Windows; public static partial class SZ { [NativeTypeName("#define sz_CERT_STORE_PROV_MEMORY \"Memory\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_MEMORY => new byte[] { 0x4D, 0x65, 0x6D, 0x6F, 0x72, 0x79, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_MEMORY => "Memory"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_FILENAME_W \"File\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_FILENAME_W => new byte[] { 0x46, 0x69, 0x6C, 0x65, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_FILENAME_W => "File"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_FILENAME sz_CERT_STORE_PROV_FILENAME_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_FILENAME => new byte[] { 0x46, 0x69, 0x6C, 0x65, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_FILENAME => "File"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SYSTEM_W \"System\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_W => new byte[] { 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_W => "System"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SYSTEM sz_CERT_STORE_PROV_SYSTEM_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM => new byte[] { 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM => "System"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_PKCS7 \"PKCS7\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_PKCS7 => new byte[] { 0x50, 0x4B, 0x43, 0x53, 0x37, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_PKCS7 => "PKCS7"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_PKCS12 \"PKCS12\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_PKCS12 => new byte[] { 0x50, 0x4B, 0x43, 0x53, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_PKCS12 => "PKCS12"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SERIALIZED \"Serialized\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SERIALIZED => new byte[] { 0x53, 0x65, 0x72, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x64, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SERIALIZED => "Serialized"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_COLLECTION \"Collection\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_COLLECTION => new byte[] { 0x43, 0x6F, 0x6C, 0x6C, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_COLLECTION => "Collection"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W \"SystemRegistry\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W => new byte[] { 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W => "SystemRegistry"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SYSTEM_REGISTRY sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_REGISTRY => new byte[] { 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SYSTEM_REGISTRY => "SystemRegistry"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_PHYSICAL_W \"Physical\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_PHYSICAL_W => new byte[] { 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6C, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_PHYSICAL_W => "Physical"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_PHYSICAL sz_CERT_STORE_PROV_PHYSICAL_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_PHYSICAL => new byte[] { 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6C, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_PHYSICAL => "Physical"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SMART_CARD_W \"SmartCard\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SMART_CARD_W => new byte[] { 0x53, 0x6D, 0x61, 0x72, 0x74, 0x43, 0x61, 0x72, 0x64, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SMART_CARD_W => "SmartCard"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_SMART_CARD sz_CERT_STORE_PROV_SMART_CARD_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_SMART_CARD => new byte[] { 0x53, 0x6D, 0x61, 0x72, 0x74, 0x43, 0x61, 0x72, 0x64, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_SMART_CARD => "SmartCard"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_LDAP_W \"Ldap\"")] - public static ReadOnlySpan sz_CERT_STORE_PROV_LDAP_W => new byte[] { 0x4C, 0x64, 0x61, 0x70, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_LDAP_W => "Ldap"u8; [NativeTypeName("#define sz_CERT_STORE_PROV_LDAP sz_CERT_STORE_PROV_LDAP_W")] - public static ReadOnlySpan sz_CERT_STORE_PROV_LDAP => new byte[] { 0x4C, 0x64, 0x61, 0x70, 0x00 }; + public static ReadOnlySpan sz_CERT_STORE_PROV_LDAP => "Ldap"u8; } diff --git a/sources/Interop/Windows/Windows/um/wincrypt/szOID.cs b/sources/Interop/Windows/Windows/um/wincrypt/szOID.cs index 62943cc7e5..265f6824cb 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/szOID.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/szOID.cs @@ -10,1556 +10,1556 @@ namespace TerraFX.Interop.Windows; public static partial class szOID { [NativeTypeName("#define szOID_RSA \"1.2.840.113549\"")] - public static ReadOnlySpan szOID_RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x00 }; + public static ReadOnlySpan szOID_RSA => "1.2.840.113549"u8; [NativeTypeName("#define szOID_PKCS \"1.2.840.113549.1\"")] - public static ReadOnlySpan szOID_PKCS => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS => "1.2.840.113549.1"u8; [NativeTypeName("#define szOID_RSA_HASH \"1.2.840.113549.2\"")] - public static ReadOnlySpan szOID_RSA_HASH => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_HASH => "1.2.840.113549.2"u8; [NativeTypeName("#define szOID_RSA_ENCRYPT \"1.2.840.113549.3\"")] - public static ReadOnlySpan szOID_RSA_ENCRYPT => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_ENCRYPT => "1.2.840.113549.3"u8; [NativeTypeName("#define szOID_PKCS_1 \"1.2.840.113549.1.1\"")] - public static ReadOnlySpan szOID_PKCS_1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_1 => "1.2.840.113549.1.1"u8; [NativeTypeName("#define szOID_PKCS_2 \"1.2.840.113549.1.2\"")] - public static ReadOnlySpan szOID_PKCS_2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKCS_2 => "1.2.840.113549.1.2"u8; [NativeTypeName("#define szOID_PKCS_3 \"1.2.840.113549.1.3\"")] - public static ReadOnlySpan szOID_PKCS_3 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_3 => "1.2.840.113549.1.3"u8; [NativeTypeName("#define szOID_PKCS_4 \"1.2.840.113549.1.4\"")] - public static ReadOnlySpan szOID_PKCS_4 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_4 => "1.2.840.113549.1.4"u8; [NativeTypeName("#define szOID_PKCS_5 \"1.2.840.113549.1.5\"")] - public static ReadOnlySpan szOID_PKCS_5 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKCS_5 => "1.2.840.113549.1.5"u8; [NativeTypeName("#define szOID_PKCS_6 \"1.2.840.113549.1.6\"")] - public static ReadOnlySpan szOID_PKCS_6 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_PKCS_6 => "1.2.840.113549.1.6"u8; [NativeTypeName("#define szOID_PKCS_7 \"1.2.840.113549.1.7\"")] - public static ReadOnlySpan szOID_PKCS_7 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7 => "1.2.840.113549.1.7"u8; [NativeTypeName("#define szOID_PKCS_8 \"1.2.840.113549.1.8\"")] - public static ReadOnlySpan szOID_PKCS_8 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_PKCS_8 => "1.2.840.113549.1.8"u8; [NativeTypeName("#define szOID_PKCS_9 \"1.2.840.113549.1.9\"")] - public static ReadOnlySpan szOID_PKCS_9 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_PKCS_9 => "1.2.840.113549.1.9"u8; [NativeTypeName("#define szOID_PKCS_10 \"1.2.840.113549.1.10\"")] - public static ReadOnlySpan szOID_PKCS_10 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_PKCS_10 => "1.2.840.113549.1.10"u8; [NativeTypeName("#define szOID_PKCS_12 \"1.2.840.113549.1.12\"")] - public static ReadOnlySpan szOID_PKCS_12 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12 => "1.2.840.113549.1.12"u8; [NativeTypeName("#define szOID_RSA_RSA \"1.2.840.113549.1.1.1\"")] - public static ReadOnlySpan szOID_RSA_RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_RSA => "1.2.840.113549.1.1.1"u8; [NativeTypeName("#define szOID_RSA_MD2RSA \"1.2.840.113549.1.1.2\"")] - public static ReadOnlySpan szOID_RSA_MD2RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD2RSA => "1.2.840.113549.1.1.2"u8; [NativeTypeName("#define szOID_RSA_MD4RSA \"1.2.840.113549.1.1.3\"")] - public static ReadOnlySpan szOID_RSA_MD4RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD4RSA => "1.2.840.113549.1.1.3"u8; [NativeTypeName("#define szOID_RSA_MD5RSA \"1.2.840.113549.1.1.4\"")] - public static ReadOnlySpan szOID_RSA_MD5RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD5RSA => "1.2.840.113549.1.1.4"u8; [NativeTypeName("#define szOID_RSA_SHA1RSA \"1.2.840.113549.1.1.5\"")] - public static ReadOnlySpan szOID_RSA_SHA1RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_SHA1RSA => "1.2.840.113549.1.1.5"u8; [NativeTypeName("#define szOID_RSA_SETOAEP_RSA \"1.2.840.113549.1.1.6\"")] - public static ReadOnlySpan szOID_RSA_SETOAEP_RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_RSA_SETOAEP_RSA => "1.2.840.113549.1.1.6"u8; [NativeTypeName("#define szOID_RSAES_OAEP \"1.2.840.113549.1.1.7\"")] - public static ReadOnlySpan szOID_RSAES_OAEP => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_RSAES_OAEP => "1.2.840.113549.1.1.7"u8; [NativeTypeName("#define szOID_RSA_MGF1 \"1.2.840.113549.1.1.8\"")] - public static ReadOnlySpan szOID_RSA_MGF1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_RSA_MGF1 => "1.2.840.113549.1.1.8"u8; [NativeTypeName("#define szOID_RSA_PSPECIFIED \"1.2.840.113549.1.1.9\"")] - public static ReadOnlySpan szOID_RSA_PSPECIFIED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_RSA_PSPECIFIED => "1.2.840.113549.1.1.9"u8; [NativeTypeName("#define szOID_RSA_SSA_PSS \"1.2.840.113549.1.1.10\"")] - public static ReadOnlySpan szOID_RSA_SSA_PSS => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_RSA_SSA_PSS => "1.2.840.113549.1.1.10"u8; [NativeTypeName("#define szOID_RSA_SHA256RSA \"1.2.840.113549.1.1.11\"")] - public static ReadOnlySpan szOID_RSA_SHA256RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_SHA256RSA => "1.2.840.113549.1.1.11"u8; [NativeTypeName("#define szOID_RSA_SHA384RSA \"1.2.840.113549.1.1.12\"")] - public static ReadOnlySpan szOID_RSA_SHA384RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_SHA384RSA => "1.2.840.113549.1.1.12"u8; [NativeTypeName("#define szOID_RSA_SHA512RSA \"1.2.840.113549.1.1.13\"")] - public static ReadOnlySpan szOID_RSA_SHA512RSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_SHA512RSA => "1.2.840.113549.1.1.13"u8; [NativeTypeName("#define szOID_RSA_DH \"1.2.840.113549.1.3.1\"")] - public static ReadOnlySpan szOID_RSA_DH => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_DH => "1.2.840.113549.1.3.1"u8; [NativeTypeName("#define szOID_RSA_data \"1.2.840.113549.1.7.1\"")] - public static ReadOnlySpan szOID_RSA_data => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_data => "1.2.840.113549.1.7.1"u8; [NativeTypeName("#define szOID_RSA_signedData \"1.2.840.113549.1.7.2\"")] - public static ReadOnlySpan szOID_RSA_signedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_signedData => "1.2.840.113549.1.7.2"u8; [NativeTypeName("#define szOID_RSA_envelopedData \"1.2.840.113549.1.7.3\"")] - public static ReadOnlySpan szOID_RSA_envelopedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_envelopedData => "1.2.840.113549.1.7.3"u8; [NativeTypeName("#define szOID_RSA_signEnvData \"1.2.840.113549.1.7.4\"")] - public static ReadOnlySpan szOID_RSA_signEnvData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_signEnvData => "1.2.840.113549.1.7.4"u8; [NativeTypeName("#define szOID_RSA_digestedData \"1.2.840.113549.1.7.5\"")] - public static ReadOnlySpan szOID_RSA_digestedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_digestedData => "1.2.840.113549.1.7.5"u8; [NativeTypeName("#define szOID_RSA_hashedData \"1.2.840.113549.1.7.5\"")] - public static ReadOnlySpan szOID_RSA_hashedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_hashedData => "1.2.840.113549.1.7.5"u8; [NativeTypeName("#define szOID_RSA_encryptedData \"1.2.840.113549.1.7.6\"")] - public static ReadOnlySpan szOID_RSA_encryptedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_RSA_encryptedData => "1.2.840.113549.1.7.6"u8; [NativeTypeName("#define szOID_RSA_emailAddr \"1.2.840.113549.1.9.1\"")] - public static ReadOnlySpan szOID_RSA_emailAddr => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_emailAddr => "1.2.840.113549.1.9.1"u8; [NativeTypeName("#define szOID_RSA_unstructName \"1.2.840.113549.1.9.2\"")] - public static ReadOnlySpan szOID_RSA_unstructName => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_unstructName => "1.2.840.113549.1.9.2"u8; [NativeTypeName("#define szOID_RSA_contentType \"1.2.840.113549.1.9.3\"")] - public static ReadOnlySpan szOID_RSA_contentType => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_contentType => "1.2.840.113549.1.9.3"u8; [NativeTypeName("#define szOID_RSA_messageDigest \"1.2.840.113549.1.9.4\"")] - public static ReadOnlySpan szOID_RSA_messageDigest => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_messageDigest => "1.2.840.113549.1.9.4"u8; [NativeTypeName("#define szOID_RSA_signingTime \"1.2.840.113549.1.9.5\"")] - public static ReadOnlySpan szOID_RSA_signingTime => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_signingTime => "1.2.840.113549.1.9.5"u8; [NativeTypeName("#define szOID_RSA_counterSign \"1.2.840.113549.1.9.6\"")] - public static ReadOnlySpan szOID_RSA_counterSign => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_RSA_counterSign => "1.2.840.113549.1.9.6"u8; [NativeTypeName("#define szOID_RSA_challengePwd \"1.2.840.113549.1.9.7\"")] - public static ReadOnlySpan szOID_RSA_challengePwd => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_RSA_challengePwd => "1.2.840.113549.1.9.7"u8; [NativeTypeName("#define szOID_RSA_unstructAddr \"1.2.840.113549.1.9.8\"")] - public static ReadOnlySpan szOID_RSA_unstructAddr => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_RSA_unstructAddr => "1.2.840.113549.1.9.8"u8; [NativeTypeName("#define szOID_RSA_extCertAttrs \"1.2.840.113549.1.9.9\"")] - public static ReadOnlySpan szOID_RSA_extCertAttrs => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_RSA_extCertAttrs => "1.2.840.113549.1.9.9"u8; [NativeTypeName("#define szOID_RSA_certExtensions \"1.2.840.113549.1.9.14\"")] - public static ReadOnlySpan szOID_RSA_certExtensions => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_certExtensions => "1.2.840.113549.1.9.14"u8; [NativeTypeName("#define szOID_RSA_SMIMECapabilities \"1.2.840.113549.1.9.15\"")] - public static ReadOnlySpan szOID_RSA_SMIMECapabilities => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_SMIMECapabilities => "1.2.840.113549.1.9.15"u8; [NativeTypeName("#define szOID_RSA_preferSignedData \"1.2.840.113549.1.9.15.1\"")] - public static ReadOnlySpan szOID_RSA_preferSignedData => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RSA_preferSignedData => "1.2.840.113549.1.9.15.1"u8; [NativeTypeName("#define szOID_TIMESTAMP_TOKEN \"1.2.840.113549.1.9.16.1.4\"")] - public static ReadOnlySpan szOID_TIMESTAMP_TOKEN => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_TIMESTAMP_TOKEN => "1.2.840.113549.1.9.16.1.4"u8; [NativeTypeName("#define szOID_RFC3161_counterSign \"1.3.6.1.4.1.311.3.3.1\"")] - public static ReadOnlySpan szOID_RFC3161_counterSign => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RFC3161_counterSign => "1.3.6.1.4.1.311.3.3.1"u8; [NativeTypeName("#define szOID_RSA_SMIMEalg \"1.2.840.113549.1.9.16.3\"")] - public static ReadOnlySpan szOID_RSA_SMIMEalg => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x36, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RSA_SMIMEalg => "1.2.840.113549.1.9.16.3"u8; [NativeTypeName("#define szOID_RSA_SMIMEalgESDH \"1.2.840.113549.1.9.16.3.5\"")] - public static ReadOnlySpan szOID_RSA_SMIMEalgESDH => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x36, 0x2E, 0x33, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_SMIMEalgESDH => "1.2.840.113549.1.9.16.3.5"u8; [NativeTypeName("#define szOID_RSA_SMIMEalgCMS3DESwrap \"1.2.840.113549.1.9.16.3.6\"")] - public static ReadOnlySpan szOID_RSA_SMIMEalgCMS3DESwrap => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x36, 0x2E, 0x33, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_RSA_SMIMEalgCMS3DESwrap => "1.2.840.113549.1.9.16.3.6"u8; [NativeTypeName("#define szOID_RSA_SMIMEalgCMSRC2wrap \"1.2.840.113549.1.9.16.3.7\"")] - public static ReadOnlySpan szOID_RSA_SMIMEalgCMSRC2wrap => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x31, 0x36, 0x2E, 0x33, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_RSA_SMIMEalgCMSRC2wrap => "1.2.840.113549.1.9.16.3.7"u8; [NativeTypeName("#define szOID_RSA_MD2 \"1.2.840.113549.2.2\"")] - public static ReadOnlySpan szOID_RSA_MD2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD2 => "1.2.840.113549.2.2"u8; [NativeTypeName("#define szOID_RSA_MD4 \"1.2.840.113549.2.4\"")] - public static ReadOnlySpan szOID_RSA_MD4 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD4 => "1.2.840.113549.2.4"u8; [NativeTypeName("#define szOID_RSA_MD5 \"1.2.840.113549.2.5\"")] - public static ReadOnlySpan szOID_RSA_MD5 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RSA_MD5 => "1.2.840.113549.2.5"u8; [NativeTypeName("#define szOID_RSA_RC2CBC \"1.2.840.113549.3.2\"")] - public static ReadOnlySpan szOID_RSA_RC2CBC => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RSA_RC2CBC => "1.2.840.113549.3.2"u8; [NativeTypeName("#define szOID_RSA_RC4 \"1.2.840.113549.3.4\"")] - public static ReadOnlySpan szOID_RSA_RC4 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x33, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RSA_RC4 => "1.2.840.113549.3.4"u8; [NativeTypeName("#define szOID_RSA_DES_EDE3_CBC \"1.2.840.113549.3.7\"")] - public static ReadOnlySpan szOID_RSA_DES_EDE3_CBC => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x33, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_RSA_DES_EDE3_CBC => "1.2.840.113549.3.7"u8; [NativeTypeName("#define szOID_RSA_RC5_CBCPad \"1.2.840.113549.3.9\"")] - public static ReadOnlySpan szOID_RSA_RC5_CBCPad => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x33, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_RSA_RC5_CBCPad => "1.2.840.113549.3.9"u8; [NativeTypeName("#define szOID_ANSI_X942 \"1.2.840.10046\"")] - public static ReadOnlySpan szOID_ANSI_X942 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ANSI_X942 => "1.2.840.10046"u8; [NativeTypeName("#define szOID_ANSI_X942_DH \"1.2.840.10046.2.1\"")] - public static ReadOnlySpan szOID_ANSI_X942_DH => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x36, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ANSI_X942_DH => "1.2.840.10046.2.1"u8; [NativeTypeName("#define szOID_X957 \"1.2.840.10040\"")] - public static ReadOnlySpan szOID_X957 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x30, 0x00 }; + public static ReadOnlySpan szOID_X957 => "1.2.840.10040"u8; [NativeTypeName("#define szOID_X957_DSA \"1.2.840.10040.4.1\"")] - public static ReadOnlySpan szOID_X957_DSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x30, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_X957_DSA => "1.2.840.10040.4.1"u8; [NativeTypeName("#define szOID_X957_SHA1DSA \"1.2.840.10040.4.3\"")] - public static ReadOnlySpan szOID_X957_SHA1DSA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x30, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_X957_SHA1DSA => "1.2.840.10040.4.3"u8; [NativeTypeName("#define szOID_ECC_PUBLIC_KEY \"1.2.840.10045.2.1\"")] - public static ReadOnlySpan szOID_ECC_PUBLIC_KEY => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_PUBLIC_KEY => "1.2.840.10045.2.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_P256 \"1.2.840.10045.3.1.7\"")] - public static ReadOnlySpan szOID_ECC_CURVE_P256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_P256 => "1.2.840.10045.3.1.7"u8; [NativeTypeName("#define szOID_ECC_CURVE_P384 \"1.3.132.0.34\"")] - public static ReadOnlySpan szOID_ECC_CURVE_P384 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_P384 => "1.3.132.0.34"u8; [NativeTypeName("#define szOID_ECC_CURVE_P521 \"1.3.132.0.35\"")] - public static ReadOnlySpan szOID_ECC_CURVE_P521 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_P521 => "1.3.132.0.35"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP160R1 \"1.3.36.3.3.2.8.1.1.1\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP160R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP160R1 => "1.3.36.3.3.2.8.1.1.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP160T1 \"1.3.36.3.3.2.8.1.1.2\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP160T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP160T1 => "1.3.36.3.3.2.8.1.1.2"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP192R1 \"1.3.36.3.3.2.8.1.1.3\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP192R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP192R1 => "1.3.36.3.3.2.8.1.1.3"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP192T1 \"1.3.36.3.3.2.8.1.1.4\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP192T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP192T1 => "1.3.36.3.3.2.8.1.1.4"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP224R1 \"1.3.36.3.3.2.8.1.1.5\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP224R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP224R1 => "1.3.36.3.3.2.8.1.1.5"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP224T1 \"1.3.36.3.3.2.8.1.1.6\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP224T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP224T1 => "1.3.36.3.3.2.8.1.1.6"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP256R1 \"1.3.36.3.3.2.8.1.1.7\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP256R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP256R1 => "1.3.36.3.3.2.8.1.1.7"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP256T1 \"1.3.36.3.3.2.8.1.1.8\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP256T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP256T1 => "1.3.36.3.3.2.8.1.1.8"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP320R1 \"1.3.36.3.3.2.8.1.1.9\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP320R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP320R1 => "1.3.36.3.3.2.8.1.1.9"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP320T1 \"1.3.36.3.3.2.8.1.1.10\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP320T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP320T1 => "1.3.36.3.3.2.8.1.1.10"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP384R1 \"1.3.36.3.3.2.8.1.1.11\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP384R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP384R1 => "1.3.36.3.3.2.8.1.1.11"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP384T1 \"1.3.36.3.3.2.8.1.1.12\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP384T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP384T1 => "1.3.36.3.3.2.8.1.1.12"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP512R1 \"1.3.36.3.3.2.8.1.1.13\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP512R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP512R1 => "1.3.36.3.3.2.8.1.1.13"u8; [NativeTypeName("#define szOID_ECC_CURVE_BRAINPOOLP512T1 \"1.3.36.3.3.2.8.1.1.14\"")] - public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP512T1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x33, 0x36, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_BRAINPOOLP512T1 => "1.3.36.3.3.2.8.1.1.14"u8; [NativeTypeName("#define szOID_ECC_CURVE_EC192WAPI \"1.2.156.11235.1.1.2.1\"")] - public static ReadOnlySpan szOID_ECC_CURVE_EC192WAPI => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x35, 0x36, 0x2E, 0x31, 0x31, 0x32, 0x33, 0x35, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_EC192WAPI => "1.2.156.11235.1.1.2.1"u8; [NativeTypeName("#define szOID_CN_ECDSA_SHA256 \"1.2.156.11235.1.1.1\"")] - public static ReadOnlySpan szOID_CN_ECDSA_SHA256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x35, 0x36, 0x2E, 0x31, 0x31, 0x32, 0x33, 0x35, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CN_ECDSA_SHA256 => "1.2.156.11235.1.1.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_NISTP192 \"1.2.840.10045.3.1.1\"")] - public static ReadOnlySpan szOID_ECC_CURVE_NISTP192 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_NISTP192 => "1.2.840.10045.3.1.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_NISTP224 \"1.3.132.0.33\"")] - public static ReadOnlySpan szOID_ECC_CURVE_NISTP224 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_NISTP224 => "1.3.132.0.33"u8; [NativeTypeName("#define szOID_ECC_CURVE_NISTP256 szOID_ECC_CURVE_P256")] - public static ReadOnlySpan szOID_ECC_CURVE_NISTP256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_NISTP256 => "1.2.840.10045.3.1.7"u8; [NativeTypeName("#define szOID_ECC_CURVE_NISTP384 szOID_ECC_CURVE_P384")] - public static ReadOnlySpan szOID_ECC_CURVE_NISTP384 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_NISTP384 => "1.3.132.0.34"u8; [NativeTypeName("#define szOID_ECC_CURVE_NISTP521 szOID_ECC_CURVE_P521")] - public static ReadOnlySpan szOID_ECC_CURVE_NISTP521 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_NISTP521 => "1.3.132.0.35"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP160K1 \"1.3.132.0.9\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP160K1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP160K1 => "1.3.132.0.9"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP160R1 \"1.3.132.0.8\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP160R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP160R1 => "1.3.132.0.8"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP160R2 \"1.3.132.0.30\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP160R2 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP160R2 => "1.3.132.0.30"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP192K1 \"1.3.132.0.31\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP192K1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP192K1 => "1.3.132.0.31"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP192R1 szOID_ECC_CURVE_NISTP192")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP192R1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP192R1 => "1.2.840.10045.3.1.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP224K1 \"1.3.132.0.32\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP224K1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP224K1 => "1.3.132.0.32"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP224R1 szOID_ECC_CURVE_NISTP224")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP224R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP224R1 => "1.3.132.0.33"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP256K1 \"1.3.132.0.10\"")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP256K1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP256K1 => "1.3.132.0.10"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP256R1 szOID_ECC_CURVE_P256")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP256R1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP256R1 => "1.2.840.10045.3.1.7"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP384R1 szOID_ECC_CURVE_P384")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP384R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP384R1 => "1.3.132.0.34"u8; [NativeTypeName("#define szOID_ECC_CURVE_SECP521R1 szOID_ECC_CURVE_P521")] - public static ReadOnlySpan szOID_ECC_CURVE_SECP521R1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_SECP521R1 => "1.3.132.0.35"u8; [NativeTypeName("#define szOID_ECC_CURVE_WTLS7 szOID_ECC_CURVE_SECP160R2")] - public static ReadOnlySpan szOID_ECC_CURVE_WTLS7 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_WTLS7 => "1.3.132.0.30"u8; [NativeTypeName("#define szOID_ECC_CURVE_WTLS9 \"2.23.43.1.4.9\"")] - public static ReadOnlySpan szOID_ECC_CURVE_WTLS9 => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x34, 0x33, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_WTLS9 => "2.23.43.1.4.9"u8; [NativeTypeName("#define szOID_ECC_CURVE_WTLS12 szOID_ECC_CURVE_NISTP224")] - public static ReadOnlySpan szOID_ECC_CURVE_WTLS12 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x30, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_WTLS12 => "1.3.132.0.33"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P192V1 \"1.2.840.10045.3.1.1\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P192V1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P192V1 => "1.2.840.10045.3.1.1"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P192V2 \"1.2.840.10045.3.1.2\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P192V2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P192V2 => "1.2.840.10045.3.1.2"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P192V3 \"1.2.840.10045.3.1.3\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P192V3 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P192V3 => "1.2.840.10045.3.1.3"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P239V1 \"1.2.840.10045.3.1.4\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P239V1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P239V1 => "1.2.840.10045.3.1.4"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P239V2 \"1.2.840.10045.3.1.5\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P239V2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P239V2 => "1.2.840.10045.3.1.5"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P239V3 \"1.2.840.10045.3.1.6\"")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P239V3 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P239V3 => "1.2.840.10045.3.1.6"u8; [NativeTypeName("#define szOID_ECC_CURVE_X962P256V1 szOID_ECC_CURVE_P256")] - public static ReadOnlySpan szOID_ECC_CURVE_X962P256V1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x33, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ECC_CURVE_X962P256V1 => "1.2.840.10045.3.1.7"u8; [NativeTypeName("#define szOID_ECDSA_SHA1 \"1.2.840.10045.4.1\"")] - public static ReadOnlySpan szOID_ECDSA_SHA1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ECDSA_SHA1 => "1.2.840.10045.4.1"u8; [NativeTypeName("#define szOID_ECDSA_SPECIFIED \"1.2.840.10045.4.3\"")] - public static ReadOnlySpan szOID_ECDSA_SPECIFIED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECDSA_SPECIFIED => "1.2.840.10045.4.3"u8; [NativeTypeName("#define szOID_ECDSA_SHA256 \"1.2.840.10045.4.3.2\"")] - public static ReadOnlySpan szOID_ECDSA_SHA256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ECDSA_SHA256 => "1.2.840.10045.4.3.2"u8; [NativeTypeName("#define szOID_ECDSA_SHA384 \"1.2.840.10045.4.3.3\"")] - public static ReadOnlySpan szOID_ECDSA_SHA384 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ECDSA_SHA384 => "1.2.840.10045.4.3.3"u8; [NativeTypeName("#define szOID_ECDSA_SHA512 \"1.2.840.10045.4.3.4\"")] - public static ReadOnlySpan szOID_ECDSA_SHA512 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x34, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ECDSA_SHA512 => "1.2.840.10045.4.3.4"u8; [NativeTypeName("#define szOID_NIST_AES128_CBC \"2.16.840.1.101.3.4.1.2\"")] - public static ReadOnlySpan szOID_NIST_AES128_CBC => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES128_CBC => "2.16.840.1.101.3.4.1.2"u8; [NativeTypeName("#define szOID_NIST_AES192_CBC \"2.16.840.1.101.3.4.1.22\"")] - public static ReadOnlySpan szOID_NIST_AES192_CBC => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES192_CBC => "2.16.840.1.101.3.4.1.22"u8; [NativeTypeName("#define szOID_NIST_AES256_CBC \"2.16.840.1.101.3.4.1.42\"")] - public static ReadOnlySpan szOID_NIST_AES256_CBC => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x34, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES256_CBC => "2.16.840.1.101.3.4.1.42"u8; [NativeTypeName("#define szOID_NIST_AES128_WRAP \"2.16.840.1.101.3.4.1.5\"")] - public static ReadOnlySpan szOID_NIST_AES128_WRAP => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES128_WRAP => "2.16.840.1.101.3.4.1.5"u8; [NativeTypeName("#define szOID_NIST_AES192_WRAP \"2.16.840.1.101.3.4.1.25\"")] - public static ReadOnlySpan szOID_NIST_AES192_WRAP => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES192_WRAP => "2.16.840.1.101.3.4.1.25"u8; [NativeTypeName("#define szOID_NIST_AES256_WRAP \"2.16.840.1.101.3.4.1.45\"")] - public static ReadOnlySpan szOID_NIST_AES256_WRAP => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x34, 0x35, 0x00 }; + public static ReadOnlySpan szOID_NIST_AES256_WRAP => "2.16.840.1.101.3.4.1.45"u8; [NativeTypeName("#define szOID_DH_SINGLE_PASS_STDDH_SHA1_KDF \"1.3.133.16.840.63.0.2\"")] - public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA1_KDF => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x36, 0x33, 0x2E, 0x30, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA1_KDF => "1.3.133.16.840.63.0.2"u8; [NativeTypeName("#define szOID_DH_SINGLE_PASS_STDDH_SHA256_KDF \"1.3.132.1.11.1\"")] - public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA256_KDF => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA256_KDF => "1.3.132.1.11.1"u8; [NativeTypeName("#define szOID_DH_SINGLE_PASS_STDDH_SHA384_KDF \"1.3.132.1.11.2\"")] - public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA384_KDF => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_DH_SINGLE_PASS_STDDH_SHA384_KDF => "1.3.132.1.11.2"u8; [NativeTypeName("#define szOID_DS \"2.5\"")] - public static ReadOnlySpan szOID_DS => new byte[] { 0x32, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_DS => "2.5"u8; [NativeTypeName("#define szOID_DSALG \"2.5.8\"")] - public static ReadOnlySpan szOID_DSALG => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_DSALG => "2.5.8"u8; [NativeTypeName("#define szOID_DSALG_CRPT \"2.5.8.1\"")] - public static ReadOnlySpan szOID_DSALG_CRPT => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_DSALG_CRPT => "2.5.8.1"u8; [NativeTypeName("#define szOID_DSALG_HASH \"2.5.8.2\"")] - public static ReadOnlySpan szOID_DSALG_HASH => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x38, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_DSALG_HASH => "2.5.8.2"u8; [NativeTypeName("#define szOID_DSALG_SIGN \"2.5.8.3\"")] - public static ReadOnlySpan szOID_DSALG_SIGN => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x38, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_DSALG_SIGN => "2.5.8.3"u8; [NativeTypeName("#define szOID_DSALG_RSA \"2.5.8.1.1\"")] - public static ReadOnlySpan szOID_DSALG_RSA => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_DSALG_RSA => "2.5.8.1.1"u8; [NativeTypeName("#define szOID_OIW \"1.3.14\"")] - public static ReadOnlySpan szOID_OIW => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_OIW => "1.3.14"u8; [NativeTypeName("#define szOID_OIWSEC \"1.3.14.3.2\"")] - public static ReadOnlySpan szOID_OIWSEC => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC => "1.3.14.3.2"u8; [NativeTypeName("#define szOID_OIWSEC_md4RSA \"1.3.14.3.2.2\"")] - public static ReadOnlySpan szOID_OIWSEC_md4RSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_md4RSA => "1.3.14.3.2.2"u8; [NativeTypeName("#define szOID_OIWSEC_md5RSA \"1.3.14.3.2.3\"")] - public static ReadOnlySpan szOID_OIWSEC_md5RSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_md5RSA => "1.3.14.3.2.3"u8; [NativeTypeName("#define szOID_OIWSEC_md4RSA2 \"1.3.14.3.2.4\"")] - public static ReadOnlySpan szOID_OIWSEC_md4RSA2 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_md4RSA2 => "1.3.14.3.2.4"u8; [NativeTypeName("#define szOID_OIWSEC_desECB \"1.3.14.3.2.6\"")] - public static ReadOnlySpan szOID_OIWSEC_desECB => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desECB => "1.3.14.3.2.6"u8; [NativeTypeName("#define szOID_OIWSEC_desCBC \"1.3.14.3.2.7\"")] - public static ReadOnlySpan szOID_OIWSEC_desCBC => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desCBC => "1.3.14.3.2.7"u8; [NativeTypeName("#define szOID_OIWSEC_desOFB \"1.3.14.3.2.8\"")] - public static ReadOnlySpan szOID_OIWSEC_desOFB => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desOFB => "1.3.14.3.2.8"u8; [NativeTypeName("#define szOID_OIWSEC_desCFB \"1.3.14.3.2.9\"")] - public static ReadOnlySpan szOID_OIWSEC_desCFB => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desCFB => "1.3.14.3.2.9"u8; [NativeTypeName("#define szOID_OIWSEC_desMAC \"1.3.14.3.2.10\"")] - public static ReadOnlySpan szOID_OIWSEC_desMAC => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desMAC => "1.3.14.3.2.10"u8; [NativeTypeName("#define szOID_OIWSEC_rsaSign \"1.3.14.3.2.11\"")] - public static ReadOnlySpan szOID_OIWSEC_rsaSign => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_rsaSign => "1.3.14.3.2.11"u8; [NativeTypeName("#define szOID_OIWSEC_dsa \"1.3.14.3.2.12\"")] - public static ReadOnlySpan szOID_OIWSEC_dsa => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dsa => "1.3.14.3.2.12"u8; [NativeTypeName("#define szOID_OIWSEC_shaDSA \"1.3.14.3.2.13\"")] - public static ReadOnlySpan szOID_OIWSEC_shaDSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_shaDSA => "1.3.14.3.2.13"u8; [NativeTypeName("#define szOID_OIWSEC_mdc2RSA \"1.3.14.3.2.14\"")] - public static ReadOnlySpan szOID_OIWSEC_mdc2RSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_mdc2RSA => "1.3.14.3.2.14"u8; [NativeTypeName("#define szOID_OIWSEC_shaRSA \"1.3.14.3.2.15\"")] - public static ReadOnlySpan szOID_OIWSEC_shaRSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_shaRSA => "1.3.14.3.2.15"u8; [NativeTypeName("#define szOID_OIWSEC_dhCommMod \"1.3.14.3.2.16\"")] - public static ReadOnlySpan szOID_OIWSEC_dhCommMod => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dhCommMod => "1.3.14.3.2.16"u8; [NativeTypeName("#define szOID_OIWSEC_desEDE \"1.3.14.3.2.17\"")] - public static ReadOnlySpan szOID_OIWSEC_desEDE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_desEDE => "1.3.14.3.2.17"u8; [NativeTypeName("#define szOID_OIWSEC_sha \"1.3.14.3.2.18\"")] - public static ReadOnlySpan szOID_OIWSEC_sha => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_sha => "1.3.14.3.2.18"u8; [NativeTypeName("#define szOID_OIWSEC_mdc2 \"1.3.14.3.2.19\"")] - public static ReadOnlySpan szOID_OIWSEC_mdc2 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_mdc2 => "1.3.14.3.2.19"u8; [NativeTypeName("#define szOID_OIWSEC_dsaComm \"1.3.14.3.2.20\"")] - public static ReadOnlySpan szOID_OIWSEC_dsaComm => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dsaComm => "1.3.14.3.2.20"u8; [NativeTypeName("#define szOID_OIWSEC_dsaCommSHA \"1.3.14.3.2.21\"")] - public static ReadOnlySpan szOID_OIWSEC_dsaCommSHA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dsaCommSHA => "1.3.14.3.2.21"u8; [NativeTypeName("#define szOID_OIWSEC_rsaXchg \"1.3.14.3.2.22\"")] - public static ReadOnlySpan szOID_OIWSEC_rsaXchg => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_rsaXchg => "1.3.14.3.2.22"u8; [NativeTypeName("#define szOID_OIWSEC_keyHashSeal \"1.3.14.3.2.23\"")] - public static ReadOnlySpan szOID_OIWSEC_keyHashSeal => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_keyHashSeal => "1.3.14.3.2.23"u8; [NativeTypeName("#define szOID_OIWSEC_md2RSASign \"1.3.14.3.2.24\"")] - public static ReadOnlySpan szOID_OIWSEC_md2RSASign => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_md2RSASign => "1.3.14.3.2.24"u8; [NativeTypeName("#define szOID_OIWSEC_md5RSASign \"1.3.14.3.2.25\"")] - public static ReadOnlySpan szOID_OIWSEC_md5RSASign => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_md5RSASign => "1.3.14.3.2.25"u8; [NativeTypeName("#define szOID_OIWSEC_sha1 \"1.3.14.3.2.26\"")] - public static ReadOnlySpan szOID_OIWSEC_sha1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x36, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_sha1 => "1.3.14.3.2.26"u8; [NativeTypeName("#define szOID_OIWSEC_dsaSHA1 \"1.3.14.3.2.27\"")] - public static ReadOnlySpan szOID_OIWSEC_dsaSHA1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dsaSHA1 => "1.3.14.3.2.27"u8; [NativeTypeName("#define szOID_OIWSEC_dsaCommSHA1 \"1.3.14.3.2.28\"")] - public static ReadOnlySpan szOID_OIWSEC_dsaCommSHA1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_dsaCommSHA1 => "1.3.14.3.2.28"u8; [NativeTypeName("#define szOID_OIWSEC_sha1RSASign \"1.3.14.3.2.29\"")] - public static ReadOnlySpan szOID_OIWSEC_sha1RSASign => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x39, 0x00 }; + public static ReadOnlySpan szOID_OIWSEC_sha1RSASign => "1.3.14.3.2.29"u8; [NativeTypeName("#define szOID_OIWDIR \"1.3.14.7.2\"")] - public static ReadOnlySpan szOID_OIWDIR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR => "1.3.14.7.2"u8; [NativeTypeName("#define szOID_OIWDIR_CRPT \"1.3.14.7.2.1\"")] - public static ReadOnlySpan szOID_OIWDIR_CRPT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR_CRPT => "1.3.14.7.2.1"u8; [NativeTypeName("#define szOID_OIWDIR_HASH \"1.3.14.7.2.2\"")] - public static ReadOnlySpan szOID_OIWDIR_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR_HASH => "1.3.14.7.2.2"u8; [NativeTypeName("#define szOID_OIWDIR_SIGN \"1.3.14.7.2.3\"")] - public static ReadOnlySpan szOID_OIWDIR_SIGN => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR_SIGN => "1.3.14.7.2.3"u8; [NativeTypeName("#define szOID_OIWDIR_md2 \"1.3.14.7.2.2.1\"")] - public static ReadOnlySpan szOID_OIWDIR_md2 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR_md2 => "1.3.14.7.2.2.1"u8; [NativeTypeName("#define szOID_OIWDIR_md2RSA \"1.3.14.7.2.3.1\"")] - public static ReadOnlySpan szOID_OIWDIR_md2RSA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_OIWDIR_md2RSA => "1.3.14.7.2.3.1"u8; [NativeTypeName("#define szOID_INFOSEC \"2.16.840.1.101.2.1\"")] - public static ReadOnlySpan szOID_INFOSEC => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC => "2.16.840.1.101.2.1"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsSignature \"2.16.840.1.101.2.1.1.1\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsSignature => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsSignature => "2.16.840.1.101.2.1.1.1"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicSignature \"2.16.840.1.101.2.1.1.2\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicSignature => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicSignature => "2.16.840.1.101.2.1.1.2"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsConfidentiality \"2.16.840.1.101.2.1.1.3\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsConfidentiality => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsConfidentiality => "2.16.840.1.101.2.1.1.3"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicConfidentiality \"2.16.840.1.101.2.1.1.4\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicConfidentiality => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicConfidentiality => "2.16.840.1.101.2.1.1.4"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsIntegrity \"2.16.840.1.101.2.1.1.5\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsIntegrity => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsIntegrity => "2.16.840.1.101.2.1.1.5"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicIntegrity \"2.16.840.1.101.2.1.1.6\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicIntegrity => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicIntegrity => "2.16.840.1.101.2.1.1.6"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsTokenProtection \"2.16.840.1.101.2.1.1.7\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsTokenProtection => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsTokenProtection => "2.16.840.1.101.2.1.1.7"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicTokenProtection \"2.16.840.1.101.2.1.1.8\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicTokenProtection => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicTokenProtection => "2.16.840.1.101.2.1.1.8"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsKeyManagement \"2.16.840.1.101.2.1.1.9\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsKeyManagement => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsKeyManagement => "2.16.840.1.101.2.1.1.9"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicKeyManagement \"2.16.840.1.101.2.1.1.10\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicKeyManagement => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicKeyManagement => "2.16.840.1.101.2.1.1.10"u8; [NativeTypeName("#define szOID_INFOSEC_sdnsKMandSig \"2.16.840.1.101.2.1.1.11\"")] - public static ReadOnlySpan szOID_INFOSEC_sdnsKMandSig => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_sdnsKMandSig => "2.16.840.1.101.2.1.1.11"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicKMandSig \"2.16.840.1.101.2.1.1.12\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicKMandSig => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicKMandSig => "2.16.840.1.101.2.1.1.12"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteASignature \"2.16.840.1.101.2.1.1.13\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteASignature => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteASignature => "2.16.840.1.101.2.1.1.13"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteAConfidentiality \"2.16.840.1.101.2.1.1.14\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteAConfidentiality => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteAConfidentiality => "2.16.840.1.101.2.1.1.14"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteAIntegrity \"2.16.840.1.101.2.1.1.15\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteAIntegrity => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteAIntegrity => "2.16.840.1.101.2.1.1.15"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteATokenProtection \"2.16.840.1.101.2.1.1.16\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteATokenProtection => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteATokenProtection => "2.16.840.1.101.2.1.1.16"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteAKeyManagement \"2.16.840.1.101.2.1.1.17\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteAKeyManagement => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteAKeyManagement => "2.16.840.1.101.2.1.1.17"u8; [NativeTypeName("#define szOID_INFOSEC_SuiteAKMandSig \"2.16.840.1.101.2.1.1.18\"")] - public static ReadOnlySpan szOID_INFOSEC_SuiteAKMandSig => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_SuiteAKMandSig => "2.16.840.1.101.2.1.1.18"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicUpdatedSig \"2.16.840.1.101.2.1.1.19\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicUpdatedSig => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicUpdatedSig => "2.16.840.1.101.2.1.1.19"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicKMandUpdSig \"2.16.840.1.101.2.1.1.20\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicKMandUpdSig => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicKMandUpdSig => "2.16.840.1.101.2.1.1.20"u8; [NativeTypeName("#define szOID_INFOSEC_mosaicUpdatedInteg \"2.16.840.1.101.2.1.1.21\"")] - public static ReadOnlySpan szOID_INFOSEC_mosaicUpdatedInteg => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_INFOSEC_mosaicUpdatedInteg => "2.16.840.1.101.2.1.1.21"u8; [NativeTypeName("#define szOID_NIST_sha256 \"2.16.840.1.101.3.4.2.1\"")] - public static ReadOnlySpan szOID_NIST_sha256 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_NIST_sha256 => "2.16.840.1.101.3.4.2.1"u8; [NativeTypeName("#define szOID_NIST_sha384 \"2.16.840.1.101.3.4.2.2\"")] - public static ReadOnlySpan szOID_NIST_sha384 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NIST_sha384 => "2.16.840.1.101.3.4.2.2"u8; [NativeTypeName("#define szOID_NIST_sha512 \"2.16.840.1.101.3.4.2.3\"")] - public static ReadOnlySpan szOID_NIST_sha512 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x31, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_NIST_sha512 => "2.16.840.1.101.3.4.2.3"u8; [NativeTypeName("#define szOID_COMMON_NAME \"2.5.4.3\"")] - public static ReadOnlySpan szOID_COMMON_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_COMMON_NAME => "2.5.4.3"u8; [NativeTypeName("#define szOID_SUR_NAME \"2.5.4.4\"")] - public static ReadOnlySpan szOID_SUR_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_SUR_NAME => "2.5.4.4"u8; [NativeTypeName("#define szOID_DEVICE_SERIAL_NUMBER \"2.5.4.5\"")] - public static ReadOnlySpan szOID_DEVICE_SERIAL_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_DEVICE_SERIAL_NUMBER => "2.5.4.5"u8; [NativeTypeName("#define szOID_COUNTRY_NAME \"2.5.4.6\"")] - public static ReadOnlySpan szOID_COUNTRY_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_COUNTRY_NAME => "2.5.4.6"u8; [NativeTypeName("#define szOID_LOCALITY_NAME \"2.5.4.7\"")] - public static ReadOnlySpan szOID_LOCALITY_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_LOCALITY_NAME => "2.5.4.7"u8; [NativeTypeName("#define szOID_STATE_OR_PROVINCE_NAME \"2.5.4.8\"")] - public static ReadOnlySpan szOID_STATE_OR_PROVINCE_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_STATE_OR_PROVINCE_NAME => "2.5.4.8"u8; [NativeTypeName("#define szOID_STREET_ADDRESS \"2.5.4.9\"")] - public static ReadOnlySpan szOID_STREET_ADDRESS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_STREET_ADDRESS => "2.5.4.9"u8; [NativeTypeName("#define szOID_ORGANIZATION_NAME \"2.5.4.10\"")] - public static ReadOnlySpan szOID_ORGANIZATION_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ORGANIZATION_NAME => "2.5.4.10"u8; [NativeTypeName("#define szOID_ORGANIZATIONAL_UNIT_NAME \"2.5.4.11\"")] - public static ReadOnlySpan szOID_ORGANIZATIONAL_UNIT_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ORGANIZATIONAL_UNIT_NAME => "2.5.4.11"u8; [NativeTypeName("#define szOID_TITLE \"2.5.4.12\"")] - public static ReadOnlySpan szOID_TITLE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_TITLE => "2.5.4.12"u8; [NativeTypeName("#define szOID_DESCRIPTION \"2.5.4.13\"")] - public static ReadOnlySpan szOID_DESCRIPTION => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_DESCRIPTION => "2.5.4.13"u8; [NativeTypeName("#define szOID_SEARCH_GUIDE \"2.5.4.14\"")] - public static ReadOnlySpan szOID_SEARCH_GUIDE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_SEARCH_GUIDE => "2.5.4.14"u8; [NativeTypeName("#define szOID_BUSINESS_CATEGORY \"2.5.4.15\"")] - public static ReadOnlySpan szOID_BUSINESS_CATEGORY => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_BUSINESS_CATEGORY => "2.5.4.15"u8; [NativeTypeName("#define szOID_POSTAL_ADDRESS \"2.5.4.16\"")] - public static ReadOnlySpan szOID_POSTAL_ADDRESS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_POSTAL_ADDRESS => "2.5.4.16"u8; [NativeTypeName("#define szOID_POSTAL_CODE \"2.5.4.17\"")] - public static ReadOnlySpan szOID_POSTAL_CODE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_POSTAL_CODE => "2.5.4.17"u8; [NativeTypeName("#define szOID_POST_OFFICE_BOX \"2.5.4.18\"")] - public static ReadOnlySpan szOID_POST_OFFICE_BOX => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_POST_OFFICE_BOX => "2.5.4.18"u8; [NativeTypeName("#define szOID_PHYSICAL_DELIVERY_OFFICE_NAME \"2.5.4.19\"")] - public static ReadOnlySpan szOID_PHYSICAL_DELIVERY_OFFICE_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_PHYSICAL_DELIVERY_OFFICE_NAME => "2.5.4.19"u8; [NativeTypeName("#define szOID_TELEPHONE_NUMBER \"2.5.4.20\"")] - public static ReadOnlySpan szOID_TELEPHONE_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_TELEPHONE_NUMBER => "2.5.4.20"u8; [NativeTypeName("#define szOID_TELEX_NUMBER \"2.5.4.21\"")] - public static ReadOnlySpan szOID_TELEX_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_TELEX_NUMBER => "2.5.4.21"u8; [NativeTypeName("#define szOID_TELETEXT_TERMINAL_IDENTIFIER \"2.5.4.22\"")] - public static ReadOnlySpan szOID_TELETEXT_TERMINAL_IDENTIFIER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_TELETEXT_TERMINAL_IDENTIFIER => "2.5.4.22"u8; [NativeTypeName("#define szOID_FACSIMILE_TELEPHONE_NUMBER \"2.5.4.23\"")] - public static ReadOnlySpan szOID_FACSIMILE_TELEPHONE_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_FACSIMILE_TELEPHONE_NUMBER => "2.5.4.23"u8; [NativeTypeName("#define szOID_X21_ADDRESS \"2.5.4.24\"")] - public static ReadOnlySpan szOID_X21_ADDRESS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_X21_ADDRESS => "2.5.4.24"u8; [NativeTypeName("#define szOID_INTERNATIONAL_ISDN_NUMBER \"2.5.4.25\"")] - public static ReadOnlySpan szOID_INTERNATIONAL_ISDN_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_INTERNATIONAL_ISDN_NUMBER => "2.5.4.25"u8; [NativeTypeName("#define szOID_REGISTERED_ADDRESS \"2.5.4.26\"")] - public static ReadOnlySpan szOID_REGISTERED_ADDRESS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x36, 0x00 }; + public static ReadOnlySpan szOID_REGISTERED_ADDRESS => "2.5.4.26"u8; [NativeTypeName("#define szOID_DESTINATION_INDICATOR \"2.5.4.27\"")] - public static ReadOnlySpan szOID_DESTINATION_INDICATOR => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan szOID_DESTINATION_INDICATOR => "2.5.4.27"u8; [NativeTypeName("#define szOID_PREFERRED_DELIVERY_METHOD \"2.5.4.28\"")] - public static ReadOnlySpan szOID_PREFERRED_DELIVERY_METHOD => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_PREFERRED_DELIVERY_METHOD => "2.5.4.28"u8; [NativeTypeName("#define szOID_PRESENTATION_ADDRESS \"2.5.4.29\"")] - public static ReadOnlySpan szOID_PRESENTATION_ADDRESS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x32, 0x39, 0x00 }; + public static ReadOnlySpan szOID_PRESENTATION_ADDRESS => "2.5.4.29"u8; [NativeTypeName("#define szOID_SUPPORTED_APPLICATION_CONTEXT \"2.5.4.30\"")] - public static ReadOnlySpan szOID_SUPPORTED_APPLICATION_CONTEXT => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_SUPPORTED_APPLICATION_CONTEXT => "2.5.4.30"u8; [NativeTypeName("#define szOID_MEMBER \"2.5.4.31\"")] - public static ReadOnlySpan szOID_MEMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x31, 0x00 }; + public static ReadOnlySpan szOID_MEMBER => "2.5.4.31"u8; [NativeTypeName("#define szOID_OWNER \"2.5.4.32\"")] - public static ReadOnlySpan szOID_OWNER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan szOID_OWNER => "2.5.4.32"u8; [NativeTypeName("#define szOID_ROLE_OCCUPANT \"2.5.4.33\"")] - public static ReadOnlySpan szOID_ROLE_OCCUPANT => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ROLE_OCCUPANT => "2.5.4.33"u8; [NativeTypeName("#define szOID_SEE_ALSO \"2.5.4.34\"")] - public static ReadOnlySpan szOID_SEE_ALSO => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_SEE_ALSO => "2.5.4.34"u8; [NativeTypeName("#define szOID_USER_PASSWORD \"2.5.4.35\"")] - public static ReadOnlySpan szOID_USER_PASSWORD => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_USER_PASSWORD => "2.5.4.35"u8; [NativeTypeName("#define szOID_USER_CERTIFICATE \"2.5.4.36\"")] - public static ReadOnlySpan szOID_USER_CERTIFICATE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x36, 0x00 }; + public static ReadOnlySpan szOID_USER_CERTIFICATE => "2.5.4.36"u8; [NativeTypeName("#define szOID_CA_CERTIFICATE \"2.5.4.37\"")] - public static ReadOnlySpan szOID_CA_CERTIFICATE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x37, 0x00 }; + public static ReadOnlySpan szOID_CA_CERTIFICATE => "2.5.4.37"u8; [NativeTypeName("#define szOID_AUTHORITY_REVOCATION_LIST \"2.5.4.38\"")] - public static ReadOnlySpan szOID_AUTHORITY_REVOCATION_LIST => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x38, 0x00 }; + public static ReadOnlySpan szOID_AUTHORITY_REVOCATION_LIST => "2.5.4.38"u8; [NativeTypeName("#define szOID_CERTIFICATE_REVOCATION_LIST \"2.5.4.39\"")] - public static ReadOnlySpan szOID_CERTIFICATE_REVOCATION_LIST => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x39, 0x00 }; + public static ReadOnlySpan szOID_CERTIFICATE_REVOCATION_LIST => "2.5.4.39"u8; [NativeTypeName("#define szOID_CROSS_CERTIFICATE_PAIR \"2.5.4.40\"")] - public static ReadOnlySpan szOID_CROSS_CERTIFICATE_PAIR => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x34, 0x30, 0x00 }; + public static ReadOnlySpan szOID_CROSS_CERTIFICATE_PAIR => "2.5.4.40"u8; [NativeTypeName("#define szOID_GIVEN_NAME \"2.5.4.42\"")] - public static ReadOnlySpan szOID_GIVEN_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x34, 0x32, 0x00 }; + public static ReadOnlySpan szOID_GIVEN_NAME => "2.5.4.42"u8; [NativeTypeName("#define szOID_INITIALS \"2.5.4.43\"")] - public static ReadOnlySpan szOID_INITIALS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x34, 0x33, 0x00 }; + public static ReadOnlySpan szOID_INITIALS => "2.5.4.43"u8; [NativeTypeName("#define szOID_DN_QUALIFIER \"2.5.4.46\"")] - public static ReadOnlySpan szOID_DN_QUALIFIER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x34, 0x36, 0x00 }; + public static ReadOnlySpan szOID_DN_QUALIFIER => "2.5.4.46"u8; [NativeTypeName("#define szOID_DOMAIN_COMPONENT \"0.9.2342.19200300.100.1.25\"")] - public static ReadOnlySpan szOID_DOMAIN_COMPONENT => new byte[] { 0x30, 0x2E, 0x39, 0x2E, 0x32, 0x33, 0x34, 0x32, 0x2E, 0x31, 0x39, 0x32, 0x30, 0x30, 0x33, 0x30, 0x30, 0x2E, 0x31, 0x30, 0x30, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_DOMAIN_COMPONENT => "0.9.2342.19200300.100.1.25"u8; [NativeTypeName("#define szOID_PKCS_12_FRIENDLY_NAME_ATTR \"1.2.840.113549.1.9.20\"")] - public static ReadOnlySpan szOID_PKCS_12_FRIENDLY_NAME_ATTR => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_FRIENDLY_NAME_ATTR => "1.2.840.113549.1.9.20"u8; [NativeTypeName("#define szOID_PKCS_12_LOCAL_KEY_ID \"1.2.840.113549.1.9.21\"")] - public static ReadOnlySpan szOID_PKCS_12_LOCAL_KEY_ID => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_LOCAL_KEY_ID => "1.2.840.113549.1.9.21"u8; [NativeTypeName("#define szOID_PKCS_12_KEY_PROVIDER_NAME_ATTR \"1.3.6.1.4.1.311.17.1\"")] - public static ReadOnlySpan szOID_PKCS_12_KEY_PROVIDER_NAME_ATTR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_KEY_PROVIDER_NAME_ATTR => "1.3.6.1.4.1.311.17.1"u8; [NativeTypeName("#define szOID_LOCAL_MACHINE_KEYSET \"1.3.6.1.4.1.311.17.2\"")] - public static ReadOnlySpan szOID_LOCAL_MACHINE_KEYSET => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x37, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_LOCAL_MACHINE_KEYSET => "1.3.6.1.4.1.311.17.2"u8; [NativeTypeName("#define szOID_PKCS_12_EXTENDED_ATTRIBUTES \"1.3.6.1.4.1.311.17.3\"")] - public static ReadOnlySpan szOID_PKCS_12_EXTENDED_ATTRIBUTES => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x37, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_EXTENDED_ATTRIBUTES => "1.3.6.1.4.1.311.17.3"u8; [NativeTypeName("#define szOID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID \"1.3.6.1.4.1.311.17.4\"")] - public static ReadOnlySpan szOID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x37, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID => "1.3.6.1.4.1.311.17.4"u8; [NativeTypeName("#define szOID_KEYID_RDN \"1.3.6.1.4.1.311.10.7.1\"")] - public static ReadOnlySpan szOID_KEYID_RDN => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KEYID_RDN => "1.3.6.1.4.1.311.10.7.1"u8; [NativeTypeName("#define szOID_EV_RDN_LOCALE \"1.3.6.1.4.1.311.60.2.1.1\"")] - public static ReadOnlySpan szOID_EV_RDN_LOCALE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_EV_RDN_LOCALE => "1.3.6.1.4.1.311.60.2.1.1"u8; [NativeTypeName("#define szOID_EV_RDN_STATE_OR_PROVINCE \"1.3.6.1.4.1.311.60.2.1.2\"")] - public static ReadOnlySpan szOID_EV_RDN_STATE_OR_PROVINCE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_EV_RDN_STATE_OR_PROVINCE => "1.3.6.1.4.1.311.60.2.1.2"u8; [NativeTypeName("#define szOID_EV_RDN_COUNTRY \"1.3.6.1.4.1.311.60.2.1.3\"")] - public static ReadOnlySpan szOID_EV_RDN_COUNTRY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_EV_RDN_COUNTRY => "1.3.6.1.4.1.311.60.2.1.3"u8; [NativeTypeName("#define szOID_AUTHORITY_KEY_IDENTIFIER \"2.5.29.1\"")] - public static ReadOnlySpan szOID_AUTHORITY_KEY_IDENTIFIER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_AUTHORITY_KEY_IDENTIFIER => "2.5.29.1"u8; [NativeTypeName("#define szOID_KEY_ATTRIBUTES \"2.5.29.2\"")] - public static ReadOnlySpan szOID_KEY_ATTRIBUTES => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_KEY_ATTRIBUTES => "2.5.29.2"u8; [NativeTypeName("#define szOID_CERT_POLICIES_95 \"2.5.29.3\"")] - public static ReadOnlySpan szOID_CERT_POLICIES_95 => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CERT_POLICIES_95 => "2.5.29.3"u8; [NativeTypeName("#define szOID_KEY_USAGE_RESTRICTION \"2.5.29.4\"")] - public static ReadOnlySpan szOID_KEY_USAGE_RESTRICTION => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_KEY_USAGE_RESTRICTION => "2.5.29.4"u8; [NativeTypeName("#define szOID_SUBJECT_ALT_NAME \"2.5.29.7\"")] - public static ReadOnlySpan szOID_SUBJECT_ALT_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_SUBJECT_ALT_NAME => "2.5.29.7"u8; [NativeTypeName("#define szOID_ISSUER_ALT_NAME \"2.5.29.8\"")] - public static ReadOnlySpan szOID_ISSUER_ALT_NAME => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ISSUER_ALT_NAME => "2.5.29.8"u8; [NativeTypeName("#define szOID_BASIC_CONSTRAINTS \"2.5.29.10\"")] - public static ReadOnlySpan szOID_BASIC_CONSTRAINTS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_BASIC_CONSTRAINTS => "2.5.29.10"u8; [NativeTypeName("#define szOID_KEY_USAGE \"2.5.29.15\"")] - public static ReadOnlySpan szOID_KEY_USAGE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_KEY_USAGE => "2.5.29.15"u8; [NativeTypeName("#define szOID_PRIVATEKEY_USAGE_PERIOD \"2.5.29.16\"")] - public static ReadOnlySpan szOID_PRIVATEKEY_USAGE_PERIOD => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_PRIVATEKEY_USAGE_PERIOD => "2.5.29.16"u8; [NativeTypeName("#define szOID_BASIC_CONSTRAINTS2 \"2.5.29.19\"")] - public static ReadOnlySpan szOID_BASIC_CONSTRAINTS2 => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_BASIC_CONSTRAINTS2 => "2.5.29.19"u8; [NativeTypeName("#define szOID_CERT_POLICIES \"2.5.29.32\"")] - public static ReadOnlySpan szOID_CERT_POLICIES => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CERT_POLICIES => "2.5.29.32"u8; [NativeTypeName("#define szOID_ANY_CERT_POLICY \"2.5.29.32.0\"")] - public static ReadOnlySpan szOID_ANY_CERT_POLICY => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x32, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ANY_CERT_POLICY => "2.5.29.32.0"u8; [NativeTypeName("#define szOID_INHIBIT_ANY_POLICY \"2.5.29.54\"")] - public static ReadOnlySpan szOID_INHIBIT_ANY_POLICY => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x35, 0x34, 0x00 }; + public static ReadOnlySpan szOID_INHIBIT_ANY_POLICY => "2.5.29.54"u8; [NativeTypeName("#define szOID_AUTHORITY_KEY_IDENTIFIER2 \"2.5.29.35\"")] - public static ReadOnlySpan szOID_AUTHORITY_KEY_IDENTIFIER2 => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_AUTHORITY_KEY_IDENTIFIER2 => "2.5.29.35"u8; [NativeTypeName("#define szOID_SUBJECT_KEY_IDENTIFIER \"2.5.29.14\"")] - public static ReadOnlySpan szOID_SUBJECT_KEY_IDENTIFIER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_SUBJECT_KEY_IDENTIFIER => "2.5.29.14"u8; [NativeTypeName("#define szOID_SUBJECT_ALT_NAME2 \"2.5.29.17\"")] - public static ReadOnlySpan szOID_SUBJECT_ALT_NAME2 => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_SUBJECT_ALT_NAME2 => "2.5.29.17"u8; [NativeTypeName("#define szOID_ISSUER_ALT_NAME2 \"2.5.29.18\"")] - public static ReadOnlySpan szOID_ISSUER_ALT_NAME2 => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ISSUER_ALT_NAME2 => "2.5.29.18"u8; [NativeTypeName("#define szOID_CRL_REASON_CODE \"2.5.29.21\"")] - public static ReadOnlySpan szOID_CRL_REASON_CODE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CRL_REASON_CODE => "2.5.29.21"u8; [NativeTypeName("#define szOID_REASON_CODE_HOLD \"2.5.29.23\"")] - public static ReadOnlySpan szOID_REASON_CODE_HOLD => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_REASON_CODE_HOLD => "2.5.29.23"u8; [NativeTypeName("#define szOID_CRL_DIST_POINTS \"2.5.29.31\"")] - public static ReadOnlySpan szOID_CRL_DIST_POINTS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CRL_DIST_POINTS => "2.5.29.31"u8; [NativeTypeName("#define szOID_ENHANCED_KEY_USAGE \"2.5.29.37\"")] - public static ReadOnlySpan szOID_ENHANCED_KEY_USAGE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ENHANCED_KEY_USAGE => "2.5.29.37"u8; [NativeTypeName("#define szOID_ANY_ENHANCED_KEY_USAGE \"2.5.29.37.0\"")] - public static ReadOnlySpan szOID_ANY_ENHANCED_KEY_USAGE => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x37, 0x2E, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ANY_ENHANCED_KEY_USAGE => "2.5.29.37.0"u8; [NativeTypeName("#define szOID_CRL_NUMBER \"2.5.29.20\"")] - public static ReadOnlySpan szOID_CRL_NUMBER => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_CRL_NUMBER => "2.5.29.20"u8; [NativeTypeName("#define szOID_DELTA_CRL_INDICATOR \"2.5.29.27\"")] - public static ReadOnlySpan szOID_DELTA_CRL_INDICATOR => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan szOID_DELTA_CRL_INDICATOR => "2.5.29.27"u8; [NativeTypeName("#define szOID_ISSUING_DIST_POINT \"2.5.29.28\"")] - public static ReadOnlySpan szOID_ISSUING_DIST_POINT => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ISSUING_DIST_POINT => "2.5.29.28"u8; [NativeTypeName("#define szOID_FRESHEST_CRL \"2.5.29.46\"")] - public static ReadOnlySpan szOID_FRESHEST_CRL => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x34, 0x36, 0x00 }; + public static ReadOnlySpan szOID_FRESHEST_CRL => "2.5.29.46"u8; [NativeTypeName("#define szOID_NAME_CONSTRAINTS \"2.5.29.30\"")] - public static ReadOnlySpan szOID_NAME_CONSTRAINTS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_NAME_CONSTRAINTS => "2.5.29.30"u8; [NativeTypeName("#define szOID_POLICY_MAPPINGS \"2.5.29.33\"")] - public static ReadOnlySpan szOID_POLICY_MAPPINGS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_POLICY_MAPPINGS => "2.5.29.33"u8; [NativeTypeName("#define szOID_LEGACY_POLICY_MAPPINGS \"2.5.29.5\"")] - public static ReadOnlySpan szOID_LEGACY_POLICY_MAPPINGS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_LEGACY_POLICY_MAPPINGS => "2.5.29.5"u8; [NativeTypeName("#define szOID_POLICY_CONSTRAINTS \"2.5.29.36\"")] - public static ReadOnlySpan szOID_POLICY_CONSTRAINTS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x33, 0x36, 0x00 }; + public static ReadOnlySpan szOID_POLICY_CONSTRAINTS => "2.5.29.36"u8; [NativeTypeName("#define szOID_RENEWAL_CERTIFICATE \"1.3.6.1.4.1.311.13.1\"")] - public static ReadOnlySpan szOID_RENEWAL_CERTIFICATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RENEWAL_CERTIFICATE => "1.3.6.1.4.1.311.13.1"u8; [NativeTypeName("#define szOID_ENROLLMENT_NAME_VALUE_PAIR \"1.3.6.1.4.1.311.13.2.1\"")] - public static ReadOnlySpan szOID_ENROLLMENT_NAME_VALUE_PAIR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENROLLMENT_NAME_VALUE_PAIR => "1.3.6.1.4.1.311.13.2.1"u8; [NativeTypeName("#define szOID_ENROLLMENT_CSP_PROVIDER \"1.3.6.1.4.1.311.13.2.2\"")] - public static ReadOnlySpan szOID_ENROLLMENT_CSP_PROVIDER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ENROLLMENT_CSP_PROVIDER => "1.3.6.1.4.1.311.13.2.2"u8; [NativeTypeName("#define szOID_OS_VERSION \"1.3.6.1.4.1.311.13.2.3\"")] - public static ReadOnlySpan szOID_OS_VERSION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x33, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_OS_VERSION => "1.3.6.1.4.1.311.13.2.3"u8; [NativeTypeName("#define szOID_ENROLLMENT_AGENT \"1.3.6.1.4.1.311.20.2.1\"")] - public static ReadOnlySpan szOID_ENROLLMENT_AGENT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENROLLMENT_AGENT => "1.3.6.1.4.1.311.20.2.1"u8; [NativeTypeName("#define szOID_PKIX \"1.3.6.1.5.5.7\"")] - public static ReadOnlySpan szOID_PKIX => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_PKIX => "1.3.6.1.5.5.7"u8; [NativeTypeName("#define szOID_PKIX_PE \"1.3.6.1.5.5.7.1\"")] - public static ReadOnlySpan szOID_PKIX_PE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKIX_PE => "1.3.6.1.5.5.7.1"u8; [NativeTypeName("#define szOID_AUTHORITY_INFO_ACCESS \"1.3.6.1.5.5.7.1.1\"")] - public static ReadOnlySpan szOID_AUTHORITY_INFO_ACCESS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_AUTHORITY_INFO_ACCESS => "1.3.6.1.5.5.7.1.1"u8; [NativeTypeName("#define szOID_SUBJECT_INFO_ACCESS \"1.3.6.1.5.5.7.1.11\"")] - public static ReadOnlySpan szOID_SUBJECT_INFO_ACCESS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_SUBJECT_INFO_ACCESS => "1.3.6.1.5.5.7.1.11"u8; [NativeTypeName("#define szOID_BIOMETRIC_EXT \"1.3.6.1.5.5.7.1.2\"")] - public static ReadOnlySpan szOID_BIOMETRIC_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_BIOMETRIC_EXT => "1.3.6.1.5.5.7.1.2"u8; [NativeTypeName("#define szOID_QC_STATEMENTS_EXT \"1.3.6.1.5.5.7.1.3\"")] - public static ReadOnlySpan szOID_QC_STATEMENTS_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_QC_STATEMENTS_EXT => "1.3.6.1.5.5.7.1.3"u8; [NativeTypeName("#define szOID_LOGOTYPE_EXT \"1.3.6.1.5.5.7.1.12\"")] - public static ReadOnlySpan szOID_LOGOTYPE_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_LOGOTYPE_EXT => "1.3.6.1.5.5.7.1.12"u8; [NativeTypeName("#define szOID_TLS_FEATURES_EXT \"1.3.6.1.5.5.7.1.24\"")] - public static ReadOnlySpan szOID_TLS_FEATURES_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_TLS_FEATURES_EXT => "1.3.6.1.5.5.7.1.24"u8; [NativeTypeName("#define szOID_CERT_EXTENSIONS \"1.3.6.1.4.1.311.2.1.14\"")] - public static ReadOnlySpan szOID_CERT_EXTENSIONS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CERT_EXTENSIONS => "1.3.6.1.4.1.311.2.1.14"u8; [NativeTypeName("#define szOID_NEXT_UPDATE_LOCATION \"1.3.6.1.4.1.311.10.2\"")] - public static ReadOnlySpan szOID_NEXT_UPDATE_LOCATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NEXT_UPDATE_LOCATION => "1.3.6.1.4.1.311.10.2"u8; [NativeTypeName("#define szOID_REMOVE_CERTIFICATE \"1.3.6.1.4.1.311.10.8.1\"")] - public static ReadOnlySpan szOID_REMOVE_CERTIFICATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_REMOVE_CERTIFICATE => "1.3.6.1.4.1.311.10.8.1"u8; [NativeTypeName("#define szOID_CROSS_CERT_DIST_POINTS \"1.3.6.1.4.1.311.10.9.1\"")] - public static ReadOnlySpan szOID_CROSS_CERT_DIST_POINTS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x39, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CROSS_CERT_DIST_POINTS => "1.3.6.1.4.1.311.10.9.1"u8; [NativeTypeName("#define szOID_CTL \"1.3.6.1.4.1.311.10.1\"")] - public static ReadOnlySpan szOID_CTL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CTL => "1.3.6.1.4.1.311.10.1"u8; [NativeTypeName("#define szOID_SORTED_CTL \"1.3.6.1.4.1.311.10.1.1\"")] - public static ReadOnlySpan szOID_SORTED_CTL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_SORTED_CTL => "1.3.6.1.4.1.311.10.1.1"u8; [NativeTypeName("#define szOID_SERIALIZED \"1.3.6.1.4.1.311.10.3.3.1\"")] - public static ReadOnlySpan szOID_SERIALIZED => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_SERIALIZED => "1.3.6.1.4.1.311.10.3.3.1"u8; [NativeTypeName("#define szOID_NT_PRINCIPAL_NAME \"1.3.6.1.4.1.311.20.2.3\"")] - public static ReadOnlySpan szOID_NT_PRINCIPAL_NAME => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_NT_PRINCIPAL_NAME => "1.3.6.1.4.1.311.20.2.3"u8; [NativeTypeName("#define szOID_INTERNATIONALIZED_EMAIL_ADDRESS \"1.3.6.1.4.1.311.20.2.4\"")] - public static ReadOnlySpan szOID_INTERNATIONALIZED_EMAIL_ADDRESS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_INTERNATIONALIZED_EMAIL_ADDRESS => "1.3.6.1.4.1.311.20.2.4"u8; [NativeTypeName("#define szOID_PRODUCT_UPDATE \"1.3.6.1.4.1.311.31.1\"")] - public static ReadOnlySpan szOID_PRODUCT_UPDATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x33, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PRODUCT_UPDATE => "1.3.6.1.4.1.311.31.1"u8; [NativeTypeName("#define szOID_ANY_APPLICATION_POLICY \"1.3.6.1.4.1.311.10.12.1\"")] - public static ReadOnlySpan szOID_ANY_APPLICATION_POLICY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ANY_APPLICATION_POLICY => "1.3.6.1.4.1.311.10.12.1"u8; [NativeTypeName("#define szOID_AUTO_ENROLL_CTL_USAGE \"1.3.6.1.4.1.311.20.1\"")] - public static ReadOnlySpan szOID_AUTO_ENROLL_CTL_USAGE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_AUTO_ENROLL_CTL_USAGE => "1.3.6.1.4.1.311.20.1"u8; [NativeTypeName("#define szOID_ENROLL_CERTTYPE_EXTENSION \"1.3.6.1.4.1.311.20.2\"")] - public static ReadOnlySpan szOID_ENROLL_CERTTYPE_EXTENSION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_CERTTYPE_EXTENSION => "1.3.6.1.4.1.311.20.2"u8; [NativeTypeName("#define szOID_CERT_MANIFOLD \"1.3.6.1.4.1.311.20.3\"")] - public static ReadOnlySpan szOID_CERT_MANIFOLD => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CERT_MANIFOLD => "1.3.6.1.4.1.311.20.3"u8; [NativeTypeName("#define szOID_CERTSRV_CA_VERSION \"1.3.6.1.4.1.311.21.1\"")] - public static ReadOnlySpan szOID_CERTSRV_CA_VERSION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERTSRV_CA_VERSION => "1.3.6.1.4.1.311.21.1"u8; [NativeTypeName("#define szOID_CERTSRV_PREVIOUS_CERT_HASH \"1.3.6.1.4.1.311.21.2\"")] - public static ReadOnlySpan szOID_CERTSRV_PREVIOUS_CERT_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CERTSRV_PREVIOUS_CERT_HASH => "1.3.6.1.4.1.311.21.2"u8; [NativeTypeName("#define szOID_CRL_VIRTUAL_BASE \"1.3.6.1.4.1.311.21.3\"")] - public static ReadOnlySpan szOID_CRL_VIRTUAL_BASE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CRL_VIRTUAL_BASE => "1.3.6.1.4.1.311.21.3"u8; [NativeTypeName("#define szOID_CRL_NEXT_PUBLISH \"1.3.6.1.4.1.311.21.4\"")] - public static ReadOnlySpan szOID_CRL_NEXT_PUBLISH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CRL_NEXT_PUBLISH => "1.3.6.1.4.1.311.21.4"u8; [NativeTypeName("#define szOID_KP_CA_EXCHANGE \"1.3.6.1.4.1.311.21.5\"")] - public static ReadOnlySpan szOID_KP_CA_EXCHANGE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_KP_CA_EXCHANGE => "1.3.6.1.4.1.311.21.5"u8; [NativeTypeName("#define szOID_KP_PRIVACY_CA \"1.3.6.1.4.1.311.21.36\"")] - public static ReadOnlySpan szOID_KP_PRIVACY_CA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x36, 0x00 }; + public static ReadOnlySpan szOID_KP_PRIVACY_CA => "1.3.6.1.4.1.311.21.36"u8; [NativeTypeName("#define szOID_KP_KEY_RECOVERY_AGENT \"1.3.6.1.4.1.311.21.6\"")] - public static ReadOnlySpan szOID_KP_KEY_RECOVERY_AGENT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_KP_KEY_RECOVERY_AGENT => "1.3.6.1.4.1.311.21.6"u8; [NativeTypeName("#define szOID_CERTIFICATE_TEMPLATE \"1.3.6.1.4.1.311.21.7\"")] - public static ReadOnlySpan szOID_CERTIFICATE_TEMPLATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_CERTIFICATE_TEMPLATE => "1.3.6.1.4.1.311.21.7"u8; [NativeTypeName("#define szOID_ENTERPRISE_OID_ROOT \"1.3.6.1.4.1.311.21.8\"")] - public static ReadOnlySpan szOID_ENTERPRISE_OID_ROOT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ENTERPRISE_OID_ROOT => "1.3.6.1.4.1.311.21.8"u8; [NativeTypeName("#define szOID_RDN_DUMMY_SIGNER \"1.3.6.1.4.1.311.21.9\"")] - public static ReadOnlySpan szOID_RDN_DUMMY_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_RDN_DUMMY_SIGNER => "1.3.6.1.4.1.311.21.9"u8; [NativeTypeName("#define szOID_APPLICATION_CERT_POLICIES \"1.3.6.1.4.1.311.21.10\"")] - public static ReadOnlySpan szOID_APPLICATION_CERT_POLICIES => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_APPLICATION_CERT_POLICIES => "1.3.6.1.4.1.311.21.10"u8; [NativeTypeName("#define szOID_APPLICATION_POLICY_MAPPINGS \"1.3.6.1.4.1.311.21.11\"")] - public static ReadOnlySpan szOID_APPLICATION_POLICY_MAPPINGS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_APPLICATION_POLICY_MAPPINGS => "1.3.6.1.4.1.311.21.11"u8; [NativeTypeName("#define szOID_APPLICATION_POLICY_CONSTRAINTS \"1.3.6.1.4.1.311.21.12\"")] - public static ReadOnlySpan szOID_APPLICATION_POLICY_CONSTRAINTS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_APPLICATION_POLICY_CONSTRAINTS => "1.3.6.1.4.1.311.21.12"u8; [NativeTypeName("#define szOID_ARCHIVED_KEY_ATTR \"1.3.6.1.4.1.311.21.13\"")] - public static ReadOnlySpan szOID_ARCHIVED_KEY_ATTR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ARCHIVED_KEY_ATTR => "1.3.6.1.4.1.311.21.13"u8; [NativeTypeName("#define szOID_CRL_SELF_CDP \"1.3.6.1.4.1.311.21.14\"")] - public static ReadOnlySpan szOID_CRL_SELF_CDP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CRL_SELF_CDP => "1.3.6.1.4.1.311.21.14"u8; [NativeTypeName("#define szOID_REQUIRE_CERT_CHAIN_POLICY \"1.3.6.1.4.1.311.21.15\"")] - public static ReadOnlySpan szOID_REQUIRE_CERT_CHAIN_POLICY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_REQUIRE_CERT_CHAIN_POLICY => "1.3.6.1.4.1.311.21.15"u8; [NativeTypeName("#define szOID_ARCHIVED_KEY_CERT_HASH \"1.3.6.1.4.1.311.21.16\"")] - public static ReadOnlySpan szOID_ARCHIVED_KEY_CERT_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ARCHIVED_KEY_CERT_HASH => "1.3.6.1.4.1.311.21.16"u8; [NativeTypeName("#define szOID_ISSUED_CERT_HASH \"1.3.6.1.4.1.311.21.17\"")] - public static ReadOnlySpan szOID_ISSUED_CERT_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ISSUED_CERT_HASH => "1.3.6.1.4.1.311.21.17"u8; [NativeTypeName("#define szOID_DS_EMAIL_REPLICATION \"1.3.6.1.4.1.311.21.19\"")] - public static ReadOnlySpan szOID_DS_EMAIL_REPLICATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_DS_EMAIL_REPLICATION => "1.3.6.1.4.1.311.21.19"u8; [NativeTypeName("#define szOID_REQUEST_CLIENT_INFO \"1.3.6.1.4.1.311.21.20\"")] - public static ReadOnlySpan szOID_REQUEST_CLIENT_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_REQUEST_CLIENT_INFO => "1.3.6.1.4.1.311.21.20"u8; [NativeTypeName("#define szOID_ENCRYPTED_KEY_HASH \"1.3.6.1.4.1.311.21.21\"")] - public static ReadOnlySpan szOID_ENCRYPTED_KEY_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENCRYPTED_KEY_HASH => "1.3.6.1.4.1.311.21.21"u8; [NativeTypeName("#define szOID_CERTSRV_CROSSCA_VERSION \"1.3.6.1.4.1.311.21.22\"")] - public static ReadOnlySpan szOID_CERTSRV_CROSSCA_VERSION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CERTSRV_CROSSCA_VERSION => "1.3.6.1.4.1.311.21.22"u8; [NativeTypeName("#define szOID_NTDS_REPLICATION \"1.3.6.1.4.1.311.25.1\"")] - public static ReadOnlySpan szOID_NTDS_REPLICATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_NTDS_REPLICATION => "1.3.6.1.4.1.311.25.1"u8; [NativeTypeName("#define szOID_SUBJECT_DIR_ATTRS \"2.5.29.9\"")] - public static ReadOnlySpan szOID_SUBJECT_DIR_ATTRS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x32, 0x39, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_SUBJECT_DIR_ATTRS => "2.5.29.9"u8; [NativeTypeName("#define szOID_PKIX_KP \"1.3.6.1.5.5.7.3\"")] - public static ReadOnlySpan szOID_PKIX_KP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP => "1.3.6.1.5.5.7.3"u8; [NativeTypeName("#define szOID_PKIX_KP_SERVER_AUTH \"1.3.6.1.5.5.7.3.1\"")] - public static ReadOnlySpan szOID_PKIX_KP_SERVER_AUTH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_SERVER_AUTH => "1.3.6.1.5.5.7.3.1"u8; [NativeTypeName("#define szOID_PKIX_KP_CLIENT_AUTH \"1.3.6.1.5.5.7.3.2\"")] - public static ReadOnlySpan szOID_PKIX_KP_CLIENT_AUTH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_CLIENT_AUTH => "1.3.6.1.5.5.7.3.2"u8; [NativeTypeName("#define szOID_PKIX_KP_CODE_SIGNING \"1.3.6.1.5.5.7.3.3\"")] - public static ReadOnlySpan szOID_PKIX_KP_CODE_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_CODE_SIGNING => "1.3.6.1.5.5.7.3.3"u8; [NativeTypeName("#define szOID_PKIX_KP_EMAIL_PROTECTION \"1.3.6.1.5.5.7.3.4\"")] - public static ReadOnlySpan szOID_PKIX_KP_EMAIL_PROTECTION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_EMAIL_PROTECTION => "1.3.6.1.5.5.7.3.4"u8; [NativeTypeName("#define szOID_PKIX_KP_IPSEC_END_SYSTEM \"1.3.6.1.5.5.7.3.5\"")] - public static ReadOnlySpan szOID_PKIX_KP_IPSEC_END_SYSTEM => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_IPSEC_END_SYSTEM => "1.3.6.1.5.5.7.3.5"u8; [NativeTypeName("#define szOID_PKIX_KP_IPSEC_TUNNEL \"1.3.6.1.5.5.7.3.6\"")] - public static ReadOnlySpan szOID_PKIX_KP_IPSEC_TUNNEL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_IPSEC_TUNNEL => "1.3.6.1.5.5.7.3.6"u8; [NativeTypeName("#define szOID_PKIX_KP_IPSEC_USER \"1.3.6.1.5.5.7.3.7\"")] - public static ReadOnlySpan szOID_PKIX_KP_IPSEC_USER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_IPSEC_USER => "1.3.6.1.5.5.7.3.7"u8; [NativeTypeName("#define szOID_PKIX_KP_TIMESTAMP_SIGNING \"1.3.6.1.5.5.7.3.8\"")] - public static ReadOnlySpan szOID_PKIX_KP_TIMESTAMP_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_TIMESTAMP_SIGNING => "1.3.6.1.5.5.7.3.8"u8; [NativeTypeName("#define szOID_PKIX_KP_OCSP_SIGNING \"1.3.6.1.5.5.7.3.9\"")] - public static ReadOnlySpan szOID_PKIX_KP_OCSP_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x33, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_PKIX_KP_OCSP_SIGNING => "1.3.6.1.5.5.7.3.9"u8; [NativeTypeName("#define szOID_PKIX_OCSP_NOCHECK \"1.3.6.1.5.5.7.48.1.5\"")] - public static ReadOnlySpan szOID_PKIX_OCSP_NOCHECK => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKIX_OCSP_NOCHECK => "1.3.6.1.5.5.7.48.1.5"u8; [NativeTypeName("#define szOID_PKIX_OCSP_NONCE \"1.3.6.1.5.5.7.48.1.2\"")] - public static ReadOnlySpan szOID_PKIX_OCSP_NONCE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKIX_OCSP_NONCE => "1.3.6.1.5.5.7.48.1.2"u8; [NativeTypeName("#define szOID_IPSEC_KP_IKE_INTERMEDIATE \"1.3.6.1.5.5.8.2.2\"")] - public static ReadOnlySpan szOID_IPSEC_KP_IKE_INTERMEDIATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x38, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_IPSEC_KP_IKE_INTERMEDIATE => "1.3.6.1.5.5.8.2.2"u8; [NativeTypeName("#define szOID_PKINIT_KP_KDC \"1.3.6.1.5.2.3.5\"")] - public static ReadOnlySpan szOID_PKINIT_KP_KDC => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKINIT_KP_KDC => "1.3.6.1.5.2.3.5"u8; [NativeTypeName("#define szOID_KP_CTL_USAGE_SIGNING \"1.3.6.1.4.1.311.10.3.1\"")] - public static ReadOnlySpan szOID_KP_CTL_USAGE_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_CTL_USAGE_SIGNING => "1.3.6.1.4.1.311.10.3.1"u8; [NativeTypeName("#define szOID_KP_TIME_STAMP_SIGNING \"1.3.6.1.4.1.311.10.3.2\"")] - public static ReadOnlySpan szOID_KP_TIME_STAMP_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_KP_TIME_STAMP_SIGNING => "1.3.6.1.4.1.311.10.3.2"u8; [NativeTypeName("#define szOID_SERVER_GATED_CRYPTO \"1.3.6.1.4.1.311.10.3.3\"")] - public static ReadOnlySpan szOID_SERVER_GATED_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_SERVER_GATED_CRYPTO => "1.3.6.1.4.1.311.10.3.3"u8; [NativeTypeName("#define szOID_SGC_NETSCAPE \"2.16.840.1.113730.4.1\"")] - public static ReadOnlySpan szOID_SGC_NETSCAPE => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_SGC_NETSCAPE => "2.16.840.1.113730.4.1"u8; [NativeTypeName("#define szOID_KP_EFS \"1.3.6.1.4.1.311.10.3.4\"")] - public static ReadOnlySpan szOID_KP_EFS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_KP_EFS => "1.3.6.1.4.1.311.10.3.4"u8; [NativeTypeName("#define szOID_EFS_RECOVERY \"1.3.6.1.4.1.311.10.3.4.1\"")] - public static ReadOnlySpan szOID_EFS_RECOVERY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_EFS_RECOVERY => "1.3.6.1.4.1.311.10.3.4.1"u8; [NativeTypeName("#define szOID_WHQL_CRYPTO \"1.3.6.1.4.1.311.10.3.5\"")] - public static ReadOnlySpan szOID_WHQL_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_WHQL_CRYPTO => "1.3.6.1.4.1.311.10.3.5"u8; [NativeTypeName("#define szOID_ATTEST_WHQL_CRYPTO \"1.3.6.1.4.1.311.10.3.5.1\"")] - public static ReadOnlySpan szOID_ATTEST_WHQL_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ATTEST_WHQL_CRYPTO => "1.3.6.1.4.1.311.10.3.5.1"u8; [NativeTypeName("#define szOID_NT5_CRYPTO \"1.3.6.1.4.1.311.10.3.6\"")] - public static ReadOnlySpan szOID_NT5_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_NT5_CRYPTO => "1.3.6.1.4.1.311.10.3.6"u8; [NativeTypeName("#define szOID_OEM_WHQL_CRYPTO \"1.3.6.1.4.1.311.10.3.7\"")] - public static ReadOnlySpan szOID_OEM_WHQL_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_OEM_WHQL_CRYPTO => "1.3.6.1.4.1.311.10.3.7"u8; [NativeTypeName("#define szOID_EMBEDDED_NT_CRYPTO \"1.3.6.1.4.1.311.10.3.8\"")] - public static ReadOnlySpan szOID_EMBEDDED_NT_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_EMBEDDED_NT_CRYPTO => "1.3.6.1.4.1.311.10.3.8"u8; [NativeTypeName("#define szOID_ROOT_LIST_SIGNER \"1.3.6.1.4.1.311.10.3.9\"")] - public static ReadOnlySpan szOID_ROOT_LIST_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ROOT_LIST_SIGNER => "1.3.6.1.4.1.311.10.3.9"u8; [NativeTypeName("#define szOID_KP_QUALIFIED_SUBORDINATION \"1.3.6.1.4.1.311.10.3.10\"")] - public static ReadOnlySpan szOID_KP_QUALIFIED_SUBORDINATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_KP_QUALIFIED_SUBORDINATION => "1.3.6.1.4.1.311.10.3.10"u8; [NativeTypeName("#define szOID_KP_KEY_RECOVERY \"1.3.6.1.4.1.311.10.3.11\"")] - public static ReadOnlySpan szOID_KP_KEY_RECOVERY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_KEY_RECOVERY => "1.3.6.1.4.1.311.10.3.11"u8; [NativeTypeName("#define szOID_KP_DOCUMENT_SIGNING \"1.3.6.1.4.1.311.10.3.12\"")] - public static ReadOnlySpan szOID_KP_DOCUMENT_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_KP_DOCUMENT_SIGNING => "1.3.6.1.4.1.311.10.3.12"u8; [NativeTypeName("#define szOID_KP_LIFETIME_SIGNING \"1.3.6.1.4.1.311.10.3.13\"")] - public static ReadOnlySpan szOID_KP_LIFETIME_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_KP_LIFETIME_SIGNING => "1.3.6.1.4.1.311.10.3.13"u8; [NativeTypeName("#define szOID_KP_MOBILE_DEVICE_SOFTWARE \"1.3.6.1.4.1.311.10.3.14\"")] - public static ReadOnlySpan szOID_KP_MOBILE_DEVICE_SOFTWARE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x34, 0x00 }; + public static ReadOnlySpan szOID_KP_MOBILE_DEVICE_SOFTWARE => "1.3.6.1.4.1.311.10.3.14"u8; [NativeTypeName("#define szOID_KP_SMART_DISPLAY \"1.3.6.1.4.1.311.10.3.15\"")] - public static ReadOnlySpan szOID_KP_SMART_DISPLAY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_KP_SMART_DISPLAY => "1.3.6.1.4.1.311.10.3.15"u8; [NativeTypeName("#define szOID_KP_CSP_SIGNATURE \"1.3.6.1.4.1.311.10.3.16\"")] - public static ReadOnlySpan szOID_KP_CSP_SIGNATURE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_KP_CSP_SIGNATURE => "1.3.6.1.4.1.311.10.3.16"u8; [NativeTypeName("#define szOID_KP_FLIGHT_SIGNING \"1.3.6.1.4.1.311.10.3.27\"")] - public static ReadOnlySpan szOID_KP_FLIGHT_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan szOID_KP_FLIGHT_SIGNING => "1.3.6.1.4.1.311.10.3.27"u8; [NativeTypeName("#define szOID_PLATFORM_MANIFEST_BINARY_ID \"1.3.6.1.4.1.311.10.3.28\"")] - public static ReadOnlySpan szOID_PLATFORM_MANIFEST_BINARY_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_PLATFORM_MANIFEST_BINARY_ID => "1.3.6.1.4.1.311.10.3.28"u8; [NativeTypeName("#define szOID_DRM \"1.3.6.1.4.1.311.10.5.1\"")] - public static ReadOnlySpan szOID_DRM => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_DRM => "1.3.6.1.4.1.311.10.5.1"u8; [NativeTypeName("#define szOID_DRM_INDIVIDUALIZATION \"1.3.6.1.4.1.311.10.5.2\"")] - public static ReadOnlySpan szOID_DRM_INDIVIDUALIZATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x35, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_DRM_INDIVIDUALIZATION => "1.3.6.1.4.1.311.10.5.2"u8; [NativeTypeName("#define szOID_LICENSES \"1.3.6.1.4.1.311.10.6.1\"")] - public static ReadOnlySpan szOID_LICENSES => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x36, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_LICENSES => "1.3.6.1.4.1.311.10.6.1"u8; [NativeTypeName("#define szOID_LICENSE_SERVER \"1.3.6.1.4.1.311.10.6.2\"")] - public static ReadOnlySpan szOID_LICENSE_SERVER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x36, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_LICENSE_SERVER => "1.3.6.1.4.1.311.10.6.2"u8; [NativeTypeName("#define szOID_KP_SMARTCARD_LOGON \"1.3.6.1.4.1.311.20.2.2\"")] - public static ReadOnlySpan szOID_KP_SMARTCARD_LOGON => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_KP_SMARTCARD_LOGON => "1.3.6.1.4.1.311.20.2.2"u8; [NativeTypeName("#define szOID_KP_KERNEL_MODE_CODE_SIGNING \"1.3.6.1.4.1.311.61.1.1\"")] - public static ReadOnlySpan szOID_KP_KERNEL_MODE_CODE_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x31, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_KERNEL_MODE_CODE_SIGNING => "1.3.6.1.4.1.311.61.1.1"u8; [NativeTypeName("#define szOID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING \"1.3.6.1.4.1.311.61.4.1\"")] - public static ReadOnlySpan szOID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING => "1.3.6.1.4.1.311.61.4.1"u8; [NativeTypeName("#define szOID_REVOKED_LIST_SIGNER \"1.3.6.1.4.1.311.10.3.19\"")] - public static ReadOnlySpan szOID_REVOKED_LIST_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_REVOKED_LIST_SIGNER => "1.3.6.1.4.1.311.10.3.19"u8; [NativeTypeName("#define szOID_WINDOWS_KITS_SIGNER \"1.3.6.1.4.1.311.10.3.20\"")] - public static ReadOnlySpan szOID_WINDOWS_KITS_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_KITS_SIGNER => "1.3.6.1.4.1.311.10.3.20"u8; [NativeTypeName("#define szOID_WINDOWS_RT_SIGNER \"1.3.6.1.4.1.311.10.3.21\"")] - public static ReadOnlySpan szOID_WINDOWS_RT_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_RT_SIGNER => "1.3.6.1.4.1.311.10.3.21"u8; [NativeTypeName("#define szOID_PROTECTED_PROCESS_LIGHT_SIGNER \"1.3.6.1.4.1.311.10.3.22\"")] - public static ReadOnlySpan szOID_PROTECTED_PROCESS_LIGHT_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PROTECTED_PROCESS_LIGHT_SIGNER => "1.3.6.1.4.1.311.10.3.22"u8; [NativeTypeName("#define szOID_WINDOWS_TCB_SIGNER \"1.3.6.1.4.1.311.10.3.23\"")] - public static ReadOnlySpan szOID_WINDOWS_TCB_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_TCB_SIGNER => "1.3.6.1.4.1.311.10.3.23"u8; [NativeTypeName("#define szOID_PROTECTED_PROCESS_SIGNER \"1.3.6.1.4.1.311.10.3.24\"")] - public static ReadOnlySpan szOID_PROTECTED_PROCESS_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PROTECTED_PROCESS_SIGNER => "1.3.6.1.4.1.311.10.3.24"u8; [NativeTypeName("#define szOID_WINDOWS_THIRD_PARTY_COMPONENT_SIGNER \"1.3.6.1.4.1.311.10.3.25\"")] - public static ReadOnlySpan szOID_WINDOWS_THIRD_PARTY_COMPONENT_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_THIRD_PARTY_COMPONENT_SIGNER => "1.3.6.1.4.1.311.10.3.25"u8; [NativeTypeName("#define szOID_WINDOWS_SOFTWARE_EXTENSION_SIGNER \"1.3.6.1.4.1.311.10.3.26\"")] - public static ReadOnlySpan szOID_WINDOWS_SOFTWARE_EXTENSION_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x36, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_SOFTWARE_EXTENSION_SIGNER => "1.3.6.1.4.1.311.10.3.26"u8; [NativeTypeName("#define szOID_DISALLOWED_LIST \"1.3.6.1.4.1.311.10.3.30\"")] - public static ReadOnlySpan szOID_DISALLOWED_LIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_DISALLOWED_LIST => "1.3.6.1.4.1.311.10.3.30"u8; [NativeTypeName("#define szOID_PIN_RULES_SIGNER \"1.3.6.1.4.1.311.10.3.31\"")] - public static ReadOnlySpan szOID_PIN_RULES_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PIN_RULES_SIGNER => "1.3.6.1.4.1.311.10.3.31"u8; [NativeTypeName("#define szOID_PIN_RULES_CTL \"1.3.6.1.4.1.311.10.3.32\"")] - public static ReadOnlySpan szOID_PIN_RULES_CTL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PIN_RULES_CTL => "1.3.6.1.4.1.311.10.3.32"u8; [NativeTypeName("#define szOID_PIN_RULES_EXT \"1.3.6.1.4.1.311.10.3.33\"")] - public static ReadOnlySpan szOID_PIN_RULES_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PIN_RULES_EXT => "1.3.6.1.4.1.311.10.3.33"u8; [NativeTypeName("#define szOID_PIN_RULES_DOMAIN_NAME \"1.3.6.1.4.1.311.10.3.34\"")] - public static ReadOnlySpan szOID_PIN_RULES_DOMAIN_NAME => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PIN_RULES_DOMAIN_NAME => "1.3.6.1.4.1.311.10.3.34"u8; [NativeTypeName("#define szOID_PIN_RULES_LOG_END_DATE_EXT \"1.3.6.1.4.1.311.10.3.35\"")] - public static ReadOnlySpan szOID_PIN_RULES_LOG_END_DATE_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PIN_RULES_LOG_END_DATE_EXT => "1.3.6.1.4.1.311.10.3.35"u8; [NativeTypeName("#define szOID_IUM_SIGNING \"1.3.6.1.4.1.311.10.3.37\"")] - public static ReadOnlySpan szOID_IUM_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x37, 0x00 }; + public static ReadOnlySpan szOID_IUM_SIGNING => "1.3.6.1.4.1.311.10.3.37"u8; [NativeTypeName("#define szOID_EV_WHQL_CRYPTO \"1.3.6.1.4.1.311.10.3.39\"")] - public static ReadOnlySpan szOID_EV_WHQL_CRYPTO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x39, 0x00 }; + public static ReadOnlySpan szOID_EV_WHQL_CRYPTO => "1.3.6.1.4.1.311.10.3.39"u8; [NativeTypeName("#define szOID_BIOMETRIC_SIGNING \"1.3.6.1.4.1.311.10.3.41\"")] - public static ReadOnlySpan szOID_BIOMETRIC_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x31, 0x00 }; + public static ReadOnlySpan szOID_BIOMETRIC_SIGNING => "1.3.6.1.4.1.311.10.3.41"u8; [NativeTypeName("#define szOID_ENCLAVE_SIGNING \"1.3.6.1.4.1.311.10.3.42\"")] - public static ReadOnlySpan szOID_ENCLAVE_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ENCLAVE_SIGNING => "1.3.6.1.4.1.311.10.3.42"u8; [NativeTypeName("#define szOID_SYNC_ROOT_CTL_EXT \"1.3.6.1.4.1.311.10.3.50\"")] - public static ReadOnlySpan szOID_SYNC_ROOT_CTL_EXT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x35, 0x30, 0x00 }; + public static ReadOnlySpan szOID_SYNC_ROOT_CTL_EXT => "1.3.6.1.4.1.311.10.3.50"u8; [NativeTypeName("#define szOID_HPKP_DOMAIN_NAME_CTL \"1.3.6.1.4.1.311.10.3.60\"")] - public static ReadOnlySpan szOID_HPKP_DOMAIN_NAME_CTL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x36, 0x30, 0x00 }; + public static ReadOnlySpan szOID_HPKP_DOMAIN_NAME_CTL => "1.3.6.1.4.1.311.10.3.60"u8; [NativeTypeName("#define szOID_HPKP_HEADER_VALUE_CTL \"1.3.6.1.4.1.311.10.3.61\"")] - public static ReadOnlySpan szOID_HPKP_HEADER_VALUE_CTL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x33, 0x2E, 0x36, 0x31, 0x00 }; + public static ReadOnlySpan szOID_HPKP_HEADER_VALUE_CTL => "1.3.6.1.4.1.311.10.3.61"u8; [NativeTypeName("#define szOID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING \"1.3.6.1.4.1.311.61.5.1\"")] - public static ReadOnlySpan szOID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x31, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING => "1.3.6.1.4.1.311.61.5.1"u8; [NativeTypeName("#define szOID_WINDOWS_STORE_SIGNER \"1.3.6.1.4.1.311.76.3.1\"")] - public static ReadOnlySpan szOID_WINDOWS_STORE_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x36, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_WINDOWS_STORE_SIGNER => "1.3.6.1.4.1.311.76.3.1"u8; [NativeTypeName("#define szOID_DYNAMIC_CODE_GEN_SIGNER \"1.3.6.1.4.1.311.76.5.1\"")] - public static ReadOnlySpan szOID_DYNAMIC_CODE_GEN_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x36, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_DYNAMIC_CODE_GEN_SIGNER => "1.3.6.1.4.1.311.76.5.1"u8; [NativeTypeName("#define szOID_MICROSOFT_PUBLISHER_SIGNER \"1.3.6.1.4.1.311.76.8.1\"")] - public static ReadOnlySpan szOID_MICROSOFT_PUBLISHER_SIGNER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x36, 0x2E, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_MICROSOFT_PUBLISHER_SIGNER => "1.3.6.1.4.1.311.76.8.1"u8; [NativeTypeName("#define szOID_YESNO_TRUST_ATTR \"1.3.6.1.4.1.311.10.4.1\"")] - public static ReadOnlySpan szOID_YESNO_TRUST_ATTR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_YESNO_TRUST_ATTR => "1.3.6.1.4.1.311.10.4.1"u8; [NativeTypeName("#define szOID_SITE_PIN_RULES_INDEX_ATTR \"1.3.6.1.4.1.311.10.4.2\"")] - public static ReadOnlySpan szOID_SITE_PIN_RULES_INDEX_ATTR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_SITE_PIN_RULES_INDEX_ATTR => "1.3.6.1.4.1.311.10.4.2"u8; [NativeTypeName("#define szOID_SITE_PIN_RULES_FLAGS_ATTR \"1.3.6.1.4.1.311.10.4.3\"")] - public static ReadOnlySpan szOID_SITE_PIN_RULES_FLAGS_ATTR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_SITE_PIN_RULES_FLAGS_ATTR => "1.3.6.1.4.1.311.10.4.3"u8; [NativeTypeName("#define szOID_PKIX_POLICY_QUALIFIER_CPS \"1.3.6.1.5.5.7.2.1\"")] - public static ReadOnlySpan szOID_PKIX_POLICY_QUALIFIER_CPS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKIX_POLICY_QUALIFIER_CPS => "1.3.6.1.5.5.7.2.1"u8; [NativeTypeName("#define szOID_PKIX_POLICY_QUALIFIER_USERNOTICE \"1.3.6.1.5.5.7.2.2\"")] - public static ReadOnlySpan szOID_PKIX_POLICY_QUALIFIER_USERNOTICE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKIX_POLICY_QUALIFIER_USERNOTICE => "1.3.6.1.5.5.7.2.2"u8; [NativeTypeName("#define szOID_ROOT_PROGRAM_FLAGS \"1.3.6.1.4.1.311.60.1.1\"")] - public static ReadOnlySpan szOID_ROOT_PROGRAM_FLAGS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ROOT_PROGRAM_FLAGS => "1.3.6.1.4.1.311.60.1.1"u8; [NativeTypeName("#define szOID_CERT_POLICIES_95_QUALIFIER1 \"2.16.840.1.113733.1.7.1.1\"")] - public static ReadOnlySpan szOID_CERT_POLICIES_95_QUALIFIER1 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERT_POLICIES_95_QUALIFIER1 => "2.16.840.1.113733.1.7.1.1"u8; [NativeTypeName("#define szOID_RDN_TPM_MANUFACTURER \"2.23.133.2.1\"")] - public static ReadOnlySpan szOID_RDN_TPM_MANUFACTURER => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_RDN_TPM_MANUFACTURER => "2.23.133.2.1"u8; [NativeTypeName("#define szOID_RDN_TPM_MODEL \"2.23.133.2.2\"")] - public static ReadOnlySpan szOID_RDN_TPM_MODEL => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_RDN_TPM_MODEL => "2.23.133.2.2"u8; [NativeTypeName("#define szOID_RDN_TPM_VERSION \"2.23.133.2.3\"")] - public static ReadOnlySpan szOID_RDN_TPM_VERSION => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_RDN_TPM_VERSION => "2.23.133.2.3"u8; [NativeTypeName("#define szOID_RDN_TCG_PLATFORM_MANUFACTURER \"2.23.133.2.4\"")] - public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_MANUFACTURER => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_MANUFACTURER => "2.23.133.2.4"u8; [NativeTypeName("#define szOID_RDN_TCG_PLATFORM_MODEL \"2.23.133.2.5\"")] - public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_MODEL => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_MODEL => "2.23.133.2.5"u8; [NativeTypeName("#define szOID_RDN_TCG_PLATFORM_VERSION \"2.23.133.2.6\"")] - public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_VERSION => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_RDN_TCG_PLATFORM_VERSION => "2.23.133.2.6"u8; [NativeTypeName("#define szOID_CT_CERT_SCTLIST \"1.3.6.1.4.1.11129.2.4.2\"")] - public static ReadOnlySpan szOID_CT_CERT_SCTLIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x31, 0x32, 0x39, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CT_CERT_SCTLIST => "1.3.6.1.4.1.11129.2.4.2"u8; [NativeTypeName("#define szOID_ENROLL_EK_INFO \"1.3.6.1.4.1.311.21.23\"")] - public static ReadOnlySpan szOID_ENROLL_EK_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EK_INFO => "1.3.6.1.4.1.311.21.23"u8; [NativeTypeName("#define szOID_ENROLL_AIK_INFO \"1.3.6.1.4.1.311.21.39\"")] - public static ReadOnlySpan szOID_ENROLL_AIK_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_AIK_INFO => "1.3.6.1.4.1.311.21.39"u8; [NativeTypeName("#define szOID_ENROLL_ATTESTATION_STATEMENT \"1.3.6.1.4.1.311.21.24\"")] - public static ReadOnlySpan szOID_ENROLL_ATTESTATION_STATEMENT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_ATTESTATION_STATEMENT => "1.3.6.1.4.1.311.21.24"u8; [NativeTypeName("#define szOID_ENROLL_KSP_NAME \"1.3.6.1.4.1.311.21.25\"")] - public static ReadOnlySpan szOID_ENROLL_KSP_NAME => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_KSP_NAME => "1.3.6.1.4.1.311.21.25"u8; [NativeTypeName("#define szOID_ENROLL_EKPUB_CHALLENGE \"1.3.6.1.4.1.311.21.26\"")] - public static ReadOnlySpan szOID_ENROLL_EKPUB_CHALLENGE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EKPUB_CHALLENGE => "1.3.6.1.4.1.311.21.26"u8; [NativeTypeName("#define szOID_ENROLL_CAXCHGCERT_HASH \"1.3.6.1.4.1.311.21.27\"")] - public static ReadOnlySpan szOID_ENROLL_CAXCHGCERT_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_CAXCHGCERT_HASH => "1.3.6.1.4.1.311.21.27"u8; [NativeTypeName("#define szOID_ENROLL_ATTESTATION_CHALLENGE \"1.3.6.1.4.1.311.21.28\"")] - public static ReadOnlySpan szOID_ENROLL_ATTESTATION_CHALLENGE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_ATTESTATION_CHALLENGE => "1.3.6.1.4.1.311.21.28"u8; [NativeTypeName("#define szOID_ENROLL_ENCRYPTION_ALGORITHM \"1.3.6.1.4.1.311.21.29\"")] - public static ReadOnlySpan szOID_ENROLL_ENCRYPTION_ALGORITHM => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x32, 0x39, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_ENCRYPTION_ALGORITHM => "1.3.6.1.4.1.311.21.29"u8; [NativeTypeName("#define szOID_KP_TPM_EK_CERTIFICATE \"2.23.133.8.1\"")] - public static ReadOnlySpan szOID_KP_TPM_EK_CERTIFICATE => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_KP_TPM_EK_CERTIFICATE => "2.23.133.8.1"u8; [NativeTypeName("#define szOID_KP_TPM_PLATFORM_CERTIFICATE \"2.23.133.8.2\"")] - public static ReadOnlySpan szOID_KP_TPM_PLATFORM_CERTIFICATE => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x38, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_KP_TPM_PLATFORM_CERTIFICATE => "2.23.133.8.2"u8; [NativeTypeName("#define szOID_KP_TPM_AIK_CERTIFICATE \"2.23.133.8.3\"")] - public static ReadOnlySpan szOID_KP_TPM_AIK_CERTIFICATE => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x38, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_KP_TPM_AIK_CERTIFICATE => "2.23.133.8.3"u8; [NativeTypeName("#define szOID_ENROLL_EKVERIFYKEY \"1.3.6.1.4.1.311.21.30\"")] - public static ReadOnlySpan szOID_ENROLL_EKVERIFYKEY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EKVERIFYKEY => "1.3.6.1.4.1.311.21.30"u8; [NativeTypeName("#define szOID_ENROLL_EKVERIFYCERT \"1.3.6.1.4.1.311.21.31\"")] - public static ReadOnlySpan szOID_ENROLL_EKVERIFYCERT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EKVERIFYCERT => "1.3.6.1.4.1.311.21.31"u8; [NativeTypeName("#define szOID_ENROLL_EKVERIFYCREDS \"1.3.6.1.4.1.311.21.32\"")] - public static ReadOnlySpan szOID_ENROLL_EKVERIFYCREDS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EKVERIFYCREDS => "1.3.6.1.4.1.311.21.32"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_ERROR \"1.3.6.1.4.1.311.21.33\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_ERROR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_ERROR => "1.3.6.1.4.1.311.21.33"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_SERVER_STATE \"1.3.6.1.4.1.311.21.34\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_STATE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x34, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_STATE => "1.3.6.1.4.1.311.21.34"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_CHALLENGE_ANSWER \"1.3.6.1.4.1.311.21.35\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_CHALLENGE_ANSWER => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x35, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_CHALLENGE_ANSWER => "1.3.6.1.4.1.311.21.35"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_CLIENT_REQUEST \"1.3.6.1.4.1.311.21.37\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_CLIENT_REQUEST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_CLIENT_REQUEST => "1.3.6.1.4.1.311.21.37"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_SERVER_MESSAGE \"1.3.6.1.4.1.311.21.38\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_MESSAGE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x33, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_MESSAGE => "1.3.6.1.4.1.311.21.38"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_SERVER_SECRET \"1.3.6.1.4.1.311.21.40\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_SECRET => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x34, 0x30, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_SERVER_SECRET => "1.3.6.1.4.1.311.21.40"u8; [NativeTypeName("#define szOID_ENROLL_KEY_AFFINITY \"1.3.6.1.4.1.311.21.41\"")] - public static ReadOnlySpan szOID_ENROLL_KEY_AFFINITY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x34, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_KEY_AFFINITY => "1.3.6.1.4.1.311.21.41"u8; [NativeTypeName("#define szOID_ENROLL_SCEP_SIGNER_HASH \"1.3.6.1.4.1.311.21.42\"")] - public static ReadOnlySpan szOID_ENROLL_SCEP_SIGNER_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x34, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_SCEP_SIGNER_HASH => "1.3.6.1.4.1.311.21.42"u8; [NativeTypeName("#define szOID_ENROLL_EK_CA_KEYID \"1.3.6.1.4.1.311.21.43\"")] - public static ReadOnlySpan szOID_ENROLL_EK_CA_KEYID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x31, 0x2E, 0x34, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ENROLL_EK_CA_KEYID => "1.3.6.1.4.1.311.21.43"u8; [NativeTypeName("#define szOID_ATTR_SUPPORTED_ALGORITHMS \"2.5.4.52\"")] - public static ReadOnlySpan szOID_ATTR_SUPPORTED_ALGORITHMS => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x35, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ATTR_SUPPORTED_ALGORITHMS => "2.5.4.52"u8; [NativeTypeName("#define szOID_ATTR_TPM_SPECIFICATION \"2.23.133.2.16\"")] - public static ReadOnlySpan szOID_ATTR_TPM_SPECIFICATION => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_ATTR_TPM_SPECIFICATION => "2.23.133.2.16"u8; [NativeTypeName("#define szOID_ATTR_PLATFORM_SPECIFICATION \"2.23.133.2.17\"")] - public static ReadOnlySpan szOID_ATTR_PLATFORM_SPECIFICATION => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_ATTR_PLATFORM_SPECIFICATION => "2.23.133.2.17"u8; [NativeTypeName("#define szOID_ATTR_TPM_SECURITY_ASSERTIONS \"2.23.133.2.18\"")] - public static ReadOnlySpan szOID_ATTR_TPM_SECURITY_ASSERTIONS => new byte[] { 0x32, 0x2E, 0x32, 0x33, 0x2E, 0x31, 0x33, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_ATTR_TPM_SECURITY_ASSERTIONS => "2.23.133.2.18"u8; [NativeTypeName("#define szOID_PKIX_ACC_DESCR \"1.3.6.1.5.5.7.48\"")] - public static ReadOnlySpan szOID_PKIX_ACC_DESCR => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x00 }; + public static ReadOnlySpan szOID_PKIX_ACC_DESCR => "1.3.6.1.5.5.7.48"u8; [NativeTypeName("#define szOID_PKIX_OCSP \"1.3.6.1.5.5.7.48.1\"")] - public static ReadOnlySpan szOID_PKIX_OCSP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKIX_OCSP => "1.3.6.1.5.5.7.48.1"u8; [NativeTypeName("#define szOID_PKIX_CA_ISSUERS \"1.3.6.1.5.5.7.48.2\"")] - public static ReadOnlySpan szOID_PKIX_CA_ISSUERS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKIX_CA_ISSUERS => "1.3.6.1.5.5.7.48.2"u8; [NativeTypeName("#define szOID_PKIX_TIME_STAMPING \"1.3.6.1.5.5.7.48.3\"")] - public static ReadOnlySpan szOID_PKIX_TIME_STAMPING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKIX_TIME_STAMPING => "1.3.6.1.5.5.7.48.3"u8; [NativeTypeName("#define szOID_PKIX_CA_REPOSITORY \"1.3.6.1.5.5.7.48.5\"")] - public static ReadOnlySpan szOID_PKIX_CA_REPOSITORY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKIX_CA_REPOSITORY => "1.3.6.1.5.5.7.48.5"u8; [NativeTypeName("#define szOID_QC_EU_COMPLIANCE \"0.4.0.1862.1.1\"")] - public static ReadOnlySpan szOID_QC_EU_COMPLIANCE => new byte[] { 0x30, 0x2E, 0x34, 0x2E, 0x30, 0x2E, 0x31, 0x38, 0x36, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_QC_EU_COMPLIANCE => "0.4.0.1862.1.1"u8; [NativeTypeName("#define szOID_QC_SSCD \"0.4.0.1862.1.4\"")] - public static ReadOnlySpan szOID_QC_SSCD => new byte[] { 0x30, 0x2E, 0x34, 0x2E, 0x30, 0x2E, 0x31, 0x38, 0x36, 0x32, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_QC_SSCD => "0.4.0.1862.1.4"u8; [NativeTypeName("#define szOID_VERISIGN_PRIVATE_6_9 \"2.16.840.1.113733.1.6.9\"")] - public static ReadOnlySpan szOID_VERISIGN_PRIVATE_6_9 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x36, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_VERISIGN_PRIVATE_6_9 => "2.16.840.1.113733.1.6.9"u8; [NativeTypeName("#define szOID_VERISIGN_ONSITE_JURISDICTION_HASH \"2.16.840.1.113733.1.6.11\"")] - public static ReadOnlySpan szOID_VERISIGN_ONSITE_JURISDICTION_HASH => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x36, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_VERISIGN_ONSITE_JURISDICTION_HASH => "2.16.840.1.113733.1.6.11"u8; [NativeTypeName("#define szOID_VERISIGN_BITSTRING_6_13 \"2.16.840.1.113733.1.6.13\"")] - public static ReadOnlySpan szOID_VERISIGN_BITSTRING_6_13 => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x36, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_VERISIGN_BITSTRING_6_13 => "2.16.840.1.113733.1.6.13"u8; [NativeTypeName("#define szOID_VERISIGN_ISS_STRONG_CRYPTO \"2.16.840.1.113733.1.8.1\"")] - public static ReadOnlySpan szOID_VERISIGN_ISS_STRONG_CRYPTO => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x33, 0x2E, 0x31, 0x2E, 0x38, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_VERISIGN_ISS_STRONG_CRYPTO => "2.16.840.1.113733.1.8.1"u8; [NativeTypeName("#define szOID_NETSCAPE \"2.16.840.1.113730\"")] - public static ReadOnlySpan szOID_NETSCAPE => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE => "2.16.840.1.113730"u8; [NativeTypeName("#define szOID_NETSCAPE_CERT_EXTENSION \"2.16.840.1.113730.1\"")] - public static ReadOnlySpan szOID_NETSCAPE_CERT_EXTENSION => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CERT_EXTENSION => "2.16.840.1.113730.1"u8; [NativeTypeName("#define szOID_NETSCAPE_CERT_TYPE \"2.16.840.1.113730.1.1\"")] - public static ReadOnlySpan szOID_NETSCAPE_CERT_TYPE => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CERT_TYPE => "2.16.840.1.113730.1.1"u8; [NativeTypeName("#define szOID_NETSCAPE_BASE_URL \"2.16.840.1.113730.1.2\"")] - public static ReadOnlySpan szOID_NETSCAPE_BASE_URL => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_BASE_URL => "2.16.840.1.113730.1.2"u8; [NativeTypeName("#define szOID_NETSCAPE_REVOCATION_URL \"2.16.840.1.113730.1.3\"")] - public static ReadOnlySpan szOID_NETSCAPE_REVOCATION_URL => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_REVOCATION_URL => "2.16.840.1.113730.1.3"u8; [NativeTypeName("#define szOID_NETSCAPE_CA_REVOCATION_URL \"2.16.840.1.113730.1.4\"")] - public static ReadOnlySpan szOID_NETSCAPE_CA_REVOCATION_URL => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CA_REVOCATION_URL => "2.16.840.1.113730.1.4"u8; [NativeTypeName("#define szOID_NETSCAPE_CERT_RENEWAL_URL \"2.16.840.1.113730.1.7\"")] - public static ReadOnlySpan szOID_NETSCAPE_CERT_RENEWAL_URL => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CERT_RENEWAL_URL => "2.16.840.1.113730.1.7"u8; [NativeTypeName("#define szOID_NETSCAPE_CA_POLICY_URL \"2.16.840.1.113730.1.8\"")] - public static ReadOnlySpan szOID_NETSCAPE_CA_POLICY_URL => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CA_POLICY_URL => "2.16.840.1.113730.1.8"u8; [NativeTypeName("#define szOID_NETSCAPE_SSL_SERVER_NAME \"2.16.840.1.113730.1.12\"")] - public static ReadOnlySpan szOID_NETSCAPE_SSL_SERVER_NAME => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_SSL_SERVER_NAME => "2.16.840.1.113730.1.12"u8; [NativeTypeName("#define szOID_NETSCAPE_COMMENT \"2.16.840.1.113730.1.13\"")] - public static ReadOnlySpan szOID_NETSCAPE_COMMENT => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_COMMENT => "2.16.840.1.113730.1.13"u8; [NativeTypeName("#define szOID_NETSCAPE_DATA_TYPE \"2.16.840.1.113730.2\"")] - public static ReadOnlySpan szOID_NETSCAPE_DATA_TYPE => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_DATA_TYPE => "2.16.840.1.113730.2"u8; [NativeTypeName("#define szOID_NETSCAPE_CERT_SEQUENCE \"2.16.840.1.113730.2.5\"")] - public static ReadOnlySpan szOID_NETSCAPE_CERT_SEQUENCE => new byte[] { 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x33, 0x37, 0x33, 0x30, 0x2E, 0x32, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_NETSCAPE_CERT_SEQUENCE => "2.16.840.1.113730.2.5"u8; [NativeTypeName("#define szOID_CT_PKI_DATA \"1.3.6.1.5.5.7.12.2\"")] - public static ReadOnlySpan szOID_CT_PKI_DATA => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x32, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CT_PKI_DATA => "1.3.6.1.5.5.7.12.2"u8; [NativeTypeName("#define szOID_CT_PKI_RESPONSE \"1.3.6.1.5.5.7.12.3\"")] - public static ReadOnlySpan szOID_CT_PKI_RESPONSE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x31, 0x32, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CT_PKI_RESPONSE => "1.3.6.1.5.5.7.12.3"u8; [NativeTypeName("#define szOID_PKIX_NO_SIGNATURE \"1.3.6.1.5.5.7.6.2\"")] - public static ReadOnlySpan szOID_PKIX_NO_SIGNATURE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x36, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKIX_NO_SIGNATURE => "1.3.6.1.5.5.7.6.2"u8; [NativeTypeName("#define szOID_CMC \"1.3.6.1.5.5.7.7\"")] - public static ReadOnlySpan szOID_CMC => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_CMC => "1.3.6.1.5.5.7.7"u8; [NativeTypeName("#define szOID_CMC_STATUS_INFO \"1.3.6.1.5.5.7.7.1\"")] - public static ReadOnlySpan szOID_CMC_STATUS_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CMC_STATUS_INFO => "1.3.6.1.5.5.7.7.1"u8; [NativeTypeName("#define szOID_CMC_IDENTIFICATION \"1.3.6.1.5.5.7.7.2\"")] - public static ReadOnlySpan szOID_CMC_IDENTIFICATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CMC_IDENTIFICATION => "1.3.6.1.5.5.7.7.2"u8; [NativeTypeName("#define szOID_CMC_IDENTITY_PROOF \"1.3.6.1.5.5.7.7.3\"")] - public static ReadOnlySpan szOID_CMC_IDENTITY_PROOF => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CMC_IDENTITY_PROOF => "1.3.6.1.5.5.7.7.3"u8; [NativeTypeName("#define szOID_CMC_DATA_RETURN \"1.3.6.1.5.5.7.7.4\"")] - public static ReadOnlySpan szOID_CMC_DATA_RETURN => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CMC_DATA_RETURN => "1.3.6.1.5.5.7.7.4"u8; [NativeTypeName("#define szOID_CMC_TRANSACTION_ID \"1.3.6.1.5.5.7.7.5\"")] - public static ReadOnlySpan szOID_CMC_TRANSACTION_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_CMC_TRANSACTION_ID => "1.3.6.1.5.5.7.7.5"u8; [NativeTypeName("#define szOID_CMC_SENDER_NONCE \"1.3.6.1.5.5.7.7.6\"")] - public static ReadOnlySpan szOID_CMC_SENDER_NONCE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_CMC_SENDER_NONCE => "1.3.6.1.5.5.7.7.6"u8; [NativeTypeName("#define szOID_CMC_RECIPIENT_NONCE \"1.3.6.1.5.5.7.7.7\"")] - public static ReadOnlySpan szOID_CMC_RECIPIENT_NONCE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x37, 0x00 }; + public static ReadOnlySpan szOID_CMC_RECIPIENT_NONCE => "1.3.6.1.5.5.7.7.7"u8; [NativeTypeName("#define szOID_CMC_ADD_EXTENSIONS \"1.3.6.1.5.5.7.7.8\"")] - public static ReadOnlySpan szOID_CMC_ADD_EXTENSIONS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x38, 0x00 }; + public static ReadOnlySpan szOID_CMC_ADD_EXTENSIONS => "1.3.6.1.5.5.7.7.8"u8; [NativeTypeName("#define szOID_CMC_ENCRYPTED_POP \"1.3.6.1.5.5.7.7.9\"")] - public static ReadOnlySpan szOID_CMC_ENCRYPTED_POP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x39, 0x00 }; + public static ReadOnlySpan szOID_CMC_ENCRYPTED_POP => "1.3.6.1.5.5.7.7.9"u8; [NativeTypeName("#define szOID_CMC_DECRYPTED_POP \"1.3.6.1.5.5.7.7.10\"")] - public static ReadOnlySpan szOID_CMC_DECRYPTED_POP => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x30, 0x00 }; + public static ReadOnlySpan szOID_CMC_DECRYPTED_POP => "1.3.6.1.5.5.7.7.10"u8; [NativeTypeName("#define szOID_CMC_LRA_POP_WITNESS \"1.3.6.1.5.5.7.7.11\"")] - public static ReadOnlySpan szOID_CMC_LRA_POP_WITNESS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CMC_LRA_POP_WITNESS => "1.3.6.1.5.5.7.7.11"u8; [NativeTypeName("#define szOID_CMC_GET_CERT \"1.3.6.1.5.5.7.7.15\"")] - public static ReadOnlySpan szOID_CMC_GET_CERT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_CMC_GET_CERT => "1.3.6.1.5.5.7.7.15"u8; [NativeTypeName("#define szOID_CMC_GET_CRL \"1.3.6.1.5.5.7.7.16\"")] - public static ReadOnlySpan szOID_CMC_GET_CRL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x36, 0x00 }; + public static ReadOnlySpan szOID_CMC_GET_CRL => "1.3.6.1.5.5.7.7.16"u8; [NativeTypeName("#define szOID_CMC_REVOKE_REQUEST \"1.3.6.1.5.5.7.7.17\"")] - public static ReadOnlySpan szOID_CMC_REVOKE_REQUEST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x37, 0x00 }; + public static ReadOnlySpan szOID_CMC_REVOKE_REQUEST => "1.3.6.1.5.5.7.7.17"u8; [NativeTypeName("#define szOID_CMC_REG_INFO \"1.3.6.1.5.5.7.7.18\"")] - public static ReadOnlySpan szOID_CMC_REG_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x38, 0x00 }; + public static ReadOnlySpan szOID_CMC_REG_INFO => "1.3.6.1.5.5.7.7.18"u8; [NativeTypeName("#define szOID_CMC_RESPONSE_INFO \"1.3.6.1.5.5.7.7.19\"")] - public static ReadOnlySpan szOID_CMC_RESPONSE_INFO => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x31, 0x39, 0x00 }; + public static ReadOnlySpan szOID_CMC_RESPONSE_INFO => "1.3.6.1.5.5.7.7.19"u8; [NativeTypeName("#define szOID_CMC_QUERY_PENDING \"1.3.6.1.5.5.7.7.21\"")] - public static ReadOnlySpan szOID_CMC_QUERY_PENDING => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x32, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CMC_QUERY_PENDING => "1.3.6.1.5.5.7.7.21"u8; [NativeTypeName("#define szOID_CMC_ID_POP_LINK_RANDOM \"1.3.6.1.5.5.7.7.22\"")] - public static ReadOnlySpan szOID_CMC_ID_POP_LINK_RANDOM => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x32, 0x32, 0x00 }; + public static ReadOnlySpan szOID_CMC_ID_POP_LINK_RANDOM => "1.3.6.1.5.5.7.7.22"u8; [NativeTypeName("#define szOID_CMC_ID_POP_LINK_WITNESS \"1.3.6.1.5.5.7.7.23\"")] - public static ReadOnlySpan szOID_CMC_ID_POP_LINK_WITNESS => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x32, 0x33, 0x00 }; + public static ReadOnlySpan szOID_CMC_ID_POP_LINK_WITNESS => "1.3.6.1.5.5.7.7.23"u8; [NativeTypeName("#define szOID_CMC_ID_CONFIRM_CERT_ACCEPTANCE \"1.3.6.1.5.5.7.7.24\"")] - public static ReadOnlySpan szOID_CMC_ID_CONFIRM_CERT_ACCEPTANCE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x37, 0x2E, 0x32, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CMC_ID_CONFIRM_CERT_ACCEPTANCE => "1.3.6.1.5.5.7.7.24"u8; [NativeTypeName("#define szOID_CMC_ADD_ATTRIBUTES \"1.3.6.1.4.1.311.10.10.1\"")] - public static ReadOnlySpan szOID_CMC_ADD_ATTRIBUTES => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CMC_ADD_ATTRIBUTES => "1.3.6.1.4.1.311.10.10.1"u8; [NativeTypeName("#define szOID_LOYALTY_OTHER_LOGOTYPE \"1.3.6.1.5.5.7.20.1\"")] - public static ReadOnlySpan szOID_LOYALTY_OTHER_LOGOTYPE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x30, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_LOYALTY_OTHER_LOGOTYPE => "1.3.6.1.5.5.7.20.1"u8; [NativeTypeName("#define szOID_BACKGROUND_OTHER_LOGOTYPE \"1.3.6.1.5.5.7.20.2\"")] - public static ReadOnlySpan szOID_BACKGROUND_OTHER_LOGOTYPE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_BACKGROUND_OTHER_LOGOTYPE => "1.3.6.1.5.5.7.20.2"u8; [NativeTypeName("#define szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE \"1.3.6.1.5.5.7.48.1.1\"")] - public static ReadOnlySpan szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE => "1.3.6.1.5.5.7.48.1.1"u8; [NativeTypeName("#define szOID_CERT_STRONG_SIGN_OS_PREFIX \"1.3.6.1.4.1.311.72.1.\"")] - public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_PREFIX => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x31, 0x2E, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_PREFIX => "1.3.6.1.4.1.311.72.1."u8; [NativeTypeName("#define szOID_CERT_STRONG_SIGN_OS_1 \"1.3.6.1.4.1.311.72.1.1\"")] - public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_1 => "1.3.6.1.4.1.311.72.1.1"u8; [NativeTypeName("#define szOID_CERT_STRONG_SIGN_OS_CURRENT szOID_CERT_STRONG_SIGN_OS_1")] - public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_CURRENT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_CURRENT => "1.3.6.1.4.1.311.72.1.1"u8; [NativeTypeName("#define szOID_CERT_STRONG_KEY_OS_PREFIX \"1.3.6.1.4.1.311.72.2.\"")] - public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_PREFIX => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x32, 0x2E, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_PREFIX => "1.3.6.1.4.1.311.72.2."u8; [NativeTypeName("#define szOID_CERT_STRONG_KEY_OS_1 \"1.3.6.1.4.1.311.72.2.1\"")] - public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_1 => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_1 => "1.3.6.1.4.1.311.72.2.1"u8; [NativeTypeName("#define szOID_CERT_STRONG_KEY_OS_CURRENT szOID_CERT_STRONG_KEY_OS_1")] - public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_CURRENT => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_CERT_STRONG_KEY_OS_CURRENT => "1.3.6.1.4.1.311.72.2.1"u8; [NativeTypeName("#define szOID_PKCS_7_DATA \"1.2.840.113549.1.7.1\"")] - public static ReadOnlySpan szOID_PKCS_7_DATA => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_DATA => "1.2.840.113549.1.7.1"u8; [NativeTypeName("#define szOID_PKCS_7_SIGNED \"1.2.840.113549.1.7.2\"")] - public static ReadOnlySpan szOID_PKCS_7_SIGNED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_SIGNED => "1.2.840.113549.1.7.2"u8; [NativeTypeName("#define szOID_PKCS_7_ENVELOPED \"1.2.840.113549.1.7.3\"")] - public static ReadOnlySpan szOID_PKCS_7_ENVELOPED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_ENVELOPED => "1.2.840.113549.1.7.3"u8; [NativeTypeName("#define szOID_PKCS_7_SIGNEDANDENVELOPED \"1.2.840.113549.1.7.4\"")] - public static ReadOnlySpan szOID_PKCS_7_SIGNEDANDENVELOPED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_SIGNEDANDENVELOPED => "1.2.840.113549.1.7.4"u8; [NativeTypeName("#define szOID_PKCS_7_DIGESTED \"1.2.840.113549.1.7.5\"")] - public static ReadOnlySpan szOID_PKCS_7_DIGESTED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_DIGESTED => "1.2.840.113549.1.7.5"u8; [NativeTypeName("#define szOID_PKCS_7_ENCRYPTED \"1.2.840.113549.1.7.6\"")] - public static ReadOnlySpan szOID_PKCS_7_ENCRYPTED => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x37, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_PKCS_7_ENCRYPTED => "1.2.840.113549.1.7.6"u8; [NativeTypeName("#define szOID_PKCS_9_CONTENT_TYPE \"1.2.840.113549.1.9.3\"")] - public static ReadOnlySpan szOID_PKCS_9_CONTENT_TYPE => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_9_CONTENT_TYPE => "1.2.840.113549.1.9.3"u8; [NativeTypeName("#define szOID_PKCS_9_MESSAGE_DIGEST \"1.2.840.113549.1.9.4\"")] - public static ReadOnlySpan szOID_PKCS_9_MESSAGE_DIGEST => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_9_MESSAGE_DIGEST => "1.2.840.113549.1.9.4"u8; [NativeTypeName("#define szOID_CERT_PROP_ID_PREFIX \"1.3.6.1.4.1.311.10.11.\"")] - public static ReadOnlySpan szOID_CERT_PROP_ID_PREFIX => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x00 }; + public static ReadOnlySpan szOID_CERT_PROP_ID_PREFIX => "1.3.6.1.4.1.311.10.11."u8; [NativeTypeName("#define szOID_CERT_KEY_IDENTIFIER_PROP_ID \"1.3.6.1.4.1.311.10.11.20\"")] - public static ReadOnlySpan szOID_CERT_KEY_IDENTIFIER_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x32, 0x30, 0x00 }; + public static ReadOnlySpan szOID_CERT_KEY_IDENTIFIER_PROP_ID => "1.3.6.1.4.1.311.10.11.20"u8; [NativeTypeName("#define szOID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID \"1.3.6.1.4.1.311.10.11.28\"")] - public static ReadOnlySpan szOID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x32, 0x38, 0x00 }; + public static ReadOnlySpan szOID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID => "1.3.6.1.4.1.311.10.11.28"u8; [NativeTypeName("#define szOID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID \"1.3.6.1.4.1.311.10.11.29\"")] - public static ReadOnlySpan szOID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x32, 0x39, 0x00 }; + public static ReadOnlySpan szOID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID => "1.3.6.1.4.1.311.10.11.29"u8; [NativeTypeName("#define szOID_CERT_MD5_HASH_PROP_ID \"1.3.6.1.4.1.311.10.11.4\"")] - public static ReadOnlySpan szOID_CERT_MD5_HASH_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CERT_MD5_HASH_PROP_ID => "1.3.6.1.4.1.311.10.11.4"u8; [NativeTypeName("#define szOID_CERT_SIGNATURE_HASH_PROP_ID \"1.3.6.1.4.1.311.10.11.15\"")] - public static ReadOnlySpan szOID_CERT_SIGNATURE_HASH_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_CERT_SIGNATURE_HASH_PROP_ID => "1.3.6.1.4.1.311.10.11.15"u8; [NativeTypeName("#define szOID_DISALLOWED_HASH szOID_CERT_SIGNATURE_HASH_PROP_ID")] - public static ReadOnlySpan szOID_DISALLOWED_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + public static ReadOnlySpan szOID_DISALLOWED_HASH => "1.3.6.1.4.1.311.10.11.15"u8; [NativeTypeName("#define szOID_CERT_DISALLOWED_FILETIME_PROP_ID \"1.3.6.1.4.1.311.10.11.104\"")] - public static ReadOnlySpan szOID_CERT_DISALLOWED_FILETIME_PROP_ID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x34, 0x00 }; + public static ReadOnlySpan szOID_CERT_DISALLOWED_FILETIME_PROP_ID => "1.3.6.1.4.1.311.10.11.104"u8; [NativeTypeName("#define szOID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION \"1.3.6.1.4.1.311.60.3.1\"")] - public static ReadOnlySpan szOID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION => "1.3.6.1.4.1.311.60.3.1"u8; [NativeTypeName("#define szOID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION \"1.3.6.1.4.1.311.60.3.2\"")] - public static ReadOnlySpan szOID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION => "1.3.6.1.4.1.311.60.3.2"u8; [NativeTypeName("#define szOID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL \"1.3.6.1.4.1.311.60.3.3\"")] - public static ReadOnlySpan szOID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x33, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL => "1.3.6.1.4.1.311.60.3.3"u8; [NativeTypeName("#define szOID_PKCS_12_PbeIds \"1.2.840.113549.1.12.1\"")] - public static ReadOnlySpan szOID_PKCS_12_PbeIds => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_PbeIds => "1.2.840.113549.1.12.1"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And128BitRC4 \"1.2.840.113549.1.12.1.1\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And128BitRC4 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And128BitRC4 => "1.2.840.113549.1.12.1.1"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And40BitRC4 \"1.2.840.113549.1.12.1.2\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And40BitRC4 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And40BitRC4 => "1.2.840.113549.1.12.1.2"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES \"1.2.840.113549.1.12.1.3\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES => "1.2.840.113549.1.12.1.3"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And2KeyTripleDES \"1.2.840.113549.1.12.1.4\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And2KeyTripleDES => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And2KeyTripleDES => "1.2.840.113549.1.12.1.4"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And128BitRC2 \"1.2.840.113549.1.12.1.5\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And128BitRC2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x35, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And128BitRC2 => "1.2.840.113549.1.12.1.5"u8; [NativeTypeName("#define szOID_PKCS_12_pbeWithSHA1And40BitRC2 \"1.2.840.113549.1.12.1.6\"")] - public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And40BitRC2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x31, 0x2E, 0x36, 0x00 }; + public static ReadOnlySpan szOID_PKCS_12_pbeWithSHA1And40BitRC2 => "1.2.840.113549.1.12.1.6"u8; [NativeTypeName("#define szOID_PKCS_5_PBKDF2 \"1.2.840.113549.1.5.12\"")] - public static ReadOnlySpan szOID_PKCS_5_PBKDF2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x31, 0x32, 0x00 }; + public static ReadOnlySpan szOID_PKCS_5_PBKDF2 => "1.2.840.113549.1.5.12"u8; [NativeTypeName("#define szOID_PKCS_5_PBES2 \"1.2.840.113549.1.5.13\"")] - public static ReadOnlySpan szOID_PKCS_5_PBES2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x31, 0x33, 0x00 }; + public static ReadOnlySpan szOID_PKCS_5_PBES2 => "1.2.840.113549.1.5.13"u8; } diff --git a/sources/Interop/Windows/Windows/um/wingdi/AXESLISTA.cs b/sources/Interop/Windows/Windows/um/wingdi/AXESLISTA.cs index 7d21e4b933..96cf2ec8a5 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/AXESLISTA.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/AXESLISTA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -44,6 +45,7 @@ public partial struct _axlAxisInfo_e__FixedBuffer public AXISINFOA e14; public AXISINFOA e15; + [UnscopedRef] public ref AXISINFOA this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -54,6 +56,7 @@ public ref AXISINFOA this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/AXESLISTW.cs b/sources/Interop/Windows/Windows/um/wingdi/AXESLISTW.cs index 0dcb0177be..9cb536f853 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/AXESLISTW.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/AXESLISTW.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -44,6 +45,7 @@ public partial struct _axlAxisInfo_e__FixedBuffer public AXISINFOW e14; public AXISINFOW e15; + [UnscopedRef] public ref AXISINFOW this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -54,6 +56,7 @@ public ref AXISINFOW this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/BITMAPCOREINFO.cs b/sources/Interop/Windows/Windows/um/wingdi/BITMAPCOREINFO.cs index e85fead687..15cebb0e61 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/BITMAPCOREINFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/BITMAPCOREINFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _bmciColors_e__FixedBuffer { public RGBTRIPLE e0; + [UnscopedRef] public ref RGBTRIPLE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref RGBTRIPLE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/BITMAPINFO.cs b/sources/Interop/Windows/Windows/um/wingdi/BITMAPINFO.cs index be7012ff3f..94b39e0c71 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/BITMAPINFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/BITMAPINFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public partial struct _bmiColors_e__FixedBuffer { public RGBQUAD e0; + [UnscopedRef] public ref RGBQUAD this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public ref RGBQUAD this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DEVMODEA.cs b/sources/Interop/Windows/Windows/um/wingdi/DEVMODEA.cs index 670cd82111..c2d8b4fa76 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DEVMODEA.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DEVMODEA.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -115,132 +116,145 @@ public unsafe partial struct DEVMODEA public uint dmPanningHeight; /// + [UnscopedRef] public ref short dmOrientation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmOrientation, 1)); + return ref Anonymous1.Anonymous1.dmOrientation; } } /// + [UnscopedRef] public ref short dmPaperSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperSize, 1)); + return ref Anonymous1.Anonymous1.dmPaperSize; } } /// + [UnscopedRef] public ref short dmPaperLength { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperLength, 1)); + return ref Anonymous1.Anonymous1.dmPaperLength; } } /// + [UnscopedRef] public ref short dmPaperWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperWidth, 1)); + return ref Anonymous1.Anonymous1.dmPaperWidth; } } /// + [UnscopedRef] public ref short dmScale { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmScale, 1)); + return ref Anonymous1.Anonymous1.dmScale; } } /// + [UnscopedRef] public ref short dmCopies { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmCopies, 1)); + return ref Anonymous1.Anonymous1.dmCopies; } } /// + [UnscopedRef] public ref short dmDefaultSource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmDefaultSource, 1)); + return ref Anonymous1.Anonymous1.dmDefaultSource; } } /// + [UnscopedRef] public ref short dmPrintQuality { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPrintQuality, 1)); + return ref Anonymous1.Anonymous1.dmPrintQuality; } } /// + [UnscopedRef] public ref POINTL dmPosition { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmPosition, 1)); + return ref Anonymous1.Anonymous2.dmPosition; } } /// + [UnscopedRef] public ref uint dmDisplayOrientation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmDisplayOrientation, 1)); + return ref Anonymous1.Anonymous2.dmDisplayOrientation; } } /// + [UnscopedRef] public ref uint dmDisplayFixedOutput { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmDisplayFixedOutput, 1)); + return ref Anonymous1.Anonymous2.dmDisplayFixedOutput; } } /// + [UnscopedRef] public ref uint dmDisplayFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dmDisplayFlags, 1)); + return ref Anonymous2.dmDisplayFlags; } } /// + [UnscopedRef] public ref uint dmNup { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dmNup, 1)); + return ref Anonymous2.dmNup; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DEVMODEW.cs b/sources/Interop/Windows/Windows/um/wingdi/DEVMODEW.cs index 1a688dfff5..32263b1458 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DEVMODEW.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DEVMODEW.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -115,132 +116,145 @@ public unsafe partial struct DEVMODEW public uint dmPanningHeight; /// + [UnscopedRef] public ref short dmOrientation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmOrientation, 1)); + return ref Anonymous1.Anonymous1.dmOrientation; } } /// + [UnscopedRef] public ref short dmPaperSize { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperSize, 1)); + return ref Anonymous1.Anonymous1.dmPaperSize; } } /// + [UnscopedRef] public ref short dmPaperLength { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperLength, 1)); + return ref Anonymous1.Anonymous1.dmPaperLength; } } /// + [UnscopedRef] public ref short dmPaperWidth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPaperWidth, 1)); + return ref Anonymous1.Anonymous1.dmPaperWidth; } } /// + [UnscopedRef] public ref short dmScale { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmScale, 1)); + return ref Anonymous1.Anonymous1.dmScale; } } /// + [UnscopedRef] public ref short dmCopies { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmCopies, 1)); + return ref Anonymous1.Anonymous1.dmCopies; } } /// + [UnscopedRef] public ref short dmDefaultSource { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmDefaultSource, 1)); + return ref Anonymous1.Anonymous1.dmDefaultSource; } } /// + [UnscopedRef] public ref short dmPrintQuality { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous1.dmPrintQuality, 1)); + return ref Anonymous1.Anonymous1.dmPrintQuality; } } /// + [UnscopedRef] public ref POINTL dmPosition { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmPosition, 1)); + return ref Anonymous1.Anonymous2.dmPosition; } } /// + [UnscopedRef] public ref uint dmDisplayOrientation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmDisplayOrientation, 1)); + return ref Anonymous1.Anonymous2.dmDisplayOrientation; } } /// + [UnscopedRef] public ref uint dmDisplayFixedOutput { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Anonymous2.dmDisplayFixedOutput, 1)); + return ref Anonymous1.Anonymous2.dmDisplayFixedOutput; } } /// + [UnscopedRef] public ref uint dmDisplayFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dmDisplayFlags, 1)); + return ref Anonymous2.dmDisplayFlags; } } /// + [UnscopedRef] public ref uint dmNup { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.dmNup, 1)); + return ref Anonymous2.dmNup; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO.cs index 8338741d7e..faa6aa6d9f 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -106,12 +107,13 @@ public uint reserved } /// + [UnscopedRef] public ref uint value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.value, 1)); + return ref Anonymous.value; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_MODE_INFO.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_MODE_INFO.cs index e063ed6962..285fb3f4e2 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_MODE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_MODE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -27,33 +28,36 @@ public partial struct DISPLAYCONFIG_MODE_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref DISPLAYCONFIG_TARGET_MODE targetMode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.targetMode, 1)); + return ref Anonymous.targetMode; } } /// + [UnscopedRef] public ref DISPLAYCONFIG_SOURCE_MODE sourceMode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.sourceMode, 1)); + return ref Anonymous.sourceMode; } } /// [SupportedOSPlatform("windows10.0.17763.0")] + [UnscopedRef] public ref DISPLAYCONFIG_DESKTOP_IMAGE_INFO desktopImageInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.desktopImageInfo, 1)); + return ref Anonymous.desktopImageInfo; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_SOURCE_INFO.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_SOURCE_INFO.cs index 96e476da5a..0b1720e456 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_SOURCE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_SOURCE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -27,12 +28,13 @@ public partial struct DISPLAYCONFIG_PATH_SOURCE_INFO public uint statusFlags; /// + [UnscopedRef] public ref uint modeInfoIdx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.modeInfoIdx, 1)); + return ref Anonymous.modeInfoIdx; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_TARGET_INFO.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_TARGET_INFO.cs index 7183e1bb89..e7f4865f98 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_TARGET_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_PATH_TARGET_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -45,12 +46,13 @@ public partial struct DISPLAYCONFIG_PATH_TARGET_INFO public uint statusFlags; /// + [UnscopedRef] public ref uint modeInfoIdx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.modeInfoIdx, 1)); + return ref Anonymous.modeInfoIdx; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE.cs index 81d4364d3d..6908f50287 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -51,12 +52,13 @@ public uint reserved } /// + [UnscopedRef] public ref uint value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.value, 1)); + return ref Anonymous.value; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_TARGET_PERSISTENCE.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_TARGET_PERSISTENCE.cs index 60baebbffb..879ee6c73e 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_TARGET_PERSISTENCE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SET_TARGET_PERSISTENCE.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -51,12 +52,13 @@ public uint reserved } /// + [UnscopedRef] public ref uint value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.value, 1)); + return ref Anonymous.value; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION.cs index f3b157d9a1..7812727017 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -53,12 +54,13 @@ public uint reserved } /// + [UnscopedRef] public ref uint value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.value, 1)); + return ref Anonymous.value; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS.cs index d8f817eaea..478055b46a 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -80,12 +81,13 @@ public uint reserved } /// + [UnscopedRef] public ref uint value { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.value, 1)); + return ref Anonymous.value; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_VIDEO_SIGNAL_INFO.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_VIDEO_SIGNAL_INFO.cs index 0ea171efac..223f5c0f08 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_VIDEO_SIGNAL_INFO.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG_VIDEO_SIGNAL_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,22 +36,24 @@ public partial struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO public DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering; /// + [UnscopedRef] public ref _Anonymous_e__Union._AdditionalSignalInfo_e__Struct AdditionalSignalInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.AdditionalSignalInfo, 1)); + return ref Anonymous.AdditionalSignalInfo; } } /// + [UnscopedRef] public ref uint videoStandard { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.videoStandard, 1)); + return ref Anonymous.videoStandard; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRGRADIENTFILL.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRGRADIENTFILL.cs index dd5e0fd2cf..92218cde26 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRGRADIENTFILL.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRGRADIENTFILL.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,6 +40,7 @@ public partial struct _Ver_e__FixedBuffer { public TRIVERTEX e0; + [UnscopedRef] public ref TRIVERTEX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref TRIVERTEX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPLGBLT.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPLGBLT.cs index 40f08f2c73..82ef5f93fa 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPLGBLT.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPLGBLT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -99,6 +100,7 @@ public partial struct _aptlDest_e__FixedBuffer public POINTL e1; public POINTL e2; + [UnscopedRef] public ref POINTL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -109,6 +111,7 @@ public ref POINTL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW.cs index 518f42c3d5..3f47a5582d 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _aptl_e__FixedBuffer { public POINTL e0; + [UnscopedRef] public ref POINTL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref POINTL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW16.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW16.cs index 49079fe3ac..1cacbaeae0 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW16.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYDRAW16.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _apts_e__FixedBuffer { public POINTS e0; + [UnscopedRef] public ref POINTS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref POINTS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE.cs index 204def4ee6..2706e6b15d 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,6 +32,7 @@ public partial struct _aptl_e__FixedBuffer { public POINTL e0; + [UnscopedRef] public ref POINTL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +43,7 @@ public ref POINTL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE16.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE16.cs index 7f756b7c39..39ec63eedd 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE16.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYLINE16.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,6 +32,7 @@ public partial struct _apts_e__FixedBuffer { public POINTS e0; + [UnscopedRef] public ref POINTS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +43,7 @@ public ref POINTS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE.cs index f123bc9d34..329f1bdfa6 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,6 +40,7 @@ public partial struct _aptl_e__FixedBuffer { public POINTL e0; + [UnscopedRef] public ref POINTL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref POINTL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE16.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE16.cs index 38ebcd1250..5f5965009b 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE16.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYPOLYLINE16.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,6 +40,7 @@ public partial struct _apts_e__FixedBuffer { public POINTS e0; + [UnscopedRef] public ref POINTS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref POINTS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYTEXTOUTA.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYTEXTOUTA.cs index 29cca761fc..88b936afa4 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYTEXTOUTA.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRPOLYTEXTOUTA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _aemrtext_e__FixedBuffer { public EMRTEXT e0; + [UnscopedRef] public ref EMRTEXT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref EMRTEXT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/EMRSETPALETTEENTRIES.cs b/sources/Interop/Windows/Windows/um/wingdi/EMRSETPALETTEENTRIES.cs index c40b41c0d0..0887e7d081 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/EMRSETPALETTEENTRIES.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/EMRSETPALETTEENTRIES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,6 +37,7 @@ public partial struct _aPalEntries_e__FixedBuffer { public PALETTEENTRY e0; + [UnscopedRef] public ref PALETTEENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -46,6 +48,7 @@ public ref PALETTEENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/GLYPHSET.cs b/sources/Interop/Windows/Windows/um/wingdi/GLYPHSET.cs index 7b79f1793a..db8d6b3e2e 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/GLYPHSET.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/GLYPHSET.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _ranges_e__FixedBuffer { public WCRANGE e0; + [UnscopedRef] public ref WCRANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref WCRANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/LOGPALETTE.cs b/sources/Interop/Windows/Windows/um/wingdi/LOGPALETTE.cs index 36ed13ebda..2da6e84353 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/LOGPALETTE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/LOGPALETTE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _palPalEntry_e__FixedBuffer { public PALETTEENTRY e0; + [UnscopedRef] public ref PALETTEENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref PALETTEENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/TTPOLYCURVE.cs b/sources/Interop/Windows/Windows/um/wingdi/TTPOLYCURVE.cs index a4376bd20d..466bcd93f3 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/TTPOLYCURVE.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/TTPOLYCURVE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _apfx_e__FixedBuffer { public POINTFX e0; + [UnscopedRef] public ref POINTFX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref POINTFX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winhttp/WINHTTP_EXTENDED_HEADER.cs b/sources/Interop/Windows/Windows/um/winhttp/WINHTTP_EXTENDED_HEADER.cs index 93a07a68ac..c1e24aebff 100644 --- a/sources/Interop/Windows/Windows/um/winhttp/WINHTTP_EXTENDED_HEADER.cs +++ b/sources/Interop/Windows/Windows/um/winhttp/WINHTTP_EXTENDED_HEADER.cs @@ -3,6 +3,7 @@ // Ported from um/winhttp.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,42 +21,46 @@ public unsafe partial struct WINHTTP_EXTENDED_HEADER public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref ushort* pwszName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pwszName; + return ref Anonymous1.pwszName; } } /// + [UnscopedRef] public ref sbyte* pszName { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous1.pszName; + return ref Anonymous1.pszName; } } /// + [UnscopedRef] public ref ushort* pwszValue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pwszValue; + return ref Anonymous2.pwszValue; } } /// + [UnscopedRef] public ref sbyte* pszValue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.pszValue; + return ref Anonymous2.pszValue; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/BIN_RESULTS.cs b/sources/Interop/Windows/Windows/um/winioctl/BIN_RESULTS.cs index 567d6d5d18..5e5bd14a4e 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/BIN_RESULTS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/BIN_RESULTS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _BinCounts_e__FixedBuffer { public BIN_COUNT e0; + [UnscopedRef] public ref BIN_COUNT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref BIN_COUNT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/BOOT_AREA_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/BOOT_AREA_INFO.cs index 3b128ec567..9973be68d7 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/BOOT_AREA_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/BOOT_AREA_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _BootSectors_e__FixedBuffer public _Anonymous_e__Struct e0; public _Anonymous_e__Struct e1; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/CREATE_DISK.cs b/sources/Interop/Windows/Windows/um/winioctl/CREATE_DISK.cs index 3467911416..afecd756e2 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/CREATE_DISK.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/CREATE_DISK.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct CREATE_DISK public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref CREATE_DISK_MBR Mbr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Mbr, 1)); + return ref Anonymous.Mbr; } } /// + [UnscopedRef] public ref CREATE_DISK_GPT Gpt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Gpt, 1)); + return ref Anonymous.Gpt; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_PUBLIC_SUBSECTION.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_PUBLIC_SUBSECTION.cs index 2c5b4c3492..9955e2cbb6 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_PUBLIC_SUBSECTION.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_PUBLIC_SUBSECTION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,6 +51,7 @@ public partial struct _GPLogTable_e__FixedBuffer public GP_LOG_PAGE_DESCRIPTOR e14; public GP_LOG_PAGE_DESCRIPTOR e15; + [UnscopedRef] public ref GP_LOG_PAGE_DESCRIPTOR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -60,6 +62,7 @@ public ref GP_LOG_PAGE_DESCRIPTOR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP.cs index ca29c040a2..595bb9cc73 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _RecordArray_e__FixedBuffer { public DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD e0; + [UnscopedRef] public ref DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_NOTIFICATION_PARAMETERS.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_NOTIFICATION_PARAMETERS.cs index eafb8d2a3d..ae8d54fa8b 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_NOTIFICATION_PARAMETERS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_NOTIFICATION_PARAMETERS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _FileTypeID_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT.cs index 514dd3e756..a6c5ad38a8 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _Ranges_e__FixedBuffer { public DEVICE_STORAGE_ADDRESS_RANGE e0; + [UnscopedRef] public ref DEVICE_STORAGE_ADDRESS_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref DEVICE_STORAGE_ADDRESS_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_RANGE_ERROR_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_RANGE_ERROR_INFO.cs index f9ba3da8f9..7708cf1253 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_RANGE_ERROR_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_RANGE_ERROR_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _Ranges_e__FixedBuffer { public DEVICE_STORAGE_RANGE_ATTRIBUTES e0; + [UnscopedRef] public ref DEVICE_STORAGE_RANGE_ATTRIBUTES this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref DEVICE_STORAGE_RANGE_ATTRIBUTES this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_REPORT_ZONES_DATA.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_REPORT_ZONES_DATA.cs index aad4c34770..bd4bada933 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_REPORT_ZONES_DATA.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_REPORT_ZONES_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,6 +37,7 @@ public partial struct _ZoneDescriptors_e__FixedBuffer { public STORAGE_ZONE_DESCRIPTOR e0; + [UnscopedRef] public ref STORAGE_ZONE_DESCRIPTOR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -46,6 +48,7 @@ public ref STORAGE_ZONE_DESCRIPTOR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_INPUT.cs index 295af7ecf7..5848b9d303 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _TierIds_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_OUTPUT.cs index 1aabe5d2cf..886ff8cb31 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_DSM_TIERING_QUERY_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,6 +50,7 @@ public partial struct _Regions_e__FixedBuffer { public STORAGE_TIER_REGION e0; + [UnscopedRef] public ref STORAGE_TIER_REGION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref STORAGE_TIER_REGION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_LOCATION.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_LOCATION.cs index d440d96b18..80ab1b431a 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_LOCATION.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_LOCATION.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,42 +33,46 @@ public partial struct DEVICE_LOCATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Channel { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.Channel, 1)); + return ref Anonymous.Anonymous1.Channel; } } /// + [UnscopedRef] public ref uint Device { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous1.Device, 1)); + return ref Anonymous.Anonymous1.Device; } } /// + [UnscopedRef] public ref uint Target { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2.Target, 1)); + return ref Anonymous.Anonymous2.Target; } } /// + [UnscopedRef] public ref uint Lun { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous2.Lun, 1)); + return ref Anonymous.Anonymous2.Lun; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_STORAGE_RANGE_ATTRIBUTES.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_STORAGE_RANGE_ATTRIBUTES.cs index 9616a797de..265823d10d 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DEVICE_STORAGE_RANGE_ATTRIBUTES.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE_STORAGE_RANGE_ATTRIBUTES.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,12 +25,13 @@ public partial struct DEVICE_STORAGE_RANGE_ATTRIBUTES public uint Reserved; /// + [UnscopedRef] public ref uint AllFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.AllFlags, 1)); + return ref Anonymous.AllFlags; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DISK_CACHE_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winioctl/DISK_CACHE_INFORMATION.cs index def9feb1b8..41828aa363 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DISK_CACHE_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DISK_CACHE_INFORMATION.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -42,22 +43,24 @@ public partial struct DISK_CACHE_INFORMATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._ScalarPrefetch_e__Struct ScalarPrefetch { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ScalarPrefetch, 1)); + return ref Anonymous.ScalarPrefetch; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._BlockPrefetch_e__Struct BlockPrefetch { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.BlockPrefetch, 1)); + return ref Anonymous.BlockPrefetch; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DISK_DETECTION_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/DISK_DETECTION_INFO.cs index ed4262bdcb..1b4a8b5b15 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DISK_DETECTION_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DISK_DETECTION_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,22 +24,24 @@ public partial struct DISK_DETECTION_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref DISK_INT13_INFO Int13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Int13, 1)); + return ref Anonymous.Anonymous.Int13; } } /// + [UnscopedRef] public ref DISK_EX_INT13_INFO ExInt13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.ExInt13, 1)); + return ref Anonymous.Anonymous.ExInt13; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DISK_PARTITION_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/DISK_PARTITION_INFO.cs index 93b6d3818b..320e590fa7 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DISK_PARTITION_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DISK_PARTITION_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,22 +25,24 @@ public partial struct DISK_PARTITION_INFO public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._Mbr_e__Struct Mbr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Mbr, 1)); + return ref Anonymous.Mbr; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._Gpt_e__Struct Gpt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Gpt, 1)); + return ref Anonymous.Gpt; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION.cs index d38208c40c..e83ba409cd 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _PartitionEntry_e__FixedBuffer { public PARTITION_INFORMATION e0; + [UnscopedRef] public ref PARTITION_INFORMATION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref PARTITION_INFORMATION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION_EX.cs b/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION_EX.cs index 8f61477140..208dc005cd 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION_EX.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/DRIVE_LAYOUT_INFORMATION_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,22 +30,24 @@ public partial struct DRIVE_LAYOUT_INFORMATION_EX public _PartitionEntry_e__FixedBuffer PartitionEntry; /// + [UnscopedRef] public ref DRIVE_LAYOUT_INFORMATION_MBR Mbr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Mbr, 1)); + return ref Anonymous.Mbr; } } /// + [UnscopedRef] public ref DRIVE_LAYOUT_INFORMATION_GPT Gpt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Gpt, 1)); + return ref Anonymous.Gpt; } } @@ -66,6 +69,7 @@ public partial struct _PartitionEntry_e__FixedBuffer { public PARTITION_INFORMATION_EX e0; + [UnscopedRef] public ref PARTITION_INFORMATION_EX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -76,6 +80,7 @@ public ref PARTITION_INFORMATION_EX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FILE_LEVEL_TRIM.cs b/sources/Interop/Windows/Windows/um/winioctl/FILE_LEVEL_TRIM.cs index 2f33079aab..8af8992e79 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FILE_LEVEL_TRIM.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FILE_LEVEL_TRIM.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -31,6 +32,7 @@ public partial struct _Ranges_e__FixedBuffer { public FILE_LEVEL_TRIM_RANGE e0; + [UnscopedRef] public ref FILE_LEVEL_TRIM_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +43,7 @@ public ref FILE_LEVEL_TRIM_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FILE_OBJECTID_BUFFER.cs b/sources/Interop/Windows/Windows/um/winioctl/FILE_OBJECTID_BUFFER.cs index 34405e0146..b6bf0db2cb 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FILE_OBJECTID_BUFFER.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FILE_OBJECTID_BUFFER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -21,6 +22,7 @@ public unsafe partial struct FILE_OBJECTID_BUFFER public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public Span BirthVolumeId { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -31,6 +33,7 @@ public Span BirthVolumeId } /// + [UnscopedRef] public Span BirthObjectId { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +44,7 @@ public Span BirthObjectId } /// + [UnscopedRef] public Span DomainId { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +55,7 @@ public Span DomainId } /// + [UnscopedRef] public Span ExtendedInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winioctl/FILE_REGION_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/FILE_REGION_OUTPUT.cs index 96cec90b11..4284060375 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FILE_REGION_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FILE_REGION_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _Region_e__FixedBuffer { public FILE_REGION_INFO e0; + [UnscopedRef] public ref FILE_REGION_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref FILE_REGION_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FILE_TYPE_NOTIFICATION_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/FILE_TYPE_NOTIFICATION_INPUT.cs index 159e892b19..8a1372d041 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FILE_TYPE_NOTIFICATION_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FILE_TYPE_NOTIFICATION_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _FileTypeID_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_INPUT.cs index ede138743c..f0535229ce 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _TierIds_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_OUTPUT.cs index b8c2b0e868..b2d2f6f29f 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_REGION_INFO_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,6 +50,7 @@ public partial struct _Regions_e__FixedBuffer { public FILE_STORAGE_TIER_REGION e0; + [UnscopedRef] public ref FILE_STORAGE_TIER_REGION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref FILE_STORAGE_TIER_REGION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_STORAGE_CLASSES_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_STORAGE_CLASSES_OUTPUT.cs index 0769ad1085..1994a3dd28 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_STORAGE_CLASSES_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/FSCTL_QUERY_STORAGE_CLASSES_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _Tiers_e__FixedBuffer { public FILE_STORAGE_TIER e0; + [UnscopedRef] public ref FILE_STORAGE_TIER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref FILE_STORAGE_TIER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/GET_MEDIA_TYPES.cs b/sources/Interop/Windows/Windows/um/winioctl/GET_MEDIA_TYPES.cs index 14f9d2e557..5ae82dad82 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/GET_MEDIA_TYPES.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/GET_MEDIA_TYPES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _MediaInfo_e__FixedBuffer { public DEVICE_MEDIA_INFO e0; + [UnscopedRef] public ref DEVICE_MEDIA_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref DEVICE_MEDIA_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/LOOKUP_STREAM_FROM_CLUSTER_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/LOOKUP_STREAM_FROM_CLUSTER_INPUT.cs index c68f868acb..8a8b4aae59 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/LOOKUP_STREAM_FROM_CLUSTER_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/LOOKUP_STREAM_FROM_CLUSTER_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _Cluster_e__FixedBuffer { public LARGE_INTEGER e0; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO.cs index 95658145ce..ee9e41850e 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,22 +24,24 @@ public partial struct MARK_HANDLE_INFO public uint HandleInfo; /// + [UnscopedRef] public ref uint UsnSourceInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UsnSourceInfo, 1)); + return ref Anonymous.UsnSourceInfo; } } /// + [UnscopedRef] public ref uint CopyNumber { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.CopyNumber, 1)); + return ref Anonymous.CopyNumber; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO32.cs b/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO32.cs index bc9d831c8a..790f00b614 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO32.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/MARK_HANDLE_INFO32.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -26,22 +27,24 @@ public partial struct MARK_HANDLE_INFO32 public uint HandleInfo; /// + [UnscopedRef] public ref uint UsnSourceInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UsnSourceInfo, 1)); + return ref Anonymous.UsnSourceInfo; } } /// + [UnscopedRef] public ref uint CopyNumber { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.CopyNumber, 1)); + return ref Anonymous.CopyNumber; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/PARTITION_INFORMATION_EX.cs b/sources/Interop/Windows/Windows/um/winioctl/PARTITION_INFORMATION_EX.cs index cd5f190693..1b7777e1ad 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/PARTITION_INFORMATION_EX.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/PARTITION_INFORMATION_EX.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,22 +38,24 @@ public partial struct PARTITION_INFORMATION_EX public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref PARTITION_INFORMATION_MBR Mbr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Mbr, 1)); + return ref Anonymous.Mbr; } } /// + [UnscopedRef] public ref PARTITION_INFORMATION_GPT Gpt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Gpt, 1)); + return ref Anonymous.Gpt; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/PERF_BIN.cs b/sources/Interop/Windows/Windows/um/winioctl/PERF_BIN.cs index 7050482bdd..79a02b7423 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/PERF_BIN.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/PERF_BIN.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _BinsRanges_e__FixedBuffer { public BIN_RANGE e0; + [UnscopedRef] public ref BIN_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref BIN_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT_RESERVE_COMMAND.cs b/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT_RESERVE_COMMAND.cs index bd92b789b5..d35e48cbae 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT_RESERVE_COMMAND.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT_RESERVE_COMMAND.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,22 +25,24 @@ public partial struct PERSISTENT_RESERVE_COMMAND public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._PR_IN_e__Struct PR_IN { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PR_IN, 1)); + return ref Anonymous.PR_IN; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._PR_OUT_e__Struct PR_OUT { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PR_OUT, 1)); + return ref Anonymous.PR_OUT; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/PHYSICAL_ELEMENT_STATUS.cs b/sources/Interop/Windows/Windows/um/winioctl/PHYSICAL_ELEMENT_STATUS.cs index 797b24d4a8..2340da6ac1 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/PHYSICAL_ELEMENT_STATUS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/PHYSICAL_ELEMENT_STATUS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -45,6 +46,7 @@ public partial struct _Descriptors_e__FixedBuffer { public PHYSICAL_ELEMENT_STATUS_DESCRIPTOR e0; + [UnscopedRef] public ref PHYSICAL_ELEMENT_STATUS_DESCRIPTOR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -55,6 +57,7 @@ public ref PHYSICAL_ELEMENT_STATUS_DESCRIPTOR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_INPUT.cs index a3341f1898..72d5b554cd 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _Ranges_e__FixedBuffer { public QUERY_BAD_RANGES_INPUT_RANGE e0; + [UnscopedRef] public ref QUERY_BAD_RANGES_INPUT_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref QUERY_BAD_RANGES_INPUT_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_OUTPUT.cs index 53e363b8cc..6570b47597 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/QUERY_BAD_RANGES_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _BadRanges_e__FixedBuffer { public QUERY_BAD_RANGES_OUTPUT_RANGE e0; + [UnscopedRef] public ref QUERY_BAD_RANGES_OUTPUT_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref QUERY_BAD_RANGES_OUTPUT_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/QUERY_FILE_LAYOUT_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/QUERY_FILE_LAYOUT_INPUT.cs index 63b723fa53..96845643b1 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/QUERY_FILE_LAYOUT_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/QUERY_FILE_LAYOUT_INPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,22 +33,24 @@ public partial struct QUERY_FILE_LAYOUT_INPUT public _Filter_e__Union Filter; /// + [UnscopedRef] public ref uint FilterEntryCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FilterEntryCount, 1)); + return ref Anonymous.FilterEntryCount; } } /// + [UnscopedRef] public ref uint NumberOfPairs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NumberOfPairs, 1)); + return ref Anonymous.NumberOfPairs; } } @@ -90,6 +93,7 @@ public partial struct _ClusterRanges_e__FixedBuffer { public CLUSTER_RANGE e0; + [UnscopedRef] public ref CLUSTER_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -100,6 +104,7 @@ public ref CLUSTER_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } @@ -108,6 +113,7 @@ public partial struct _FileReferenceRanges_e__FixedBuffer { public FILE_REFERENCE_RANGE e0; + [UnscopedRef] public ref FILE_REFERENCE_RANGE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -118,6 +124,7 @@ public ref FILE_REFERENCE_RANGE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } @@ -126,6 +133,7 @@ public partial struct _StorageReserveIds_e__FixedBuffer { public STORAGE_RESERVE_ID e0; + [UnscopedRef] public ref STORAGE_RESERVE_ID this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -136,6 +144,7 @@ public ref STORAGE_RESERVE_ID this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/READ_ELEMENT_ADDRESS_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/READ_ELEMENT_ADDRESS_INFO.cs index 06643f6dd7..fbf10a674a 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/READ_ELEMENT_ADDRESS_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/READ_ELEMENT_ADDRESS_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _ElementStatus_e__FixedBuffer { public CHANGER_ELEMENT_STATUS e0; + [UnscopedRef] public ref CHANGER_ELEMENT_STATUS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref CHANGER_ELEMENT_STATUS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/REASSIGN_BLOCKS_EX.cs b/sources/Interop/Windows/Windows/um/winioctl/REASSIGN_BLOCKS_EX.cs index 37b34fcc16..b2186d7316 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/REASSIGN_BLOCKS_EX.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/REASSIGN_BLOCKS_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,6 +32,7 @@ public partial struct _BlockNumber_e__FixedBuffer { public LARGE_INTEGER e0; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -41,6 +43,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/REFS_VOLUME_DATA_BUFFER.cs b/sources/Interop/Windows/Windows/um/winioctl/REFS_VOLUME_DATA_BUFFER.cs index 4d86c58a32..4d8c96ddbe 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/REFS_VOLUME_DATA_BUFFER.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/REFS_VOLUME_DATA_BUFFER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -83,6 +84,7 @@ public partial struct _Reserved_e__FixedBuffer public LARGE_INTEGER e7; public LARGE_INTEGER e8; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -93,6 +95,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 9); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER.cs b/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER.cs index bbbd6785ef..feaf9d6352 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -42,6 +43,7 @@ public partial struct _Extents_e__FixedBuffer { public _Anonymous_e__Struct e0; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -52,6 +54,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_BUFFER.cs b/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_BUFFER.cs index 7aa783e8a7..ad956e46d8 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_BUFFER.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/RETRIEVAL_POINTERS_BUFFER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _Extents_e__FixedBuffer { public _Anonymous_e__Struct e0; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO.cs index 22fd8c1083..b1c295dd73 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Devices_e__FixedBuffer { public SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO e0; + [UnscopedRef] public ref SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_LD_INTERLEAVE_SET_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_LD_INTERLEAVE_SET_INFO.cs index ebe6890488..01cece6ece 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_LD_INTERLEAVE_SET_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_LD_INTERLEAVE_SET_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _InterleaveSet_e__FixedBuffer { public SCM_INTERLEAVED_PD_INFO e0; + [UnscopedRef] public ref SCM_INTERLEAVED_PD_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_INTERLEAVED_PD_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_LOGICAL_DEVICES.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_LOGICAL_DEVICES.cs index 79a61db14f..bc0471ddb1 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_LOGICAL_DEVICES.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_LOGICAL_DEVICES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Devices_e__FixedBuffer { public SCM_LOGICAL_DEVICE_INSTANCE e0; + [UnscopedRef] public ref SCM_LOGICAL_DEVICE_INSTANCE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_LOGICAL_DEVICE_INSTANCE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_DEVICE_SPECIFIC_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_DEVICE_SPECIFIC_INFO.cs index d55721bc9b..2a4d15797d 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_DEVICE_SPECIFIC_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_DEVICE_SPECIFIC_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _DeviceSpecificProperties_e__FixedBuffer { public SCM_PD_DEVICE_SPECIFIC_PROPERTY e0; + [UnscopedRef] public ref SCM_PD_DEVICE_SPECIFIC_PROPERTY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_PD_DEVICE_SPECIFIC_PROPERTY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_FIRMWARE_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_FIRMWARE_INFO.cs index 61c41ca8ba..bc3693fdd9 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_FIRMWARE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_FIRMWARE_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _Slots_e__FixedBuffer { public SCM_PD_FIRMWARE_SLOT_INFO e0; + [UnscopedRef] public ref SCM_PD_FIRMWARE_SLOT_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref SCM_PD_FIRMWARE_SLOT_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_MANAGEMENT_STATUS.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_MANAGEMENT_STATUS.cs index 9af067736f..d84591815d 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_MANAGEMENT_STATUS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_PD_MANAGEMENT_STATUS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -59,6 +60,7 @@ public partial struct _OperationalStatus_e__FixedBuffer public SCM_PD_OPERATIONAL_STATUS e14; public SCM_PD_OPERATIONAL_STATUS e15; + [UnscopedRef] public ref SCM_PD_OPERATIONAL_STATUS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -69,6 +71,7 @@ public ref SCM_PD_OPERATIONAL_STATUS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } @@ -77,6 +80,7 @@ public partial struct _AdditionalReasons_e__FixedBuffer { public SCM_PD_OPERATIONAL_STATUS_REASON e0; + [UnscopedRef] public ref SCM_PD_OPERATIONAL_STATUS_REASON this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -87,6 +91,7 @@ public ref SCM_PD_OPERATIONAL_STATUS_REASON this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_PHYSICAL_DEVICES.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_PHYSICAL_DEVICES.cs index 5e7f168c1a..6169ee85e9 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_PHYSICAL_DEVICES.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_PHYSICAL_DEVICES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Devices_e__FixedBuffer { public SCM_PHYSICAL_DEVICE_INSTANCE e0; + [UnscopedRef] public ref SCM_PHYSICAL_DEVICE_INSTANCE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_PHYSICAL_DEVICE_INSTANCE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SCM_REGIONS.cs b/sources/Interop/Windows/Windows/um/winioctl/SCM_REGIONS.cs index 62531d1391..7fd6ae065b 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SCM_REGIONS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SCM_REGIONS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Regions_e__FixedBuffer { public SCM_REGION e0; + [UnscopedRef] public ref SCM_REGION this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SCM_REGION this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SD_ENUM_SDS_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/SD_ENUM_SDS_OUTPUT.cs index 9d79aa25f8..c1891005b1 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SD_ENUM_SDS_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SD_ENUM_SDS_OUTPUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _SDEntry_e__FixedBuffer { public SD_ENUM_SDS_ENTRY e0; + [UnscopedRef] public ref SD_ENUM_SDS_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref SD_ENUM_SDS_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_INPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_INPUT.cs index 953dc819fa..e32684fd9c 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_INPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_INPUT.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,32 +25,35 @@ public partial struct SD_GLOBAL_CHANGE_INPUT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref SD_CHANGE_MACHINE_SID_INPUT SdChange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdChange, 1)); + return ref Anonymous.SdChange; } } /// + [UnscopedRef] public ref SD_QUERY_STATS_INPUT SdQueryStats { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdQueryStats, 1)); + return ref Anonymous.SdQueryStats; } } /// + [UnscopedRef] public ref SD_ENUM_SDS_INPUT SdEnumSds { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdEnumSds, 1)); + return ref Anonymous.SdEnumSds; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_OUTPUT.cs b/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_OUTPUT.cs index d82dd7f257..b3fc7af33c 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_OUTPUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SD_GLOBAL_CHANGE_OUTPUT.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,32 +25,35 @@ public partial struct SD_GLOBAL_CHANGE_OUTPUT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref SD_CHANGE_MACHINE_SID_OUTPUT SdChange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdChange, 1)); + return ref Anonymous.SdChange; } } /// + [UnscopedRef] public ref SD_QUERY_STATS_OUTPUT SdQueryStats { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdQueryStats, 1)); + return ref Anonymous.SdQueryStats; } } /// + [UnscopedRef] public ref SD_ENUM_SDS_OUTPUT SdEnumSds { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SdEnumSds, 1)); + return ref Anonymous.SdEnumSds; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/SET_PARTITION_INFORMATION_EX.cs b/sources/Interop/Windows/Windows/um/winioctl/SET_PARTITION_INFORMATION_EX.cs index 543cefe09b..a04a1572d7 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/SET_PARTITION_INFORMATION_EX.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/SET_PARTITION_INFORMATION_EX.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,22 +20,24 @@ public partial struct SET_PARTITION_INFORMATION_EX public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref SET_PARTITION_INFORMATION Mbr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Mbr, 1)); + return ref Anonymous.Mbr; } } /// + [UnscopedRef] public ref PARTITION_INFORMATION_GPT Gpt { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Gpt, 1)); + return ref Anonymous.Gpt; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_COUNTERS.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_COUNTERS.cs index 82fb5c52c3..4965c69a9e 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_COUNTERS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_COUNTERS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Counters_e__FixedBuffer { public STORAGE_COUNTER e0; + [UnscopedRef] public ref STORAGE_COUNTER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref STORAGE_COUNTER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_CRYPTO_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_CRYPTO_DESCRIPTOR.cs index 9b092de1c0..2156718dbf 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_CRYPTO_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_CRYPTO_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _CryptoCapabilities_e__FixedBuffer { public STORAGE_CRYPTO_CAPABILITY e0; + [UnscopedRef] public ref STORAGE_CRYPTO_CAPABILITY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref STORAGE_CRYPTO_CAPABILITY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR.cs index 8a84ea4894..58a715ffe6 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _FaultDomainIds_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_MANAGEMENT_STATUS.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_MANAGEMENT_STATUS.cs index 80c1277ea2..7af81e0e17 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_MANAGEMENT_STATUS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_MANAGEMENT_STATUS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -59,6 +60,7 @@ public partial struct _OperationalStatus_e__FixedBuffer public STORAGE_DISK_OPERATIONAL_STATUS e14; public STORAGE_DISK_OPERATIONAL_STATUS e15; + [UnscopedRef] public ref STORAGE_DISK_OPERATIONAL_STATUS this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -69,6 +71,7 @@ public ref STORAGE_DISK_OPERATIONAL_STATUS this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } @@ -77,6 +80,7 @@ public partial struct _AdditionalReasons_e__FixedBuffer { public STORAGE_OPERATIONAL_REASON e0; + [UnscopedRef] public ref STORAGE_OPERATIONAL_REASON this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -87,6 +91,7 @@ public ref STORAGE_OPERATIONAL_REASON this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_NUMBERS.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_NUMBERS.cs index 0232bc74d3..b32457403f 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_NUMBERS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_NUMBERS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _Devices_e__FixedBuffer { public STORAGE_DEVICE_NUMBER e0; + [UnscopedRef] public ref STORAGE_DEVICE_NUMBER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref STORAGE_DEVICE_NUMBER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_TIERING_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_TIERING_DESCRIPTOR.cs index 548aa2e81a..8ebb2f66aa 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_TIERING_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_DEVICE_TIERING_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _Tiers_e__FixedBuffer { public STORAGE_TIER e0; + [UnscopedRef] public ref STORAGE_TIER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref STORAGE_TIER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_HW_FIRMWARE_INFO.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_HW_FIRMWARE_INFO.cs index af4fd0a5eb..994b11d8f7 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_HW_FIRMWARE_INFO.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_HW_FIRMWARE_INFO.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -90,6 +91,7 @@ public partial struct _Slot_e__FixedBuffer { public STORAGE_HW_FIRMWARE_SLOT_INFO e0; + [UnscopedRef] public ref STORAGE_HW_FIRMWARE_SLOT_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -100,6 +102,7 @@ public ref STORAGE_HW_FIRMWARE_SLOT_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_OFFLOAD_TOKEN.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_OFFLOAD_TOKEN.cs index c1b55c7041..c1a2a33a0e 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_OFFLOAD_TOKEN.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_OFFLOAD_TOKEN.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -31,16 +32,18 @@ public unsafe partial struct STORAGE_OFFLOAD_TOKEN public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._StorageOffloadZeroDataToken_e__Struct StorageOffloadZeroDataToken { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.StorageOffloadZeroDataToken, 1)); + return ref Anonymous.StorageOffloadZeroDataToken; } } /// + [UnscopedRef] public Span Token { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR.cs index 13b4ad7404..4dea54d753 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -39,6 +40,7 @@ public partial struct _Node_e__FixedBuffer { public STORAGE_PHYSICAL_NODE_DATA e0; + [UnscopedRef] public ref STORAGE_PHYSICAL_NODE_DATA this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -49,6 +51,7 @@ public ref STORAGE_PHYSICAL_NODE_DATA this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.cs index da37af0183..afef7ef170 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,22 +26,24 @@ public partial struct STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public Span Lev1Depends { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return Anonymous.Lev1Depends.AsSpan(unchecked((int)NumberEntries)); + return Anonymous.Lev1Depends.AsSpan(unchecked((int)(NumberEntries))); } } /// + [UnscopedRef] public Span Lev2Depends { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return Anonymous.Lev2Depends.AsSpan(unchecked((int)NumberEntries)); + return Anonymous.Lev2Depends.AsSpan(unchecked((int)(NumberEntries))); } } @@ -63,6 +66,7 @@ public partial struct _Lev1Depends_e__FixedBuffer { public STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY e0; + [UnscopedRef] public ref STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -73,6 +77,7 @@ public ref STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } @@ -81,6 +86,7 @@ public partial struct _Lev2Depends_e__FixedBuffer { public STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY e0; + [UnscopedRef] public ref STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -91,6 +97,7 @@ public ref STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_SPEC_VERSION.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_SPEC_VERSION.cs index 70ecd058aa..0d43f83067 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_SPEC_VERSION.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_SPEC_VERSION.cs @@ -3,6 +3,7 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -25,22 +26,24 @@ public partial struct STORAGE_SPEC_VERSION public uint AsUlong; /// + [UnscopedRef] public ref _Anonymous_e__Struct._MinorVersion_e__Union MinorVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.MinorVersion, 1)); + return ref Anonymous.MinorVersion; } } /// + [UnscopedRef] public ref ushort MajorVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.MajorVersion, 1)); + return ref Anonymous.MajorVersion; } } @@ -70,22 +73,24 @@ public partial struct _MinorVersion_e__Union public ushort AsUshort; /// + [UnscopedRef] public ref byte SubMinor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SubMinor, 1)); + return ref Anonymous.SubMinor; } } /// + [UnscopedRef] public ref byte Minor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Minor, 1)); + return ref Anonymous.Minor; } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_TEMPERATURE_DATA_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_TEMPERATURE_DATA_DESCRIPTOR.cs index 4ff9c152f1..c269ffe862 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_TEMPERATURE_DATA_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_TEMPERATURE_DATA_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -49,6 +50,7 @@ public partial struct _TemperatureInfo_e__FixedBuffer { public STORAGE_TEMPERATURE_INFO e0; + [UnscopedRef] public ref STORAGE_TEMPERATURE_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -59,6 +61,7 @@ public ref STORAGE_TEMPERATURE_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_ZONED_DEVICE_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_ZONED_DEVICE_DESCRIPTOR.cs index bf12c6ab21..04980200ab 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/STORAGE_ZONED_DEVICE_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/STORAGE_ZONED_DEVICE_DESCRIPTOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -87,6 +88,7 @@ public partial struct _ZoneGroup_e__FixedBuffer { public STORAGE_ZONE_GROUP e0; + [UnscopedRef] public ref STORAGE_ZONE_GROUP this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -97,6 +99,7 @@ public ref STORAGE_ZONE_GROUP this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/TC.cs b/sources/Interop/Windows/Windows/um/winioctl/TC.cs index 2aaab957c0..b6aa796131 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/TC.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/TC.cs @@ -22,8 +22,8 @@ public static partial class TC public const int TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH = 16; [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATAGP \"ATAGPLogPages\"")] - public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATAGP => new byte[] { 0x41, 0x54, 0x41, 0x47, 0x50, 0x4C, 0x6F, 0x67, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; + public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATAGP => "ATAGPLogPages"u8; [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATASMART \"ATASMARTPages\"")] - public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATASMART => new byte[] { 0x41, 0x54, 0x41, 0x53, 0x4D, 0x41, 0x52, 0x54, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; + public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATASMART => "ATASMARTPages"u8; } diff --git a/sources/Interop/Windows/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.cs b/sources/Interop/Windows/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.cs index cae34baeab..72e68b2f17 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -17,16 +18,18 @@ public unsafe partial struct TXFS_READ_BACKUP_INFORMATION_OUT public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint BufferLength { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.BufferLength, 1)); + return ref Anonymous.BufferLength; } } /// + [UnscopedRef] public Span Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winioctl/USN_RECORD_V4.cs b/sources/Interop/Windows/Windows/um/winioctl/USN_RECORD_V4.cs index e1ee98be08..632a1e0019 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/USN_RECORD_V4.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/USN_RECORD_V4.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -56,6 +57,7 @@ public partial struct _Extents_e__FixedBuffer { public USN_RECORD_EXTENT e0; + [UnscopedRef] public ref USN_RECORD_EXTENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -66,6 +68,7 @@ public ref USN_RECORD_EXTENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winioctl/VOLUME_DISK_EXTENTS.cs b/sources/Interop/Windows/Windows/um/winioctl/VOLUME_DISK_EXTENTS.cs index e03141446c..3d3b3270ee 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/VOLUME_DISK_EXTENTS.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/VOLUME_DISK_EXTENTS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Extents_e__FixedBuffer { public DISK_EXTENT e0; + [UnscopedRef] public ref DISK_EXTENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref DISK_EXTENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs b/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs index 9d7e85d2e3..764de2a3af 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs @@ -76,13 +76,13 @@ public static partial class ACCESS public const int ACCESS_MAX_LEVEL = 4; [NativeTypeName("#define ACCESS_DS_SOURCE_A \"DS\"")] - public static ReadOnlySpan ACCESS_DS_SOURCE_A => new byte[] { 0x44, 0x53, 0x00 }; + public static ReadOnlySpan ACCESS_DS_SOURCE_A => "DS"u8; [NativeTypeName("#define ACCESS_DS_SOURCE_W L\"DS\"")] public const string ACCESS_DS_SOURCE_W = "DS"; [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_A \"Directory Service Object\"")] - public static ReadOnlySpan ACCESS_DS_OBJECT_TYPE_NAME_A => new byte[] { 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + public static ReadOnlySpan ACCESS_DS_OBJECT_TYPE_NAME_A => "Directory Service Object"u8; [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_W L\"Directory Service Object\"")] public const string ACCESS_DS_OBJECT_TYPE_NAME_W = "Directory Service Object"; diff --git a/sources/Interop/Windows/Windows/um/winnt/ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION.cs index 0f054fc002..7b088b0d08 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Elements_e__FixedBuffer { public COMPATIBILITY_CONTEXT_ELEMENT e0; + [UnscopedRef] public ref COMPATIBILITY_CONTEXT_ELEMENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref COMPATIBILITY_CONTEXT_ELEMENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs index f7b9d644f6..c505919bea 100644 --- a/sources/Interop/Windows/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -149,15 +150,17 @@ public partial struct AMD64_NT_CONTEXT [NativeTypeName("DWORD64")] public ulong LastExceptionFromRip; + [UnscopedRef] public ref XSAVE_FORMAT FltSave { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FltSave, 1)); + return ref Anonymous.FltSave; } } + [UnscopedRef] public Span Header { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -167,6 +170,7 @@ public Span Header } } + [UnscopedRef] public Span Legacy { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -176,147 +180,163 @@ public Span Legacy } } + [UnscopedRef] public ref M128A Xmm0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm0, 1)); + return ref Anonymous.Anonymous.Xmm0; } } + [UnscopedRef] public ref M128A Xmm1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm1, 1)); + return ref Anonymous.Anonymous.Xmm1; } } + [UnscopedRef] public ref M128A Xmm2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm2, 1)); + return ref Anonymous.Anonymous.Xmm2; } } + [UnscopedRef] public ref M128A Xmm3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm3, 1)); + return ref Anonymous.Anonymous.Xmm3; } } + [UnscopedRef] public ref M128A Xmm4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm4, 1)); + return ref Anonymous.Anonymous.Xmm4; } } + [UnscopedRef] public ref M128A Xmm5 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm5, 1)); + return ref Anonymous.Anonymous.Xmm5; } } + [UnscopedRef] public ref M128A Xmm6 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm6, 1)); + return ref Anonymous.Anonymous.Xmm6; } } + [UnscopedRef] public ref M128A Xmm7 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm7, 1)); + return ref Anonymous.Anonymous.Xmm7; } } + [UnscopedRef] public ref M128A Xmm8 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm8, 1)); + return ref Anonymous.Anonymous.Xmm8; } } + [UnscopedRef] public ref M128A Xmm9 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm9, 1)); + return ref Anonymous.Anonymous.Xmm9; } } + [UnscopedRef] public ref M128A Xmm10 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm10, 1)); + return ref Anonymous.Anonymous.Xmm10; } } + [UnscopedRef] public ref M128A Xmm11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm11, 1)); + return ref Anonymous.Anonymous.Xmm11; } } + [UnscopedRef] public ref M128A Xmm12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm12, 1)); + return ref Anonymous.Anonymous.Xmm12; } } + [UnscopedRef] public ref M128A Xmm13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm13, 1)); + return ref Anonymous.Anonymous.Xmm13; } } + [UnscopedRef] public ref M128A Xmm14 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm14, 1)); + return ref Anonymous.Anonymous.Xmm14; } } + [UnscopedRef] public ref M128A Xmm15 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Xmm15, 1)); + return ref Anonymous.Anonymous.Xmm15; } } @@ -376,6 +396,7 @@ public partial struct _Header_e__FixedBuffer public M128A e0; public M128A e1; + [UnscopedRef] public ref M128A this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -386,6 +407,7 @@ public ref M128A this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } @@ -400,6 +422,7 @@ public partial struct _Legacy_e__FixedBuffer public M128A e6; public M128A e7; + [UnscopedRef] public ref M128A this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -410,6 +433,7 @@ public ref M128A this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } } @@ -444,6 +468,7 @@ public partial struct _VectorRegister_e__FixedBuffer public M128A e24; public M128A e25; + [UnscopedRef] public ref M128A this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -454,6 +479,7 @@ public ref M128A this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 26); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs index 7cc3d4dd1b..ac068657a4 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -14,753 +15,837 @@ public unsafe partial struct ARM64EC_NT_CONTEXT [NativeTypeName("_ARM64EC_NT_CONTEXT::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:7016:5)")] public _Anonymous_e__Union Anonymous; + [UnscopedRef] public ref ulong AMD64_P1Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P1Home, 1)); + return ref Anonymous.Anonymous.AMD64_P1Home; } } + [UnscopedRef] public ref ulong AMD64_P2Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P2Home, 1)); + return ref Anonymous.Anonymous.AMD64_P2Home; } } + [UnscopedRef] public ref ulong AMD64_P3Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P3Home, 1)); + return ref Anonymous.Anonymous.AMD64_P3Home; } } + [UnscopedRef] public ref ulong AMD64_P4Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P4Home, 1)); + return ref Anonymous.Anonymous.AMD64_P4Home; } } + [UnscopedRef] public ref ulong AMD64_P5Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P5Home, 1)); + return ref Anonymous.Anonymous.AMD64_P5Home; } } + [UnscopedRef] public ref ulong AMD64_P6Home { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_P6Home, 1)); + return ref Anonymous.Anonymous.AMD64_P6Home; } } + [UnscopedRef] public ref uint ContextFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.ContextFlags, 1)); + return ref Anonymous.Anonymous.ContextFlags; } } + [UnscopedRef] public ref uint AMD64_MxCsr_copy { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_MxCsr_copy, 1)); + return ref Anonymous.Anonymous.AMD64_MxCsr_copy; } } + [UnscopedRef] public ref ushort AMD64_SegCs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegCs, 1)); + return ref Anonymous.Anonymous.AMD64_SegCs; } } + [UnscopedRef] public ref ushort AMD64_SegDs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegDs, 1)); + return ref Anonymous.Anonymous.AMD64_SegDs; } } + [UnscopedRef] public ref ushort AMD64_SegEs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegEs, 1)); + return ref Anonymous.Anonymous.AMD64_SegEs; } } + [UnscopedRef] public ref ushort AMD64_SegFs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegFs, 1)); + return ref Anonymous.Anonymous.AMD64_SegFs; } } + [UnscopedRef] public ref ushort AMD64_SegGs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegGs, 1)); + return ref Anonymous.Anonymous.AMD64_SegGs; } } + [UnscopedRef] public ref ushort AMD64_SegSs { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_SegSs, 1)); + return ref Anonymous.Anonymous.AMD64_SegSs; } } + [UnscopedRef] public ref uint AMD64_EFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_EFlags, 1)); + return ref Anonymous.Anonymous.AMD64_EFlags; } } + [UnscopedRef] public ref ulong AMD64_Dr0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr0, 1)); + return ref Anonymous.Anonymous.AMD64_Dr0; } } + [UnscopedRef] public ref ulong AMD64_Dr1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr1, 1)); + return ref Anonymous.Anonymous.AMD64_Dr1; } } + [UnscopedRef] public ref ulong AMD64_Dr2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr2, 1)); + return ref Anonymous.Anonymous.AMD64_Dr2; } } + [UnscopedRef] public ref ulong AMD64_Dr3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr3, 1)); + return ref Anonymous.Anonymous.AMD64_Dr3; } } + [UnscopedRef] public ref ulong AMD64_Dr6 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr6, 1)); + return ref Anonymous.Anonymous.AMD64_Dr6; } } + [UnscopedRef] public ref ulong AMD64_Dr7 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_Dr7, 1)); + return ref Anonymous.Anonymous.AMD64_Dr7; } } + [UnscopedRef] public ref ulong X8 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X8, 1)); + return ref Anonymous.Anonymous.X8; } } + [UnscopedRef] public ref ulong X0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X0, 1)); + return ref Anonymous.Anonymous.X0; } } + [UnscopedRef] public ref ulong X1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X1, 1)); + return ref Anonymous.Anonymous.X1; } } + [UnscopedRef] public ref ulong X27 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X27, 1)); + return ref Anonymous.Anonymous.X27; } } + [UnscopedRef] public ref ulong Sp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Sp, 1)); + return ref Anonymous.Anonymous.Sp; } } + [UnscopedRef] public ref ulong Fp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Fp, 1)); + return ref Anonymous.Anonymous.Fp; } } + [UnscopedRef] public ref ulong X25 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X25, 1)); + return ref Anonymous.Anonymous.X25; } } + [UnscopedRef] public ref ulong X26 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X26, 1)); + return ref Anonymous.Anonymous.X26; } } + [UnscopedRef] public ref ulong X2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X2, 1)); + return ref Anonymous.Anonymous.X2; } } + [UnscopedRef] public ref ulong X3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X3, 1)); + return ref Anonymous.Anonymous.X3; } } + [UnscopedRef] public ref ulong X4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X4, 1)); + return ref Anonymous.Anonymous.X4; } } + [UnscopedRef] public ref ulong X5 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X5, 1)); + return ref Anonymous.Anonymous.X5; } } + [UnscopedRef] public ref ulong X19 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X19, 1)); + return ref Anonymous.Anonymous.X19; } } + [UnscopedRef] public ref ulong X20 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X20, 1)); + return ref Anonymous.Anonymous.X20; } } + [UnscopedRef] public ref ulong X21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X21, 1)); + return ref Anonymous.Anonymous.X21; } } + [UnscopedRef] public ref ulong X22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X22, 1)); + return ref Anonymous.Anonymous.X22; } } + [UnscopedRef] public ref ulong Pc { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Pc, 1)); + return ref Anonymous.Anonymous.Pc; } } + [UnscopedRef] public ref ushort AMD64_ControlWord { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_ControlWord, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_ControlWord; } } + [UnscopedRef] public ref ushort AMD64_StatusWord { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_StatusWord, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_StatusWord; } } + [UnscopedRef] public ref byte AMD64_TagWord { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_TagWord, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_TagWord; } } + [UnscopedRef] public ref byte AMD64_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved1; } } + [UnscopedRef] public ref ushort AMD64_ErrorOpcode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOpcode, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOpcode; } } + [UnscopedRef] public ref uint AMD64_ErrorOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOffset, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOffset; } } + [UnscopedRef] public ref ushort AMD64_ErrorSelector { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_ErrorSelector, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorSelector; } } + [UnscopedRef] public ref ushort AMD64_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved2; } } + [UnscopedRef] public ref uint AMD64_DataOffset { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_DataOffset, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_DataOffset; } } + [UnscopedRef] public ref ushort AMD64_DataSelector { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_DataSelector, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_DataSelector; } } + [UnscopedRef] public ref ushort AMD64_Reserved3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_Reserved3, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved3; } } + [UnscopedRef] public ref uint AMD64_MxCsr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr; } } + [UnscopedRef] public ref uint AMD64_MxCsr_Mask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr_Mask, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr_Mask; } } + [UnscopedRef] public ref ulong Lr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.Lr, 1)); + return ref Anonymous.Anonymous.Anonymous.Lr; } } + [UnscopedRef] public ref ushort X16_0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X16_0, 1)); + return ref Anonymous.Anonymous.Anonymous.X16_0; } } + [UnscopedRef] public ref ushort AMD64_St0_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St0_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved2; } } + [UnscopedRef] public ref ulong X6 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X6, 1)); + return ref Anonymous.Anonymous.Anonymous.X6; } } + [UnscopedRef] public ref ushort X16_1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X16_1, 1)); + return ref Anonymous.Anonymous.Anonymous.X16_1; } } + [UnscopedRef] public ref ushort AMD64_St1_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St1_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved2; } } + [UnscopedRef] public ref ulong X7 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X7, 1)); + return ref Anonymous.Anonymous.Anonymous.X7; } } + [UnscopedRef] public ref ushort X16_2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X16_2, 1)); + return ref Anonymous.Anonymous.Anonymous.X16_2; } } + [UnscopedRef] public ref ushort AMD64_St2_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St2_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved2; } } + [UnscopedRef] public ref ulong X9 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X9, 1)); + return ref Anonymous.Anonymous.Anonymous.X9; } } + [UnscopedRef] public ref ushort X16_3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X16_3, 1)); + return ref Anonymous.Anonymous.Anonymous.X16_3; } } + [UnscopedRef] public ref ushort AMD64_St3_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St3_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved2; } } + [UnscopedRef] public ref ulong X10 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X10, 1)); + return ref Anonymous.Anonymous.Anonymous.X10; } } + [UnscopedRef] public ref ushort X17_0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X17_0, 1)); + return ref Anonymous.Anonymous.Anonymous.X17_0; } } + [UnscopedRef] public ref ushort AMD64_St4_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St4_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved2; } } + [UnscopedRef] public ref ulong X11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X11, 1)); + return ref Anonymous.Anonymous.Anonymous.X11; } } + [UnscopedRef] public ref ushort X17_1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X17_1, 1)); + return ref Anonymous.Anonymous.Anonymous.X17_1; } } + [UnscopedRef] public ref ushort AMD64_St5_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St5_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved2; } } + [UnscopedRef] public ref ulong X12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X12, 1)); + return ref Anonymous.Anonymous.Anonymous.X12; } } + [UnscopedRef] public ref ushort X17_2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X17_2, 1)); + return ref Anonymous.Anonymous.Anonymous.X17_2; } } + [UnscopedRef] public ref ushort AMD64_St6_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St6_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved2; } } + [UnscopedRef] public ref ulong X15 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X15, 1)); + return ref Anonymous.Anonymous.Anonymous.X15; } } + [UnscopedRef] public ref ushort X17_3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.X17_3, 1)); + return ref Anonymous.Anonymous.Anonymous.X17_3; } } + [UnscopedRef] public ref ushort AMD64_St7_Reserved1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved1, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved1; } } + [UnscopedRef] public ref uint AMD64_St7_Reserved2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved2, 1)); + return ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved2; } } + [UnscopedRef] public Span V { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -770,6 +855,7 @@ public Span V } } + [UnscopedRef] public Span AMD64_XSAVE_FORMAT_Reserved4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -779,6 +865,7 @@ public Span AMD64_XSAVE_FORMAT_Reserved4 } } + [UnscopedRef] public Span AMD64_VectorRegister { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -788,57 +875,63 @@ public Span AMD64_VectorRegister } } + [UnscopedRef] public ref ulong AMD64_VectorControl { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_VectorControl, 1)); + return ref Anonymous.Anonymous.AMD64_VectorControl; } } + [UnscopedRef] public ref ulong AMD64_DebugControl { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_DebugControl, 1)); + return ref Anonymous.Anonymous.AMD64_DebugControl; } } + [UnscopedRef] public ref ulong AMD64_LastBranchToRip { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_LastBranchToRip, 1)); + return ref Anonymous.Anonymous.AMD64_LastBranchToRip; } } + [UnscopedRef] public ref ulong AMD64_LastBranchFromRip { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_LastBranchFromRip, 1)); + return ref Anonymous.Anonymous.AMD64_LastBranchFromRip; } } + [UnscopedRef] public ref ulong AMD64_LastExceptionToRip { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_LastExceptionToRip, 1)); + return ref Anonymous.Anonymous.AMD64_LastExceptionToRip; } } + [UnscopedRef] public ref ulong AMD64_LastExceptionFromRip { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.AMD64_LastExceptionFromRip, 1)); + return ref Anonymous.Anonymous.AMD64_LastExceptionFromRip; } } @@ -1149,6 +1242,7 @@ public partial struct _V_e__FixedBuffer public ARM64_NT_NEON128 e14; public ARM64_NT_NEON128 e15; + [UnscopedRef] public ref ARM64_NT_NEON128 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1159,6 +1253,7 @@ public ref ARM64_NT_NEON128 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } @@ -1192,6 +1287,7 @@ public partial struct _AMD64_VectorRegister_e__FixedBuffer public ARM64_NT_NEON128 e24; public ARM64_NT_NEON128 e25; + [UnscopedRef] public ref ARM64_NT_NEON128 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1202,6 +1298,7 @@ public ref ARM64_NT_NEON128 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 26); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_CONTEXT.cs b/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_CONTEXT.cs index 1b3c38c0a8..c8dbd355ef 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_CONTEXT.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_CONTEXT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -61,316 +62,348 @@ public unsafe partial struct ARM64_NT_CONTEXT public fixed ulong Wvr[2]; /// + [UnscopedRef] public ref ulong X0 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X0, 1)); + return ref Anonymous.Anonymous.X0; } } /// + [UnscopedRef] public ref ulong X1 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X1, 1)); + return ref Anonymous.Anonymous.X1; } } /// + [UnscopedRef] public ref ulong X2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X2, 1)); + return ref Anonymous.Anonymous.X2; } } /// + [UnscopedRef] public ref ulong X3 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X3, 1)); + return ref Anonymous.Anonymous.X3; } } /// + [UnscopedRef] public ref ulong X4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X4, 1)); + return ref Anonymous.Anonymous.X4; } } /// + [UnscopedRef] public ref ulong X5 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X5, 1)); + return ref Anonymous.Anonymous.X5; } } /// + [UnscopedRef] public ref ulong X6 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X6, 1)); + return ref Anonymous.Anonymous.X6; } } /// + [UnscopedRef] public ref ulong X7 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X7, 1)); + return ref Anonymous.Anonymous.X7; } } /// + [UnscopedRef] public ref ulong X8 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X8, 1)); + return ref Anonymous.Anonymous.X8; } } /// + [UnscopedRef] public ref ulong X9 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X9, 1)); + return ref Anonymous.Anonymous.X9; } } /// + [UnscopedRef] public ref ulong X10 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X10, 1)); + return ref Anonymous.Anonymous.X10; } } /// + [UnscopedRef] public ref ulong X11 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X11, 1)); + return ref Anonymous.Anonymous.X11; } } /// + [UnscopedRef] public ref ulong X12 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X12, 1)); + return ref Anonymous.Anonymous.X12; } } /// + [UnscopedRef] public ref ulong X13 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X13, 1)); + return ref Anonymous.Anonymous.X13; } } /// + [UnscopedRef] public ref ulong X14 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X14, 1)); + return ref Anonymous.Anonymous.X14; } } /// + [UnscopedRef] public ref ulong X15 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X15, 1)); + return ref Anonymous.Anonymous.X15; } } /// + [UnscopedRef] public ref ulong X16 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X16, 1)); + return ref Anonymous.Anonymous.X16; } } /// + [UnscopedRef] public ref ulong X17 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X17, 1)); + return ref Anonymous.Anonymous.X17; } } /// + [UnscopedRef] public ref ulong X18 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X18, 1)); + return ref Anonymous.Anonymous.X18; } } /// + [UnscopedRef] public ref ulong X19 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X19, 1)); + return ref Anonymous.Anonymous.X19; } } /// + [UnscopedRef] public ref ulong X20 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X20, 1)); + return ref Anonymous.Anonymous.X20; } } /// + [UnscopedRef] public ref ulong X21 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X21, 1)); + return ref Anonymous.Anonymous.X21; } } /// + [UnscopedRef] public ref ulong X22 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X22, 1)); + return ref Anonymous.Anonymous.X22; } } /// + [UnscopedRef] public ref ulong X23 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X23, 1)); + return ref Anonymous.Anonymous.X23; } } /// + [UnscopedRef] public ref ulong X24 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X24, 1)); + return ref Anonymous.Anonymous.X24; } } /// + [UnscopedRef] public ref ulong X25 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X25, 1)); + return ref Anonymous.Anonymous.X25; } } /// + [UnscopedRef] public ref ulong X26 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X26, 1)); + return ref Anonymous.Anonymous.X26; } } /// + [UnscopedRef] public ref ulong X27 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X27, 1)); + return ref Anonymous.Anonymous.X27; } } /// + [UnscopedRef] public ref ulong X28 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.X28, 1)); + return ref Anonymous.Anonymous.X28; } } /// + [UnscopedRef] public ref ulong Fp { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Fp, 1)); + return ref Anonymous.Anonymous.Fp; } } /// + [UnscopedRef] public ref ulong Lr { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.Lr, 1)); + return ref Anonymous.Anonymous.Lr; } } /// + [UnscopedRef] public Span X { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -559,6 +592,7 @@ public partial struct _V_e__FixedBuffer public ARM64_NT_NEON128 e30; public ARM64_NT_NEON128 e31; + [UnscopedRef] public ref ARM64_NT_NEON128 this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -569,6 +603,7 @@ public ref ARM64_NT_NEON128 this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_NEON128.cs b/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_NEON128.cs index 0ff3ad48cf..fbff800fc2 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_NEON128.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ARM64_NT_NEON128.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,22 +39,24 @@ public unsafe partial struct ARM64_NT_NEON128 public fixed byte B[16]; /// + [UnscopedRef] public ref ulong Low { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Low, 1)); + return ref Anonymous.Low; } } /// + [UnscopedRef] public ref long High { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.High, 1)); + return ref Anonymous.High; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs index a03ca7a7b9..d7f63f0d9f 100644 --- a/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs @@ -4,12 +4,14 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace TerraFX.Interop.Windows; public unsafe partial struct CACHE_RELATIONSHIP { + [UnscopedRef] public Span GroupMasks { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.cs b/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.cs index 365eb29a16..fe8b3e08dd 100644 --- a/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.cs +++ b/sources/Interop/Windows/Windows/um/winnt/CACHE_RELATIONSHIP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -42,12 +43,13 @@ public unsafe partial struct CACHE_RELATIONSHIP public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref GROUP_AFFINITY GroupMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.GroupMask, 1)); + return ref Anonymous.GroupMask; } } @@ -69,6 +71,7 @@ public partial struct _GroupMasks_e__FixedBuffer { public GROUP_AFFINITY e0; + [UnscopedRef] public ref GROUP_AFFINITY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -79,6 +82,7 @@ public ref GROUP_AFFINITY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/CM_POWER_DATA.cs b/sources/Interop/Windows/Windows/um/winnt/CM_POWER_DATA.cs index af87b0a3c5..800ccc491d 100644 --- a/sources/Interop/Windows/Windows/um/winnt/CM_POWER_DATA.cs +++ b/sources/Interop/Windows/Windows/um/winnt/CM_POWER_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -53,6 +54,7 @@ public partial struct _PD_PowerStateMapping_e__FixedBuffer public DEVICE_POWER_STATE e5; public DEVICE_POWER_STATE e6; + [UnscopedRef] public ref DEVICE_POWER_STATE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -63,6 +65,7 @@ public ref DEVICE_POWER_STATE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 7); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/DISPATCHER_CONTEXT_NONVOLREG_ARM64.cs b/sources/Interop/Windows/Windows/um/winnt/DISPATCHER_CONTEXT_NONVOLREG_ARM64.cs index 320f3023bd..9fd18df4fc 100644 --- a/sources/Interop/Windows/Windows/um/winnt/DISPATCHER_CONTEXT_NONVOLREG_ARM64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/DISPATCHER_CONTEXT_NONVOLREG_ARM64.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,6 +25,7 @@ public unsafe partial struct DISPATCHER_CONTEXT_NONVOLREG_ARM64 public _Anonymous_e__Struct Anonymous; /// + [UnscopedRef] public Span GpNvRegs { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -34,6 +36,7 @@ public Span GpNvRegs } /// + [UnscopedRef] public Span FpNvRegs { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/ENCLAVE_INIT_INFO_VBS_BASIC.cs b/sources/Interop/Windows/Windows/um/winnt/ENCLAVE_INIT_INFO_VBS_BASIC.cs index a1d9ada65b..3a106f48b2 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ENCLAVE_INIT_INFO_VBS_BASIC.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ENCLAVE_INIT_INFO_VBS_BASIC.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,22 +37,24 @@ public unsafe partial struct ENCLAVE_INIT_INFO_VBS_BASIC public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref HANDLE SignatureInfoHandle { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.SignatureInfoHandle; + return ref Anonymous.SignatureInfoHandle; } } /// + [UnscopedRef] public ref ulong Unused { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Unused, 1)); + return ref Anonymous.Unused; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/EVENTSFORLOGFILE.cs b/sources/Interop/Windows/Windows/um/winnt/EVENTSFORLOGFILE.cs index 831de6fca1..d0a54b05b6 100644 --- a/sources/Interop/Windows/Windows/um/winnt/EVENTSFORLOGFILE.cs +++ b/sources/Interop/Windows/Windows/um/winnt/EVENTSFORLOGFILE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _pEventLogRecords_e__FixedBuffer { public EVENTLOGRECORD e0; + [UnscopedRef] public ref EVENTLOGRECORD this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref EVENTLOGRECORD this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/EXCEPTION_RECORD.cs b/sources/Interop/Windows/Windows/um/winnt/EXCEPTION_RECORD.cs index 49d81354ff..fdd26c2740 100644 --- a/sources/Interop/Windows/Windows/um/winnt/EXCEPTION_RECORD.cs +++ b/sources/Interop/Windows/Windows/um/winnt/EXCEPTION_RECORD.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -55,6 +56,7 @@ public partial struct _ExceptionInformation_e__FixedBuffer public nuint e13; public nuint e14; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -65,6 +67,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 15); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/GROUP_RELATIONSHIP.cs b/sources/Interop/Windows/Windows/um/winnt/GROUP_RELATIONSHIP.cs index 92007bc24b..1c7545fc45 100644 --- a/sources/Interop/Windows/Windows/um/winnt/GROUP_RELATIONSHIP.cs +++ b/sources/Interop/Windows/Windows/um/winnt/GROUP_RELATIONSHIP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -33,6 +34,7 @@ public partial struct _GroupInfo_e__FixedBuffer { public PROCESSOR_GROUP_INFO e0; + [UnscopedRef] public ref PROCESSOR_GROUP_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -43,6 +45,7 @@ public ref PROCESSOR_GROUP_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE.cs index f9cb4799e9..80dd69786d 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE.cs @@ -1408,22 +1408,22 @@ public static partial class IMAGE public const int IMAGE_ARCHIVE_START_SIZE = 8; [NativeTypeName("#define IMAGE_ARCHIVE_START \"!\\n\"")] - public static ReadOnlySpan IMAGE_ARCHIVE_START => new byte[] { 0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_START => "!\n"u8; [NativeTypeName("#define IMAGE_ARCHIVE_END \"`\\n\"")] - public static ReadOnlySpan IMAGE_ARCHIVE_END => new byte[] { 0x60, 0x0A, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_END => "`\n"u8; [NativeTypeName("#define IMAGE_ARCHIVE_PAD \"\\n\"")] - public static ReadOnlySpan IMAGE_ARCHIVE_PAD => new byte[] { 0x0A, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_PAD => "\n"u8; [NativeTypeName("#define IMAGE_ARCHIVE_LINKER_MEMBER \"/ \"")] - public static ReadOnlySpan IMAGE_ARCHIVE_LINKER_MEMBER => new byte[] { 0x2F, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_LINKER_MEMBER => "/ "u8; [NativeTypeName("#define IMAGE_ARCHIVE_LONGNAMES_MEMBER \"// \"")] - public static ReadOnlySpan IMAGE_ARCHIVE_LONGNAMES_MEMBER => new byte[] { 0x2F, 0x2F, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_LONGNAMES_MEMBER => "// "u8; [NativeTypeName("#define IMAGE_ARCHIVE_HYBRIDMAP_MEMBER \"// \"")] - public static ReadOnlySpan IMAGE_ARCHIVE_HYBRIDMAP_MEMBER => new byte[] { 0x2F, 0x3C, 0x48, 0x59, 0x42, 0x52, 0x49, 0x44, 0x4D, 0x41, 0x50, 0x3E, 0x2F, 0x20, 0x20, 0x20, 0x00 }; + public static ReadOnlySpan IMAGE_ARCHIVE_HYBRIDMAP_MEMBER => "// "u8; [NativeTypeName("#define IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR 60")] public const int IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60; @@ -1684,5 +1684,5 @@ public static partial class IMAGE public const int IMAGE_POLICY_METADATA_VERSION = 1; [NativeTypeName("#define IMAGE_POLICY_SECTION_NAME \".tPolicy\"")] - public static ReadOnlySpan IMAGE_POLICY_SECTION_NAME => new byte[] { 0x2E, 0x74, 0x50, 0x6F, 0x6C, 0x69, 0x63, 0x79, 0x00 }; + public static ReadOnlySpan IMAGE_POLICY_SECTION_NAME => ".tPolicy"u8; } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY.cs index c82393034c..0acc47ac40 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,12 +21,13 @@ public partial struct IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint UnwindData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnwindData, 1)); + return ref Anonymous.UnwindData; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM_RUNTIME_FUNCTION_ENTRY.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM_RUNTIME_FUNCTION_ENTRY.cs index 193f966807..61106afcdf 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM_RUNTIME_FUNCTION_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_ARM_RUNTIME_FUNCTION_ENTRY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,12 +21,13 @@ public partial struct IMAGE_ARM_RUNTIME_FUNCTION_ENTRY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint UnwindData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnwindData, 1)); + return ref Anonymous.UnwindData; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_AUX_SYMBOL_EX.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_AUX_SYMBOL_EX.cs index 7a76e1601a..f7ada79487 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_AUX_SYMBOL_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_AUX_SYMBOL_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -39,16 +40,18 @@ public unsafe partial struct IMAGE_AUX_SYMBOL_EX public _CRC_e__Struct CRC; /// + [UnscopedRef] public ref IMAGE_AUX_SYMBOL_TOKEN_DEF TokenDef { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TokenDef, 1)); + return ref Anonymous.TokenDef; } } /// + [UnscopedRef] public Span rgbReserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_COR20_HEADER.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_COR20_HEADER.cs index 680ce85f44..6252a307aa 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_COR20_HEADER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_COR20_HEADER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -53,22 +54,24 @@ public partial struct IMAGE_COR20_HEADER public IMAGE_DATA_DIRECTORY ManagedNativeHeader; /// + [UnscopedRef] public ref uint EntryPointToken { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.EntryPointToken, 1)); + return ref Anonymous.EntryPointToken; } } /// + [UnscopedRef] public ref uint EntryPointRVA { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.EntryPointRVA, 1)); + return ref Anonymous.EntryPointRVA; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_FUNCTION_ENTRY64.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_FUNCTION_ENTRY64.cs index a4d71fd296..129c1c33ed 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_FUNCTION_ENTRY64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_FUNCTION_ENTRY64.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,22 +26,24 @@ public partial struct IMAGE_FUNCTION_ENTRY64 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref ulong EndOfPrologue { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.EndOfPrologue, 1)); + return ref Anonymous.EndOfPrologue; } } /// + [UnscopedRef] public ref ulong UnwindInfoAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnwindInfoAddress, 1)); + return ref Anonymous.UnwindInfoAddress; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_IMPORT_DESCRIPTOR.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_IMPORT_DESCRIPTOR.cs index f40452cba8..aa6feaf9ff 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_IMPORT_DESCRIPTOR.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_IMPORT_DESCRIPTOR.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,22 +33,24 @@ public partial struct IMAGE_IMPORT_DESCRIPTOR public uint FirstThunk; /// + [UnscopedRef] public ref uint Characteristics { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Characteristics, 1)); + return ref Anonymous.Characteristics; } } /// + [UnscopedRef] public ref uint OriginalFirstThunk { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.OriginalFirstThunk, 1)); + return ref Anonymous.OriginalFirstThunk; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER32.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER32.cs index 675aca5be1..0db2e03e77 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER32.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER32.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -154,6 +155,7 @@ public partial struct _DataDirectory_e__FixedBuffer public IMAGE_DATA_DIRECTORY e14; public IMAGE_DATA_DIRECTORY e15; + [UnscopedRef] public ref IMAGE_DATA_DIRECTORY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -164,6 +166,7 @@ public ref IMAGE_DATA_DIRECTORY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER64.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER64.cs index 7ddf33fa2e..8a3549ef60 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OPTIONAL_HEADER64.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -152,6 +153,7 @@ public partial struct _DataDirectory_e__FixedBuffer public IMAGE_DATA_DIRECTORY e14; public IMAGE_DATA_DIRECTORY e15; + [UnscopedRef] public ref IMAGE_DATA_DIRECTORY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -162,6 +164,7 @@ public ref IMAGE_DATA_DIRECTORY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs index 2436b402b4..00e0581772 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,21 +20,23 @@ public partial struct IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY [NativeTypeName("_IMAGE_RUNTIME_FUNCTION_ENTRY::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:20134:5)")] public _Anonymous_e__Union Anonymous; + [UnscopedRef] public ref uint UnwindInfoAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnwindInfoAddress, 1)); + return ref Anonymous.UnwindInfoAddress; } } + [UnscopedRef] public ref uint UnwindData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UnwindData, 1)); + return ref Anonymous.UnwindData; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_POLICY_METADATA.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_POLICY_METADATA.cs index 28616a9262..58d05fd678 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_POLICY_METADATA.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_POLICY_METADATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,6 +33,7 @@ public partial struct _Policies_e__FixedBuffer { public IMAGE_POLICY_ENTRY e0; + [UnscopedRef] public ref IMAGE_POLICY_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -42,6 +44,7 @@ public ref IMAGE_POLICY_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_RELOCATION.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_RELOCATION.cs index 6a5e6af5da..70aa93f684 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_RELOCATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_RELOCATION.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,22 +26,24 @@ public partial struct IMAGE_RELOCATION public ushort Type; /// + [UnscopedRef] public ref uint VirtualAddress { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.VirtualAddress, 1)); + return ref Anonymous.VirtualAddress; } } /// + [UnscopedRef] public ref uint RelocCount { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RelocCount, 1)); + return ref Anonymous.RelocCount; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_RESOURCE_DIRECTORY_ENTRY.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_RESOURCE_DIRECTORY_ENTRY.cs index 7e5adf23ec..031bd0a99d 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_RESOURCE_DIRECTORY_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_RESOURCE_DIRECTORY_ENTRY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -52,32 +53,35 @@ public uint NameIsString } /// + [UnscopedRef] public ref uint Name { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Name, 1)); + return ref Anonymous1.Name; } } /// + [UnscopedRef] public ref ushort Id { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.Id, 1)); + return ref Anonymous1.Id; } } /// + [UnscopedRef] public ref uint OffsetToData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.OffsetToData, 1)); + return ref Anonymous2.OffsetToData; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY32.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY32.cs index 962300c0d3..82e5035b76 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY32.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY32.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -36,12 +37,13 @@ public partial struct IMAGE_TLS_DIRECTORY32 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Characteristics { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Characteristics, 1)); + return ref Anonymous.Characteristics; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY64.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY64.cs index 8cec228c48..49e1b0a8bf 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE_TLS_DIRECTORY64.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,12 +38,13 @@ public partial struct IMAGE_TLS_DIRECTORY64 public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Characteristics { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Characteristics, 1)); + return ref Anonymous.Characteristics; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/IMPORT_OBJECT_HEADER.cs b/sources/Interop/Windows/Windows/um/winnt/IMPORT_OBJECT_HEADER.cs index 0196f10956..81a00fca87 100644 --- a/sources/Interop/Windows/Windows/um/winnt/IMPORT_OBJECT_HEADER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/IMPORT_OBJECT_HEADER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -93,22 +94,24 @@ public ushort Reserved } /// + [UnscopedRef] public ref ushort Ordinal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Ordinal, 1)); + return ref Anonymous.Ordinal; } } /// + [UnscopedRef] public ref ushort Hint { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Hint, 1)); + return ref Anonymous.Hint; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_BASIC_PROCESS_ID_LIST.cs b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_BASIC_PROCESS_ID_LIST.cs index 6303823879..2b94c8a40b 100644 --- a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_BASIC_PROCESS_ID_LIST.cs +++ b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_BASIC_PROCESS_ID_LIST.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _ProcessIdList_e__FixedBuffer { public nuint e0; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_CPU_RATE_CONTROL_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_CPU_RATE_CONTROL_INFORMATION.cs index f4bcab3f8f..57e39393ce 100644 --- a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_CPU_RATE_CONTROL_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_CPU_RATE_CONTROL_INFORMATION.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -22,42 +23,46 @@ public partial struct JOBOBJECT_CPU_RATE_CONTROL_INFORMATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint CpuRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.CpuRate, 1)); + return ref Anonymous.CpuRate; } } /// + [UnscopedRef] public ref uint Weight { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Weight, 1)); + return ref Anonymous.Weight; } } /// + [UnscopedRef] public ref ushort MinRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.MinRate, 1)); + return ref Anonymous.Anonymous.MinRate; } } /// + [UnscopedRef] public ref ushort MaxRate { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Anonymous.MaxRate, 1)); + return ref Anonymous.Anonymous.MaxRate; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2.cs b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2.cs index 680c1b2b65..cc1ba59c10 100644 --- a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2.cs +++ b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -76,62 +77,68 @@ public partial struct JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 public JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlToleranceLimit; /// + [UnscopedRef] public ref ulong JobHighMemoryLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.JobHighMemoryLimit, 1)); + return ref Anonymous1.JobHighMemoryLimit; } } /// + [UnscopedRef] public ref ulong JobMemoryLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.JobMemoryLimit, 1)); + return ref Anonymous1.JobMemoryLimit; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.RateControlTolerance, 1)); + return ref Anonymous2.RateControlTolerance; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.CpuRateControlTolerance, 1)); + return ref Anonymous2.CpuRateControlTolerance; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlToleranceLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.RateControlToleranceLimit, 1)); + return ref Anonymous3.RateControlToleranceLimit; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlToleranceLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.CpuRateControlToleranceLimit, 1)); + return ref Anonymous3.CpuRateControlToleranceLimit; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2.cs b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2.cs index 6479d26c0c..1378bc02f1 100644 --- a/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2.cs +++ b/sources/Interop/Windows/Windows/um/winnt/JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -57,62 +58,68 @@ public partial struct JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 public JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL NetRateControlToleranceInterval; /// + [UnscopedRef] public ref ulong JobHighMemoryLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.JobHighMemoryLimit, 1)); + return ref Anonymous1.JobHighMemoryLimit; } } /// + [UnscopedRef] public ref ulong JobMemoryLimit { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.JobMemoryLimit, 1)); + return ref Anonymous1.JobMemoryLimit; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.RateControlTolerance, 1)); + return ref Anonymous2.RateControlTolerance; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.CpuRateControlTolerance, 1)); + return ref Anonymous2.CpuRateControlTolerance; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL RateControlToleranceInterval { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.RateControlToleranceInterval, 1)); + return ref Anonymous3.RateControlToleranceInterval; } } /// + [UnscopedRef] public ref JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL CpuRateControlToleranceInterval { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous3.CpuRateControlToleranceInterval, 1)); + return ref Anonymous3.CpuRateControlToleranceInterval; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/KTMOBJECT_CURSOR.cs b/sources/Interop/Windows/Windows/um/winnt/KTMOBJECT_CURSOR.cs index 9e739c2b2b..6fc0fb0087 100644 --- a/sources/Interop/Windows/Windows/um/winnt/KTMOBJECT_CURSOR.cs +++ b/sources/Interop/Windows/Windows/um/winnt/KTMOBJECT_CURSOR.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,6 +29,7 @@ public partial struct _ObjectIds_e__FixedBuffer { public Guid e0; + [UnscopedRef] public ref Guid this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -38,6 +40,7 @@ public ref Guid this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/LARGE_INTEGER.cs b/sources/Interop/Windows/Windows/um/winnt/LARGE_INTEGER.cs index ff7ec85295..d05b041106 100644 --- a/sources/Interop/Windows/Windows/um/winnt/LARGE_INTEGER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/LARGE_INTEGER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,22 +29,24 @@ public partial struct LARGE_INTEGER public long QuadPart; /// + [UnscopedRef] public ref uint LowPart { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1)); + return ref Anonymous.LowPart; } } /// + [UnscopedRef] public ref int HighPart { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1)); + return ref Anonymous.HighPart; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/MEM_EXTENDED_PARAMETER.cs b/sources/Interop/Windows/Windows/um/winnt/MEM_EXTENDED_PARAMETER.cs index 945eb950c0..532177cdb1 100644 --- a/sources/Interop/Windows/Windows/um/winnt/MEM_EXTENDED_PARAMETER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/MEM_EXTENDED_PARAMETER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -54,52 +55,57 @@ public ulong Reserved } /// + [UnscopedRef] public ref ulong ULong64 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ULong64, 1)); + return ref Anonymous2.ULong64; } } /// + [UnscopedRef] public ref void* Pointer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.Pointer; + return ref Anonymous2.Pointer; } } /// + [UnscopedRef] public ref nuint Size { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Size, 1)); + return ref Anonymous2.Size; } } /// + [UnscopedRef] public ref HANDLE Handle { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous2.Handle; + return ref Anonymous2.Handle; } } /// + [UnscopedRef] public ref uint ULong { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.ULong, 1)); + return ref Anonymous2.ULong; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/MESSAGE_RESOURCE_DATA.cs b/sources/Interop/Windows/Windows/um/winnt/MESSAGE_RESOURCE_DATA.cs index ecc5f06619..71ef70ae15 100644 --- a/sources/Interop/Windows/Windows/um/winnt/MESSAGE_RESOURCE_DATA.cs +++ b/sources/Interop/Windows/Windows/um/winnt/MESSAGE_RESOURCE_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Blocks_e__FixedBuffer { public MESSAGE_RESOURCE_BLOCK e0; + [UnscopedRef] public ref MESSAGE_RESOURCE_BLOCK this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref MESSAGE_RESOURCE_BLOCK this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/NT_TIB32.cs b/sources/Interop/Windows/Windows/um/winnt/NT_TIB32.cs index 17cfcbd772..1bf1f6116a 100644 --- a/sources/Interop/Windows/Windows/um/winnt/NT_TIB32.cs +++ b/sources/Interop/Windows/Windows/um/winnt/NT_TIB32.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -40,22 +41,24 @@ public partial struct NT_TIB32 public uint Self; /// + [UnscopedRef] public ref uint FiberData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FiberData, 1)); + return ref Anonymous.FiberData; } } /// + [UnscopedRef] public ref uint Version { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Version, 1)); + return ref Anonymous.Version; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/NT_TIB64.cs b/sources/Interop/Windows/Windows/um/winnt/NT_TIB64.cs index 1baee1af19..1b24c09f4e 100644 --- a/sources/Interop/Windows/Windows/um/winnt/NT_TIB64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/NT_TIB64.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -40,22 +41,24 @@ public partial struct NT_TIB64 public ulong Self; /// + [UnscopedRef] public ref ulong FiberData { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.FiberData, 1)); + return ref Anonymous.FiberData; } } /// + [UnscopedRef] public ref uint Version { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Version, 1)); + return ref Anonymous.Version; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs index f11e98b91b..301a3953ae 100644 --- a/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs @@ -4,12 +4,14 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace TerraFX.Interop.Windows; public unsafe partial struct NUMA_NODE_RELATIONSHIP { + [UnscopedRef] public Span GroupMasks { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.cs b/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.cs index 743ad1a1da..eda2f6d1c5 100644 --- a/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.cs +++ b/sources/Interop/Windows/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,12 +30,13 @@ public unsafe partial struct NUMA_NODE_RELATIONSHIP public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref GROUP_AFFINITY GroupMask { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.GroupMask, 1)); + return ref Anonymous.GroupMask; } } @@ -56,6 +58,7 @@ public partial struct _GroupMasks_e__FixedBuffer { public GROUP_AFFINITY e0; + [UnscopedRef] public ref GROUP_AFFINITY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -66,6 +69,7 @@ public ref GROUP_AFFINITY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PERFORMANCE_DATA.cs b/sources/Interop/Windows/Windows/um/winnt/PERFORMANCE_DATA.cs index 6e924521ec..1a2a8ad750 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PERFORMANCE_DATA.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PERFORMANCE_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -66,6 +67,7 @@ public partial struct _HwCounters_e__FixedBuffer public HARDWARE_COUNTER_DATA e14; public HARDWARE_COUNTER_DATA e15; + [UnscopedRef] public ref HARDWARE_COUNTER_DATA this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -76,6 +78,7 @@ public ref HARDWARE_COUNTER_DATA this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING.cs index 7e8bad0dcd..ca36c435e3 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _State_e__FixedBuffer { public PPM_IDLE_STATE_ACCOUNTING e0; + [UnscopedRef] public ref PPM_IDLE_STATE_ACCOUNTING this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref PPM_IDLE_STATE_ACCOUNTING this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING_EX.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING_EX.cs index 78c90a3c21..4c203b323f 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_ACCOUNTING_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _State_e__FixedBuffer { public PPM_IDLE_STATE_ACCOUNTING_EX e0; + [UnscopedRef] public ref PPM_IDLE_STATE_ACCOUNTING_EX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref PPM_IDLE_STATE_ACCOUNTING_EX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_STATE_ACCOUNTING_EX.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_STATE_ACCOUNTING_EX.cs index 8c666e8e82..da09fa904f 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_STATE_ACCOUNTING_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_IDLE_STATE_ACCOUNTING_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -64,6 +65,7 @@ public partial struct _IdleTimeBuckets_e__FixedBuffer public PPM_IDLE_STATE_BUCKET_EX e14; public PPM_IDLE_STATE_BUCKET_EX e15; + [UnscopedRef] public ref PPM_IDLE_STATE_BUCKET_EX this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -74,6 +76,7 @@ public ref PPM_IDLE_STATE_BUCKET_EX this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES.cs index 184bc55006..48bd8bc680 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _State_e__FixedBuffer { public PPM_WMI_IDLE_STATE e0; + [UnscopedRef] public ref PPM_WMI_IDLE_STATE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref PPM_WMI_IDLE_STATE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES_EX.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES_EX.cs index f0daf24cbd..804cf4f1f3 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_IDLE_STATES_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -41,6 +42,7 @@ public partial struct _State_e__FixedBuffer { public PPM_WMI_IDLE_STATE e0; + [UnscopedRef] public ref PPM_WMI_IDLE_STATE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -51,6 +53,7 @@ public ref PPM_WMI_IDLE_STATE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES.cs index 498fe57dc0..db263c3883 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -97,6 +98,7 @@ public partial struct _State_e__FixedBuffer { public PPM_WMI_PERF_STATE e0; + [UnscopedRef] public ref PPM_WMI_PERF_STATE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -107,6 +109,7 @@ public ref PPM_WMI_PERF_STATE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES_EX.cs b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES_EX.cs index 0f60e26c86..7565342773 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PPM_WMI_PERF_STATES_EX.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -97,6 +98,7 @@ public partial struct _State_e__FixedBuffer { public PPM_WMI_PERF_STATE e0; + [UnscopedRef] public ref PPM_WMI_PERF_STATE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -107,6 +109,7 @@ public ref PPM_WMI_PERF_STATE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PRIVILEGE_SET.cs b/sources/Interop/Windows/Windows/um/winnt/PRIVILEGE_SET.cs index b272661ac6..028472f80b 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PRIVILEGE_SET.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PRIVILEGE_SET.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -29,6 +30,7 @@ public partial struct _Privilege_e__FixedBuffer { public LUID_AND_ATTRIBUTES e0; + [UnscopedRef] public ref LUID_AND_ATTRIBUTES this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -39,6 +41,7 @@ public ref LUID_AND_ATTRIBUTES this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_IDLESTATE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_IDLESTATE_POLICY.cs index ff045e1fb9..f11090c772 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_IDLESTATE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_IDLESTATE_POLICY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -155,6 +156,7 @@ public partial struct _Policy_e__FixedBuffer public PROCESSOR_IDLESTATE_INFO e1; public PROCESSOR_IDLESTATE_INFO e2; + [UnscopedRef] public ref PROCESSOR_IDLESTATE_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -165,6 +167,7 @@ public ref PROCESSOR_IDLESTATE_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_PERFSTATE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_PERFSTATE_POLICY.cs index e08ce1e9de..3452194f07 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_PERFSTATE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_PERFSTATE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -49,22 +50,24 @@ public partial struct PROCESSOR_PERFSTATE_POLICY public uint DecreasePercent; /// + [UnscopedRef] public ref byte Spare { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Spare, 1)); + return ref Anonymous.Spare; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._Flags_e__Union Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_POWER_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_POWER_POLICY.cs index 7eafa7daf2..0b948012e9 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_POWER_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_POWER_POLICY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -74,6 +75,7 @@ public partial struct _Policy_e__FixedBuffer public PROCESSOR_POWER_POLICY_INFO e1; public PROCESSOR_POWER_POLICY_INFO e2; + [UnscopedRef] public ref PROCESSOR_POWER_POLICY_INFO this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -84,6 +86,7 @@ public ref PROCESSOR_POWER_POLICY_INFO this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_RELATIONSHIP.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_RELATIONSHIP.cs index 958ab6734e..e398c699f7 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_RELATIONSHIP.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESSOR_RELATIONSHIP.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _GroupMask_e__FixedBuffer { public GROUP_AFFINITY e0; + [UnscopedRef] public ref GROUP_AFFINITY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref GROUP_AFFINITY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_ASLR_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_ASLR_POLICY.cs index ca9634a546..2455be4750 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_ASLR_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_ASLR_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_ASLR_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY.cs index c4458b5f1a..3a6cf2ff5e 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CHILD_PROCESS_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CHILD_PROCESS_POLICY.cs index 8b68eaf3b3..590139cd33 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CHILD_PROCESS_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CHILD_PROCESS_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,12 +17,13 @@ public partial struct PROCESS_MITIGATION_CHILD_PROCESS_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY.cs index 0df22196d0..ade3d9b3af 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DEP_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DEP_POLICY.cs index 721fc37cd8..1005bb8dc1 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DEP_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DEP_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -22,12 +23,13 @@ public partial struct PROCESS_MITIGATION_DEP_POLICY public byte Permanent; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DYNAMIC_CODE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DYNAMIC_CODE_POLICY.cs index 2c8275647f..ee271318dd 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DYNAMIC_CODE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_DYNAMIC_CODE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_DYNAMIC_CODE_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY.cs index c7f3aa5436..d0a82a25e0 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_FONT_DISABLE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_FONT_DISABLE_POLICY.cs index 00570701de..6212268d88 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_FONT_DISABLE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_FONT_DISABLE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_FONT_DISABLE_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_IMAGE_LOAD_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_IMAGE_LOAD_POLICY.cs index 3ad6325db2..1329ea25a6 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_IMAGE_LOAD_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_IMAGE_LOAD_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_IMAGE_LOAD_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY.cs index 070af0d072..78a7760965 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,12 +17,13 @@ public partial struct PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY.cs index 6bb388eb16..680814d1a9 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,12 +17,13 @@ public partial struct PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY.cs index e756674c14..1b679f622c 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,12 +17,13 @@ public partial struct PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY.cs index fd52dbaf0b..e910db8a92 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY.cs index 75458d592c..33673732c0 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY.cs index 1cecd7dacd..8b50c776ee 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -16,12 +17,13 @@ public partial struct PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY.cs index 9882bb489b..b564a6c6bf 100644 --- a/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -18,12 +19,13 @@ public partial struct PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref uint Flags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Flags, 1)); + return ref Anonymous.Flags; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_AMD64.cs b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_AMD64.cs index ec065ec9e6..87d68f2df3 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_AMD64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_AMD64.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -45,6 +46,7 @@ public partial struct _ScopeRecord_e__FixedBuffer { public _Anonymous_e__Struct e0; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -55,6 +57,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM.cs b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM.cs index 5e059f58bc..0d158425f1 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -45,6 +46,7 @@ public partial struct _ScopeRecord_e__FixedBuffer { public _Anonymous_e__Struct e0; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -55,6 +57,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM64.cs b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM64.cs index 36541146bb..50960478c2 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM64.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SCOPE_TABLE_ARM64.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -45,6 +46,7 @@ public partial struct _ScopeRecord_e__FixedBuffer { public _Anonymous_e__Struct e0; + [UnscopedRef] public ref _Anonymous_e__Struct this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -55,6 +57,7 @@ public ref _Anonymous_e__Struct this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span<_Anonymous_e__Struct> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SCRUB_PARITY_EXTENT_DATA.cs b/sources/Interop/Windows/Windows/um/winnt/SCRUB_PARITY_EXTENT_DATA.cs index 70d6110e13..ef6519a8d7 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SCRUB_PARITY_EXTENT_DATA.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SCRUB_PARITY_EXTENT_DATA.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -37,6 +38,7 @@ public partial struct _ParityExtents_e__FixedBuffer { public SCRUB_PARITY_EXTENT e0; + [UnscopedRef] public ref SCRUB_PARITY_EXTENT this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -47,6 +49,7 @@ public ref SCRUB_PARITY_EXTENT this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SE_TOKEN_USER.cs b/sources/Interop/Windows/Windows/um/winnt/SE_TOKEN_USER.cs index a12a2c9af5..2b225bb506 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SE_TOKEN_USER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SE_TOKEN_USER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -21,36 +22,40 @@ public unsafe partial struct SE_TOKEN_USER public _Anonymous2_e__Union Anonymous2; /// + [UnscopedRef] public ref TOKEN_USER TokenUser { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.TokenUser, 1)); + return ref Anonymous1.TokenUser; } } /// + [UnscopedRef] public ref SID_AND_ATTRIBUTES User { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.User, 1)); + return ref Anonymous1.User; } } /// + [UnscopedRef] public ref SID Sid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Sid, 1)); + return ref Anonymous2.Sid; } } /// + [UnscopedRef] public Span Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/SID_AND_ATTRIBUTES_HASH.cs b/sources/Interop/Windows/Windows/um/winnt/SID_AND_ATTRIBUTES_HASH.cs index d163f9e10a..412270e541 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SID_AND_ATTRIBUTES_HASH.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SID_AND_ATTRIBUTES_HASH.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -60,6 +61,7 @@ public partial struct _Hash_e__FixedBuffer public nuint e30; public nuint e31; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -70,6 +72,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 32); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs index af1e130c35..6ee3a11d52 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,21 +20,23 @@ public partial struct SLIST_HEADER_AMD64 [NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:21227:5)")] public _HeaderX64_e__Struct HeaderX64; + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } + [UnscopedRef] public ref ulong Region { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Region, 1)); + return ref Anonymous.Region; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs index 737623a108..676b096397 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,30 +20,33 @@ public partial struct SLIST_HEADER_ARM [NativeTypeName("_SLIST_HEADER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:21266:5)")] public _Anonymous_e__Struct Anonymous; + [UnscopedRef] public ref SLIST_ENTRY Next { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Next, 1)); + return ref Anonymous.Next; } } + [UnscopedRef] public ref ushort Depth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Depth, 1)); + return ref Anonymous.Depth; } } + [UnscopedRef] public ref ushort Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Reserved, 1)); + return ref Anonymous.Reserved; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs index d94e47917a..e778592c46 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,21 +20,23 @@ public partial struct SLIST_HEADER_ARM64 [NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:21243:5)")] public _HeaderArm64_e__Struct HeaderArm64; + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } + [UnscopedRef] public ref ulong Region { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Region, 1)); + return ref Anonymous.Region; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs index 4c5a4ecb8c..0f9485aa9e 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,21 +20,23 @@ public partial struct SLIST_HEADER_X86 [NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/winnt.h:21227:5)")] public _HeaderX64_e__Struct HeaderX64; + [UnscopedRef] public ref ulong Alignment { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Alignment, 1)); + return ref Anonymous.Alignment; } } + [UnscopedRef] public ref ulong Region { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Region, 1)); + return ref Anonymous.Region; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SYNCHRONIZATION_BARRIER.cs b/sources/Interop/Windows/Windows/um/winnt/SYNCHRONIZATION_BARRIER.cs index 0c24775f0f..3e47c490d4 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYNCHRONIZATION_BARRIER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYNCHRONIZATION_BARRIER.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,6 +39,7 @@ public partial struct _Reserved3_e__FixedBuffer public nuint e0; public nuint e1; + [UnscopedRef] public ref nuint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -48,6 +50,7 @@ public ref nuint this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_CPU_SET_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_CPU_SET_INFORMATION.cs index 820c5162d5..4c106b8f3c 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_CPU_SET_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_CPU_SET_INFORMATION.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; @@ -25,12 +26,13 @@ public partial struct SYSTEM_CPU_SET_INFORMATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._CpuSet_e__Struct CpuSet { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.CpuSet, 1)); + return ref Anonymous.CpuSet; } } @@ -82,12 +84,13 @@ public partial struct _CpuSet_e__Struct public ulong AllocationTag; /// + [UnscopedRef] public ref byte AllFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous1.AllFlags, 1)); + return ref Anonymous1.AllFlags; } } @@ -172,22 +175,24 @@ public byte ReservedFlags } /// + [UnscopedRef] public ref uint Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.Reserved, 1)); + return ref Anonymous2.Reserved; } } /// + [UnscopedRef] public ref byte SchedulingClass { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous2.SchedulingClass, 1)); + return ref Anonymous2.SchedulingClass; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION.cs index d1ad185d09..ca1ddf51b6 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -24,36 +25,40 @@ public unsafe partial struct SYSTEM_LOGICAL_PROCESSOR_INFORMATION public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref _Anonymous_e__Union._ProcessorCore_e__Struct ProcessorCore { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ProcessorCore, 1)); + return ref Anonymous.ProcessorCore; } } /// + [UnscopedRef] public ref _Anonymous_e__Union._NumaNode_e__Struct NumaNode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NumaNode, 1)); + return ref Anonymous.NumaNode; } } /// + [UnscopedRef] public ref CACHE_DESCRIPTOR Cache { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Cache, 1)); + return ref Anonymous.Cache; } } /// + [UnscopedRef] public Span Reserved { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX.cs index 11de7013ae..a7eb9b1c88 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -23,42 +24,46 @@ public partial struct SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX public _Anonymous_e__Union Anonymous; /// + [UnscopedRef] public ref PROCESSOR_RELATIONSHIP Processor { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Processor, 1)); + return ref Anonymous.Processor; } } /// + [UnscopedRef] public ref NUMA_NODE_RELATIONSHIP NumaNode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.NumaNode, 1)); + return ref Anonymous.NumaNode; } } /// + [UnscopedRef] public ref CACHE_RELATIONSHIP Cache { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Cache, 1)); + return ref Anonymous.Cache; } } /// + [UnscopedRef] public ref GROUP_RELATIONSHIP Group { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Group, 1)); + return ref Anonymous.Group; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_CAPABILITIES.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_CAPABILITIES.cs index 8451612977..7d4fa752c0 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_CAPABILITIES.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_CAPABILITIES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -143,6 +144,7 @@ public partial struct _BatteryScale_e__FixedBuffer public BATTERY_REPORTING_SCALE e1; public BATTERY_REPORTING_SCALE e2; + [UnscopedRef] public ref BATTERY_REPORTING_SCALE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -153,6 +155,7 @@ public ref BATTERY_REPORTING_SCALE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_POLICY.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_POLICY.cs index dac6227980..8d62cf40fc 100644 --- a/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_POLICY.cs +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM_POWER_POLICY.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -118,6 +119,7 @@ public partial struct _DischargePolicy_e__FixedBuffer public SYSTEM_POWER_LEVEL e2; public SYSTEM_POWER_LEVEL e3; + [UnscopedRef] public ref SYSTEM_POWER_LEVEL this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -128,6 +130,7 @@ public ref SYSTEM_POWER_LEVEL this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 4); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/TOKEN_GROUPS.cs b/sources/Interop/Windows/Windows/um/winnt/TOKEN_GROUPS.cs index e04fe9f50d..8a08843d3f 100644 --- a/sources/Interop/Windows/Windows/um/winnt/TOKEN_GROUPS.cs +++ b/sources/Interop/Windows/Windows/um/winnt/TOKEN_GROUPS.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Groups_e__FixedBuffer { public SID_AND_ATTRIBUTES e0; + [UnscopedRef] public ref SID_AND_ATTRIBUTES this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref SID_AND_ATTRIBUTES this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/TOKEN_PRIVILEGES.cs b/sources/Interop/Windows/Windows/um/winnt/TOKEN_PRIVILEGES.cs index 6564b40734..a8e1b20269 100644 --- a/sources/Interop/Windows/Windows/um/winnt/TOKEN_PRIVILEGES.cs +++ b/sources/Interop/Windows/Windows/um/winnt/TOKEN_PRIVILEGES.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _Privileges_e__FixedBuffer { public LUID_AND_ATTRIBUTES e0; + [UnscopedRef] public ref LUID_AND_ATTRIBUTES this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref LUID_AND_ATTRIBUTES this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_ENLISTMENTS_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_ENLISTMENTS_INFORMATION.cs index 5b3b48d0a9..799a562102 100644 --- a/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_ENLISTMENTS_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_ENLISTMENTS_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _EnlistmentPair_e__FixedBuffer { public TRANSACTION_ENLISTMENT_PAIR e0; + [UnscopedRef] public ref TRANSACTION_ENLISTMENT_PAIR this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref TRANSACTION_ENLISTMENT_PAIR this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_LIST_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_LIST_INFORMATION.cs index 511e0cf1c4..a049d82892 100644 --- a/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_LIST_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/TRANSACTION_LIST_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -25,6 +26,7 @@ public partial struct _TransactionInformation_e__FixedBuffer { public TRANSACTION_LIST_ENTRY e0; + [UnscopedRef] public ref TRANSACTION_LIST_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -35,6 +37,7 @@ public ref TRANSACTION_LIST_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/ULARGE_INTEGER.cs b/sources/Interop/Windows/Windows/um/winnt/ULARGE_INTEGER.cs index 629d508e8a..33faa27a01 100644 --- a/sources/Interop/Windows/Windows/um/winnt/ULARGE_INTEGER.cs +++ b/sources/Interop/Windows/Windows/um/winnt/ULARGE_INTEGER.cs @@ -3,6 +3,7 @@ // 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.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -28,22 +29,24 @@ public partial struct ULARGE_INTEGER public ulong QuadPart; /// + [UnscopedRef] public ref uint LowPart { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1)); + return ref Anonymous.LowPart; } } /// + [UnscopedRef] public ref uint HighPart { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1)); + return ref Anonymous.HighPart; } } diff --git a/sources/Interop/Windows/Windows/um/winnt/UNWIND_HISTORY_TABLE.cs b/sources/Interop/Windows/Windows/um/winnt/UNWIND_HISTORY_TABLE.cs index 91881b1b4d..8f40e49e4d 100644 --- a/sources/Interop/Windows/Windows/um/winnt/UNWIND_HISTORY_TABLE.cs +++ b/sources/Interop/Windows/Windows/um/winnt/UNWIND_HISTORY_TABLE.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -56,6 +57,7 @@ public partial struct _Entry_e__FixedBuffer public UNWIND_HISTORY_TABLE_ENTRY e10; public UNWIND_HISTORY_TABLE_ENTRY e11; + [UnscopedRef] public ref UNWIND_HISTORY_TABLE_ENTRY this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -66,6 +68,7 @@ public ref UNWIND_HISTORY_TABLE_ENTRY this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 12); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/Windows.cs b/sources/Interop/Windows/Windows/um/winnt/Windows.cs index 2e32144d5e..dc88147cc4 100644 --- a/sources/Interop/Windows/Windows/um/winnt/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winnt/Windows.cs @@ -468,7 +468,7 @@ public static ref readonly Guid ALL_POWERSCHEMES_GUID public const int SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS = (0x00000001); [NativeTypeName("#define SMB_CCF_APP_INSTANCE_EA_NAME \"ClusteredApplicationInstance\"")] - public static ReadOnlySpan 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 }; + public static ReadOnlySpan SMB_CCF_APP_INSTANCE_EA_NAME => "ClusteredApplicationInstance"u8; [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; diff --git a/sources/Interop/Windows/Windows/um/winnt/XSAVE_FORMAT.cs b/sources/Interop/Windows/Windows/um/winnt/XSAVE_FORMAT.cs index b198a4a32b..d1af533abc 100644 --- a/sources/Interop/Windows/Windows/um/winnt/XSAVE_FORMAT.cs +++ b/sources/Interop/Windows/Windows/um/winnt/XSAVE_FORMAT.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -86,6 +87,7 @@ public partial struct _FloatRegisters_e__FixedBuffer public M128A e6; public M128A e7; + [UnscopedRef] public ref M128A this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -96,6 +98,7 @@ public ref M128A this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); } @@ -119,6 +122,7 @@ public partial struct _XmmRegisters_e__FixedBuffer public M128A e14; public M128A e15; + [UnscopedRef] public ref M128A this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -129,6 +133,7 @@ public ref M128A this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/XSTATE_CONFIGURATION.cs b/sources/Interop/Windows/Windows/um/winnt/XSTATE_CONFIGURATION.cs index fd912ca4da..d026630be6 100644 --- a/sources/Interop/Windows/Windows/um/winnt/XSTATE_CONFIGURATION.cs +++ b/sources/Interop/Windows/Windows/um/winnt/XSTATE_CONFIGURATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -65,12 +66,13 @@ public unsafe partial struct XSTATE_CONFIGURATION public uint Spare; /// + [UnscopedRef] public ref uint ControlFlags { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.ControlFlags, 1)); + return ref Anonymous.ControlFlags; } } @@ -262,6 +264,7 @@ public partial struct _Features_e__FixedBuffer public XSTATE_FEATURE e62; public XSTATE_FEATURE e63; + [UnscopedRef] public ref XSTATE_FEATURE this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -272,6 +275,7 @@ public ref XSTATE_FEATURE this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 64); } } diff --git a/sources/Interop/Windows/Windows/um/winternl/IO_STATUS_BLOCK.cs b/sources/Interop/Windows/Windows/um/winternl/IO_STATUS_BLOCK.cs index 42f108e9a5..248299f502 100644 --- a/sources/Interop/Windows/Windows/um/winternl/IO_STATUS_BLOCK.cs +++ b/sources/Interop/Windows/Windows/um/winternl/IO_STATUS_BLOCK.cs @@ -3,6 +3,7 @@ // Ported from um/winternl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -20,22 +21,24 @@ public unsafe partial struct IO_STATUS_BLOCK public nuint Information; /// + [UnscopedRef] public ref int Status { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Status, 1)); + return ref Anonymous.Status; } } /// + [UnscopedRef] public ref void* Pointer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Pointer; + return ref Anonymous.Pointer; } } diff --git a/sources/Interop/Windows/Windows/um/winternl/LDR_DATA_TABLE_ENTRY.cs b/sources/Interop/Windows/Windows/um/winternl/LDR_DATA_TABLE_ENTRY.cs index 34019a12ef..15e73616d0 100644 --- a/sources/Interop/Windows/Windows/um/winternl/LDR_DATA_TABLE_ENTRY.cs +++ b/sources/Interop/Windows/Windows/um/winternl/LDR_DATA_TABLE_ENTRY.cs @@ -3,6 +3,7 @@ // Ported from um/winternl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -50,22 +51,24 @@ public unsafe partial struct LDR_DATA_TABLE_ENTRY public uint TimeDateStamp; /// + [UnscopedRef] public ref uint CheckSum { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.CheckSum, 1)); + return ref Anonymous.CheckSum; } } /// + [UnscopedRef] public ref void* Reserved6 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this, 1)).Anonymous.Reserved6; + return ref Anonymous.Reserved6; } } diff --git a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION.cs index 4a84d7827e..045c7d8d50 100644 --- a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -35,6 +36,7 @@ public partial struct _Reserved1_e__FixedBuffer public LARGE_INTEGER e0; public LARGE_INTEGER e1; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -45,6 +47,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); } } diff --git a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESS_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESS_INFORMATION.cs index 693609a4b5..eba8b42af2 100644 --- a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESS_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_PROCESS_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -112,6 +113,7 @@ public partial struct _Reserved7_e__FixedBuffer public LARGE_INTEGER e4; public LARGE_INTEGER e5; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -122,6 +124,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 6); } } diff --git a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_THREAD_INFORMATION.cs b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_THREAD_INFORMATION.cs index eb3ac5b8b3..920a089907 100644 --- a/sources/Interop/Windows/Windows/um/winternl/SYSTEM_THREAD_INFORMATION.cs +++ b/sources/Interop/Windows/Windows/um/winternl/SYSTEM_THREAD_INFORMATION.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -54,6 +55,7 @@ public partial struct _Reserved1_e__FixedBuffer public LARGE_INTEGER e1; public LARGE_INTEGER e2; + [UnscopedRef] public ref LARGE_INTEGER this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -64,6 +66,7 @@ public ref LARGE_INTEGER this[int index] } [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 3); } } diff --git a/sources/Interop/Windows/Windows/um/xmllite/IXmlReader.cs b/sources/Interop/Windows/Windows/um/xmllite/IXmlReader.cs index 865db58799..360ac1313b 100644 --- a/sources/Interop/Windows/Windows/um/xmllite/IXmlReader.cs +++ b/sources/Interop/Windows/Windows/um/xmllite/IXmlReader.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7279FC81-709D-4095-B63D-69FE4B0D9030")] [NativeTypeName("struct IXmlReader : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXmlReader : IXmlReader.Interface +public unsafe partial struct IXmlReader : IXmlReader.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXmlReader)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/xmllite/IXmlResolver.cs b/sources/Interop/Windows/Windows/um/xmllite/IXmlResolver.cs index 5b14745701..ef203e779e 100644 --- a/sources/Interop/Windows/Windows/um/xmllite/IXmlResolver.cs +++ b/sources/Interop/Windows/Windows/um/xmllite/IXmlResolver.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7279FC82-709D-4095-B63D-69FE4B0D9030")] [NativeTypeName("struct IXmlResolver : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXmlResolver : IXmlResolver.Interface +public unsafe partial struct IXmlResolver : IXmlResolver.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXmlResolver)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/xmllite/IXmlWriter.cs b/sources/Interop/Windows/Windows/um/xmllite/IXmlWriter.cs index 0a6a7bbd1b..decd6ae00d 100644 --- a/sources/Interop/Windows/Windows/um/xmllite/IXmlWriter.cs +++ b/sources/Interop/Windows/Windows/um/xmllite/IXmlWriter.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("7279FC88-709D-4095-B63D-69FE4B0D9030")] [NativeTypeName("struct IXmlWriter : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXmlWriter : IXmlWriter.Interface +public unsafe partial struct IXmlWriter : IXmlWriter.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXmlWriter)); + public void** lpVtbl; /// diff --git a/sources/Interop/Windows/Windows/um/xmllite/IXmlWriterLite.cs b/sources/Interop/Windows/Windows/um/xmllite/IXmlWriterLite.cs index c194a6363d..ee7bcb95cb 100644 --- a/sources/Interop/Windows/Windows/um/xmllite/IXmlWriterLite.cs +++ b/sources/Interop/Windows/Windows/um/xmllite/IXmlWriterLite.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.IID; namespace TerraFX.Interop.Windows; @@ -13,8 +14,10 @@ namespace TerraFX.Interop.Windows; [Guid("862494C6-1310-4AAD-B3CD-2DBEEBF670D3")] [NativeTypeName("struct IXmlWriterLite : IUnknown")] [NativeInheritance("IUnknown")] -public unsafe partial struct IXmlWriterLite : IXmlWriterLite.Interface +public unsafe partial struct IXmlWriterLite : IXmlWriterLite.Interface, INativeGuid { + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IXmlWriterLite)); + public void** lpVtbl; /// diff --git a/tests/Interop/Windows/TerraFX.Interop.Windows.UnitTests.csproj b/tests/Interop/Windows/TerraFX.Interop.Windows.UnitTests.csproj index 9b5baa3277..bba7fd1e3f 100644 --- a/tests/Interop/Windows/TerraFX.Interop.Windows.UnitTests.csproj +++ b/tests/Interop/Windows/TerraFX.Interop.Windows.UnitTests.csproj @@ -4,7 +4,7 @@ TerraFX.Interop.UnitTests - net6.0 + net6.0;net7.0