LdapUnicodeToUTF8 (Windows CE 5.0)
This function converts Unicode strings to UTF-8.
int LdapUnicodeToUTF8(LPCWSTRlpSrcStr,intcchSrc,LPSTRlpDestStr,intcchDest);
Parameters
- lpSrcStr
[in] Pointer to a null-terminated Unicode string to convert. - cchSrc
[in] Specifies the number of characters in the lpSrcStr string. - lpDestStr
[out] Pointer to a buffer that receives the converted UTF-8 character 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
Send Feedback on this topic to the authors