NdisCloseAdapter - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisCloseAdapter(
  [out] PNDIS_STATUS Status,
  [in]  NDIS_HANDLE  NdisBindingHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndiscloseadapter)

NdisCloseAdapter function

Description

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.

NdisCloseAdapter releases the binding established and the resources allocated when the protocol called NdisOpenAdapter.

Parameters

Status [out]

Pointer to a caller-supplied variable in which this function returns the status of the close operation, which can be one of the following values:

NdisBindingHandle [in]

Specifies the handle returned by NdisOpenAdapter that identifies the virtual adapter or NIC to be closed.

Remarks

Return value: None

A protocol driver typically calls NdisCloseAdapter from its ProtocolUnbindAdapter function. It can also call NdisCloseAdapter from its ProtocolBindAdapter function, for example, if it failed to set an OID value after calling NdisOpenAdapter to set up a binding.

As soon as a protocol calls NdisCloseAdapter, the handle at NdisBindingHandle should be considered invalid by the caller. It is a programming error to pass this handle in any subsequent call to an NdisXxx function.

See also