ThumbnailCacheControl(
     LPTHUMBCACHECONTROLDATA:pData
)
→ BOOL

Arguments

pData

[in,out] Pointer to a THUMBCACHECONTROLDATA structure.

Description

The ThumbnailCacheControl function lets you query or empty the Opus thumbnail cache.

The THUMBCACHECONTROLDATA structure has the following fields:

TCCOP_GETSIZEGet total cache size
TCCOP_EMPTYEmpty cache (all, specific folder or specific file(s))
TCCOP_COMPACTCompact cache (not implemented)
TCCF_REGENERATERegenerate thumbnails for any currently displayed affected files
TCCF_NUKELEGACYTHUMBSDelete any legacy thumbnails found
TCCF_REGENERATEONLYDo not delete anything from the thumbnail cache; just ask all open thumbnail windows to refresh their thumbnails. Useful if your thumbnails are never cached (DVPFIF_NoCache) and you wish to pass NULL for pszPath and pszFileNamePattern.
TCCF_DELETEFOLDERTHUMBSDelete all folder thumbnails