RtlFreeAnsiString function

The RtlFreeAnsiString routine releases storage that was allocated by RtlUnicodeStringToAnsiString.

Syntax

NTSYSAPI VOID RtlFreeAnsiString(
  PANSI_STRING AnsiString
);

Parameters

AnsiString

Pointer to the ANSI string buffer previously allocated by RtlUnicodeStringToAnsiString.

Return Value

None

Remarks

This routine does not release the Unicode string buffer passed to RtlUnicodeStringToAnsiString.

Requirements

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

See Also

RtlUnicodeStringToAnsiString