NDIS drivers use the compile flags described in this section to direct NDIS to conditionally include a set of commands at compile time. The following compile flags can be enabled in the driver's sources file or embedded at the start of the driver's source code before the ndis.h header file is included:
Although NDIS_WRAPPER is a compile flag, NDIS drivers must not use it.
If a compile flag is included in the driver's sources file, it is preceded with "-D". To enable a compile flag, you must assign it a nonzero value. The following statement shows how to enable the NDIS_WDM compile flag in a sources file:
C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1
The following code shows how to enable the NDIS_WDM compile flag in a driver's source code:
#define NDIS_WDM 1