VFS_GetFileInformation(
HANDLE:hVFSData,
LPVFSFUNCDATA:lpFuncData,
LPTSTR:lpszPath,
HANDLE:hHeap,
DWORD:dwFlags
)
→ LPVFSFILEDATAHEADER
The VFS_GetFileInformation function is called to retrieve information about a specified file or folder in your plugin's namespace.
This function is very similar to VFS_ReadDirectory - the only difference is that information for only a single file is returned. The following code is an example of how to allocate the necessary data structure:
LPVOID lpMem = HeapAlloc(hHeap,0,sizeof(VFSFILEDATAHEADER) +
sizeof(VFSFILEDATA) );
LPVFSFILEDATAHEADER pHeader=(LPVFSFILEDATAHEADER)lpMem;
LPVFSFILEDATA pFileData=(LPVFSFILEDATA)(pHeader+1);
// initialize structures
return pHeader;