MsiGetLanguage function

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

Syntax


LANGID MsiGetLanguage(
  _In_ MSIHANDLE hInstall
);

Parameters

hInstall [in]

Handle to the installation provided to a DLL custom action or obtained through MsiOpenPackage, MsiOpenPackageEx, or MsiOpenProduct.

Return value

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.

Requirements

Version

Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP

Header

Msiquery.h

Library

Msi.lib

DLL

Msi.dll

See also

Installer State Access Functions

 

 

Show: