Skip to main content
DNS_QUERY_COMPLETION_ROUTINE callback function

The DNS_QUERY_COMPLETION_ROUTINE callback is used to asynchronously return the results of a DNS query.

Syntax


VOID WINAPI DNS_QUERY_COMPLETION_ROUTINE(
  _In_    PVOID             pQueryContext,
  _Inout_ PDNS_QUERY_RESULT pQueryResults
);

Parameters

pQueryContext [in]

A pointer to a user context.

pQueryResults [in, out]

A pointer to a DNS_QUERY_RESULT structure that contains the DNS query results from a call to DnsQueryEx.

Return value

This callback function does not return a value.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Windns.h

See also

DnsCancelQuery
DnsQueryEx
DNS_QUERY_CANCEL
DNS_QUERY_REQUEST
DNS_QUERY_RESULT