StormLib API Reference



bool WINAPI SFileHasFile(
  HANDLE hMpq,                      // Handle to an open MPQ
  const char * szFileName           // Name of a file to check

Function SFileHasFile performs a quick check if a file exists within the MPQ archive. The function does not perform file open, not even internally. It merely checks hash table if the file is present.


[in] Handle to an open MPQ.
[in] Name of the file to check.

Return Value


Unlike SFileOpenFileEx, this function doesn't support checking file presence by index. If you want to know the number of entries in the block table, use SFileGetFileInfo.

Availability in Storm.dll

Available in Storm.dll No
Ordinal number in Storm.dll 1.00 N/A
Ordinal number in Storm.dll 1.09 N/A