I've developed a application which uses Vista (or higher) API's and i would like to add a popup message if the application detects a unsupported OS.
I would like to add a popup message when a user runs my application on windows XP. Currently the application just throws a popup(messageBox) saying that some DLL's can't be loaded.
I've defined the windows version like this:
#define _WIN32_WINNT 0x0600
What do i have to do to prevent from running on versions lower than Vista? Do i have to check the OS version when the application starts (and show a message to the user)?