SHUnicodeToAnsiCP (SHLWAPI.218)
DWORD SHUnicodeToAnsiCP ( UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr, int dstlen )
Convert a Unicode string to ANSI.
CodePage | [In] | Code page to use for the conversion. |
lpSrcStr | [In] | Source Unicode string to convert. |
lpDstStr | [Out] | Destination for converted ANSI string. |
dstlen | [In] | Length of buffer at lpDstStr. |
Success: The length in bytes of the result at lpDstStr (including the terminator)
Failure: When using CP_UTF8, CP_UTF7 or 0xc350 as codePage, 0 is returned and the result is not nul-terminated. When using a different codepage, the length in bytes of the truncated result at lpDstStr (including the terminator) is returned and lpDstStr is always nul-terminated.
Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.
Implemented in "dlls/shlwapi/string.c". gitlab.winehq.org/wine/wine/blob/master/dlls/shlwapi/string.c
Debug channel "shell".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.