IMultiLanguage3::DetectOutboundCodePage method

Detects the encoding of outbound Unicode text.

Syntax

HRESULT DetectOutboundCodePage(
  [in]      DWORD   dwFlags,
  [in]      LPCWSTR lpWideCharStr,
  [in]      UINT    cchWideChar,
  [in]      UINT    *puiPreferredCodePages,
  [in]      UINT    nPreferredCodePages,
  [in]      UINT    *puiDetectedCodePages,
  [in, out] UINT    *pnDetectedCodePages,
  [in]      WCHAR   *lpSpecialChar
);

Parameters

  • dwFlags [in]
    A DWORD that contains one of the flags from MLCP.

  • lpWideCharStr [in]
    A pointer to the Unicode source string.

  • cchWideChar [in]
    An integer that contains the number of characters in the Unicode source string.

  • puiPreferredCodePages [in]
    An optional array of preferred code pages. If this array is NULL, MLang uses its internal code page stack to determine priorities.

  • nPreferredCodePages [in]
    An integer that contains the number of preferred code pages.

  • puiDetectedCodePages [in]
    An array of detected code pages.

  • pnDetectedCodePages [in, out]
    A pointer to an integer that receives the maximum number of code pages to supply and returns the number of Unicode pages that were detected.

  • lpSpecialChar [in]
    A pointer to an optional NULL-terminated Unicode string for client-specified special characters.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IMultiLanguage3

IMultiLanguage3::DetectOutboundCodePageInIStream