StormLib API Reference

SFileHasFile

Description

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.

Parameters

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

Return Value

Remarks

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