DnsRecordCompare function (windns.h)

The DnsRecordCompare function compares two DNS resource records (RR).

Syntax

BOOL DnsRecordCompare(
  [in] PDNS_RECORD pRecord1,
  [in] PDNS_RECORD pRecord2
);

Parameters

[in] pRecord1

A pointer to a DNS_RECORD structure that contains the first DNS RR of the comparison pair.

[in] pRecord2

A pointer to a DNS_RECORD structure that contains the second DNS RR of the comparison pair.

Return value

Returns TRUE if the compared records are equivalent, FALSE if they are not.

Remarks

When comparing records, DNS RRs that are stored using different character encoding are treated by the DnsRecordCompare function as different, even if the records are otherwise equivalent.

Requirements

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

DNS_RECORD

DnsRecordSetCompare