Platform SDK: Active Directory, ADSI, and Directory Services

LdapUTF8ToUnicode

Call the LdapUTF8ToUnicode function to translate strings for modules that don't have the UTF-8 code page.

int LDAPAPILdapUTF8ToUnicode(
  LPCSTR lpSrcStr,
  int cchSrc,
  LPWSTR lpDestStr,
  int cchDest
);

Parameters

lpSrcStr
[in] The UTF-8 source string.
cchSrc
[in] The number of characters in a source string.
cchDest
[in] The number of characters converted.
lpDestStr
[out] The converted Unicode string.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winldap.h.
  Library: Use Wldap32.lib.

See Also

Functions