Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:vfs_plugins:exported_functions_reference:vfs_setfilecomment

VFS_SetFileComment(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPTSTR:lpszComment
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszPath

[in] A null-terminated string containing the full pathname of the file to retrieve the comment for.

lpszComment

[in] Points to a string containing the new comment for the file.

Return value

If you can successfully store the comment you should return TRUE, otherwise set an appropriate error code and return FALSE.

Description

The VFS_SetFileComment function is called to allow the user to assign an arbitrary comment to a file or folder in your plugin's namespace.

If lpszComment is NULL or an empty string you should remove any previously assigned comment.