~~Title: VFS_ReadDirectory~~ VFS_ReadDirectory && int && The function must return **TRUE** if the directory was read successfully, or **FALSE** if it could not. && hVFSData && HANDLE && [in] The handle to the namespace instance data && lpFuncData && LPVFSFUNCDATA && [in] unused && lpReadDirData && LPVFSREADDIRDATA && [in/out] Pointer to a **VFSREADDIRDATA** structure The **VFS_ReadDirectory** function is called to read the contents of a directory in your plugin's namespace. The directory contents are returned in a variable length linked list of variable size arrays of **VFSFILEDATA** structures. Each array must be preceded in memory with a **VFSFILEDATAHEADER** structure. All memory returned by this function must be allocated with **HeapAlloc** using the memory heap provided. A pointer to the first **VFSFILEDATAHEADER** structure must be placed in the //lpFileData// field of the **VFSREADDIRDATA** structure. Several read operations are defined that do **not** require you to return any directory contents. //lpFileData// should be set to 0 in these cases. See the [[plugins:vfs_plugins:reading_a_directory|Reading a Directory]] section for more information on this function.