DsFreeDomainControllerInfoA function (ntdsapi.h)
The DsFreeDomainControllerInfo function frees memory that is allocated by DsGetDomainControllerInfo for data about the domain controllers in a domain.
Syntax
NTDSAPI VOID DsFreeDomainControllerInfoA(
[in] DWORD InfoLevel,
[in] DWORD cInfo,
[in] VOID *pInfo
);
Parameters
[in] InfoLevel
Indicates what version of the DS_DOMAIN_CONTROLLER_INFO structure should be freed. This parameter can be one of the following values.
1
The function frees the structure that contains DS_DOMAIN_CONTROLLER_INFO_1 data.
2
The function frees the structure that contains DS_DOMAIN_CONTROLLER_INFO_2 data.
[in] cInfo
Indicates the number of items in pInfo.
[in] pInfo
Pointer to an array of DS_DOMAIN_CONTROLLER_INFO structures to be freed.
Return value
This function does not return a value.
Remarks
Note
The ntdsapi.h header defines DsFreeDomainControllerInfo 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 |