diff options
Diffstat (limited to 'alf/alfcompat.h')
| -rw-r--r-- | alf/alfcompat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/alf/alfcompat.h b/alf/alfcompat.h index 3996309..0c542b0 100644 --- a/alf/alfcompat.h +++ b/alf/alfcompat.h @@ -24,6 +24,16 @@ static inline BOOL ALF_Compat_IsMinWindowsVersion(DWORD major, DWORD minor) return vMajor > major || (vMajor == major && vMinor >= minor); } +static inline BOOL ALF_Compat_IsWin9x(void) +{ + return GetVersion() >= 0x80000000; +} + +static inline BOOL ALF_Compat_IsWinNT(void) +{ + return GetVersion() < 0x80000000; +} + typedef LRESULT (CALLBACK *ALF_COMPAT_SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR); typedef struct { |
