次の方法で共有


NdisFNetPnPEvent (Compact 2013)

3/26/2014

A filter driver can call this function to forward a network Plug and Play (PnP) or Power Management event to overlying drivers.

Syntax

NDIS_STATUS
  NdisFNetPnPEvent(
    IN NDIS_HANDLE  FilterModuleContext,
    IN PNET_PNP_EVENT_NOTIFICATION  NetPnPEvent
  );

Parameters

  • FilterModuleContext
    A handle to the context area for the filter module. The filter driver created and initialized this context area in the FilterAttach function.
  • NetPnPEvent
    A pointer to a NET_PNP_EVENT_NOTIFICATION structure, which describes the network PnP event or Power Management event being forwarded by the filter driver.

Return Value

NdisFNetPnPEvent can return either of the following:

Value

Meaning

NDIS_STATUS_SUCCESS

The overlying driver succeeded in processing the PnP event.

NDIS_STATUS_FAILURE

The overlying driver failed the PnP event.

Remarks

NDIS calls a filter driver's FilterNetPnPEvent function to notify the filter driver of network PnP and Power Management events.

Filter drivers can forward these notifications to overlying drivers. To forward a request, call the NdisFNetPnPEvent function from FilterNetPnPEvent.

Requirements

Header

ndis.h

See Also

Reference

NDIS Functions for Filter Drivers
FilterAttach
FilterNetPnPEvent
NET_PNP_EVENT_NOTIFICATION