NdisCompleteNetPnPEvent function

Protocol drivers call the NdisCompleteNetPnPEvent function to complete a response to a Plug and Play or Power Management event for which the caller's ProtocolNetPnPEvent function returned NDIS_STATUS_PENDING.

Syntax

void NdisCompleteNetPnPEvent(
  NDIS_HANDLE                 NdisBindingHandle,
  PNET_PNP_EVENT_NOTIFICATION NetPnPEventNotification,
  NDIS_STATUS                 Status
);

Parameters

NdisBindingHandle

The handle that NDIS provided at the NdisBindingHandle parameter of the NdisOpenAdapterEx function. The handle identifies the binding between the caller and the underlying miniport adapter.

NetPnPEventNotification

A pointer to a NET_PNP_EVENT_NOTIFICATION structure that NDIS passed to the caller's ProtocolNetPnPEvent function.

Status

The protocol driver's response to the pending Plug and Play or Power Management event notification. To succeed such an event, specify NDIS_STATUS_SUCCESS. For information about other status values, see the return values of the ProtocolNetPnPEvent function.

Return Value

None

Remarks

When a protocol driver returns NDIS_STATUS_PENDING from its ProtocolNetPnPEvent function, it must eventually call NdisCompleteNetPnPEvent to indicate its response to the given Plug and Play or Power Management notification.

Requirements

   
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Desktop
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Protocol_Driver_Function

See Also

NET_PNP_EVENT_NOTIFICATION

NdisOpenAdapterEx

ProtocolNetPnPEvent