1#ifndef __CROSS_VERSION_LIB_NT__H__
2#define __CROSS_VERSION_LIB_NT__H__
8#if !defined(NT_INCLUDED)
20#ifdef CROSS_NT_INTERNAL
100#define WinVer_Is351 (MajorVersion==0x03)
101#define WinVer_IsNT (MajorVersion==0x04)
102#define WinVer_Is2k (MajorVersion==0x05 && MinorVersion==0x00)
103#define WinVer_IsXP (MajorVersion==0x05 && MinorVersion==0x01)
104#define WinVer_IsXPp (MajorVersion==0x05 && MinorVersion>=0x01)
105#define WinVer_IsdNET (MajorVersion==0x05 && MinorVersion==0x02)
106#define WinVer_IsdNETp ((MajorVersion==0x05 && MinorVersion>=0x02) || (MajorVersion>0x05))
107#define WinVer_IsVista (MajorVersion==0x06 && MinorVersion==0x00)
109#define WinVer_Id() ((MajorVersion << 8) | MinorVersion)
111#define WinVer_351 (0x0351)
112#define WinVer_NT (0x0400)
113#define WinVer_ROS (0x0401)
114#define WinVer_2k (0x0500)
115#define WinVer_XP (0x0501)
116#define WinVer_dNET (0x0502)
117#define WinVer_Vista (0x0600)
133#define strlen CrNtstrlen
134#define strcmp CrNtstrcmp
138#define CROSSNT_DECL_API
143#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)
PVOID CrNtSkipImportStub(PVOID p)
PCHAR g_KeNumberProcessors
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
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