ReactOS 0.4.15-dev-8093-g3285f69
osver.c File Reference
#include "w32knapi.h"
Include dependency graph for osver.c:

Go to the source code of this file.

Functions

BOOL InitOsVersion ()
 

Variables

OSVERSIONINFOW g_OsVer
 
UINT g_OsIdx
 
ASPI gNOPARAM_ROUTINE_CREATEMENU = {-1,-1,0x00,-1,0x00}
 
ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP = {-1,-1,0x01,-1,0x01}
 
ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK = {-1,-1,0x1d,-1,0x0e}
 
ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT = {-1, -1, 0x21, 0x21, 0x25}
 
ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT = {-1,-1,0x30,-1,0x31}
 
ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON = {-1,-1,0x42,-1,0x44}
 
ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW = {-1,-1,0x45,-1,0x46}
 
ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID = {-1,-1,0x47,-1,0x48}
 
ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID = {-1,-1,0x51,-1,0x52}
 

Function Documentation

◆ InitOsVersion()

BOOL InitOsVersion ( )

Definition at line 17 of file osver.c.

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
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
struct _OSVERSIONINFOW OSVERSIONINFOW

Referenced by WinMain().

Variable Documentation

◆ g_OsIdx

UINT g_OsIdx

Definition at line 4 of file osver.c.

Referenced by InitOsVersion(), and WinMain().

◆ g_OsVer

OSVERSIONINFOW g_OsVer

Definition at line 3 of file osver.c.

Referenced by InitOsVersion().

◆ gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW

ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW = {-1,-1,0x45,-1,0x46}

Definition at line 13 of file osver.c.

◆ gHWND_ROUTINE_GETWNDCONTEXTHLPID

ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID = {-1,-1,0x47,-1,0x48}

Definition at line 14 of file osver.c.

◆ gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID

ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID = {-1,-1,0x51,-1,0x52}

Definition at line 15 of file osver.c.

◆ gNOPARAM_ROUTINE_CREATEMENU

ASPI gNOPARAM_ROUTINE_CREATEMENU = {-1,-1,0x00,-1,0x00}

Definition at line 6 of file osver.c.

◆ gNOPARAM_ROUTINE_CREATEMENUPOPUP

ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP = {-1,-1,0x01,-1,0x01}

Definition at line 7 of file osver.c.

◆ gNOPARAM_ROUTINE_LOADUSERAPIHOOK

ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK = {-1,-1,0x1d,-1,0x0e}

Definition at line 8 of file osver.c.

◆ gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT

ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT = {-1, -1, 0x21, 0x21, 0x25}

Definition at line 9 of file osver.c.

◆ gONEPARAM_ROUTINE_MAPDEKTOPOBJECT

ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT = {-1,-1,0x30,-1,0x31}

Definition at line 10 of file osver.c.

◆ gONEPARAM_ROUTINE_SWAPMOUSEBUTTON

ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON = {-1,-1,0x42,-1,0x44}

Definition at line 11 of file osver.c.