diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-22 15:07:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-22 15:07:00 +0000 |
commit | 83e9c1e2acab87c30807ede38f022e71a697f9e5 (patch) | |
tree | 228c81fd196751b7c614063dec81ee1ec4807fc6 /include/win2k.h | |
parent | 1dad958015778d3486838bf3c93fff1793aa5406 (diff) |
pre-XP headers cleaned
git-svn-id: http://svn.miranda-ng.org/main/trunk@6183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/win2k.h')
-rw-r--r-- | include/win2k.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/include/win2k.h b/include/win2k.h index d65f4a86f5..00db8cbb09 100644 --- a/include/win2k.h +++ b/include/win2k.h @@ -32,34 +32,13 @@ To make myself clear, you are supposed to use the sdk, this is just a work aroun All constants are normally declared in winuser.h
-File created by Christian Kästner, and tweaked a bit by Richard Hughes*/
+File created by Christian Kostner, and tweaked a bit by Richard Hughes*/
-//Windows versions in order of feature presence is:
-//95, NT4, 98, ME, 2000, XP
-//This is chronological order of release except for ME/2000. ME is barely an
-//improvement on 98.
-//These macros use the above order, not release order.
#define WinVerMajor() LOBYTE(LOWORD(GetVersion()))
#define WinVerMinor() HIBYTE(LOWORD(GetVersion()))
-#define IsWinVerNT() ((GetVersion()&0x80000000) == 0)
-// IsWinVerNT4Plus() is buggy, Windows 98 is 4.10.1998
-#define IsWinVerNT4Plus() (WinVerMajor()>=5 || WinVerMinor()>0 || IsWinVerNT())
-#define IsWinVer98Plus() (LOWORD(GetVersion()) != 4)
-#define IsWinVerMEPlus() (WinVerMajor()>=5 || WinVerMinor()>10)
-#define IsWinVer2000Plus() (WinVerMajor()>=5 && IsWinVerNT())
-#define IsWinVerXPPlus() (WinVerMajor()>=5 && LOWORD(GetVersion()) != 5)
-#define IsWinVerVistaPlus() (WinVerMajor()>=6)
-#define IsWinVer7Plus() (WinVerMajor()>6 || (WinVerMajor() == 6 && WinVerMinor()>=1))
// put stuff that's not apart of any SDKs but is used nonetheless
-#ifdef _WIN64
-#define MENUITEMINFO_V4_SIZE sizeof(MENUITEMINFO)
-#else
-//mii was extended for NT5/Win98, so need the old length for some stuff
-#define MENUITEMINFO_V4_SIZE (offsetof(MENUITEMINFO, cch)+sizeof((*((MENUITEMINFO*)0)).cch))
-#endif
-
#if _MSC_VER >= 1300
#define NOWIN2K
#endif
|