IThumbnailProvider
Shell Interfaces


IThumbnailProvider Interface

Exposes a method for getting a thumbnail image.

IThumbnailProvider Members

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.

Interface Information

Inherits fromIUnknown
Header and IDL filesthumbcache.h, thumbcache.idl
Minimum operating systems Windows Vista
Tags :


Community Content

Chris_Guzak
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).
Tags :

Chris_Guzak
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.
Tags :

Page view tracker