Previous Next

RtlxUnicodeStringToAnsiSize

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

ULONG
  RtlxUnicodeStringToAnsiSize(
    PUNICODE_STRING  UnicodeString
    );

Parameters

UnicodeString
Pointer to the Unicode string for which to compute the number of bytes required for an equivalent NULL-terminated ANSI string.

Return Value

If the Unicode string can be translated into an ANSI string using the current system locale information, RtlxUnicodeStringToAnsiSize returns the number of bytes required for an equivalent NULL-terminated ANSI string. Otherwise, it returns zero.

Headers

Declared in wdm.h. Include wdm.h.

Comments

The Unicode string is interpreted for the current system locale.

RtlxUnicodeStringToAnsiSize runs at IRQL = PASSIVE_LEVEL.

See Also

RtlUnicodeStringToAnsiSize