Compartilhar via


Porting CoNDIS MCM Registration

In NDIS 5.x, miniport call managers (MCMs) specify CoNDIS MiniportXxx functions when they call the NdisMRegisterMiniport function during driver registration.

In NDIS 6.0, MCMs register CoNDIS MiniportXxx functions by calling the NdisSetOptionalHandlers function from the MiniportSetOptions function. In MiniportSetOptions, an MCM initializes an NDIS_MINIPORT_CO_CHARACTERISTICS structure and passes it at the OptionalHandlers parameter of NdisSetOptionalHandlers.

In NDIS 5.x, MCMs register CoNDIS call manager ProtocolXxx functions by calling the NdisMCmRegisterAddressFamily function.

In NDIS 6.0, MCMs must call the NdisSetOptionalHandlers function from the MiniportSetOptions function. The MCM initializes an NDIS_CO_CALL_MANAGER_OPTIONAL_HANDLERS structure and passes it at the OptionalHandlers parameter of NdisSetOptionalHandlers.

NDIS 6.0 MCMs do not call NdisMCmRegisterAddressFamily. Instead, call the NdisMCmRegisterAddressFamilyEx function to register an address family.

For more information about MCM registration, see CoNDIS MCM Registration.