DnsRecordListFree macro (windns.h)

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


void DnsRecordListFree(
  [in, out, optional]  p,
  [in]                 t


[in, out, optional] p

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

[in] 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



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.


Requirement Value
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