Previous Next

RtlFreeUnicodeString

The RtlFreeUnicodeString routine releases storage that was allocated by RtlAnsiStringToUnicodeString or RtlUpcaseUnicodeString.

VOID 
  RtlFreeUnicodeString(
    IN PUNICODE_STRING  UnicodeString
    );

Parameters

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

Return Value

None

Headers

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

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