diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs index 8dbc52d8c25..4d3a61b279d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs @@ -12,47 +12,47 @@ internal unsafe struct IDWriteFactory : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFactory*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFactory*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFactory*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFactory*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFactory*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFactory*)Unsafe.AsPointer(ref this)); } public int GetSystemFontCollection(IDWriteFontCollection** fontCollection, int checkForUpdates = 0) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + return ((delegate* unmanaged)(lpVtbl[3]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); } public int CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + return ((delegate* unmanaged)(lpVtbl[4]))((IDWriteFactory*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); } public int RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); + return ((delegate* unmanaged)(lpVtbl[5]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); } public int CreateFontFace(DWRITE_FONT_FACE_TYPE fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags, IDWriteFontFace** fontFace) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + return ((delegate* unmanaged)(lpVtbl[9]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); } public int RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); + return ((delegate* unmanaged)(lpVtbl[13]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); } public int CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textAnalyzer); + return ((delegate* unmanaged)(lpVtbl[21]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textAnalyzer); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs index a3c8204f6fb..9107e4e8f53 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteFontCollection : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs index 794f88dbb47..44fddcccd47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteFontCollectionLoader : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this)); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs index 90b09e057f7..4ca49c06a39 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteFontFace : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs index 12ef4b0f086..ddb46baae68 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteFontFile : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFontFile*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFontFile*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFontFile*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFontFile*)Unsafe.AsPointer(ref this)); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs index 984f5929a6e..8841d32884a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteFontFileLoader : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this)); } } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs index c4f8f72b4b6..308d6b87c18 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs @@ -12,17 +12,17 @@ internal unsafe struct IDWriteTextAnalyzer : IUnknown public int QueryInterface(Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged)(lpVtbl[0]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[1]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this)); } public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged)(lpVtbl[2]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this)); } } }