StormLib API Reference

SFileCloseFile

Description

bool WINAPI SFileCloseFile(
  HANDLE hFile                      // Handle to an open MPQ
);

Function SFileCloseFile closes an open MPQ file. All in-memory data are freed. After this function finishes, the hFile handle is no longer valid and must not be used in any file operations.

Parameters

hFile
[in] Handle to an open file.

Return Value

When the function succeeds, it returns nonzero. On an error, the function returns false and GetLastError gives the error code.

Availability in Storm.dll

Available in Storm.dll Yes
Ordinal number in Storm.dll 1.00 64 (0x040)
Ordinal number in Storm.dll 1.09 253 (0x0FD)