StormLib API Reference



int WINAPI SFileEnumLocales(
  HANDLE hMpq,                      // MPQ handle
  const char * szFileName,          // Name of the file to enum
  LCID * plcLocales,                // Array of file locales
  DWORD * pdwMaxLocales,            // Maximum number of locales
  DWORD dwSearchScope               // Ignored

Function SFileEnumLocales enumerates all locales for the given file that are present in the MPQ.


[in] Handle to a MPQ.
[in] Name of a file to enumerate the locales.
[out] An array of LCIDs that will receive locales. This parameter can be NULL if pdwMaxLocales points to zero.
[in, out] On input, this argument must point to a variable that contains maximum number of entries in plcLocales array. On output, this variable receives number of locales that are for the file. This argument cannot be NULL.
[in] This parameter is ignored.

Return Value

When the function succeeds, it returns ERROR_SUCCESS. On an error, the function returns an 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