Compile Flags for WDM Lower Edge (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.

This topic lists compile flags that must be included in the sourcesfile for an NDIS-WDM miniport driver in order to build the NDIS-WDM miniport driver. The following compile flags must be included:

  • -DNDIS_WDM=1

    Directs NDIS to include the appropriate WDM header file.

  • -DUSE_KLOCKS=1

    Directs spin locks of NDIS-WDM miniport drivers built for Windows 98/Me platforms to operate; otherwise, these spin locks do not operate.

As an alternative, compile flags can be embedded at the start of the miniport driver's source code before the ndis.hheader file is included.

 

 

Send comments about this topic to Microsoft