1 out of 2 rated this helpful - Rate this topic

IThumbnailProvider interface

Applies to: desktop apps only

Exposes a method for getting a thumbnail image.

Members

The IThumbnailProvider interface inherits from the IUnknown interface. IThumbnailProvider also has these types of members:

Methods

The IThumbnailProvider interface has these methods.

MethodDescription
GetThumbnail

Gets a thumbnail image and alpha type.

 

Remarks

The Shell calls IThumbnailProvider::GetThumbnail to obtain an image to use as a representation of the item.

An implementation of this interface for photo thumbnails is supplied in Microsoft Windows as CLSID_PhotoThumbnailProvider. Applications that use the supplied implementation must define a constant CLSID identifier using the GUID {C7657C4A-9F68-40fa-A4DF-96BC08EB3551}.


// {C7657C4A-9F68-40fa-A4DF-96BC08EB3551}
const CLSID CLSID_PhotoThumbnailProvider = {0xC7657C4A, 0x9F68, 0x40fa, {0xA4, 0xDF, 0x96, 0xBC, 0x08, 0xEB, 0x35, 0x51}} ;

The object that implements this interface must also implement one of the following interfaces.

If none of these interfaces is present, IThumbnailProvider is not called.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Thumbcache.h

IDL

Thumbcache.idl

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Does IInitializeWithFile work under Vista/Win7?
I have found forum posts indicating that under Vista/Win7, a thumbnail provider that implements only the IInitializeWithFile interface will never get called. My own experience seems to corroborate this. If this is the case, the docs above should be updated to reflect it.
this topic should link to IExtractImage
IThumbnailProivder is new for Vista and replaces the use of IExtractImage. Vista still supports IExtractImage but lacks the ablity to return the image type (alpha or not).
this is intended to be implemented by thumbnail handlers, not used directly by client applications
instead those apps should use IShellItemImageFactory as that will do its work by delegating to the different handler types for computing an items image including IExtractImage, and IThumbnailProvider handlers. it will even fallback and use IExtractIcon to simulate a thumbnail.