DnsRecordListFree macro

The DnsRecordListFree function frees memory allocated for DNS records obtained using the DnsQuery function.

Syntax

void DnsRecordListFree(
   p,
   t
);

Parameters

p

A pointer to a DNS_RECORD structure that contains the list of DNS records to be freed.

t

A specifier of how the record list should be freed. The only type currently supported is a deep freeing of the entire record list. For more information and a list of values, see the DNS_FREE_TYPE enumeration.

Return Value

None

Remarks

The DnsRecordListFree function can be used to free memory allocated from query results obtained using a DnsQuery function call; it cannot free memory allocated for DNS record lists created manually.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header windns.h
Library Dnsapi.lib
DLL Dnsapi.dll

See Also

DNS_FREE_TYPE