StormLib API Reference
SFileCloseArchive
bool WINAPI SFileCloseArchive( HANDLE hMpq // Handle to an open MPQ );
Function SFileCloseArchive closes the MPQ archive. All in-memory data are freed and also any unsaved MPQ tables are saved to the archive. After this function finishes, the hMpq handle is no longer valid and may not be used in any MPQ operations.
Note that this function calls SFileFlushArchive internally.
When the function succeeds, it returns nonzero. On an error, the function returns false and GetLastError gives the error code.
Available in Storm.dll | Yes |
Ordinal number in Storm.dll 1.00 | 63 (0x03F) |
Ordinal number in Storm.dll 1.09 | 252 (0x0FC) |
Copyright (c) Ladislav Zezula 2003 - 2010