reference:plugins:plugin_sdk:configuration_functions:thumbnailcachecontrol

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:

  • UINT cbSize
    Set this to the size of the structure before calling this function.
  • int iOperation
    The operation to perform. Valid operations are:
TCCOP_GETSIZEGet total cache size
TCCOP_EMPTYEmpty cache (all, specific folder or specific file(s))
TCCOP_COMPACTCompact cache (not implemented)
  • LPCWSTR pszPath
    Path to empty the cache for, or NULL for all paths.
  • LPCWSTR pszFileNamePattern
    Filename pattern to empty from the cache, or NULL for all files.
  • HANDLE hEvent
    Event to signal on completion, or NULL if not needed.
  • DWORD dwFlags
    Flags. Valid flags are:
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
  • DWORDLONG dwlCacheSize
    Returns the size of the cache for TCCOP_GETSIZE.