Partager via


IMultiLanguage3::DetectOutboundCodePageInIStream

This method detects the encoding of outbound Unicode text. This method resembles the IMultiLanguage3::DetectOutboundCodePage method, except that the source text is in an IStream object.

HRESULT DetectOutboundCodePageInIStream( 
  DWORD dwFlags,
  IStream* pStrIn,
  UINT* puiPreferredCodePages,
  UINT nPreferredCodePages,
  UINT* puiDetectedCodePages,
  UINT* pnDetectedCodePages,
  WCHAR* lpSpecialChar
);

Parameters

  • dwFlags
    [in] DWORD that contains one of the flags from MLCP.
  • pStrIn
    [in] Pointer to an IStream object that contains the Unicode source string.
  • puiPreferredCodePages
    [in] Optional array of preferred code pages. If this array is NULL, MLang uses its internal code page stack to determine priorities.
  • nPreferredCodePages
    [in] Integer that contains the number of preferred code pages.
  • puiDetectedCodePages
    [in] Array of detected code pages.
  • pnDetectedCodePages
    [in, out] 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] Long pointer to an optional null-terminated Unicode string for client-specified special characters.

Return Values

Returns S_OK if successful or an error value otherwise.

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.