Registering CoNDIS WAN Drivers (NDIS 5.1)

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.

A CoNDIS WAN miniport driver or MCM calls NdisMRegisterMiniportfrom its DriverEntryfunction to register its MiniportXxx functions with NDIS. For more information about registering MiniportXxx functions, see Registering MiniportXxx Functions.

A CoNDIS WAN call manager is an NDIS protocol driver. As such, a call manager calls NdisRegisterProtocolto register its ProtocolXxx functions. For more information about registering an NDIS protocol driver, see Registering as an NDIS Protocol Driver. For information about other differences between call manager initialization and MCM initialization, see Differences in Initialization.

The call to NdisMRegisterMiniportprovides an NDIS XXX_MINIPORT_CHARCTERISTICS structure to the miniport driver. To make sure that the miniport driver receives the correct structure, you must either embed the appropriate compiler directives at the start of the miniport driver's source code or set the appropriate build directives in the miniport driver's sources file. For more information about setting the NDIS version number, see Specifying the NDIS Version Number.

For a CoNDIS WAN miniport driver or MCM, the following compiler directives at the start of the driver's source code indicate that the driver uses an NDIS version 5.0 NDIS_MINIPORT_CHARACTERISTICS structure:

#define NDIS_MINIPORT_DRIVER 
#define NDIS50_MINIPORT 1 
#include <ndis.h> // After preceding directives

CoNDIS WAN drivers must indicate NDIS version 5.0 or later.

 

 

Send comments about this topic to Microsoft