MsiGetLanguage Function Home
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

VersionWindows Installer 5.0 on 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, Windows XP, and Windows 2000
HeaderMsiquery.h
LibraryMsi.lib
DLLMsi.dll

See Also

Installer State Access Functions

Send comments about this topic to Microsoft

Build date: 11/12/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View