LdapUTF8ToUnicode (Windows CE 5.0)

Send Feedback

This function translates strings for modules that do not have the UTF-8 code page.

int LdapUTF8ToUnicode(LPCSTRlpSrcStr,intcchSrc,LPWSTRlpDestStr,intcchDest);

Parameters

  • lpSrcStr
    [in] Pointer to a null-terminated UTF-8 string to convert.
  • cchSrc
    [in] Specifies the number of characters in the lpSrcStr string.
  • lpDestStr
    [out] Pointer to a buffer that receives the converted Unicode string.
  • cchDest
    [in] Specifies the size, in characters, of the lpDestStr buffer.

Return Values

The return value is the number of characters written to the lpDestStr buffer.

If the lpDestStr buffer is too small, a call to the GetLastError function returns ERROR_INSUFFICIENT_BUFFER.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winldap.h.
Link Library: Wldap32.lib.

See Also

LdapUnicodeToUTF8

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.