~~Title: Property Reference~~ The following property values are used with [[.exported_functions_reference:vfs_propget|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 ==== |lpPropData|LPBOOL //pfIsExtractable//| |lpData1|LPTSTR //lpszFileName//| |lpData2|DWORD //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 [[.exported_functions_reference:vfs_extractfiles|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 ==== |lpPropData|LPBOOL //pfUseFullRename//| |lpData1|LPTSTR //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 ==== |lpPropData|LPDWORD //pdwShowFullProgress//| |lpData1|LPTSTR //lpszPath//| |lpData2|LPTSTR //lpszOtherPath//| |lpData3|BOOL //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 ==== |lpPropData|LPBOOL //pfCanDeleteToTrash//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfCanDeleteSecure//| |lpData1|LPTSTR //lpszPath//| Query whether the specified file can be deleted securely or not. //lpszPath// provides the file or folder name. If your [[.exported_functions_reference:vfs_deletefile|VFS_DeleteFile]] function can delete it securely you should return **TRUE** in //pfCanDeleteSecure//, otherwise you should return **FALSE**. ==== VFSPROP_COPYBUFFERSIZE ==== |lpPropData|LPDWORD //pdwBufferSize//| |lpData1|LPTSTR //lpszPath//| |lpData2|unsigned __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 ==== |lpPropData|LPDWORD //pdwDragEffectsAvailable//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfShowThumbnails//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfShowFileInfo//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfAllowToolTipGetSizes//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfCanShowSubFolders//| |lpData1|LPTSTR //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 ==== |lpPropData|unsigned __int64* //pdwFuncAvailFlags//| |lpData1|LPTSTR //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 ==== |lpPropData|LPBOOL //pfSupportFileHash//| |lpData1|LPTSTR //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 ==== |lpPropData|undefined| |lpData1|HICON* //phLargeIcon//| |lpData2|HICON* //phSmallIcon//| |lpData3|LPBOOL 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 ==== |lpPropData|LPBOOL //pfSupportCompletion//| |lpData1|LPTSTR //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 ==== |lpPropData|LPDWORD //pdwBatchResult//| |lpData1|LPTSTR //lpszPath//| |lpData2|LPTSTR //lpszDestPath//| |lpData2|UINT //uiOperation//| Query whether Opus should call [[.exported_functions_reference:vfs_batchoperation|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 [[.exported_functions_reference:vfs_batchoperation|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, [[.exported_functions_reference:vfs_batchoperation|VFS_BatchOperation]] will not be called. ==== VFSPROP_GETVALIDACTIONS ==== |lpPropData|LPDWORD //pdwActions//| |lpData1|LPDWORD //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 ==== |lpPropData|LPDWORD //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 [[.exported_functions_reference:vfs_createfile|VFS_CreateFile]] and [[.exported_functions_reference:vfs_readfile|VFS_ReadFile]] functions) or **FALSE** if images in your plugin's namespace must be extracted to local disk before they can be viewed.