Platform SDK: Network Management

DnsRecordCompare

The DnsRecordCompare function compares two DNS resource records.

BOOL WINAPI DnsRecordCompare(
  PDNS_RECORD pRecord1,
  PDNS_RECORD pRecord2
);

Parameters

pRecord1
[in] Pointer to the first DNS resource record of the comparison pair.
pRecord2
[in] Pointer to the second DNS resource record of the comparison pair.

Remarks

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

Return Values

Returns TRUE if the compared records 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

DnsRecordSetCompare