IMultiLanguage2::DetectInputCodepage (original) (raw)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method detects the code page of the given string.

Syntax

HRESULT DetectInputCodepage( 
  DWORD dwFlag,
  DWORD dwPrefWinCodePage,
  CHAR* pSrcStr,
  INT* pcSrcSize,
  DetectEncodingInfo* lpEncoding,
  INT* pnScores
);

Parameters

Return Value

The following table shows the possible return values for this method.

Value Description
S_OK Success.
S_FALSE The method cannot determine the code page of the input stream.
E_FAIL An error occurred.

Remarks

The caller is responsible for allocating and freeing the lpEncoding array.

Requirements

Header mlang.h, mlang.idl
Library mlang.dll
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later