Platform SDK: Network Management

DnsRecordSetCompare

The DnsRecordSetCompare function compares two resource record sets.

BOOL WINAPI DnsRecordSetCompare (
  PDNS_RECORD pRR1,
  PDNS_RECORD pRR2,
  PDNS_RECORD *ppDiff1,
  PDNS_RECORD *ppDiff2
);

Parameters

pRR1
[in, out] Pointer to the first DNS resource record set of the comparison pair.
pRR2
[in, out] Pointer to the second DNS resource record set of the comparison pair.
ppDiff1
[out] Pointer to a pointer to the list of resource records built as a result of the arithmetic performed on them: pRRSet1 minus pRRSet2.
ppDiff2
[out] Pointer to a pointer to the list of resource records built as a result of the arithmetic performed on them: pRRSet2 minus pRRSet1.

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.

Return Values

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

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Windns.h.
  Library: Use Dnsapi.lib.

See Also

DnsRecordCompare