DnsStopMulticastQuery function (windns.h)

Used to stop a running DnsStartMulticastQuery operation.

Syntax

DNS_STATUS DnsStopMulticastQuery(
  PMDNS_QUERY_HANDLE pHandle
);

Parameters

pHandle

A pointer to the MDNS_QUERY_HANDLE structure that was passed to the DnsStartMulticastQuery call that is to be stopped.

Return value

If successful, returns ERROR_SUCCESS; otherwise, returns the appropriate DNS-specific error code as defined in Winerror.h. For extended error information, call GetLastError.

Requirements

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