From 26f0235bb746b7e07622a63d9cc5f53dc933c5e5 Mon Sep 17 00:00:00 2001 From: David Hall Date: Wed, 5 Jun 2024 12:59:53 -0600 Subject: [PATCH] Added SHGetImageList overload --- PInvoke/Shell32/ShlObj.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PInvoke/Shell32/ShlObj.cs b/PInvoke/Shell32/ShlObj.cs index c61db31f..8980e7ff 100644 --- a/PInvoke/Shell32/ShlObj.cs +++ b/PInvoke/Shell32/ShlObj.cs @@ -6175,6 +6175,12 @@ public static partial class Shell32 [PInvokeData("Shlobj.h", MSDNShortId = "bb762185")] public static extern HRESULT SHGetImageList(SHIL iImageList, in Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv); + /// Retrieves an image list. + /// The image type contained in the list. + /// When this method returns, contains the interface pointer requested in riid. This is typically IImageList. + [PInvokeData("Shlobj.h", MSDNShortId = "bb762185")] + public static IImageList SHGetImageList(SHIL iImageList) => IidGetObj((in Guid iid, out object? ppv) => SHGetImageList(iImageList, iid, out ppv))!; + /// /// /// Retrieves an interface that allows hosted Shell extensions and other components to prevent their host process from closing