RtlFreeUnicodeString function (wdm.h)

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

Syntax

NTSYSAPI VOID RtlFreeUnicodeString(
  [in, out] PUNICODE_STRING UnicodeString
);

Parameters

[in, out] 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

Requirement Value
Minimum supported client 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