DnsServiceCopyInstance function (windns.h)

Used to copy a DNS_SERVICE_INSTANCE structure.

Syntax

PDNS_SERVICE_INSTANCE DnsServiceCopyInstance(
  PDNS_SERVICE_INSTANCE pOrig
);

Parameters

pOrig

A pointer to the DNS_SERVICE_INSTANCE structure that is to be copied.

Return value

A pointer to a newly allocated DNS_SERVICE_INSTANCE structure that's a copy of pOrig. Your application is responsible for freeing the associated memory by calling DnsServiceFreeInstance.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Target Platform Windows
Header windns.h
Library dnsapi.lib
DLL dnsapi.dll