Condividi tramite


DNS_SERVICE_REGISTER_REQUEST struttura (windns.h)

Contiene le informazioni necessarie per annunciare un servizio usando DnsServiceRegister o interrompere la pubblicità tramite DnsServiceDeRegister.

Sintassi

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

La versione della struttura deve essere DNS_QUERY_REQUEST_VERSION1.

InterfaceIndex

Valore che contiene l'indice dell'interfaccia su cui deve essere annunciato il servizio. Se InterfaceIndex è 0, tutte le interfacce verranno considerate.

pServiceInstance

Puntatore a una struttura DNS_SERVICE_INSTANCE che descrive il servizio da registrare.

pRegisterCompletionCallback

Puntatore a una funzione (di tipo DNS_SERVICE_REGISTER_COMPLETE) che rappresenta il callback da richiamare in modo asincrono.

pQueryContext

Puntatore a un contesto utente.

hCredentials

Non usato.

unicastEnabled

true se il protocollo DNS deve essere usato per annunciare il servizio; false se deve essere usato il protocollo mDNS.

Requisiti

Requisito Valore
Client minimo supportato Windows 10 [solo app desktop]
Intestazione windns.h