RtlFreeAnsiString function (winternl.h)

Frees the string buffer allocated by RtlUnicodeStringToAnsiString.

Syntax

void RtlFreeAnsiString(
  [in] PANSI_STRING AnsiString
);

Parameters

[in] AnsiString

A pointer to an ANSI string whose buffer was previously allocated by RtlUnicodeStringToAnsiString.

Return value

None

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winternl.h
Library ntdll.lib
DLL ntdll.dll