VFS_GetFileDescription(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPTSTR:lpszDescription,
     int:cchDescriptionMax
)
→ int

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 description for.

lpszDescription

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

cchDescriptionMax

[in] Specifies the size of the buffer in characters

Return value

If you are able to generate a description for the specified file you should copy it to the supplied buffer and return TRUE. If your plugin cannot generate a description you should return FALSE.

Description

The VFS_GetFileDescription function is called to retrieve an automatically generated description of the specified file.

This function is not to be confused with VFS_GetFileComment, which is called to obtain a user-specified comment for a file. The description this function returns must be automatically generated by the plugin to succinctly describe the file.