Condividi tramite


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;

Membri

Header

Struttura NDIS_OBJECT_HEADER per la struttura NET_DEVICE_PNP_EVENT. NDIS imposta il membro Type della struttura che Header specifica di NDIS_OBJECT_TYPE_DEFAULT, il membro revision su NET_DEVICE_PNP_EVENT_REVISION_1e il membro Size su NDIS_SIZEOF_NET_DEVICE_PNP_EVENT_REVISION_1.

PortNumber

Porta di origine della notifica dell'evento PnP. Se l'indicazione dello stato non è specifica di 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 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à una 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.

Osservazioni

Per fornire una notifica degli eventi PnP del dispositivo, NDIS passa un puntatore a una struttura di NET_DEVICE_PNP_EVENT all'oggetto MiniportDevicePnPEventNotify o funzione FilterDevicePnPEventNotify.

Fabbisogno

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

Vedere anche

FilterDevicePnPEventNotify

MiniportDevicePnPEventNotify

NDIS_OBJECT_HEADER