Directory Services

FreeADsStr

The FreeADsStr function frees the memory of a specified string created by AllocADsStr.

BOOL FreeADsStr(
  LPWSTR pStr
);

Parameters

pStr
[in] A null-terminated Unicode string whose memory was allocated by AllocADsStr.

Return Values

The function returns TRUE if the memory is freed. Otherwise, it returns FALSE.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Adshlp.h.
Library: Use ActiveDS.lib.

See Also

ADSI Functions, AllocADsStr