Registering as a WAN Miniport Driver (Windows Embedded CE 6.0)

1/6/2010

A WAN miniport driver identifies itself when it registers. The WAN miniport driver calls the NdisMRegisterMiniport function in its DriverEntry function to register with NDIS. In this call, the WAN miniport driver indicates that it requires WAN services by setting the NDIS_USE_WAN_WRAPPER flag in the Reserved member of the NDIS_MINIPORT_CHARACTERISTICS structure. Members of NDIS_MINIPORT_CHARACTERISTICS must also specify the appropriate version numbers of NDIS. In this call, the miniport driver also specifies the entry points for driver-supplied MiniportXXX functions.

To receive the appropriate NDIS_MINIPORT_CHARCTERISTICS structure from NDIS, the WAN miniport driver must also 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. The following compiler directives at the start of the miniport driver's source code indicate that the miniport driver uses a 5.1 NDIS_MINIPORT_CHARACTERISTICS structure.

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

See Also

Reference

NdisMRegisterMiniport
DriverEntry
NDIS_MINIPORT_CHARACTERISTICS

Concepts

WAN Miniport Drivers