Share via


NTDDI_VERSION

Use the NTDDI_VERSION macro to specify the operating system (OS) version of the content within the Windows Driver Kit (WDK) header files and libraries that your driver supports.

Starting with the Windows Vista version of the WDK, header files in the WDK contain conditional statements that specify contents that are unique to each version of the Windows operating system. The versioned information includes function definitions, structure definitions, and fields within structures.

To specify the content for each OS version, the header files contain preprocessor conditionals that compare the value of NTDDI_VERSION with a set of predefined NTDDI_XXX constant values.

By default, the Build process sets the NTDDI_VERSION macro to the highest OS version supported by the WDK. For example, in the Windows 7 version of the WDK, the Build process sets the NTDDI_VERSION to _NTDDI_WIN7 (0x06010000).

You can override this default by setting the NTDDI_VERSION macro in your Sources file to the maximum OS version that your driver supports.

For more information about the NTDDI_VERSION macro and the NTDDI_XXX constant values, see Using the Windows Headers in the Microsoft Windows Software Development Kit (SDK) documentation.

The NTDDI_XXX constants are declared in the Sdkddkver.h file.

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011