VFS_GetNextFile(
HANDLE:hVFSData,
HANDLE:hOutOfOrderData,
LPWSTR:lpszFilePath,
UINT:cchFileMax,
LPSTREAM*:ppFileStream,
WIN32_FIND_DATA*:pfdFileInfo,
DWORD*:pdwDataValid,
LONG*:plErrCode,
LPWSTR:pszErrMsg,
UINT:cchErrMsgMax
)
→ BOOL
[out] Flags indicating which data is valid
| VFSGNF_DataValid_FilePath | lpszFilePath |
| VFSGNF_DataValid_Attr | pfdFileInfo->dwFileAttributes |
| VFSGNF_DataValid_CreateTime | pfdFileInfo->ftCreationTime |
| VFSGNF_DataValid_AccessTime | pfdFileInfo->ftLastAccessTime |
| VFSGNF_DataValid_WriteTime | pfdFileInfo->ftLastWriteTime |
| VFSGNF_DataValid_Size | pfdFileInfo->nFileSizeHigh and pfdFileInfo->nFileSizeLow |
| VFSGNF_DataValid_FileName | pfdFileInfo->cFileName |
| VFSGNF_DataValid_All | All of the above |
The VFS_GetNextFile function is called to retrieve the next file of an out-of-order operation.
If VFS_GetNextFile returns TRUE, at least VFSGNF_DataValid_FilePath must be set in *pdwDataValid.
If VFS_GetNextFile returns FALSE:
Errors reading from the stream should be saved in the stream object and made available through the IOpusOOOStreamError interface, which Opus looks for on the stream if its methods fail (the ISequentialStream::Read method should return E_FAIL or another error code). The interface has three methods:
struct IOpusOOOStreamError : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetError(LONG* lErrCode) = 0; virtual HRESULT STDMETHODCALLTYPE GetErrorMsg(LPWSTR pszErrBuf, ULONG cchErrBuf) = 0; virtual HRESULT STDMETHODCALLTYPE ClearError() = 0; };
Its interface ID is IID_IOpusOOOStreamError.
VFS_GetLastError is never used to report errors relating to the out-of-order functions.
See also VFS_BeginOutOfOrder, VFS_EndOutOfOrder and the VFSCAPABILITY_OUTOFORDER capability flag.
This function was added in Directory Opus 10 (VFSPLUGINVERSION 4).