NdisCompleteBindAdapter (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

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

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisIMInitializeDeviceInstance
NdisOpenAdapter
NdisRequest
ProtocolBindAdapter