Partager via


NdisCompleteBindAdapter

This function completes a binding operation for which the caller's ProtocolBindAdapter function previously returned NDIS_STATUS_PENDING.

VOID NdisCompleteBindAdapter(
  NDIS_HANDLE BindAdapterContext,
  NDIS_STATUS Status,
  NDIS_STATUS OpenStatus
);

Parameters

  • BindAdapterContext
    [in] Specifies the BindContext handle passed in to ProtocolBindAdapter.
  • Status
    [in] Specifies the final status of the completed bind operation.
  • OpenStatus
    [in] Specifies the status returned by the preceding call to NdisOpenAdapter for this binding attempt.

Return Values

None.

Remarks

When a protocol returns NDIS_STATUS_PENDING from its ProtocolBindAdapter function, that driver must eventually call NdisCompleteBindAdapter when the binding operation is completed.

If the binding operation was successful, the protocol is ready to accept receive indications from underlying drivers and to send transmit, query, and set requests down to the underlying drivers. If NdisCompleteBindAdapter is called with an input error Status, the binding attempt failed and the protocol has released any resources it allocated to establish the binding.

In either case, the protocol calls NdisCompleteBindAdapter to notify the NDIS library of the completion of the binding operation that this driver initiated when its ProtocolBindAdapter function called NdisOpenAdapter.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

NdisCompleteBindAdapter | NdisIMInitializeDeviceInstance | NdisOpenAdapter | NdisRequest | ProtocolBindAdapter

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.