diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt
index 4c03cb2510..b369066821 100644
--- a/.github/actions/spell-check/expect.txt
+++ b/.github/actions/spell-check/expect.txt
@@ -976,7 +976,7 @@ ipc
ipcmanager
IPlugin
IPower
-ipreview
+IPREVIEW
ipreviewhandlervisualssetfont
IProperty
IPublic
@@ -994,7 +994,7 @@ iss
ISurface
ITask
ith
-ithumbnail
+ITHUMBNAIL
IUI
IUnknown
IWbem
@@ -1478,7 +1478,7 @@ PATINVERT
PATPAINT
PAUDIO
pbc
-pbgra
+Pbgra
PBlob
pcb
pcch
diff --git a/.pipelines/ESRPSigning_core.json b/.pipelines/ESRPSigning_core.json
index ec5e874736..048147cef1 100644
--- a/.pipelines/ESRPSigning_core.json
+++ b/.pipelines/ESRPSigning_core.json
@@ -93,7 +93,6 @@
"modules\\Peek\\Peek.FilePreviewer.dll",
"modules\\Peek\\Powertoys.Peek.UI.dll",
"modules\\Peek\\Powertoys.Peek.UI.exe",
- "modules\\Peek\\WIC.dll",
"modules\\Peek\\Powertoys.Peek.dll",
"modules\\ImageResizer\\PowerToys.ImageResizer.exe",
diff --git a/PowerToys.sln b/PowerToys.sln
index d6860478ad..9a0cae23a3 100644
--- a/PowerToys.sln
+++ b/PowerToys.sln
@@ -475,8 +475,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Peek.Common", "src\modules\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Peek.FilePreviewer", "src\modules\peek\Peek.FilePreviewer\Peek.FilePreviewer.csproj", "{AA9F0AF8-7924-4D59-BAA1-E36F1304E0DC}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WIC", "src\modules\peek\WIC\WIC.csproj", "{21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}"
-EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MarkdownPreviewHandlerCpp", "src\modules\previewpane\MarkdownPreviewHandlerCpp\MarkdownPreviewHandlerCpp.vcxproj", "{ED9A1AC6-AEB0-4569-A6E9-E1696182B545}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GcodePreviewHandlerCpp", "src\modules\previewpane\GcodePreviewHandlerCpp\GcodePreviewHandlerCpp.vcxproj", "{5A5DD09D-723A-44D3-8F2B-293584C3D731}"
@@ -515,7 +513,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RegistryPreview", "Registry
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilePreviewCommon", "src\common\FilePreviewCommon\FilePreviewCommon.csproj", "{9EBAA524-0EDA-470B-95D4-39383285CBB2}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.PowerToys.Run.Plugin.PowerToys", "src\modules\launcher\Plugins\Microsoft.PowerToys.Run.Plugin.PowerToys\Microsoft.PowerToys.Run.Plugin.PowerToys.csproj", "{500DED3E-CFB5-4ED5-ACC6-02B3D6DC336D}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.PowerToys.Run.Plugin.PowerToys", "src\modules\launcher\Plugins\Microsoft.PowerToys.Run.Plugin.PowerToys\Microsoft.PowerToys.Run.Plugin.PowerToys.csproj", "{500DED3E-CFB5-4ED5-ACC6-02B3D6DC336D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -1975,18 +1973,6 @@ Global
{AA9F0AF8-7924-4D59-BAA1-E36F1304E0DC}.Release|x64.Build.0 = Release|x64
{AA9F0AF8-7924-4D59-BAA1-E36F1304E0DC}.Release|x86.ActiveCfg = Release|x64
{AA9F0AF8-7924-4D59-BAA1-E36F1304E0DC}.Release|x86.Build.0 = Release|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|ARM64.ActiveCfg = Debug|ARM64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|ARM64.Build.0 = Debug|ARM64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|x64.ActiveCfg = Debug|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|x64.Build.0 = Debug|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|x86.ActiveCfg = Debug|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Debug|x86.Build.0 = Debug|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|ARM64.ActiveCfg = Release|ARM64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|ARM64.Build.0 = Release|ARM64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|x64.ActiveCfg = Release|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|x64.Build.0 = Release|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|x86.ActiveCfg = Release|x64
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF}.Release|x86.Build.0 = Release|x64
{ED9A1AC6-AEB0-4569-A6E9-E1696182B545}.Debug|ARM64.ActiveCfg = Debug|ARM64
{ED9A1AC6-AEB0-4569-A6E9-E1696182B545}.Debug|ARM64.Build.0 = Debug|ARM64
{ED9A1AC6-AEB0-4569-A6E9-E1696182B545}.Debug|x64.ActiveCfg = Debug|x64
@@ -2367,7 +2353,6 @@ Global
{9D7A6DE0-7D27-424D-ABAE-41B2161F9A03} = {17B4FA70-001E-4D33-BBBB-0D142DBC2E20}
{17A99C7C-0BFF-45BB-A9FD-63A0DDC105BB} = {17B4FA70-001E-4D33-BBBB-0D142DBC2E20}
{AA9F0AF8-7924-4D59-BAA1-E36F1304E0DC} = {17B4FA70-001E-4D33-BBBB-0D142DBC2E20}
- {21B69DE5-59FD-4C5D-A142-EF1C1C430EAF} = {17B4FA70-001E-4D33-BBBB-0D142DBC2E20}
{ED9A1AC6-AEB0-4569-A6E9-E1696182B545} = {2F305555-C296-497E-AC20-5FA1B237996A}
{5A5DD09D-723A-44D3-8F2B-293584C3D731} = {2F305555-C296-497E-AC20-5FA1B237996A}
{B3E869C4-8210-4EBD-A621-FF4C4AFCBFA9} = {2F305555-C296-497E-AC20-5FA1B237996A}
diff --git a/src/modules/peek/Peek.Common/WIC/CLSID.cs b/src/modules/peek/Peek.Common/WIC/CLSID.cs
new file mode 100644
index 0000000000..8c16c46b66
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/CLSID.cs
@@ -0,0 +1,11 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace Peek.Common.WIC
+{
+ internal static class CLSID
+ {
+ public const string WICImagingFactory = "cacaf262-9370-4615-a13b-9f5539da4c0a";
+ }
+}
diff --git a/src/modules/peek/WIC/Interfaces/IID.cs b/src/modules/peek/Peek.Common/WIC/IID.cs
similarity index 93%
rename from src/modules/peek/WIC/Interfaces/IID.cs
rename to src/modules/peek/Peek.Common/WIC/IID.cs
index 9792e3a3f0..8c0918da87 100644
--- a/src/modules/peek/WIC/Interfaces/IID.cs
+++ b/src/modules/peek/Peek.Common/WIC/IID.cs
@@ -1,4 +1,8 @@
-namespace WIC
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace Peek.Common.WIC
{
internal static class IID
{
diff --git a/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs b/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs
new file mode 100644
index 0000000000..b9c42057ac
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Peek.Common.WIC
+{
+ [ComImport]
+ [Guid(IID.IWICBitmapDecoder)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IWICBitmapDecoder
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "Implements COM Interface")]
+ void _VtblGap1_10(); // skip 10 methods
+
+ IWICBitmapFrameDecode GetFrame([In] int index);
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/IWICBitmapFrameDecode.cs b/src/modules/peek/Peek.Common/WIC/IWICBitmapFrameDecode.cs
new file mode 100644
index 0000000000..bd11cb8cae
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/IWICBitmapFrameDecode.cs
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Peek.Common.WIC
+{
+ [ComImport]
+ [Guid(IID.IWICBitmapFrameDecode)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IWICBitmapFrameDecode : IWICBitmapSource
+ {
+ new void GetSize([Out] out int puiWidth, [Out] out int puiHeight);
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/IWICBitmapSource.cs b/src/modules/peek/Peek.Common/WIC/IWICBitmapSource.cs
new file mode 100644
index 0000000000..2fefd5ca79
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/IWICBitmapSource.cs
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Peek.Common.WIC
+{
+ [ComImport]
+ [Guid(IID.IWICBitmapSource)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IWICBitmapSource
+ {
+ void GetSize([Out] out int puiWidth, [Out] out int puiHeight);
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/IWICImagingFactory.cs b/src/modules/peek/Peek.Common/WIC/IWICImagingFactory.cs
new file mode 100644
index 0000000000..29d7875166
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/IWICImagingFactory.cs
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Peek.Common.WIC
+{
+ [ComImport]
+ [Guid(IID.IWICImagingFactory)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IWICImagingFactory
+ {
+ IWICBitmapDecoder CreateDecoderFromFilename(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string wzFilename,
+ [In] IntPtr pguidVendor,
+ [In] StreamAccessMode dwDesiredAccess,
+ [In] WICDecodeOptions metadataOptions);
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/StreamAccessMode.cs b/src/modules/peek/Peek.Common/WIC/StreamAccessMode.cs
new file mode 100644
index 0000000000..1305cbc95b
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/StreamAccessMode.cs
@@ -0,0 +1,15 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+
+namespace Peek.Common.WIC
+{
+ [Flags]
+ public enum StreamAccessMode : int
+ {
+ GENERIC_WRITE = 0x40000000,
+ GENERIC_READ = unchecked((int)0x80000000U),
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/WICDecodeOptions.cs b/src/modules/peek/Peek.Common/WIC/WICDecodeOptions.cs
new file mode 100644
index 0000000000..47d4ae5200
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/WICDecodeOptions.cs
@@ -0,0 +1,12 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace Peek.Common.WIC
+{
+ public enum WICDecodeOptions : int
+ {
+ WICDecodeMetadataCacheOnDemand = 0x00000000,
+ WICDecodeMetadataCacheOnLoad = 0x00000001,
+ }
+}
diff --git a/src/modules/peek/Peek.Common/WIC/WICImagingFactory.cs b/src/modules/peek/Peek.Common/WIC/WICImagingFactory.cs
new file mode 100644
index 0000000000..866be17f86
--- /dev/null
+++ b/src/modules/peek/Peek.Common/WIC/WICImagingFactory.cs
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation
+// The Microsoft Corporation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System.Runtime.InteropServices;
+
+namespace Peek.Common.WIC
+{
+ [ComImport]
+ [Guid(CLSID.WICImagingFactory)]
+ [ComDefaultInterface(typeof(IWICImagingFactoryClass))]
+ public class WICImagingFactory
+ {
+ }
+
+ [ComImport]
+ [Guid(IID.IWICImagingFactory)]
+ [CoClass(typeof(WICImagingFactory))]
+ public interface IWICImagingFactoryClass : IWICImagingFactory
+ {
+ }
+}
diff --git a/src/modules/peek/Peek.FilePreviewer/Peek.FilePreviewer.csproj b/src/modules/peek/Peek.FilePreviewer/Peek.FilePreviewer.csproj
index d2b4ef0ecd..4b351beb7b 100644
--- a/src/modules/peek/Peek.FilePreviewer/Peek.FilePreviewer.csproj
+++ b/src/modules/peek/Peek.FilePreviewer/Peek.FilePreviewer.csproj
@@ -33,7 +33,12 @@
-
+
+
+
+
+ MSBuild:Compile
+
diff --git a/src/modules/peek/Peek.FilePreviewer/Previewers/ImagePreviewer/Helpers/WICHelper.cs b/src/modules/peek/Peek.FilePreviewer/Previewers/ImagePreviewer/Helpers/WICHelper.cs
index 87b5e29509..d1b9bb42d3 100644
--- a/src/modules/peek/Peek.FilePreviewer/Previewers/ImagePreviewer/Helpers/WICHelper.cs
+++ b/src/modules/peek/Peek.FilePreviewer/Previewers/ImagePreviewer/Helpers/WICHelper.cs
@@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;
-using WIC;
+using Peek.Common.WIC;
namespace Peek.FilePreviewer.Previewers
{
@@ -15,7 +15,7 @@ namespace Peek.FilePreviewer.Previewers
return Task.Run(() =>
{
// TODO: Find a way to get file metadata without hydrating files. Look into Shell API/Windows Property System, e.g., IPropertyStore
- IWICImagingFactory factory = (IWICImagingFactory)new WICImagingFactoryClass();
+ IWICImagingFactory factory = (IWICImagingFactory)new WICImagingFactory();
var decoder = factory.CreateDecoderFromFilename(filePath, IntPtr.Zero, StreamAccessMode.GENERIC_READ, WICDecodeOptions.WICDecodeMetadataCacheOnLoad);
var frame = decoder?.GetFrame(0);
int width = 0;
diff --git a/src/modules/peek/WIC/Classes/CLSID.cs b/src/modules/peek/WIC/Classes/CLSID.cs
deleted file mode 100644
index 63bc6f575d..0000000000
--- a/src/modules/peek/WIC/Classes/CLSID.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace WIC
-{
- internal static class CLSID
- {
- public const string WICImagingFactory = "cacaf262-9370-4615-a13b-9f5539da4c0a";
- }
-}
diff --git a/src/modules/peek/WIC/Classes/WICImagingFactory.cs b/src/modules/peek/WIC/Classes/WICImagingFactory.cs
deleted file mode 100644
index 7792311c50..0000000000
--- a/src/modules/peek/WIC/Classes/WICImagingFactory.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System.Runtime.InteropServices;
-
-namespace WIC
-{
- [ComImport]
- [Guid(IID.IWICImagingFactory)]
- [CoClass(typeof(WICImagingFactoryClass))]
- public interface WICImagingFactory : IWICImagingFactory { }
-
- [ComImport]
- [Guid(CLSID.WICImagingFactory)]
- [ComDefaultInterface(typeof(IWICImagingFactory))]
- public class WICImagingFactoryClass { }
-}
diff --git a/src/modules/peek/WIC/CoTaskMemPtr.cs b/src/modules/peek/WIC/CoTaskMemPtr.cs
deleted file mode 100644
index c9029f3331..0000000000
--- a/src/modules/peek/WIC/CoTaskMemPtr.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-
-namespace WIC
-{
- internal struct CoTaskMemPtr : IDisposable
- {
- public static CoTaskMemPtr From(T? nullableStructure) where T : struct
- {
- IntPtr value;
- if (nullableStructure.HasValue)
- {
- value = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(T)));
- Marshal.StructureToPtr(nullableStructure, value, false);
- }
- else
- {
- value = IntPtr.Zero;
- }
- return new CoTaskMemPtr(value);
- }
-
- public CoTaskMemPtr(IntPtr value)
- {
- this.value = value;
- }
-
- private IntPtr value;
-
- public static implicit operator IntPtr(CoTaskMemPtr safeIntPtr)
- {
- return safeIntPtr.value;
- }
-
- public void Dispose()
- {
- if (value != IntPtr.Zero)
- {
- Marshal.FreeCoTaskMem(value);
- }
- }
- }
-}
diff --git a/src/modules/peek/WIC/Constants/ContainerFormat.cs b/src/modules/peek/WIC/Constants/ContainerFormat.cs
deleted file mode 100644
index e4b5b8da8b..0000000000
--- a/src/modules/peek/WIC/Constants/ContainerFormat.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-
-namespace WIC
-{
- public static class ContainerFormat
- {
- public static readonly Guid Bmp = new Guid(0x0af1d87e, 0xfcfe, 0x4188, 0xbd, 0xeb, 0xa7, 0x90, 0x64, 0x71, 0xcb, 0xe3);
- public static readonly Guid Png = new Guid(0x1b7cfaf4, 0x713f, 0x473c, 0xbb, 0xcd, 0x61, 0x37, 0x42, 0x5f, 0xae, 0xaf);
- public static readonly Guid Ico = new Guid(0xa3a860c4, 0x338f, 0x4c17, 0x91, 0x9a, 0xfb, 0xa4, 0xb5, 0x62, 0x8f, 0x21);
- public static readonly Guid Jpeg = new Guid(0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57);
- public static readonly Guid Tiff = new Guid(0x163bcc30, 0xe2e9, 0x4f0b, 0x96, 0x1d, 0xa3, 0xe9, 0xfd, 0xb7, 0x88, 0xa3);
- public static readonly Guid Gif = new Guid(0x1f8a5601, 0x7d4d, 0x4cbd, 0x9c, 0x82, 0x1b, 0xc8, 0xd4, 0xee, 0xb9, 0xa5);
- public static readonly Guid Wmp = new Guid(0x57a37caa, 0x367a, 0x4540, 0x91, 0x6b, 0xf1, 0x83, 0xc5, 0x09, 0x3a, 0x4b);
- public static readonly Guid Dds = new Guid(0x9967cb95, 0x2e85, 0x4ac8, 0x8c, 0xa2, 0x83, 0xd7, 0xcc, 0xd4, 0x25, 0xc9);
- }
-}
diff --git a/src/modules/peek/WIC/Constants/HResult.cs b/src/modules/peek/WIC/Constants/HResult.cs
deleted file mode 100644
index 341c8530d2..0000000000
--- a/src/modules/peek/WIC/Constants/HResult.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace WIC
-{
- public struct HResult
- {
- public const int WINCODEC_ERR_PROPERTYNOTFOUND = unchecked((int)0x88982F40);
- }
-}
diff --git a/src/modules/peek/WIC/Constants/Vendor.cs b/src/modules/peek/WIC/Constants/Vendor.cs
deleted file mode 100644
index 6377f0b735..0000000000
--- a/src/modules/peek/WIC/Constants/Vendor.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace WIC
-{
- public static class Vendor
- {
- public static readonly Guid Microsoft = new Guid(0xf0e749ca, 0xedef, 0x4589, 0xa7, 0x3a, 0xee, 0xe, 0x62, 0x6a, 0x2a, 0x2b);
- public static readonly Guid MicrosoftBuiltIn = new Guid(0x257a30fd, 0x6b6, 0x462b, 0xae, 0xa4, 0x63, 0xf7, 0xb, 0x86, 0xe5, 0x33);
- }
-}
diff --git a/src/modules/peek/WIC/Constants/WICPixelFormat.cs b/src/modules/peek/WIC/Constants/WICPixelFormat.cs
deleted file mode 100644
index 1e6701ec44..0000000000
--- a/src/modules/peek/WIC/Constants/WICPixelFormat.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System;
-
-namespace WIC.Constants
-{
- public static class WICPixelFormat
- {
- public static readonly Guid WICPixelFormatDontCare = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00);
- public static readonly Guid WICPixelFormat1bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01);
- public static readonly Guid WICPixelFormat2bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02);
- public static readonly Guid WICPixelFormat4bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03);
- public static readonly Guid WICPixelFormat8bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04);
- public static readonly Guid WICPixelFormatBlackWhite = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05);
- public static readonly Guid WICPixelFormat2bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06);
- public static readonly Guid WICPixelFormat4bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07);
- public static readonly Guid WICPixelFormat8bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08);
- public static readonly Guid WICPixelFormat8bppAlpha = new Guid(0xe6cd0116, 0xeeba, 0x4161, 0xaa, 0x85, 0x27, 0xdd, 0x9f, 0xb3, 0xa8, 0x95);
- public static readonly Guid WICPixelFormat16bppBGR555 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09);
- public static readonly Guid WICPixelFormat16bppBGR565 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a);
- public static readonly Guid WICPixelFormat16bppBGRA5551 = new Guid(0x05ec7c2b, 0xf1e6, 0x4961, 0xad, 0x46, 0xe1, 0xcc, 0x81, 0x0a, 0x87, 0xd2);
- public static readonly Guid WICPixelFormat16bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b);
- public static readonly Guid WICPixelFormat24bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c);
- public static readonly Guid WICPixelFormat24bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d);
- public static readonly Guid WICPixelFormat32bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e);
- public static readonly Guid WICPixelFormat32bppBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f);
- public static readonly Guid WICPixelFormat32bppPBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10);
- public static readonly Guid WICPixelFormat32bppGrayFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11);
- public static readonly Guid WICPixelFormat32bppRGB = new Guid(0xd98c6b95, 0x3efe, 0x47d6, 0xbb, 0x25, 0xeb, 0x17, 0x48, 0xab, 0x0c, 0xf1);
- public static readonly Guid WICPixelFormat32bppRGBA = new Guid(0xf5c7ad2d, 0x6a8d, 0x43dd, 0xa7, 0xa8, 0xa2, 0x99, 0x35, 0x26, 0x1a, 0xe9);
- public static readonly Guid WICPixelFormat32bppPRGBA = new Guid(0x3cc4a650, 0xa527, 0x4d37, 0xa9, 0x16, 0x31, 0x42, 0xc7, 0xeb, 0xed, 0xba);
- public static readonly Guid WICPixelFormat48bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15);
- public static readonly Guid WICPixelFormat48bppBGR = new Guid(0xe605a384, 0xb468, 0x46ce, 0xbb, 0x2e, 0x36, 0xf1, 0x80, 0xe6, 0x43, 0x13);
- public static readonly Guid WICPixelFormat64bppRGB = new Guid(0xa1182111, 0x186d, 0x4d42, 0xbc, 0x6a, 0x9c, 0x83, 0x03, 0xa8, 0xdf, 0xf9);
- public static readonly Guid WICPixelFormat64bppRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16);
- public static readonly Guid WICPixelFormat64bppBGRA = new Guid(0x1562ff7c, 0xd352, 0x46f9, 0x97, 0x9e, 0x42, 0x97, 0x6b, 0x79, 0x22, 0x46);
- public static readonly Guid WICPixelFormat64bppPRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17);
- public static readonly Guid WICPixelFormat64bppPBGRA = new Guid(0x8c518e8e, 0xa4ec, 0x468b, 0xae, 0x70, 0xc9, 0xa3, 0x5a, 0x9c, 0x55, 0x30);
- public static readonly Guid WICPixelFormat16bppGrayFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x13);
- public static readonly Guid WICPixelFormat32bppBGR101010 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14);
- public static readonly Guid WICPixelFormat48bppRGBFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x12);
- public static readonly Guid WICPixelFormat48bppBGRFixedPoint = new Guid(0x49ca140e, 0xcab6, 0x493b, 0x9d, 0xdf, 0x60, 0x18, 0x7c, 0x37, 0x53, 0x2a);
- public static readonly Guid WICPixelFormat96bppRGBFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x18);
- public static readonly Guid WICPixelFormat96bppRGBFloat = new Guid(0xe3fed78f, 0xe8db, 0x4acf, 0x84, 0xc1, 0xe9, 0x7f, 0x61, 0x36, 0xb3, 0x27);
- public static readonly Guid WICPixelFormat128bppRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19);
- public static readonly Guid WICPixelFormat128bppPRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a);
- public static readonly Guid WICPixelFormat128bppRGBFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b);
- public static readonly Guid WICPixelFormat32bppCMYK = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c);
- public static readonly Guid WICPixelFormat64bppRGBAFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d);
- public static readonly Guid WICPixelFormat64bppBGRAFixedPoint = new Guid(0x356de33c, 0x54d2, 0x4a23, 0xbb, 0x4, 0x9b, 0x7b, 0xf9, 0xb1, 0xd4, 0x2d);
- public static readonly Guid WICPixelFormat64bppRGBFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x40);
- public static readonly Guid WICPixelFormat128bppRGBAFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1e);
- public static readonly Guid WICPixelFormat128bppRGBFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x41);
- public static readonly Guid WICPixelFormat64bppRGBAHalf = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3a);
- public static readonly Guid WICPixelFormat64bppPRGBAHalf = new Guid(0x58ad26c2, 0xc623, 0x4d9d, 0xb3, 0x20, 0x38, 0x7e, 0x49, 0xf8, 0xc4, 0x42);
- public static readonly Guid WICPixelFormat64bppRGBHalf = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42);
- public static readonly Guid WICPixelFormat48bppRGBHalf = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3b);
- public static readonly Guid WICPixelFormat32bppRGBE = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3d);
- public static readonly Guid WICPixelFormat16bppGrayHalf = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3e);
- public static readonly Guid WICPixelFormat32bppGrayFixedPoint = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3f);
- public static readonly Guid WICPixelFormat32bppRGBA1010102 = new Guid(0x25238D72, 0xFCF9, 0x4522, 0xb5, 0x14, 0x55, 0x78, 0xe5, 0xad, 0x55, 0xe0);
- public static readonly Guid WICPixelFormat32bppRGBA1010102XR = new Guid(0x00DE6B9A, 0xC101, 0x434b, 0xb5, 0x02, 0xd0, 0x16, 0x5e, 0xe1, 0x12, 0x2c);
- public static readonly Guid WICPixelFormat32bppR10G10B10A2 = new Guid(0x604e1bb5, 0x8a3c, 0x4b65, 0xb1, 0x1c, 0xbc, 0x0b, 0x8d, 0xd7, 0x5b, 0x7f);
- public static readonly Guid WICPixelFormat32bppR10G10B10A2HDR10 = new Guid(0x9c215c5d, 0x1acc, 0x4f0e, 0xa4, 0xbc, 0x70, 0xfb, 0x3a, 0xe8, 0xfd, 0x28);
- public static readonly Guid WICPixelFormat64bppCMYK = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1f);
- public static readonly Guid WICPixelFormat24bpp3Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x20);
- public static readonly Guid WICPixelFormat32bpp4Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x21);
- public static readonly Guid WICPixelFormat40bpp5Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x22);
- public static readonly Guid WICPixelFormat48bpp6Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x23);
- public static readonly Guid WICPixelFormat56bpp7Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x24);
- public static readonly Guid WICPixelFormat64bpp8Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x25);
- public static readonly Guid WICPixelFormat48bpp3Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x26);
- public static readonly Guid WICPixelFormat64bpp4Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x27);
- public static readonly Guid WICPixelFormat80bpp5Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x28);
- public static readonly Guid WICPixelFormat96bpp6Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x29);
- public static readonly Guid WICPixelFormat112bpp7Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2a);
- public static readonly Guid WICPixelFormat128bpp8Channels = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2b);
- public static readonly Guid WICPixelFormat40bppCMYKAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2c);
- public static readonly Guid WICPixelFormat80bppCMYKAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2d);
- public static readonly Guid WICPixelFormat32bpp3ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2e);
- public static readonly Guid WICPixelFormat40bpp4ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2f);
- public static readonly Guid WICPixelFormat48bpp5ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x30);
- public static readonly Guid WICPixelFormat56bpp6ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x31);
- public static readonly Guid WICPixelFormat64bpp7ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x32);
- public static readonly Guid WICPixelFormat72bpp8ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x33);
- public static readonly Guid WICPixelFormat64bpp3ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x34);
- public static readonly Guid WICPixelFormat80bpp4ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x35);
- public static readonly Guid WICPixelFormat96bpp5ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x36);
- public static readonly Guid WICPixelFormat112bpp6ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x37);
- public static readonly Guid WICPixelFormat128bpp7ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x38);
- public static readonly Guid WICPixelFormat144bpp8ChannelsAlpha = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x39);
- public static readonly Guid WICPixelFormat8bppY = new Guid(0x91B4DB54, 0x2DF9, 0x42F0, 0xB4, 0x49, 0x29, 0x09, 0xBB, 0x3D, 0xF8, 0x8E);
- public static readonly Guid WICPixelFormat8bppCb = new Guid(0x1339F224, 0x6BFE, 0x4C3E, 0x93, 0x02, 0xE4, 0xF3, 0xA6, 0xD0, 0xCA, 0x2A);
- public static readonly Guid WICPixelFormat8bppCr = new Guid(0xB8145053, 0x2116, 0x49F0, 0x88, 0x35, 0xED, 0x84, 0x4B, 0x20, 0x5C, 0x51);
- public static readonly Guid WICPixelFormat16bppCbCr = new Guid(0xFF95BA6E, 0x11E0, 0x4263, 0xBB, 0x45, 0x01, 0x72, 0x1F, 0x34, 0x60, 0xA4);
- public static readonly Guid WICPixelFormat16bppYQuantizedDctCoefficients = new Guid(0xA355F433, 0x48E8, 0x4A42, 0x84, 0xD8, 0xE2, 0xAA, 0x26, 0xCA, 0x80, 0xA4);
- public static readonly Guid WICPixelFormat16bppCbQuantizedDctCoefficients = new Guid(0xD2C4FF61, 0x56A5, 0x49C2, 0x8B, 0x5C, 0x4C, 0x19, 0x25, 0x96, 0x48, 0x37);
- public static readonly Guid WICPixelFormat16bppCrQuantizedDctCoefficients = new Guid(0x2FE354F0, 0x1680, 0x42D8, 0x92, 0x31, 0xE7, 0x3C, 0x05, 0x65, 0xBF, 0xC1);
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/ExifColorSpace.cs b/src/modules/peek/WIC/Enumerations/ExifColorSpace.cs
deleted file mode 100644
index ebf6047cbb..0000000000
--- a/src/modules/peek/WIC/Enumerations/ExifColorSpace.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace WIC
-{
- public enum ExifColorSpace : int
- {
- SRGB = 1,
- AdobeSRGB = 2,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/LOCKTYPE.cs b/src/modules/peek/WIC/Enumerations/LOCKTYPE.cs
deleted file mode 100644
index 9ce372bb98..0000000000
--- a/src/modules/peek/WIC/Enumerations/LOCKTYPE.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.ComponentModel;
-
-namespace WIC
-{
- [Flags]
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum LOCKTYPE : int
- {
- LOCK_WRITE = 1,
- LOCK_EXCLUSIVE = 2,
- LOCK_ONLYONCE = 4,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/MetadataCreationAndPersistOptions.cs b/src/modules/peek/WIC/Enumerations/MetadataCreationAndPersistOptions.cs
deleted file mode 100644
index 01a10508ac..0000000000
--- a/src/modules/peek/WIC/Enumerations/MetadataCreationAndPersistOptions.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum MetadataCreationAndPersistOptions : int
- {
- WICMetadataCreationDefault = 0x00000000,
- WICMetadataCreationAllowUnknown = WICMetadataCreationDefault,
- WICMetadataCreationFailUnknown = 0x00010000,
-
- WICPersistOptionDefault = 0x00000000,
- WICPersistOptionLittleEndian = 0x00000000,
- WICPersistOptionBigEndian = 0x00000001,
- WICPersistOptionStrictFormat = 0x00000002,
- WICPersistOptionNoCacheStream = 0x00000004,
- WICPersistOptionPreferUTF8 = 0x00000008,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/STATFLAG.cs b/src/modules/peek/WIC/Enumerations/STATFLAG.cs
deleted file mode 100644
index 8f6afee364..0000000000
--- a/src/modules/peek/WIC/Enumerations/STATFLAG.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.ComponentModel;
-
-namespace WIC
-{
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum STATFLAG : int
- {
- STATFLAG_DEFAULT = 0,
- STATFLAG_NONAME = 1,
- STATFLAG_NOOPEN = 2,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/STGC.cs b/src/modules/peek/WIC/Enumerations/STGC.cs
deleted file mode 100644
index 4010f835f5..0000000000
--- a/src/modules/peek/WIC/Enumerations/STGC.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.ComponentModel;
-
-namespace WIC
-{
- [Flags]
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum STGC : int
- {
- STGC_DEFAULT = 0,
- STGC_OVERWRITE = 1,
- STGC_ONLYIFCURRENT = 2,
- STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
- STGC_CONSOLIDATE = 8,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/STGM.cs b/src/modules/peek/WIC/Enumerations/STGM.cs
deleted file mode 100644
index 03cdb33e0b..0000000000
--- a/src/modules/peek/WIC/Enumerations/STGM.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.ComponentModel;
-
-namespace WIC
-{
- [Flags]
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum STGM : int
- {
- STGM_READ = 0x00000000,
- STGM_WRITE = 0x00000001,
- STGM_READWRITE = 0x00000002,
- #warning `STGM`: Enumeration incomplete. Consider adding all values.
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/STGTY.cs b/src/modules/peek/WIC/Enumerations/STGTY.cs
deleted file mode 100644
index 989332553b..0000000000
--- a/src/modules/peek/WIC/Enumerations/STGTY.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.ComponentModel;
-
-namespace WIC
-{
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum STGTY : int
- {
- STGTY_STORAGE = 1,
- STGTY_STREAM = 2,
- STGTY_LOCKBYTES = 3,
- STGTY_PROPERTY = 4,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/STREAM_SEEK.cs b/src/modules/peek/WIC/Enumerations/STREAM_SEEK.cs
deleted file mode 100644
index e92c2aab92..0000000000
--- a/src/modules/peek/WIC/Enumerations/STREAM_SEEK.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.ComponentModel;
-
-namespace WIC
-{
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public enum STREAM_SEEK : int
- {
- STREAM_SEEK_SET = 0,
- STREAM_SEEK_CUR = 1,
- STREAM_SEEK_END = 2,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/StreamAccessMode.cs b/src/modules/peek/WIC/Enumerations/StreamAccessMode.cs
deleted file mode 100644
index e79321d0df..0000000000
--- a/src/modules/peek/WIC/Enumerations/StreamAccessMode.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum StreamAccessMode : int
- {
- GENERIC_WRITE = 0x40000000,
- GENERIC_READ = unchecked((int)0x80000000U),
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapAlphaChannelOption.cs b/src/modules/peek/WIC/Enumerations/WICBitmapAlphaChannelOption.cs
deleted file mode 100644
index 4623c5605e..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapAlphaChannelOption.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapAlphaChannelOption : int
- {
- WICBitmapUseAlpha = 0x00000000,
- WICBitmapUsePremultipliedAlpha = 0x00000001,
- WICBitmapIgnoreAlpha = 0x00000002,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapCreateCacheOption.cs b/src/modules/peek/WIC/Enumerations/WICBitmapCreateCacheOption.cs
deleted file mode 100644
index 09bf9b71ea..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapCreateCacheOption.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapCreateCacheOption : int
- {
- WICBitmapNoCache = 0x00000000,
- WICBitmapCacheOnDemand = 0x00000001,
- WICBitmapCacheOnLoad = 0x00000002,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapDecoderCapabilities.cs b/src/modules/peek/WIC/Enumerations/WICBitmapDecoderCapabilities.cs
deleted file mode 100644
index 19b9c30652..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapDecoderCapabilities.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICBitmapDecoderCapabilities : int
- {
- WICBitmapDecoderCapabilitySameEncoder = 0x00000001,
- WICBitmapDecoderCapabilityCanDecodeAllImages = 0x00000002,
- WICBitmapDecoderCapabilityCanDecodeSomeImages = 0x00000004,
- WICBitmapDecoderCapabilityCanEnumerateMetadata = 0x00000008,
- WICBitmapDecoderCapabilityCanDecodeThumbnail = 0x00000010,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapDitherType.cs b/src/modules/peek/WIC/Enumerations/WICBitmapDitherType.cs
deleted file mode 100644
index c9441c6686..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapDitherType.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapDitherType : int
- {
- WICBitmapDitherTypeNone = 0x00000000,
- WICBitmapDitherTypeSolid = 0x00000000,
-
- WICBitmapDitherTypeOrdered4x4 = 0x00000001,
-
- WICBitmapDitherTypeOrdered8x8 = 0x00000002,
- WICBitmapDitherTypeOrdered16x16 = 0x00000003,
- WICBitmapDitherTypeSpiral4x4 = 0x00000004,
- WICBitmapDitherTypeSpiral8x8 = 0x00000005,
- WICBitmapDitherTypeDualSpiral4x4 = 0x00000006,
- WICBitmapDitherTypeDualSpiral8x8 = 0x00000007,
-
- WICBitmapDitherTypeErrorDiffusion = 0x00000008,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapEncoderCacheOption.cs b/src/modules/peek/WIC/Enumerations/WICBitmapEncoderCacheOption.cs
deleted file mode 100644
index 922235cfee..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapEncoderCacheOption.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapEncoderCacheOption : int
- {
- WICBitmapEncoderCacheInMemory = 0x00000000,
- WICBitmapEncoderCacheTempFile = 0x00000001,
- WICBitmapEncoderNoCache = 0x00000002,
- }
-}
\ No newline at end of file
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapInterpolationMode.cs b/src/modules/peek/WIC/Enumerations/WICBitmapInterpolationMode.cs
deleted file mode 100644
index 85a17f4f48..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapInterpolationMode.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapInterpolationMode : int
- {
- WICBitmapInterpolationModeNearestNeighbor = 0x00000000,
- WICBitmapInterpolationModeLinear = 0x00000001,
- WICBitmapInterpolationModeCubic = 0x00000002,
- WICBitmapInterpolationModeFant = 0x00000003,
- ///
- /// Supported beginning with Windows 10.
- ///
- WICBitmapInterpolationModeHighQualityCubic = 0x00000004,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapLockFlags.cs b/src/modules/peek/WIC/Enumerations/WICBitmapLockFlags.cs
deleted file mode 100644
index 06ff6ebde1..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapLockFlags.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICBitmapLockFlags : int
- {
- WICBitmapLockRead = 0x00000001,
- WICBitmapLockWrite = 0x00000002,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapPaletteType.cs b/src/modules/peek/WIC/Enumerations/WICBitmapPaletteType.cs
deleted file mode 100644
index 4a7a81bf72..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapPaletteType.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace WIC
-{
- public enum WICBitmapPaletteType : int
- {
- WICBitmapPaletteTypeCustom = 0x00000000,
- WICBitmapPaletteTypeMedianCut = 0x00000001,
- WICBitmapPaletteTypeFixedBW = 0x00000002,
- WICBitmapPaletteTypeFixedHalftone8 = 0x00000003,
- WICBitmapPaletteTypeFixedHalftone27 = 0x00000004,
- WICBitmapPaletteTypeFixedHalftone64 = 0x00000005,
- WICBitmapPaletteTypeFixedHalftone125 = 0x00000006,
- WICBitmapPaletteTypeFixedHalftone216 = 0x00000007,
- WICBitmapPaletteTypeFixedWebPalette = WICBitmapPaletteTypeFixedHalftone216,
- WICBitmapPaletteTypeFixedHalftone252 = 0x00000008,
- WICBitmapPaletteTypeFixedHalftone256 = 0x00000009,
- WICBitmapPaletteTypeFixedGray4 = 0x0000000A,
- WICBitmapPaletteTypeFixedGray16 = 0x0000000B,
- WICBitmapPaletteTypeFixedGray256 = 0x0000000C,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICBitmapTransformOptions.cs b/src/modules/peek/WIC/Enumerations/WICBitmapTransformOptions.cs
deleted file mode 100644
index 474d7480c3..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICBitmapTransformOptions.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICBitmapTransformOptions : int
- {
- WICBitmapTransformRotate0 = 0x00000000,
- WICBitmapTransformRotate90 = 0x00000001,
- WICBitmapTransformRotate180 = 0x00000002,
- WICBitmapTransformRotate270 = 0x00000003,
-
- WICBitmapTransformFlipHorizontal = 0x00000008,
-
- WICBitmapTransformFlipVertical = 0x00000010,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICColorContextType.cs b/src/modules/peek/WIC/Enumerations/WICColorContextType.cs
deleted file mode 100644
index 836f88d9fa..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICColorContextType.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace WIC
-{
- public enum WICColorContextType : int
- {
- WICColorContextUninitialized = 0x00000000,
- WICColorContextProfile = 0x00000001,
- WICColorContextExifColorSpace = 0x00000002,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICComponentEnumerateOptions.cs b/src/modules/peek/WIC/Enumerations/WICComponentEnumerateOptions.cs
deleted file mode 100644
index 2159ac2b8d..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICComponentEnumerateOptions.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICComponentEnumerateOptions : int
- {
- WICComponentEnumerateDefault = 0x00000000,
- WICComponentEnumerateRefresh = 0x00000001,
- WICComponentEnumerateBuiltInOnly = 0x20000000,
- WICComponentEnumerateUnsigned = 0x40000000,
- WICComponentEnumerateDisabled = unchecked((int)0x80000000U),
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICComponentSigning.cs b/src/modules/peek/WIC/Enumerations/WICComponentSigning.cs
deleted file mode 100644
index 68bc08516f..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICComponentSigning.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICComponentSigning : int
- {
- WICComponentSigned = 0x00000001,
- WICComponentUnsigned = 0x00000002,
- WICComponentSafe = 0x00000004,
- WICComponentDisabled = unchecked((int)0x80000000U),
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICComponentType.cs b/src/modules/peek/WIC/Enumerations/WICComponentType.cs
deleted file mode 100644
index 0448c85129..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICComponentType.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICComponentType : int
- {
- WICDecoder = 0x00000001,
- WICEncoder = 0x00000002,
- WICPixelFormatConverter = 0x00000004,
- WICMetadataReader = 0x00000008,
- WICMetadataWriter = 0x00000010,
- WICPixelFormat = 0x00000020,
- WICAllComponents = 0x0000003F,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICDecodeOptions.cs b/src/modules/peek/WIC/Enumerations/WICDecodeOptions.cs
deleted file mode 100644
index 84ba889161..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICDecodeOptions.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace WIC
-{
- public enum WICDecodeOptions : int
- {
- WICDecodeMetadataCacheOnDemand = 0x00000000,
- WICDecodeMetadataCacheOnLoad = 0x00000001,
- }
-}
diff --git a/src/modules/peek/WIC/Enumerations/WICMetadataCreationOptions.cs b/src/modules/peek/WIC/Enumerations/WICMetadataCreationOptions.cs
deleted file mode 100644
index f6c2bc3c2b..0000000000
--- a/src/modules/peek/WIC/Enumerations/WICMetadataCreationOptions.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace WIC
-{
- [Flags]
- public enum WICMetadataCreationOptions : int
- {
- WICMetadataCreationDefault = 0x00000000,
- WICMetadataCreationAllowUnknown = WICMetadataCreationDefault,
- WICMetadataCreationFailUnknown = 0x00010000,
- WICMetadataCreationMask = unchecked((int)0xFFFF0000),
- }
-}
diff --git a/src/modules/peek/WIC/Extensions/IEnumStringExtensions.cs b/src/modules/peek/WIC/Extensions/IEnumStringExtensions.cs
deleted file mode 100644
index 35c507c365..0000000000
--- a/src/modules/peek/WIC/Extensions/IEnumStringExtensions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Collections.Generic;
-using System.ComponentModel;
-
-namespace WIC
-{
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public static class IEnumStringExtensions
- {
- public static IEnumerable AsEnumerable(this IEnumString enumString)
- {
- var buffer = new string[1];
- for (;;)
- {
- int length;
- enumString.Next(1, buffer, out length);
- if (length != 1) break;
- yield return buffer[0];
- }
- }
- }
-}
diff --git a/src/modules/peek/WIC/Extensions/IEnumUnknownExtensions.cs b/src/modules/peek/WIC/Extensions/IEnumUnknownExtensions.cs
deleted file mode 100644
index a581a343e6..0000000000
--- a/src/modules/peek/WIC/Extensions/IEnumUnknownExtensions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Collections.Generic;
-using System.ComponentModel;
-
-namespace WIC
-{
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- public static class IEnumUnknownExtensions
- {
- public static IEnumerable