ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <ntddk.h>
#include <stddef.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "ntddk_ex.h"
#include "tools.h"
#include "rwlock.h"
#include "misc.h"
#include "CrNtDecl.h"
#include "CrNtStubs.h"
Go to the source code of this file.
Macros | |
#define | DECL_FUNC_PTR(_type, _cconv, _name) _type (_cconv * _name) |
#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 PULONG MinorVersion | OPTIONAL |
typedef OUT PVOID | SystemInfoBuffer |
typedef OUT PVOID IN ULONG | SystemInfoBufferSize |
Functions | |
NTSTATUS NTAPI | CrNtInit (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) |
PVOID NTAPI | CrNtGetModuleBase (IN PCHAR pModuleName) |
PVOID NTAPI | CrNtFindModuleBaseByPtr (IN PVOID ptrInSection, IN PCHAR ptrExportedName) |
PVOID NTAPI | CrNtGetProcAddress (PVOID ModuleBase, PCHAR pFunctionName) |
typedef | DECL_FUNC_PTR (BOOLEAN, __stdcall, ptrCrNtPsGetVersion)(PULONG MajorVersion OPTIONAL |
typedef | DECL_FUNC_PTR (NTSTATUS, __stdcall, ptrCrNtNtQuerySystemInformation)(IN SYSTEM_INFORMATION_CLASS SystemInfoClass |
#define DECL_FUNC_PTR | ( | _type, | |
_cconv, | |||
_name | |||
) | _type (_cconv * _name) |
#define WinVer_Id | ( | ) | ((MajorVersion << 8) | MinorVersion) |
#define WinVer_Is2k (MajorVersion==0x05 && MinorVersion==0x00) |
#define WinVer_Is351 (MajorVersion==0x03) |
#define WinVer_IsdNET (MajorVersion==0x05 && MinorVersion==0x02) |
#define WinVer_IsdNETp ((MajorVersion==0x05 && MinorVersion>=0x02) || (MajorVersion>0x05)) |
#define WinVer_IsNT (MajorVersion==0x04) |
#define WinVer_IsVista (MajorVersion==0x06 && MinorVersion==0x00) |
#define WinVer_IsXP (MajorVersion==0x05 && MinorVersion==0x01) |
#define WinVer_IsXPp (MajorVersion==0x05 && MinorVersion>=0x01) |
typedef OUT PVOID SystemInfoBuffer |
NTSTATUS NTAPI CrNtInit | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PUNICODE_STRING | RegistryPath | ||
) |
typedef DECL_FUNC_PTR | ( | BOOLEAN | , |
__stdcall | , | ||
ptrCrNtPsGetVersion | |||
) |
typedef DECL_FUNC_PTR | ( | NTSTATUS | , |
__stdcall | , | ||
ptrCrNtNtQuerySystemInformation | |||
) |
|
extern |
Definition at line 6 of file ros_glue.cpp.
ptrCrNtNtQuerySystemInformation CrNtNtQuerySystemInformation |
ptrCrNtPsGetVersion CrNtPsGetVersion |
|
extern |
|
extern |
|
extern |
Definition at line 4 of file ros_glue.cpp.
|
extern |
Definition at line 5 of file ros_glue.cpp.
|
extern |