VFS_ContextVerb(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPVFSCONTEXTVERBDATA:lpVerbData
)
→ int

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpVerbData

[in/out] Address of a VFSCONTEXTVERBDATA structure

Return value

The following return values are valid:

VFSCVRES_FAILThe action has failed
VFSCVRES_HANDLEDThe action was performed successfully
VFSCVRES_DEFAULTOpus should perform the default action
VFSCVRES_EXTRACTOpus should extract the file and call VFS_ContextVerb again
VFSCVRES_CHANGEOpus should call VFS_ContextVerb with the path in lpszNewPath
VFSCVRES_CHANGEDIROpus should read the folder specified by lpszNewPath

Description

The VFS_ContextVerb function is called to perform an action upon a file in your plugin's namespace.

The lpszVerb field will be set to NULL for "default action" - meaning the user has double-clicked on the item. If you add custom commands to the context menu via the VFS_GetContextMenu function then those commands will be sent to your VFS_ContextVerb function.

If you return VFSCVRES_CHANGE or VFSCVRES_CHANGEDIR you must provide a new path string in the lpszNewPath field. You must only copy up to cchNewPathMax characters into this buffer.