FreeADsStr function

The FreeADsStr function frees the memory of a string allocated by AllocADsStr or ReallocADsStr.

Syntax


BOOL FreeADsStr(
  _In_  LPWSTR pStr
);

Parameters

pStr [in]

Type: LPWSTR

Pointer to the string to be freed. This string must have been allocated with the AllocADsStr or ReallocADsStr function.

Return value

Type: BOOL

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

Remarks

Do not use this function to free memory allocated with the AllocADsMem or ReallocADsMem function. Use the FreeADsMem function to free memory allocated with these functions.

For more information and a code example that shows how to use the FreeADsStr function, see ReallocADsStr.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Adshlp.h

Library

Activeds.lib

DLL

Activeds.dll;
AdsLdpc.dll

See also

AllocADsStr
ReallocADsStr
AllocADsMem
ReallocADsMem
FreeADsMem
ADSI Functions

 

 

Show:
© 2014 Microsoft