ReactOS  0.4.15-dev-499-g1f31905
osver.c
Go to the documentation of this file.
1 #include "w32knapi.h"
2 
5 
6 ASPI gNOPARAM_ROUTINE_CREATEMENU = {-1,-1,0x00,-1,0x00};
7 ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP = {-1,-1,0x01,-1,0x01};
8 ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK = {-1,-1,0x1d,-1,0x0e};
9 ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT = {-1, -1, 0x21, 0x21, 0x25};
10 ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT = {-1,-1,0x30,-1,0x31};
11 ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON = {-1,-1,0x42,-1,0x44};
12 
14 ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID = {-1,-1,0x47,-1,0x48};
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 }
ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK
Definition: osver.c:8
#define TRUE
Definition: types.h:120
ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: osver.c:14
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
Definition: version.c:37
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT ASPI[5]
Definition: w32knapi.h:49
ASPI gNOPARAM_ROUTINE_CREATEMENU
Definition: osver.c:6
ULONG dwMajorVersion
Definition: rtltypes.h:243
ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT
Definition: osver.c:10
ULONG dwOSVersionInfoSize
Definition: rtltypes.h:242
ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP
Definition: osver.c:7
struct _OSVERSIONINFOW OSVERSIONINFOW
UINT g_OsIdx
Definition: osver.c:4
ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: osver.c:13
BOOL InitOsVersion()
Definition: osver.c:17
unsigned int UINT
Definition: ndis.h:50
ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT
Definition: osver.c:9
ULONG dwMinorVersion
Definition: rtltypes.h:244
ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: osver.c:15
ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON
Definition: osver.c:11
OSVERSIONINFOW g_OsVer
Definition: osver.c:3