AIT_FindNextFile

Description

Uses a search handle returned by the AIT_FindFirstFile function to find the next file.

Format

bool AIT_FindNextFile  (
 integer nSearchHandle,     // File search handle
 string strFileName         // Found filename
);

Parameters

nSearchHandle (input)

Specify a file search handle returned in response to previously called AIT_FindFirstFile.

strFileName (output)

Specify a variable for receiving a found filename. When the function returns, the variable stores the found filename.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
5ERROR_ACCESS_DENIED
6ERROR_INVALID_HANDLE
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
18ERROR_NO_MORE_FILES
21ERROR_NOT_READY
87ERROR_INVALID_PARAMETER
112ERROR_DISK_FULL
148ERROR_PATH_BUSY
1231ERROR_NETWORK_UNREACHABLE

Note

This function uses only a name to find the file. It cannot use any attributes to find the file.