Share via


IMultiLanguage2::ValidateCodePage method

Validates the code page and installs a language pack, if required.

Syntax

HRESULT ValidateCodePage(
  [in] UINT uiCodePage,
  [in] HWND hwnd
);

Parameters

  • uiCodePage [in]
    An unsigned integer identifier for the code page to validate.

  • hwnd [in]
    A handle to the parent window that hosts the language pack installation dialog box, if required. Specify NULL to use the current foreground window.

Return value

Returns one of the following values, or an error otherwise.

Return code Description
S_OK

Success.

S_FALSE

The codepage is not valid or installable.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IMultiLanguage2