struttura NET_DEVICE_PNP_EVENT (ndis.h)

La struttura NET_DEVICE_PNP_EVENT definisce gli eventi plug and play (PnP) del dispositivo per le schede miniport.

Sintassi

typedef struct _NET_DEVICE_PNP_EVENT {
  NDIS_OBJECT_HEADER    Header;
  NDIS_PORT_NUMBER      PortNumber;
  NDIS_DEVICE_PNP_EVENT DevicePnPEvent;
  PVOID                 InformationBuffer;
  ULONG                 InformationBufferLength;
  UCHAR                 *NdisReserved[2  sizeof(PVOID)];
} NET_DEVICE_PNP_EVENT, *PNET_DEVICE_PNP_EVENT;

Members

Header

Struttura NDIS_OBJECT_HEADER per la struttura NET_DEVICE_PNP_EVENT . NDIS imposta il membro Type della struttura specificata da Header su NDIS_OBJECT_TYPE_DEFAULT, il membro Revision su NET_DEVICE_PNP_EVENT_REVISION_1 e il membro Sizesu NDIS_SIZEOF_NET_DEVICE_PNP_EVENT_REVISION_1.

PortNumber

Porta di origine della notifica degli eventi PnP. Se l'indicazione dello stato non è specifica per una porta,
PortNumber è zero.

DevicePnPEvent

Codice evento che descrive l'evento PnP come uno dei seguenti:

NdisDevicePnPEventSurpriseRemoved

La scheda di interfaccia di rete (NIC) è stata rimossa in modo imprevisto dal computer. Per altre informazioni, vedere Gestione della rimozione a sorpresa di una scheda di interfaccia di rete.

NdisDevicePnPEventPowerProfileChanged

Il profilo di alimentazione del sistema host è cambiato.

InformationBuffer

Puntatore a un buffer. Se NDIS imposta il membro DevicePnPEvent su NdisDevicePnPEventPowerProfileChanged, questo buffer conterrà un ULONG che NDIS imposta su uno dei valori seguenti:

NdisPowerProfileBattery

Il sistema host è in esecuzione sull'alimentazione a batteria.

NdisPowerProfileAcOnline

Il sistema host è in esecuzione sull'alimentazione AC.

Se NDIS imposta DevicePnPEvent su NdisDevicePnPEventSurpriseRemoved, InformationBuffer è NULL.

InformationBufferLength

Lunghezza, in byte, del buffer nel membro InformationBuffer .

NdisReserved[2 * sizeof(PVOID)]

Riservato per NDIS.

Commenti

Per fornire una notifica degli eventi PnP del dispositivo, NDIS passa un puntatore a una struttura NET_DEVICE_PNP_EVENT alla classe MiniportDevicePnPEventNotify o Funzione FilterDevicePnPEventNotify .

Requisiti

Requisito Valore
Client minimo supportato Supportato in NDIS 6.0 e versioni successive.
Intestazione ndis.h (include Ndis.h)

Vedi anche

FilterDevicePnPEventNotify

MiniportDevicePnPEventNotify

NDIS_OBJECT_HEADER