ProtocolCloseAdapterComplete
This function is a required driver function that completes processing for an unbinding operation for which NdisCloseAdapter returned NDIS_STATUS_PENDING.
VOID ProtocolCloseAdapterComplete(
NDIS_HANDLE ProtocolBindingContext,
NDIS_STATUS Status
);
Parameters
- ProtocolBindingContext
[in] Specifies the handle to a protocol-allocated context area in which the protocol driver maintains per-binding runtime state. The driver supplied this handle when it called NdisOpenAdapter. - Status
[in] Indicates the final status of the close operation in the underlying driver.
Return Values
None.
Remarks
NDIS delays calling ProtocolCloseAdapterComplete until every request pending on the binding has completed. When ProtocolCloseAdapterComplete is called, the NdisBindingHandle originally returned by NdisOpenAdapter is no longer valid. ProtocolCloseAdapterComplete cannot call any NdisXXX function that requires this handle as a parameter.
ProtocolCloseAdapterComplete releases all resources the driver allocated for per-binding network I/O operations before it returns control.
ProtocolCloseAdapterComplete must call NdisCompleteUnbindAdapter with the UnbindContext handle saved in the ProtocolBindingContext area by ProtocolUnbindAdapter. Consequently, ProtocolCloseAdapterComplete should not release the driver-allocated context area until it has called NdisCompleteUnbindAdapter.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndislib.lib.
See Also
NdisCloseAdapter | NdisCompleteUnbindAdapter | NdisFreeBufferPool | NdisFreeMemory | NdisFreePacketPool | NdisOpenAdapter | ProtocolUnbindAdapter
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.