DsFreeSpnArrayA function (ntdsapi.h)

The DsFreeSpnArray function frees an array returned from the DsGetSpn function.

Syntax

void DsFreeSpnArrayA(
  [in] DWORD cSpn,
  [in] LPSTR *rpszSpn
);

Parameters

[in] cSpn

Specifies the number of elements contained in rpszSpn.

[in] rpszSpn

Pointer to an array returned from DsGetSpn.

Return value

None

Remarks

Note

The ntdsapi.h header defines DsFreeSpnArray as an alias which 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 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

Domain Controller and Replication Management Functions

DsGetSpn