MDNS_QUERY_CALLBACK callback function (windns.h)

Used to asynchronously return the results of an mDNS query.

Syntax

MDNS_QUERY_CALLBACK MdnsQueryCallback;

void MdnsQueryCallback(
  PVOID pQueryContext,
  PMDNS_QUERY_HANDLE pQueryHandle,
  PDNS_QUERY_RESULT pQueryResults
)
{...}

Parameters

pQueryContext

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

pQueryHandle

A pointer to the MDNS_QUERY_HANDLE structure that was passed to DnsStartMulticastQuery.

pQueryResults

A pointer to a DNS_QUERY_RESULT structure that contains the query results. Your application is responsible for freeing the pQueryRecords contained in this structure using DnsRecordListFree.

Return value

None

Requirements

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