Table of Contents

The following property values are used with VFS_PropGet. Note that it is possible for a parameter which is documented as containing a path to be NULL so you should always check the value before attempting to access it.

VFSPROP_ISEXTRACTABLE

lpPropDataLPBOOL pfIsExtractable
lpData1LPTSTR lpszFileName
lpData2DWORD dwAttr

Query whether a specified file or folder is extractable - that is, whether it can be extracted from the plugin's namespace to a local folder using the VFS_ExtractFiles function. lpszFileName provides the full pathname of the file in question, and dwAttr the file attributes (so you can check for the FILE_ATTRIBUTE_DIRECTORY attribute if needed.) pfIsExtractable points to a BOOL value - you should set this value to TRUE if the file can be extracted.

VFSPROP_USEFULLRENAME

lpPropDataLPBOOL pfUseFullRename
lpData1LPTSTR lpszPath

Query whether the specified folder supports the "full rename" function. lpszPath provides the path of the folder in question, and pfUseFullRename points to a BOOL value. Set this value to FALSE if you only want the user to be able to use the "simple rename" function in your namespace.

VFSPROP_SHOWFULLPROGRESSBAR

lpPropDataLPDWORD pdwShowFullProgress
lpData1LPTSTR lpszPath
lpData2LPTSTR lpszOtherPath
lpData3BOOL fIsDest

Query whether the "full progress" bar should be shown for a copy operation involving the two specified paths. lpszPath is the path in your plugin's namespace. lpszOtherPath is the other path involved in the operation (although this may be NULL). fIsDest indicates if your plugin is the destination or source of the copy operation.

pdwShowFullProgress is a pointer to a DWORD. You should set the LOWORD of this DWORD to TRUE if you want a full progress bar displayed, or FALSE if you do not. You should set the HIWORD to TRUE if you want to prevent a full progress bar from being displayed (otherwise, the other namespace involved in the copy may also enable the full progress bar.)

VFSPROP_CANDELETETOTRASH

lpPropDataLPBOOL pfCanDeleteToTrash
lpData1LPTSTR lpszPath

Query whether the file specified by lpszPath can be deleted to the recycle bin. If it can you should return TRUE in pfCanDeleteToTrash, otherwise you should return FALSE.

VFSPROP_CANDELETESECURE

lpPropDataLPBOOL pfCanDeleteSecure
lpData1LPTSTR lpszPath

Query whether the specified file can be deleted securely or not. lpszPath provides the file or folder name. If your VFS_DeleteFile function can delete it securely you should return TRUE in pfCanDeleteSecure, otherwise you should return FALSE.

VFSPROP_COPYBUFFERSIZE

lpPropDataLPDWORD pdwBufferSize
lpData1LPTSTR lpszPath
lpData2unsigned __int64* puiFileSize

Query the recommended buffer size for a copy operation involving the specified path. If lpszPath is NULL you should just return your preferred buffer size. puiFileSize may be NULL, or it may point to an unsigned 64 bit integer specifying the size of the file to be copied. You should return your recommended buffer size (in bytes) in pdwBufferSize.

VFSPROP_DRAGEFFECTS

lpPropDataLPDWORD pdwDragEffectsAvailable
lpData1LPTSTR lpszPath

Query the drag effects available when dragging from the path specified by lpszPath. You should return the effects value in pdwDragEffectsAvailable. Valid effects are DROPEFFECT_COPY, DROPEFFECT_MOVE, DROPEFFECT_LINK or DROPEFFECT_NONE.

VFSPROP_SHOWTHUMBNAILS

lpPropDataLPBOOL pfShowThumbnails
lpData1LPTSTR lpszPath

Query whether thumbnails should be allowed for the path specified in lpszPath. You should return TRUE in pfShowThumbnails if you want to allow thumbnails.

VFSPROP_SHOWFILEINFO

lpPropDataLPBOOL pfShowFileInfo
lpData1LPTSTR lpszPath

Query whether extractable file information should be supported for the pathname specified in lpszPath. You should return TRUE to allow the extraction of file information.

VFSPROP_ALLOWTOOLTIPGETSIZES

lpPropDataLPBOOL pfAllowToolTipGetSizes
lpData1LPTSTR lpszPath

Query whether tooltips for the specified folder can be allowed to trigger a GetSizes command. Return TRUE to allow this or FALSE to prevent it.

VFSPROP_CANSHOWSUBFOLDERS

lpPropDataLPBOOL pfCanShowSubFolders
lpData1LPTSTR lpszPath

Query whether the showing of sub-folders (flat view) should be allowed for the specified path. Return TRUE in pfCanShowSubFolders to allow this or FALSE to prevent it.

VFSPROP_FUNCAVAILABILITY

lpPropDataunsigned __int64* pdwFuncAvailFlags
lpData1LPTSTR lpszPath

Query the availability of Opus functions for the specified path. pdwFuncAvailFlags is supplied with a mask of the functions that Opus is querying for - on return you should clear the flags for those functions you do not support. Opus uses this value to disable functions from the user. Defined function flags are:

VFSFUNCAVAIL_COPY
VFSFUNCAVAIL_MOVE
VFSFUNCAVAIL_DELETE
VFSFUNCAVAIL_GETSIZES
VFSFUNCAVAIL_MAKEDIR
VFSFUNCAVAIL_PRINT
VFSFUNCAVAIL_PROPERTIES
VFSFUNCAVAIL_RENAME
VFSFUNCAVAIL_SETATTR
VFSFUNCAVAIL_SHORTCUT
VFSFUNCAVAIL_SELECTALL
VFSFUNCAVAIL_SELECTNONE
VFSFUNCAVAIL_SELECTINVERT
VFSFUNCAVAIL_VIEWLARGEICONS
VFSFUNCAVAIL_VIEWSMALLICONS
VFSFUNCAVAIL_VIEWLIST
VFSFUNCAVAIL_VIEWDETAILS
VFSFUNCAVAIL_VIEWTHUMBNAIL
VFSFUNCAVAIL_CLIPCOPY
VFSFUNCAVAIL_CLIPCUT
VFSFUNCAVAIL_CLIPPASTE
VFSFUNCAVAIL_CLIPPASTESHORTCUT
VFSFUNCAVAIL_UNDO
VFSFUNCAVAIL_SHOW
VFSFUNCAVAIL_DUPLICATE
VFSFUNCAVAIL_SPLITJOIN
VFSFUNCAVAIL_SELECTRESELECT
VFSFUNCAVAIL_SELECTALLFILES
VFSFUNCAVAIL_SELECTALLDIRS
VFSFUNCAVAIL_PLAY
VFSFUNCAVAIL_SETTIME
VFSFUNCAVAIL_VIEWTILE
VFSFUNCAVAIL_SETCOMMENT

VFSPROP_SUPPORTFILEHASH

lpPropDataLPBOOL pfSupportFileHash
lpData1LPTSTR lpszPath

Query whether file hashing should be allowed for the specified path. Return TRUE in pfSupportFileHash to allow this or FALSE to prevent it.

VFSPROP_GETFOLDERICON

lpPropDataundefined
lpData1HICON* phLargeIcon
lpData2HICON* phSmallIcon
lpData3LPBOOL pfDestroyIcons

Retrieve an icon to use to represent the plugin namespace itself. The icon will be displayed in the location field and in Favorites/Recent lists etc. If not provided a default icon is used instead. You should return the handle to large and small icons in phLargeIcon and phSmallIcon. Set pfDestroyIcons to TRUE to have Opus destroy these icon handles via DestroyIcon or set to FALSE if you do not want Opus to destroy them.

VFSPROP_SUPPORTPATHCOMPLETION

lpPropDataLPBOOL pfSupportCompletion
lpData1LPTSTR lpszPath

Query whether Opus should support path completion for the specified path. Return TRUE in pfSupportCompletion to allow it or FALSE to prevent it.

VFSPROP_BATCHOPERATION

lpPropDataLPDWORD pdwBatchResult
lpData1LPTSTR lpszPath
lpData2LPTSTR lpszDestPath
lpData2UINT uiOperation

Query whether Opus should call VFS_BatchOperation to perform a batch file operation. lpszPath specifies the path in your plugin's namespace, and lpszDestPath specifies the destination path for an extraction operation. uiOperation specifies the desired operation type. You should place one of the VFS_BatchOperation return codes in pdwBatchResult to indicate if the batch operation is to be handled. If any value other than VFSBATCHRES_HANDLED is returned, VFS_BatchOperation will not be called.

VFSPROP_GETVALIDACTIONS

lpPropDataLPDWORD pdwActions
lpData1LPDWORD lpszFilePath

Query if certain shell actions are valid for a file or folder in your plugin's namespace. When called, the value pointed to by pdwActions contains a bitmask of the actions that Opus wishes to query. When you return you should clear the flags that are not supported for the object passed in lpszFilePath. The shell flags queried for are SFGAO_CANRENAME, SFGAO_CANDELETE, SFGAO_CANCOPY, SFGAO_CANMOVE, and SFGAO_HASPROPSHEET.

VFSPROP_SHOWPICTURESDIRECTLY

lpPropDataLPDWORD pdwShowPictures

Query whether a plugin supports the direct viewing of pictures in the Opus viewer. Return TRUE in pdwShowPictures if pictures can be viewed directly (this implies that your plugin exports the VFS_CreateFile and VFS_ReadFile functions) or FALSE if images in your plugin's namespace must be extracted to local disk before they can be viewed.