reference:plugins:vfs_plugins:vfs_findnextfile

VFS_FindNextFile(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     HANDLE:hFind,
     LPWIN32_FIND_DATA:lpwfdData
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

hFind

[in] The find handle returned by VFS_FindFirstFile

lpwfdData

[out] Pointer to a WIN32_FIND_DATA structure into which you place information about the next matching item

Return value

If the operation succeeds, you must copy the file information to lpwfdData and return TRUE. If the operation fails you must return FALSE. You should set the ERROR_NO_MORE_FILES error code and return FALSE when there are no more items to enumerate.

Description

The VFS_FindNextFile function is called to continue the enumeration of the contents of a folder begun with VFS_FindFirstFile.

Currently the only wildcard pattern Opus uses in calls to this function is a "*" meaning return all items. This means you do not need to actually check that the filename you are returning matches the pattern - simply iterate through all files in the originally specified folder.