Previous Next

RtlAnsiStringToUnicodeSize

The RtlAnsiStringToUnicodeSize routine returns the number of bytes required to hold an ANSI string converted into a Unicode string.

ULONG 
  RtlAnsiStringToUnicodeSize(
    IN PANSI_STRING  AnsiString
    );

Parameters

AnsiString
Pointer to a buffer containing the ANSI string.

Return Value

RtlAnsiStringToUnicodeSize returns the necessary size in bytes for a Unicode string buffer.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

Callers of RtlAnsiStringToUnicodeSize must be running at IRQL = PASSIVE_LEVEL.

See Also

RtlAnsiStringToUnicodeString