共用方式為


RESET_COMPLETE_HANDLER callback function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

The ProtocolResetComplete function is a required driver function. ProtocolResetComplete completes a protocol-initiated reset operation for which NdisReset returned NDIS_STATUS_PENDING.

Syntax

RESET_COMPLETE_HANDLER ProtocolResetComplete;

VOID ProtocolResetComplete(
  _In_ NDIS_HANDLE ProtocolBindingContext,
  _In_ NDIS_STATUS Status
)
{ ... }

Parameters

  • ProtocolBindingContext [in]
    Specifies the handle to a protocol-allocated context area in which the protocol driver maintains per-binding run-time state. The driver supplied this handle when it called NdisOpenAdapter.

  • Status [in]
    Specifies the final status of the protocol-initiated reset operation.

Return value

None

Remarks

ProtocolResetComplete completes processing for an asynchronous reset of the underlying driver's NIC or virtual NIC.

The underlying miniport driver's call to NdisMResetComplete causes NDIS to call the ProtocolResetComplete function. NDIS forwards the miniport driver-determined Status passed to NdisMResetComplete as the input Status to ProtocolStatusComplete.

ProtocolResetComplete can be called before the protocol has had time to inspect the status code that NdisReset returns at Status.

Requirements

Target platform

Desktop

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Microsoft Windows XP

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

See also

MiniportReset

NdisMResetComplete

NdisReset

ProtocolStatus

ProtocolStatusComplete

 

 

Send comments about this topic to Microsoft