Windows 7 SDK code
-
Is code specifically for Windows 7 (through the win7 SDK) ignored if executed on a pre-windows 7 OS? or do you have to do OS version checks before calling any of it? or will it just not run at all?
-
Is code specifically for Windows 7 (through the win7 SDK) ignored if executed on a pre-windows 7 OS? or do you have to do OS version checks before calling any of it? or will it just not run at all?
You don't have to do anything unless you start using functions that are specific to Windows 7. The Windows SDK is cumulative, meaning that each revision builds on the last one to add support for features in the new O/S. It does NOT mean that the SDK is specific to that version of Windows. If you're going to use functions that only work on Windows 7, then you've going to have to include code that checks to see if it is running on Windows 7 before it uses those functions.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...