Under what legitimate circumstances might GetVersionEx produce dwMajorVersion == 7 when running under Windows XP?
When GetVersionEx returns successfully on Windows XP, the dwMajorVersion field of the structure it produces is supposed to have the value 5. Under what legitimate circumstances -- ru开发者_StackOverflow社区nning under Windows XP -- might it have the value 7?
Not under legitimate circumstances.
But: The Appverifier from Microsoft often changes those fields for the apps your testing to make sure your app works on future versions of Windows correctly.
精彩评论