MsiGetLanguage

[This is preliminary documentation and subject to change.]

The MsiGetLanguage function returns the numeric language of the installation that is currently running.

LANGID MsiGetLanguage(
  MSIHANDLE hInstall   // installer handle
);
 

Parameters

hInstall
Handle to the installation.

Return Values

If the function succeeds, the return value is the numeric LANGID for the install.

If the function fails, the return value can be the following value.

ERROR_INVALID_HANDLE
An invalid or inactive handle was supplied.

Remarks

The MsiGetLanguage function returns 0 if an installation is not running.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msiquery.h.
  Import Library: Use msi.lib.

See Also

Database Access Reference, Installer State Access Functions