StormLib API Reference

SFileSetFileLocale

Description

bool WINAPI SFileSetFileLocale(
  HANDLE hFile,                     // File handle
  LCID lcNewLocale                  // New locale ID for the file
);

Function SFileSetFileLocale sets new locale ID for an open file. The locale ID is changed in the block table of the MPQ. The MPQ must have been open by SFileOpenArchive or created by SFileCreateArchive. Note that this operation does not cause MPQ fragmentation and thus it is not necessary to compact the archive.

Parameters

hFile
[in] Handle to the file in the MPQ. This handle must have been obtained by calling SFileOpenFileEx.
lcNewLocale
[in] New locale ID for the file. For more onformation about locales, see SFileSetLocale.

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 No
Ordinal number in Storm.dll 1.00 N/A
Ordinal number in Storm.dll 1.09 N/A