Method ITcFileAccess:FileFindNext
Step further on through files of a directory.
Syntax
virtual HRESULT TCOMAPI FileFindNext (TcFileFindHandle hFileFind, PTcFileFindData pFileFindData);
Parameters
hFileFind: (type: PTcFileFindHandle) [in] handle to search further on with FileFindNext.
pFileFindData: (type: PTcFileFindData) [out] the description of the next file. Compare TcFileAccessServices.h.
Return value
If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.
A particularly interesting error code is ADSERR_DEVICE_TIMEOUT if the timeout (5 seconds) has elapsed.
Description
This method finds next file in a directory. The Method provides access to PTcFileFindData of the found file, which contains the following information:
typedef struct TcFileFindData
{
TcFileHandle hFile;
DWORD dwFileAttributes;
ULONGLONG ui64CreationTime;
ULONGLONG ui64LastAccessTime;
ULONGLONG ui64LastWriteTime;
DWORD dwFileSizeHigh;
DWORD dwFileSizeLow;
DWORD dwReserved1;
DWORD dwReserved2;
CHAR cFileName[260];
CHAR cAlternateFileName[14];
WORD wReserved0;
} TcFileFindData, *PTcFileFindData;