Export (0) Print
Expand All
Expand Minimize

Shell Image Store object

[This object is supported through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It might be unsupported in subsequent versions of Windows.]

Creates an instance of an IShellImageStore object.

Remarks

The following example demonstrates how to obtain an IShellImageStore object and initialize it to the path you specify.


IPersistFolder *ppf;
HRESULT hr = CoCreateInstance(CLSID_ShellThumbnailDiskCache, NULL, CLSCTX_INPROC, 
                              IID_PPV_ARGS(&ppf));

if(SUCCEEDED(hr))
{
    //  The pidl variable is the item that receives the object initialization.
    //  In other words, it is the cache you want to manipulate.
    hr = ppf -> Initialize(pidl);

    if (SUCCEEDED(hr))
    {
        IShellImageStore *psis;
        hr = ppf -> QueryInterface(IID_PPV_ARGS(&psis));
      
        if (SUCCEEDED(hr))
        {       
            //  Add code to manipulate psis here.

            psis->Release();
        }
    }
    ppf -> Release();
}

If you have a path stored in pszFile instead of a pointer to an item identifier list (PIDL), you can call the following line.


hr = ppf->Load(pszFile, STGM_READ);

Interfaces Implemented

IShellImageStore

The IShellImageStore interface manipulates the image cache.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlguid.h

DLL

Shell32.dll (version 5.0 or later)

IID

CLSID_ShellThumbnailDiskCache

 

 

Community Additions

ADD
Show:
© 2014 Microsoft