DnsRecordSetCompare function (windns.h)

The DnsRecordSetCompare function compares two RR sets.

Syntax

BOOL DnsRecordSetCompare(
  [in, out]       PDNS_RECORD pRR1,
  [in, out]       PDNS_RECORD pRR2,
  [out, optional] PDNS_RECORD *ppDiff1,
  [out, optional] PDNS_RECORD *ppDiff2
);

Parameters

[in, out] pRR1

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

[in, out] pRR2

A pointer to a DNS_RECORD structure that contains the second DNS resource record set of the comparison pair.

[out, optional] ppDiff1

A pointer to a DNS_RECORD pointer that contains the list of resource records built as a result of the arithmetic performed on them: pRRSet1 minus pRRSet2.

[out, optional] ppDiff2

A pointer to a DNS_RECORD pointer that contains the list of resource records built as a result of the arithmetic performed on them: pRRSet2 minus pRRSet1.

Return value

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

Remarks

When comparing record sets, DNS resource records that are stored using different character encoding are treated by the DnsRecordSetCompare function as equivalent. Contrast this to the DnsRecordCompare function, in which equivalent records with different encoding are not returned as equivalent records.

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

DnsRecordCompare