DNS_SERVICE_BROWSE_CALLBACK callback function (windns.h)

Used to asynchronously return the results of a DNS-SD query.

Syntax

DNS_SERVICE_BROWSE_CALLBACK DnsServiceBrowseCallback;

void DnsServiceBrowseCallback(
  DWORD Status,
  PVOID pQueryContext,
  PDNS_RECORD pDnsRecord
)
{...}

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 DnsServiceBrowse.

pDnsRecord

A pointer to a DNS_RECORD structure that contains a list of records describing a discovered service on the network. If not nullptr, then you are responsible for freeing the returned RR sets using DnsRecordListFree.

Return value

None

Requirements

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