DNS_SERVICE_RESOLVE_COMPLETE callback function (windns.h)

Used to asynchronously return the results of a service resolve operation.

Syntax

DNS_SERVICE_RESOLVE_COMPLETE DnsServiceResolveComplete;

void DnsServiceResolveComplete(
  DWORD Status,
  PVOID pQueryContext,
  PDNS_SERVICE_INSTANCE pInstance
)
{...}

Parameters

Status

A value that contains the status associated with this particular set of results.

pQueryContext

A pointer to the user context that was passed to DnsServiceResolve.

pInstance

A pointer to a DNS_SERVICE_INSTANCE structure that contains detailed information about a service on the network. If not nullptr, then you are responsible for freeing the data using DnsServiceFreeInstance.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Target Platform Windows
Header windns.h