StormLib API Reference
SFileAddFile
bool WINAPI SFileAddFile( HANDLE hMpq, // Handle to the MPQ const char * szFileName, // The name of a file to be removed const char * szArchivedName, // The name under which the file will be stored DWORD dwFlags // Specifies archive flags for the file );
This function is now obsolete and should not be used. Use SFileAddFileEx for adding files to an archive.
Function SFileAddFile adds a file to the MPQ archive. The MPQ must have been open by SFileOpenArchive or created by SFileCreateArchive. Note that this operation might cause MPQ fragmentation. To reduce size of the MPQ, use SFileCompactArchive.
When the function succeeds, it returns nonzero. On an error, the function returns false and GetLastError gives the error code.
If MPQ_FILE_COMPRESS is set in the dwFlags parameter, the function compresses the file by a compression method previously set by SFileSetDataCompression.
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