NdisCmNotifyCloseAddressFamily - NtDoc

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

NDIS_STATUS NdisCmNotifyCloseAddressFamily(
  [in] NDIS_HANDLE NdisAfHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

NdisCmNotifyCloseAddressFamily function

Description

The NdisCmNotifyCloseAddressFamily function notifies NDIS that a call manager is unbinding from an underlying miniport adapter and that any associated CoNDIS clients should close the specified address family (AF).

Parameters

NdisAfHandle [in]

An NDIS handle that identifies the AF that NDIS should close. NDIS supplied this handle to the call manager's ProtocolCmOpenAf function.

Return value

NdisCmNotifyCloseAddressFamily can return one of the following:

Return code Description
NDIS_STATUS_SUCCESS NDIS successfully closed the address family.
NDIS_STATUS_PENDING NDIS is handling this request asynchronously, and it will call the call manager's ProtocolCmNotifyCloseAfComplete function when the close operation is complete.
NDIS_STATUS_*XXX* NDIS failed the request for some NDIS or client driver-determined reason.

Remarks

Stand-alone CoNDIS call managers, which register as NDIS protocol drivers by calling the NdisRegisterProtocolDriver function, can call the NdisCmNotifyCloseAddressFamily function. Miniport call managers (MCMs) instead call the NdisMCmNotifyCloseAddressFamily function.

To close an AF for a binding, the stand-alone call manager should call NdisCmNotifyCloseAddressFamily from the ProtocolUnbindAdapterEx function. NDIS then calls the ProtocolClNotifyCloseAf function of the client that has the specified AF open.

If NdisCmNotifyCloseAddressFamily returns NDIS_STATUS_PENDING, NDIS calls the call manager's ProtocolCmNotifyCloseAfComplete function after the client completes the AF close operation.

See also

NdisMCmNotifyCloseAddressFamily

NdisRegisterProtocolDriver

ProtocolClNotifyCloseAf

ProtocolCmNotifyCloseAfComplete

ProtocolCmOpenAf

ProtocolUnbindAdapterEx