1#ifndef __CROSS_VERSION_LIB_NT__H__
2#define __CROSS_VERSION_LIB_NT__H__
8#if !defined(NT_INCLUDED)
21#ifdef CROSS_NT_INTERNAL
61 #define DECL_FUNC_PTR(_type, _cconv, _name) _type _cconv ( * _name)
63 #define DECL_FUNC_PTR(_type, _cconv, _name) _type (_cconv * _name)
99#define WinVer_Is351 (MajorVersion==0x03)
100#define WinVer_IsNT (MajorVersion==0x04)
101#define WinVer_Is2k (MajorVersion==0x05 && MinorVersion==0x00)
102#define WinVer_IsXP (MajorVersion==0x05 && MinorVersion==0x01)
103#define WinVer_IsXPp (MajorVersion==0x05 && MinorVersion>=0x01)
104#define WinVer_IsdNET (MajorVersion==0x05 && MinorVersion==0x02)
105#define WinVer_IsdNETp ((MajorVersion==0x05 && MinorVersion>=0x02) || (MajorVersion>0x05))
106#define WinVer_IsVista (MajorVersion==0x06 && MinorVersion==0x00)
108#define WinVer_Id() ((MajorVersion << 8) | MinorVersion)
110#define WinVer_351 (0x0351)
111#define WinVer_NT (0x0400)
112#define WinVer_ROS (0x0401)
113#define WinVer_2k (0x0500)
114#define WinVer_XP (0x0501)
115#define WinVer_dNET (0x0502)
116#define WinVer_Vista (0x0600)
123#ifndef USE_REACTOS_DDK
134#define strlen CrNtstrlen
135#define strcmp CrNtstrcmp
141#define CROSSNT_DECL_API
146#undef CROSSNT_DECL_API
PVOID CrNtGetProcAddress(PVOID ModuleBase, PCHAR pFunctionName)
NTSTATUS CrNtInit(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
PVOID CrNtFindModuleBaseByPtr(IN PVOID ptrInSection, IN PCHAR ptrExportedName)
PVOID CrNtGetModuleBase(IN PCHAR pModuleName)
ptrCrNtNtQuerySystemInformation CrNtNtQuerySystemInformation
NTSTATUS(__stdcall * ptrCrNtNtQuerySystemInformation)(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
ptrCrNtPsGetVersion CrNtPsGetVersion
BOOLEAN(__stdcall * ptrCrNtPsGetVersion)(PULONG MajorVersion OPTIONAL, PULONG MinorVersion OPTIONAL, PULONG BuildNumber OPTIONAL, PUNICODE_STRING CSDVersion OPTIONAL)
enum _SYSTEM_INFORMATION_CLASS SYSTEM_INFORMATION_CLASS
OUT PVOID IN ULONG SystemInfoBufferSize
#define DECL_FUNC_PTR(_type, _cconv, _name)
OUT PVOID SystemInfoBuffer
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_ ULONG _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesReturned