VFS_GetFileAttr(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPDWORD:lpdwAttr
)
→ 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 attributes for.

lpdwAttr

[out] Points to a DWORD into which you must place the attributes of the specified file.

Return value

If the file exists you should place its attributes in lpdwAttr and return TRUE. If the file does not exist or another error occurs you should return FALSE.

Description

The VFS_GetFileAttr function is called to retrieve the attributes of a file or folder in your plugin's namespace.

The attribute flags are the same as those in the Windows API. See the documentation for the Windows GetFileAttributes function for a list of flags. You only need to support those flags that make sense in the context of your plugin.