Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains the query parameters used in a call to DnsServiceResolve. Use that function, and this structure, after you've found a specific service name that you'd like to connect to.
Syntax
typedef struct _DNS_SERVICE_RESOLVE_REQUEST {
ULONG Version;
ULONG InterfaceIndex;
PWSTR QueryName;
PDNS_SERVICE_RESOLVE_COMPLETE pResolveCompletionCallback;
PVOID pQueryContext;
} DNS_SERVICE_RESOLVE_REQUEST, *PDNS_SERVICE_RESOLVE_REQUEST;
Members
Version
The structure version must be DNS_QUERY_REQUEST_VERSION1.
InterfaceIndex
A value that contains the interface index over which the query is sent. If InterfaceIndex
is 0, then all interfaces will be considered.
QueryName
A pointer to a string that represents the service name. This is a fully qualified domain name that begins with a service name, and ends with ".local". It takes the generalized form "<ServiceName>._<ServiceType>._<TransportProtocol>.local". For example, "MyMusicServer._http._tcp.local".
pResolveCompletionCallback
A pointer to a function (of type DNS_SERVICE_RESOLVE_COMPLETE) that represents the callback to be invoked asynchronously.
pQueryContext
A pointer to a user context.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Header | windns.h |