VFS_ContextVerb(
HANDLE:hVFSData,
LPVFSFUNCDATA:lpFuncData,
LPVFSCONTEXTVERBDATA:lpVerbData
)
→ int
The following return values are valid:
| VFSCVRES_FAIL | The action has failed |
| VFSCVRES_HANDLED | The action was performed successfully |
| VFSCVRES_DEFAULT | Opus should perform the default action |
| VFSCVRES_EXTRACT | Opus should extract the file and call VFS_ContextVerb again |
| VFSCVRES_CHANGE | Opus should call VFS_ContextVerb with the path in lpszNewPath |
| VFSCVRES_CHANGEDIR | Opus should read the folder specified by lpszNewPath |
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.