21#ifndef WINPR_CRT_UNICODE_INTERNAL
22#define WINPR_CRT_UNICODE_INTERNAL
24#include <winpr/wtypes.h>
26int int_MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr,
int cbMultiByte,
27 LPWSTR lpWideCharStr,
int cchWideChar);
29int int_WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr,
int cchWideChar,
30 LPSTR lpMultiByteStr,
int cbMultiByte, LPCSTR lpDefaultChar,
31 LPBOOL lpUsedDefaultChar);
44SSIZE_T winpr_utfEscapedStringToUtf8(
char* str,
size_t len);
57WINPR_ATTR_MALLOC(free, 1)
58char* winpr_utf8ToUtfEscapedString(
char* str,
size_t len,
size_t* pDstLen);