Platform SDK: Network Management

DnsRecordCopyEx

The DnsRecordCopyEx function creates a copy of a specified resource record. The DnsRecordCopyEx function is also capable of converting the character encoding during the copy operation.

PDNS_RECORD WINAPI DnsRecordCopyEx(
  PDNS_RECORD pRecord,
  DNS_CHARSET CharSetIn,
  DNS_CHARSET CharSetOut
);

Parameters

pRecord
[in] Pointer to the resource record to be copied.
CharSetIn
[in] Character encoding of the source resource record.
CharSetOut
[in] Character encoding required of the destination record.

Remarks

The CharSetIn parameter is used only if the character encoding of the source resource record is not specified in pRecord.

Return Values

Successful execution returns a pointer to the (newly created) destination record. Otherwise, returns NULL.

Requirements

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

See Also

DnsRecordSetCopyEx