MDNS_QUERY_REQUEST structure (windns.h)

Contains the necessary information to perform an mDNS query.

Syntax

typedef struct _MDNS_QUERY_REQUEST {
  ULONG                Version;
  ULONG                ulRefCount;
  PCWSTR               Query;
  WORD                 QueryType;
  ULONG64              QueryOptions;
  ULONG                InterfaceIndex;
  PMDNS_QUERY_CALLBACK pQueryCallback;
  PVOID                pQueryContext;
  BOOL                 fAnswerReceived;
  ULONG                ulResendCount;
} MDNS_QUERY_REQUEST, *PMDNS_QUERY_REQUEST;

Members

Version

The structure version must be DNS_QUERY_REQUEST_VERSION1.

ulRefCount

Reserved. Do not use.

Query

A string representing the name to be queried over mDNS.

QueryType

A value representing the type of the records to be queried. See DNS_RECORD_TYPE for possible values.

QueryOptions

A value representing the query options. DNS_QUERY_STANDARD is the only supported value.

InterfaceIndex

A value that contains the interface index over which the service is to be advertised. If InterfaceIndex is 0, then all interfaces will be considered.

pQueryCallback

A pointer to a function (of type MDNS_QUERY_CALLBACK) that represents the callback to be invoked asynchronously whenever mDNS results are available.

pQueryContext

A pointer to a user context.

fAnswerReceived

Reserved. Do not use.

ulResendCount

Reserved. Do not use.

Requirements

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