Partager via


IMLangCodePages::CodePageToCodePages

This method translates the given code page identifier value into the corresponding entry in a set of code pages.

HRESULT CodePageToCodePages( 
  UINT uCodePage,
  DWORD* pdwCodePages
);

Parameters

  • uCodePage
    [in] Source code page the client wants translated into a set of code pages.
  • pdwCodePages
    [out] Pointer to a set of code pages that contains only the source code page specified by the uCodePage parameter.

Return Values

Returns S_OK if successful or an error value otherwise.

Remarks

For more information about sets of code pages, see IMLangCodePages.

This method creates a set of code pages that contains only the source code page specified by the uCodePage parameter. The method sets all bits in the pdwCodePages parameter to zero except for the bit that corresponds to the uCodePage parameter. This method, in conjunction with the IMLangCodePages::CodePagesToCodePage method, provides the ability to translate between sets of code pages and the individual code page identifier values that are used by many MLang methods and APIs.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mlang.h, Mlang.idl.
Link Library: Mlang.dll.

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.