what is SDKDDKVer.h for?

c++, visual-c++, windows

Solution

`targetver.h` and `SDKDDKVer.h` are used to control what functions, constants, etc. are included into your code from the Windows headers, based on the OS that you want your program to support. I believe that `targetver.h` sets defaults to using the latest version of Windows unless the defines are specified elsewhere.

`SDKDDKVer.h` is the header file that actually defines the `#defines` that represent each version of Windows, IE, etc.

Problem

All project created with MSVC have stdafx, which is precompiled headers, which I know what they are but what about targetver.h ? It includes SDKDDKVer.h, and I can't find what is that header about. What is this for ?

Original source

Related problems