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
3/21/2011 3:30:46 AM - -67.128.30.210
Flags for the IShellItemImageFactory::GetImage method.
7/11/2007 12:24:19 AM - olenikm@gmail.com-76.189.212.160
TODO - a short description
8/12/2010 5:28:10 AM - -67.168.202.202
Exposes methods that return either icons or thumbnails for Shell items.
8/12/2010 8:03:26 AM - -67.168.202.202
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.
Ignoring bugs won’t make them go away
Let users send you error reports in one click with SmartAssembly.