EngUnicodeToMultiByteN

VOID EngUnicodeToMultiByteN(

PCHAR MultiByteString,
ULONG MaxBytesInMultiByteString,
PULONG BytesInMultiByteString,
PWSTR UnicodeString,
ULONG BytesInUnicodeString
);

EngUnicodeToMultiByteN converts the specified Unicode string into an ANSI string using the current ANSI code page.

Parameters

MultiByteString

Pointer to the buffer in which the resultant ANSI string is returned.

MaxBytesInMultiByteString

Supplies the maximum number of bytes to be written to MultiByteString. If this value is too small, causing MultiByteString to be a truncated equivalent of UnicodeString, then no error condition results.

BytesInMultiByteString

Pointer to a ULONG in which the number of bytes written to MultiByteString is returned.

UnicodeString

Pointer to the Unicode source string that is to be converted to ANSI.

BytesInUnicodeString

The number of bytes in UnicodeString.

See Also

EngMultiByteToUnicodeN, EngWideCharToMultiByte