reference:plugins:vfs_plugins:vfs_getcontextmenu

VFS_GetContextMenu(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszFiles,
     LPVFSCONTEXTMENUDATA:lpwfdData
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszFiles

[in] A double null-terminated list of files that the context menu is being shown for.

lpwfdData

[in/out] Pointer to a VFSCONTEXTMENUDATA structure into which you place information about the context menu items you wish to add.

Return value

If you wish to add items to the context menu you must set the appropriate fields in VFSCONTEXTMENUDATA and return TRUE. If you do not want to add to the context menu you should return FALSE.

Description

The VFS_GetContextMenu function is called to allow your plugin to add its own items to the context menu shown when the user clicks the right mouse button on a file or folder in your plugin's namespace.

Custom commands you add to the context menu will invoke your VFS_ContextVerb function when the user selects them. See the Context and Drop Menus section for more information on building your context menu.