Expand Minimize

EngUnicodeToMultiByteN function

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

Syntax


VOID EngUnicodeToMultiByteN(
  _Out_      PCHAR MultiByteString,
  _In_       ULONG MaxBytesInMultiByteString,
  _Out_opt_  PULONG BytesInMultiByteString,
  _In_       PWSTR UnicodeString,
  _In_       ULONG BytesInUnicodeString
);

Parameters

MultiByteString [out]

Pointer to the buffer that receives the resultant ANSI string.

MaxBytesInMultiByteString [in]

Specifies 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 [out, optional]

Pointer to a ULONG that receives the number of bytes written to MultiByteString.

UnicodeString [in]

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

BytesInUnicodeString [in]

Specifies the number of bytes in UnicodeString.

Return value

None

Requirements

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngMultiByteToUnicodeN
EngWideCharToMultiByte

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft