Compile Flags for WDM Lower Edge

You must include the following compile flags in the Sources file for an NDIS-WDM miniport driver to build the NDIS-WDM miniport driver:

  • -DNDIS_WDM=1

    Directs NDIS to include the appropriate WDM header file.

Alternatively, you can embed compile flags at the start of the miniport driver's source code before the Ndis.h header file is included.