enumerazione WLAN_HOSTED_NETWORK_NOTIFICATION_CODE (wlanapi.h)

Il tipo enumerato WLAN_HOSTED_NETWORK_NOTIFICATION_CODE specifica i valori possibili del parametro NotificationCode per le notifiche ricevute nella rete ospitata wireless.

Sintassi

typedef enum _WLAN_HOSTED_NETWORK_NOTIFICATION_CODE {
  wlan_hosted_network_state_change,
  wlan_hosted_network_peer_state_change,
  wlan_hosted_network_radio_state_change
} WLAN_HOSTED_NETWORK_NOTIFICATION_CODE, *PWLAN_HOSTED_NETWORK_NOTIFICATION_CODE;

Costanti

 
wlan_hosted_network_state_change
Lo stato della rete ospitata è cambiato.
wlan_hosted_network_peer_state_change
Lo stato peer di rete ospitata è stato modificato.
wlan_hosted_network_radio_state_change
Lo stato della radio di rete ospitata è cambiato.

Commenti

Il tipo enumerato WLAN_HOSTED_NETWORK_NOTIFICATION_CODE è un'estensione alle API wireless native aggiunte per supportare la rete ospitata wireless in Windows 7 e in Windows Server 2008 R2 con il servizio LAN wireless installato.

Il WLAN_HOSTED_NETWORK_NOTIFICATION_CODE specifica i valori possibili per il parametro NotificationCode per le notifiche ricevute quando il parametro NotificationSource è WLAN_NOTIFICATION_SOURCE_HNWK nella rete ospitata wireless.

Il valore iniziale per l'enumerazione WLAN_HOSTED_NETWORK_NOTIFICATION_CODE è definito come L2_NOTIFICATION_CODE_V2_BEGIN, definito nel file di intestazione l2cmn.h . Si noti che l'intestazione l2cmn.h viene inclusa automaticamente dal file di intestazione wlanapi.h .

La funzione WlanRegisterNotification viene usata da un'applicazione per registrare e annullare la registrazione delle notifiche in tutte le interfacce wireless. Quando si registrano le notifiche, un'applicazione deve fornire una funzione di callback puntata dal parametro funcCallback passato alla funzione WlanRegisterNotification . Il prototipo per questa funzione di callback è il WLAN_NOTIFICATION_CALLBACK. Questa funzione di callback riceverà notifiche registrate nel parametro dwNotifSource passato alla funzione WlanRegisterNotification .

La funzione di callback viene chiamata con un puntatore a una struttura WLAN_NOTIFICATION_DATA come primo parametro contenente informazioni dettagliate sulla notifica. La funzione di callback riceve anche un secondo parametro che contiene un puntatore al contesto client passato nel parametro pCallbackContext alla funzione WlanRegisterNotification . Questo contesto client può essere un puntatore NULL se ciò è stato passato alla funzione WlanRegisterNotification .

Se il membro NotificationSource della struttura WLAN_NOTIFICATION_DATA ricevuta dalla funzione di callback è WLAN_NOTIFICATION_SOURCE_HNWK, la notifica ricevuta è una notifica di rete ospitata wireless. Il membro NotificationCode della struttura WLAN_NOTIFICATION_DATA passata alla funzione WLAN_NOTIFICATION_CALLBACK determina l'interpretazione del membro pDatadella struttura WLAN_NOTIFICATION_DATA.

NotificationCode Descrizione
wlan_hosted_network_state_change Il membro pData della struttura di WLAN_NOTIFICATION_DATA deve essere eseguito il cast a un puntatore a una struttura WLAN_HOSTED_NETWORK_STATE_CHANGE e un membro dwDataSize sarà almeno di grandi dimensioni(WLAN_HOSTED_NETWORK_STATE_CHANGE).
wlan_hosted_network_peer_state_change il membro pData della struttura di WLAN_NOTIFICATION_DATA deve essere eseguito il cast in un puntatore a una struttura WLAN_HOSTED_NETWORK_DATA_PEER_STATE_CHANGE e un membro dwDataSize sarà almeno di grandi dimensioni(WLAN_HOSTED_NETWORK_DATA_PEER_STATE_CHANGE).
wlan_hosted_network_radio_state_change il membro pData della struttura di WLAN_NOTIFICATION_DATA deve essere eseguito il cast a un puntatore a una struttura WLAN_HOSTED_NETWORK_RADIO_STATE e un membro dwDataSize sarebbe almeno di grandi dimensioni(WLAN_HOSTED_NETWORK_RADIO_STATE ).

Requisiti

Requisito Valore
Client minimo supportato Windows 7 [solo app desktop]
Server minimo supportato Windows Server 2008 R2 [solo app desktop]
Intestazione wlanapi.h (include Wlanapi.h)

Vedi anche

WLAN_HOSTED_NETWORK_DATA_PEER_STATE_CHANGE

WLAN_HOSTED_NETWORK_RADIO_STATE

WLAN_HOSTED_NETWORK_STATE_CHANGE

WLAN_NOTIFICATION_CALLBACK

WLAN_NOTIFICATION_DATA

WlanRegisterNotification