RtlFreeUnicodeString

VOID
RtlFreeUnicodeString(

IN PUNICODE_STRING UnicodeString
);

RtlFreeUnicodeString releases storage that was allocated by RtlAnsiStringToUnicodeString or RtlUpcaseUnicodeString.

Parameters

UnicodeString

Points to the Unicode string buffer previously allocated by RtlAnsiStringToUnicodeString or RtlUpcaseUnicodeString.

Comments

This routine does not release the ANSI string buffer passed to RtlAnsiStringToUnicodeString.

Callers of RtlFreeUnicodeString must be running at IRQL PASSIVE_LEVEL.

See Also

RtlAnsiStringToUnicodeString, RtlUpcaseUnicodeString