Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:thumbnailrequeststart

ThumbnailRequestStart(
     DOpusPluginThumbnailRequest*:pReqData
)
→ HANDLE

Arguments

pReqData

[in] Pointer to a DOpusPluginThumbnailRequest structure.

Return value

Returns a request handle. This must be closed with [[thumbnailrequestclose|ThumbnailRequestClose]].

Description

The ThumbnailRequestStart function starts a request for Opus to generate a thumbnail of a file or folder.

The DOpusPluginThumbnailRequest structure has the following fields:

  • UINT cbSize
    Must be set to the size of the structure.
  • int iReqWidth
    Generally a maximum size. Actual returned size may differ and, with large sizes, will often be smaller.
  • int iReqHeight
    Generally a maximum size. Actual returned size may differ and, with large sizes, will often be smaller.
  • HWND hwndParent
    Parent window, usually a lister or viewer.
  • HWND hwndNotify
    Window which is notified of results.
  • UINT uiMsgNotify
    If a thumbnail is generated, this message will be posted to hwndNotify, with wParam set to the request HANDLE.
  • DWORD dwReqFlags
    Combination of the following flags, or zero:
DPTHUMBREQF_FORVIEWERSet if the thumbnail will be displayed in the Opus viewer or preview pane. Some thumbnail plugins test for this.
DPTHUMBREQF_WANTICONSet if you want an icon (as large as possible) returned if no thumbnail can be generated.
DPTHUMBREQF_ONLYICONSet if you only want an icon, not an actual thumbnail. Implies DPTHUMBREQF_WANTICON. (Not the most efficient way to get lots of icons, but OK for a single file.)
  • LPCWSTR pszPath
    Path of file or folder to generate a thumbnail of.

This function is exported from dopus.exe as DOpusPluginThumbnailRequestStart. The helper class names it ThumbnailRequestStart.

This function was added in Directory Opus 13.