Export (0) Print
Expand All
Expand Minimize

RtlxAnsiStringToUnicodeSize routine

The RtlxAnsiStringToUnicodeSize routine returns the number of bytes that are required for a null-terminated Unicode string that is equivalent to a specified ANSI string.

Syntax


ULONG RtlxAnsiStringToUnicodeSize(
  _In_  PCANSI_STRING AnsiString
);

Parameters

AnsiString [in]

Pointer to the ANSI string for which to compute the number of bytes that are required for an equivalent null-terminated Unicode string.

Return value

RtlxAnsiStringToUnicodeSize returns the number of bytes that are required for an equivalent null-terminated Unicode string, if the ANSI string can be translated into an Unicode string by using the current system locale information. Otherwise, this routine returns zero.

Remarks

The ANSI string is interpreted for the current system locale.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

See also

RtlAnsiStringToUnicodeSize

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft