ReactOS  0.4.14-dev-52-g6116262
CrossNt.h File Reference
#include <ntddk.h>
#include <stddef.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "ntddk_ex.h"
#include "rwlock.h"
#include "misc.h"
#include "tools.h"
#include "CrNtDecl.h"
#include "CrNtStubs.h"
Include dependency graph for CrossNt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WinVer_Is351   (MajorVersion==0x03)
 
#define WinVer_IsNT   (MajorVersion==0x04)
 
#define WinVer_Is2k   (MajorVersion==0x05 && MinorVersion==0x00)
 
#define WinVer_IsXP   (MajorVersion==0x05 && MinorVersion==0x01)
 
#define WinVer_IsXPp   (MajorVersion==0x05 && MinorVersion>=0x01)
 
#define WinVer_IsdNET   (MajorVersion==0x05 && MinorVersion==0x02)
 
#define WinVer_IsdNETp   ((MajorVersion==0x05 && MinorVersion>=0x02) || (MajorVersion>0x05))
 
#define WinVer_IsVista   (MajorVersion==0x06 && MinorVersion==0x00)
 
#define WinVer_Id()   ((MajorVersion << 8) | MinorVersion)
 
#define WinVer_351   (0x0351)
 
#define WinVer_NT   (0x0400)
 
#define WinVer_ROS   (0x0401)
 
#define WinVer_2k   (0x0500)
 
#define WinVer_XP   (0x0501)
 
#define WinVer_dNET   (0x0502)
 
#define WinVer_Vista   (0x0600)
 
#define CROSSNT_DECL_API
 

Typedefs

typedef BOOLEAN(__stdcallptrCrNtPsGetVersion) (PULONG MajorVersion OPTIONAL, PULONG MinorVersion OPTIONAL, PULONG BuildNumber OPTIONAL, PUNICODE_STRING CSDVersion OPTIONAL)
 
typedef NTSTATUS(__stdcallptrCrNtNtQuerySystemInformation) (IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
 

Functions

NTSTATUS CrNtInit (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
 
ULONG CrNtGetCPUGen ()
 
PVOID CrNtGetModuleBase (IN PCHAR pModuleName)
 
PVOID CrNtFindModuleBaseByPtr (IN PVOID ptrInSection, IN PCHAR ptrExportedName)
 
PVOID CrNtGetProcAddress (PVOID ModuleBase, PCHAR pFunctionName)
 
PVOID CrNtSkipImportStub (PVOID p)
 

Variables

ptrCrNtPsGetVersion CrNtPsGetVersion
 
ptrCrNtNtQuerySystemInformation CrNtNtQuerySystemInformation
 
ULONG MajorVersion
 
ULONG MinorVersion
 
ULONG BuildNumber
 
ULONG SPVersion
 
HANDLE g_hNtosKrnl
 
HANDLE g_hHal
 
PCHAR g_KeNumberProcessors
 

Macro Definition Documentation

◆ CROSSNT_DECL_API

#define CROSSNT_DECL_API

Definition at line 138 of file CrossNt.h.

◆ WinVer_2k

#define WinVer_2k   (0x0500)

Definition at line 114 of file CrossNt.h.

◆ WinVer_351

#define WinVer_351   (0x0351)

Definition at line 111 of file CrossNt.h.

◆ WinVer_dNET

#define WinVer_dNET   (0x0502)

Definition at line 116 of file CrossNt.h.

◆ WinVer_Id

#define WinVer_Id ( )    ((MajorVersion << 8) | MinorVersion)

Definition at line 109 of file CrossNt.h.

◆ WinVer_Is2k

#define WinVer_Is2k   (MajorVersion==0x05 && MinorVersion==0x00)

Definition at line 102 of file CrossNt.h.

◆ WinVer_Is351

#define WinVer_Is351   (MajorVersion==0x03)

Definition at line 100 of file CrossNt.h.

◆ WinVer_IsdNET

#define WinVer_IsdNET   (MajorVersion==0x05 && MinorVersion==0x02)

Definition at line 105 of file CrossNt.h.

◆ WinVer_IsdNETp

#define WinVer_IsdNETp   ((MajorVersion==0x05 && MinorVersion>=0x02) || (MajorVersion>0x05))

Definition at line 106 of file CrossNt.h.

◆ WinVer_IsNT

#define WinVer_IsNT   (MajorVersion==0x04)

Definition at line 101 of file CrossNt.h.

◆ WinVer_IsVista

#define WinVer_IsVista   (MajorVersion==0x06 && MinorVersion==0x00)

Definition at line 107 of file CrossNt.h.

◆ WinVer_IsXP

#define WinVer_IsXP   (MajorVersion==0x05 && MinorVersion==0x01)

Definition at line 103 of file CrossNt.h.

◆ WinVer_IsXPp

#define WinVer_IsXPp   (MajorVersion==0x05 && MinorVersion>=0x01)

Definition at line 104 of file CrossNt.h.

◆ WinVer_NT

#define WinVer_NT   (0x0400)

Definition at line 112 of file CrossNt.h.

◆ WinVer_ROS

#define WinVer_ROS   (0x0401)

Definition at line 113 of file CrossNt.h.

◆ WinVer_Vista

#define WinVer_Vista   (0x0600)

Definition at line 117 of file CrossNt.h.

◆ WinVer_XP

#define WinVer_XP   (0x0501)

Definition at line 115 of file CrossNt.h.

Typedef Documentation

◆ ptrCrNtNtQuerySystemInformation

Definition at line 70 of file CrossNt.h.

◆ ptrCrNtPsGetVersion

Definition at line 60 of file CrossNt.h.

Function Documentation

◆ CrNtFindModuleBaseByPtr()

PVOID CrNtFindModuleBaseByPtr ( IN PVOID  ptrInSection,
IN PCHAR  ptrExportedName 
)

◆ CrNtGetCPUGen()

ULONG CrNtGetCPUGen ( )

◆ CrNtGetModuleBase()

PVOID CrNtGetModuleBase ( IN PCHAR  pModuleName)

Referenced by DriverEntry().

◆ CrNtGetProcAddress()

PVOID CrNtGetProcAddress ( PVOID  ModuleBase,
PCHAR  pFunctionName 
)

Referenced by DriverEntry().

◆ CrNtInit()

NTSTATUS CrNtInit ( IN PDRIVER_OBJECT  DriverObject,
IN PUNICODE_STRING  RegistryPath 
)

Referenced by DriverEntry().

◆ CrNtSkipImportStub()

PVOID CrNtSkipImportStub ( PVOID  p)

Variable Documentation

◆ BuildNumber

ULONG BuildNumber

Definition at line 6 of file ros_glue.cpp.

Referenced by DriverEntry(), InitializeMachineInformation(), and PsGetVersion().

◆ CrNtNtQuerySystemInformation

ptrCrNtNtQuerySystemInformation CrNtNtQuerySystemInformation

Definition at line 78 of file CrossNt.h.

◆ CrNtPsGetVersion

ptrCrNtPsGetVersion CrNtPsGetVersion

Definition at line 68 of file CrossNt.h.

◆ g_hHal

HANDLE g_hHal

◆ g_hNtosKrnl

HANDLE g_hNtosKrnl

◆ g_KeNumberProcessors

PCHAR g_KeNumberProcessors

◆ MajorVersion

◆ MinorVersion

◆ SPVersion

ULONG SPVersion