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
);
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.
Declared in wdm.h. Include wdm.h.
The Unicode string is interpreted for the current system locale.
RtlxUnicodeStringToAnsiSize runs at IRQL = PASSIVE_LEVEL.