|
-
October 2nd, 2009, 12:18 PM
#1
Determine Windows OS from #define
I have a device handler that was not working with Windows XP. It was fixed by a few #pragma statements ( #pragma inline_depth(0) ) around some areas of code. This fixed it for Windows XP, however....we just noticed that it broke it for Windows 2000.
Is there a simple #define I can check to wrap the pragmas that will determine if OS is Windows 2000 or XP.
Basically, I want something like,
Code:
#ifdef WINXP
#pragma inline_depth(0)
#endif
I'm googling, but not seeing something like that. I'm guessing there should be.
Will WINVER be sufficient? What are correct values?
According to this page,
0x500 should be value for Win2000,
and
0x501 for XP.
But those are minimum values.....so would I get screwed with some "in between values" perhaps?
Any help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|