EngMultiByteToUnicodeN function (winddi.h)

The EngMultiByteToUnicodeN function converts the specified ANSI source string into a Unicode string using the current ANSI code page.

Syntax

ENGAPI VOID EngMultiByteToUnicodeN(
  [out]           LPWSTR UnicodeString,
  [in]            ULONG  MaxBytesInUnicodeString,
  [out, optional] PULONG BytesInUnicodeString,
  [in]            PCHAR  MultiByteString,
  [in]            ULONG  BytesInMultiByteString
);

Parameters

[out] UnicodeString

Pointer to the buffer that receives the resultant Unicode string.

[in] MaxBytesInUnicodeString

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

[out, optional] BytesInUnicodeString

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

[in] MultiByteString

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

[in] BytesInMultiByteString

Specifies the number of bytes in MultiByteString.

Return value

None

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

EngMultiByteToWideChar

EngUnicodeToMultiByteN