~~Title: VFS_GetFileInformation~~
VFS_GetFileInformation && LPVFSFILEDATAHEADER && If the file exists you should allocate a chunk of memory using the heap provided containing a **VFSFILEDATAHEADER** and a **VFSFILEDATA** structure and return the address of the allocated memory. If the file does not exist you should return **NULL**. &&
hVFSData && HANDLE && [in] The handle to the namespace instance data &&
lpFuncData && LPVFSFUNCDATA && [in] unused &&
lpszPath && LPTSTR && [in] A null-terminated string containing the full pathname of the file to retrieve information for &&
hHeap && HANDLE && [in] A handle to a memory heap for you to allocate memory from using **HeapAlloc**. &&
dwFlags && DWORD && [in] Currently unused.
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|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;