DsFreeNameResultA function (ntdsapi.h)

The DsFreeNameResult function frees the memory held by a DS_NAME_RESULT structure. Use this function to free the memory allocated by the DsCrackNames function.

Syntax

void DsFreeNameResultA(
  DS_NAME_RESULTA *pResult
);

Parameters

pResult

Pointer to the DS_NAME_RESULT structure to be freed.

Return value

None

Remarks

Note

The ntdsapi.h header defines DsFreeNameResult as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ntdsapi.h
Library Ntdsapi.lib
DLL Ntdsapi.dll

See also

DS_NAME_RESULT

Domain Controller and Replication Management Functions

DsCrackNames