Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Globalization
MLang
Reference
Functions
 ConvertINetString Function

  Switch on low bandwidth view
ConvertINetString Function

Performs character set conversion between a given source code page identifier and a destination code page identifier.

Syntax

HRESULT ConvertINetString(      
    LPDWORD lpdwMode,     DWORD dwSrcEncoding,     DWORD dwDstEncoding,     LPCSTR lpSrcStr,     LPINT lpnSrcSize,     LPBYTE lpDstStr,     LPINT lpnDstSize );

Parameters

lpdwMode
A pointer to a DWORD that is used internally to store conversion context. A caller should provide storage that is initialized with zero at the first call to the function. A caller must not modify the value without calling MLANG service functions.
dwSrcEncoding
A DWORD that contains the code page identifier value for the source string.
dwDstEncoding
A DWORD that contains the code page identifier value for the destination string.
lpSrcStr
A pointer to the string that is being converted.
lpnSrcSize
A pointer to the buffer that stores the length of the source string in bytes. If this is NULL, or if the length specified is -1, the function assumes that the source string is null-terminated. When the conversion is successful, the function returns the number of bytes processed to this buffer.
lpDstStr
A pointer to the string buffer where the conversion result is stored.
lpnDstSize
A pointer to the buffer that stores the length of the destination string in bytes. When the conversion is successful, the function returns the number of bytes copied to the lpDstStr buffer.

Return Value

The function returns one of the following values.

S_OKPerformed the conversion successfully.
S_FALSEThe specified conversion is not supported on the system.
E_FAILAn error has occurred.

Remarks

An application calls this function to convert a character stream in an Internet character set to a Microsoft Windows code page, or vice versa. This function provides a conversion similar to the conversion perfomed by calling IMultiLanguage::ConvertString.

Function Information

Stock Implementationmlang.dll
Custom ImplementationNo
Import libraryNone
Minimum availabilityInternet Explorer 5.5
Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker