StormLib API Reference
SListFileFindFirstFile
HANDLE WINAPI SListFileFindFirstFile( HANDLE hMpq, // Archive handle const char * szListFile, // Name of additional listfile const char * szMask, // Search mask SFILE_FIND_DATA * lpFindFileData // Pointer to the search result );
Function SListFileFindFirstFile searches a listfile and returns name of the first file that matches the given search mask. When the caller finishes searching, the returned handle must be freed by calling SListFileFindClose. Note that unlike SFileFindFirstFile, this function does not check if the file exists within the archive and doesn't call SFileAddListFile.
When the function succeeds, it returns handle to the MPQ search object and the cFileName member of SFILE_FIND_DATA structure is filled with name of the file. On an error, the function returns NULL and GetLastError gives the error code.
Note that even if names within MPQs contain "folder names", the searching functions don't support folders. The entire line in the list file is considered a file name.
Available in Storm.dll | No |
Ordinal number in Storm.dll 1.00 | N/A |
Ordinal number in Storm.dll 1.09 | N/A |
Copyright (c) Ladislav Zezula 2003 - 2010