RtlFreeUnicodeString function

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

Syntax

NTSYSAPI VOID RtlFreeUnicodeString(
  PUNICODE_STRING UnicodeString
);

Parameters

UnicodeString

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

Return Value

None

Remarks

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

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Wudfwdm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<=APC_LEVEL"

See Also

RtlAnsiStringToUnicodeString

RtlUpcaseUnicodeString