FreeADsMem function

The FreeADsMem function frees the memory allocated by AllocADsMem or ReallocADsMem.

Syntax


BOOL FreeADsMem(
  _In_  LPVOID pMem
);

Parameters

pMem [in]

Type: LPVOID

Pointer to the memory to be freed. This memory must have been allocated with the AllocADsMem or ReallocADsMem function.

Return value

Type: BOOL

The function returns TRUE if successful, otherwise it returns FALSE.

Remarks

Do not use this function to free memory allocated with the AllocADsStr or ReallocADsStr function. Use the FreeADsStr function to free memory allocated with these functions.

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Adshlp.h

Library

Activeds.lib

DLL

Activeds.dll;
AdsLdpc.dll

See also

AllocADsMem
AllocADsStr
ReallocADsMem
ReallocADsStr
FreeADsStr
ADSI Functions

 

 

Show:
© 2014 Microsoft