Directory Services |
Call the LdapUTF8ToUnicode function to translate strings for modules that do not have the UTF-8 code page.
int LdapUTF8ToUnicode( LPCSTR lpSrcStr, int cchSrc, LPWSTR lpDestStr, int cchDest );
The return value is the number of characters written to the lpDestStr buffer.
If the lpDestStr buffer is too small, GetLastError returns ERROR_INSUFFICIENT_BUFFER.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.