This function releases the binding established and the resources allocated when the protocol called the NdisOpenAdapter function.
Header file: | Ndis.h |
Windows CE versions: | 2.0 and later |
VOID NdisCloseAdapter( OUT PNDIS_STATUS Status,
IN NDIS_HANDLE NdisBindingHandle );
The Windows CE version of NdisDeregisterProtocol frees resources associated with the protocol. It does not close any outstanding bindings or call any adapter-specific ProtocolCloseAdapterComplete or ProtocolStatus functions. Unlike the Windows NT version, it does not unload the Miniport driver when there are no more protocol drivers, also known as protocol stacks, bound to it.
As soon as a protocol calls this function, the handle at NdisBindingHandle should be considered invalid by the caller.
A driver that calls this function runs at IRQL PASSIVE_LEVEL.