Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
plugins:vfs_plugins:exported_functions_reference:vfs_getfilecomment

VFS_GetFileComment(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPTSTR:lpszComment,
     int:cchCommentMax
)
→ 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

[out] Points to a buffer into which you must copy the comment of the specified file.

cchCommentMax

[in] Specifies the size of the buffer in characters

Return value

If the file has a comment set by the user you should copy it to the supplied buffer and return TRUE. If the file has no comment you should return FALSE.

Description

The VFS_GetFileComment function is called to retrieve the comment set by the user for a file or folder in your plugin's namespace.

This function is not to be confused with VFS_GetFileDescription, which is called to obtain an automatically generated description of a file. The comment this function returns must have been set by the user.