ReactOS 0.4.15-dev-6675-gcbc63d8
osver.c
Go to the documentation of this file.
1#include "w32knapi.h"
2
5
6ASPI gNOPARAM_ROUTINE_CREATEMENU = {-1,-1,0x00,-1,0x00};
9ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT = {-1, -1, 0x21, 0x21, 0x25};
12
16
18{
21 if (g_OsVer.dwMajorVersion == 4)
22 {
23 g_OsIdx = 0;
24 return TRUE;
25 }
26 else if (g_OsVer.dwMajorVersion == 5)
27 {
28 if (g_OsVer.dwMinorVersion == 0)
29 {
30 g_OsIdx = 1;
31 return TRUE;
32 }
33 else if (g_OsVer.dwMinorVersion == 1)
34 {
35 g_OsIdx = 2;
36 return TRUE;
37 }
38 else if (g_OsVer.dwMinorVersion == 2)
39 {
40 g_OsIdx = 3;
41 return TRUE;
42 }
43 }
44 else if (g_OsVer.dwMajorVersion == 6)
45 {
46 g_OsIdx = 4;
47 return TRUE;
48 }
49 return FALSE;
50}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
Definition: version.c:37
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: ndis.h:50
ASPI gNOPARAM_ROUTINE_CREATEMENU
Definition: osver.c:6
ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT
Definition: osver.c:10
ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: osver.c:15
ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT
Definition: osver.c:9
ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: osver.c:13
BOOL InitOsVersion()
Definition: osver.c:17
ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK
Definition: osver.c:8
ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP
Definition: osver.c:7
ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: osver.c:14
ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON
Definition: osver.c:11
OSVERSIONINFOW g_OsVer
Definition: osver.c:3
UINT g_OsIdx
Definition: osver.c:4
ULONG dwMinorVersion
Definition: rtltypes.h:248
ULONG dwOSVersionInfoSize
Definition: rtltypes.h:246
ULONG dwMajorVersion
Definition: rtltypes.h:247
UINT ASPI[5]
Definition: w32knapi.h:49
struct _OSVERSIONINFOW OSVERSIONINFOW