Export (0) Print
Expand All
Expand Minimize

LdapUTF8ToUnicode function

The LdapUTF8ToUnicode function is used to translate strings for modules that do not have the UTF-8 code page.

Syntax


int LdapUTF8ToUnicode(
  _In_   LPCSTR lpSrcStr,
  _In_   int cchSrc,
  _Out_  LPWSTR lpDestStr,
  _In_   int cchDest
);

Parameters

lpSrcStr [in]

A pointer to a null-terminated UTF-8 string to convert.

cchSrc [in]

An integer that specifies the size, in characters, of the lpSrcStr string.

lpDestStr [out]

A pointer to a buffer that receives the converted Unicode string, without a null terminator.

cchDest [in]

An integer that specifies the size, in characters, of the lpDestStr buffer.

Return value

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.

When the cchDest parameter is zero, the required size of the destination buffer is returned.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

See also

Functions
LdapUnicodeToUTF8

 

 

Show:
© 2014 Microsoft