.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SHUnicodeToAnsiCP 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSHUnicodeToAnsiCP\fR (SHLWAPI.218) .SH SYNOPSIS DWORD SHUnicodeToAnsiCP ( UINT \fICodePage\fR, LPCWSTR \fIlpSrcStr\fR, LPSTR \fIlpDstStr\fR, int \fIdstlen\fR ) .SH DESCRIPTION .PP Convert a Unicode string to Ascii. .SH PARAMS \fICodePage\fR \fB[In]\fR Code page to use for the conversion. .PP \fIlpSrcStr\fR \fB[In]\fR Source Unicode string to convert. .PP \fIlpDstStr\fR \fB[Out]\fR Destination for converted Ascii string. .PP \fIdstlen\fR \fB[In]\fR Length of buffer at \fIlpDstStr\fR. .PP .SH RETURNS .PP \fBSuccess:\fR The length in bytes of the result at \fIlpDstStr\fR (including the terminator) .PP \fBFailure:\fR When using \fBCP_UTF8\fR, \fBCP_UTF7\fR or 0xc350 as codePage, \fB0\fR is returned and the result is not nul-terminated. When using a different codepage, the length in bytes of the truncated result at \fIlpDstStr\fR (including the terminator) is returned and \fIlpDstStr\fR is always nul-terminated. .SH IMPLEMENTATION .PP Exported by ordinal only. Use \fBGetProcAddress(3w)\fR to obtain a pointer to the function. .PP Implemented in \fB"dlls/shlwapi/string.c"\fR. .PP Debug channel \fB"shell"\fR.