Partager via


NET_PNP_EVENT_NOTIFICATION (Compact 7)

3/12/2014

This structure describes a network Plug and Play (PnP) event, an NDIS PnP event, or a power management event.

Syntax

typedef struct _NET_PNP_EVENT_NOTIFICATION {
  NDIS_OBJECT_HEADER  Header;
  NDIS_PORT_NUMBER  PortNumber;
  NET_PNP_EVENT  NetPnPEvent;
} NET_PNP_EVENT_NOTIFICATION, *PNET_PNP_EVENT_NOTIFICATION;

Members

  • Header
    The NDIS_OBJECT_HEADER structure for the NET_PNP_EVENT_NOTIFICATION structure. NDIS sets the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NET_PNP_EVENT_NOTIFICATION_REVISION_1, and the Size member to NDIS_SIZEOF_NET_PNP_EVENT_NOTIFICATION_REVISION_1.
  • PortNumber
    The source port of the event notification. If the status indication is not specific to a port, PortNumber is zero.
  • NetPnPEvent
    An NDIS 5.x NET_PNP_EVENT structure that describes the event.

Remarks

When the operating system issues a system PnP event or a power management event to a target device object that represents an adapter, NDIS translates the event into a NET_PNP_EVENT_NOTIFICATION structure.

The NetPnPEvent member is a NET_PNP_EVENT structure. The NetEvent member of this NET_PNP_EVENT structure specifies an event code that identifies the network PnP event, NDIS PnP event, or power management event.

The Buffer member, which is in the NET_PNP_EVENT structure that is specified in the NetPnPEvent member of NET_PNP_EVENT_NOTIFICATION, specifies the address of a buffer that contains information that is specific to the event that is indicated by the NetEvent member.

NDIS also issues PnP event notifications for NDIS PnP events such as NetEventPause, NetEventRestart, NetEventPortActivation, and NetEventPortDeactivation.

NDIS passes a pointer to a NET_PNP_EVENT_NOTIFICATION structure to the FilterNetPnPEvent function of overlying filter drivers and to the ProtocolNetPnPEvent function of overlying protocol drivers.

Requirements

Header

ndis.h

See Also

Reference

NDIS Protocol Driver Structures
FilterNetPnPEvent
ProtocolNetPnPEvent
NDIS_OBJECT_HEADER
NET_PNP_EVENT