DNS_SERVICE_REGISTER_REQUEST structure (windns.h)
Contains the information necessary to advertise a service using DnsServiceRegister, or to stop advertising it using DnsServiceDeRegister.
Syntax
typedef struct _DNS_SERVICE_REGISTER_REQUEST {
ULONG Version;
ULONG InterfaceIndex;
PDNS_SERVICE_INSTANCE pServiceInstance;
PDNS_SERVICE_REGISTER_COMPLETE pRegisterCompletionCallback;
PVOID pQueryContext;
HANDLE hCredentials;
BOOL unicastEnabled;
} DNS_SERVICE_REGISTER_REQUEST, *PDNS_SERVICE_REGISTER_REQUEST;
Members
Version
The structure version must be DNS_QUERY_REQUEST_VERSION1.
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.
pServiceInstance
A pointer to a DNS_SERVICE_INSTANCE structure that describes the service to be registered.
pRegisterCompletionCallback
A pointer to a function (of type DNS_SERVICE_REGISTER_COMPLETE) that represents the callback to be invoked asynchronously.
pQueryContext
A pointer to a user context.
hCredentials
Not used.
unicastEnabled
true
if the DNS protocol should be used to advertise the service; false
if the mDNS protocol should be used.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Header | windns.h |