tags:

views:

138

answers:

1

How do you check the windows version in Win32 at runtime?

+5  A: 

Use the GetVersionEx() or VerifyVersionInfo() functions.

Alnitak
And when using GetVersion[Ex], remember to check version numbers with the future in mind. For example, to check for XP and higher: major > 5 OR (major==5 and minor >= 1)
Anders