<ComImportAttribute(), _
GuidAttribute("bcc18b79-ba16-442f-80c4-8a59c30c463b"), _
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IShellItemImageFactory
Sub GetImage(ByVal size As SIZE, ByVal flags As SIIGBF, ByRef phbm As IntPtr)
End Interface
User-Defined Types:
None.
Notes:
To get a thumbnail for a shell item, simply cast the IShellItem instance to IShellItemImageFactory and call GetImage() on it. Usage may look something like this:
IShellItem ppsi = null;
IntPtr hbitmap = IntPtr.Zero;
// GUID of IShellItem.
Guid uuid = new Guid("43826d1e-e718-42ee-bc55-a1e261c37bfe");
SHCreateItemFromParsingName(filename, IntPtr.Zero, uuid, out ppsi);
((IShellItemImageFactory)ppsi).GetImage(new SIZE(256, 256), 0x0, out hbitmap);
TODO - a short description
08/04/2009 10:02:42 - -89.246.196.221
Exposes methods that return either icons or thumbnails for Shell items.