mirror of
https://github.com/Chuyu-Team/MINT.git
synced 2026-10-16 21:00:37 +08:00
Add wrapper implementation for Mint.Implementation.
This commit is contained in:
+79
@@ -17,7 +17,86 @@ namespace MINT {
|
||||
#endif // MINT_USE_SEPARATE_NAMESPACE
|
||||
#endif // __cplusplus
|
||||
|
||||
#include "Mint.Implementation/phnt_windows.h"
|
||||
|
||||
#include <SDKDDKVer.h>
|
||||
|
||||
#ifndef PHNT_MODE
|
||||
#ifdef _KERNEL_MODE
|
||||
#define PHNT_MODE PHNT_MODE_KERNEL
|
||||
#else
|
||||
#define PHNT_MODE PHNT_MODE_USER
|
||||
#endif
|
||||
#endif // !PHNT_MODE
|
||||
|
||||
#ifndef PHNT_VERSION
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN10_NI)
|
||||
#define PHNT_VERSION PHNT_WIN11_23H2
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_CO)
|
||||
#define PHNT_VERSION PHNT_WIN11
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_VB)
|
||||
#define PHNT_VERSION PHNT_WIN10_22H2
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_19H1)
|
||||
#define PHNT_VERSION PHNT_19H2
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_RS5)
|
||||
#define PHNT_VERSION PHNT_REDSTONE5
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_RS4)
|
||||
#define PHNT_VERSION PHNT_REDSTONE4
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3)
|
||||
#define PHNT_VERSION PHNT_REDSTONE3
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_RS2)
|
||||
#define PHNT_VERSION PHNT_REDSTONE2
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_RS1)
|
||||
#define PHNT_VERSION PHNT_REDSTONE
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10_TH2)
|
||||
#define PHNT_VERSION PHNT_THRESHOLD2
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN10)
|
||||
#define PHNT_VERSION PHNT_THRESHOLD
|
||||
#elif (NTDDI_VERSION >= NTDDI_WINBLUE)
|
||||
#define PHNT_VERSION PHNT_WINBLUE
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN8)
|
||||
#define PHNT_VERSION PHNT_WIN8
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN7)
|
||||
#define PHNT_VERSION PHNT_WIN7
|
||||
#elif (NTDDI_VERSION >= NTDDI_VISTA)
|
||||
#define PHNT_VERSION PHNT_VISTA
|
||||
#elif (NTDDI_VERSION >= NTDDI_WS03)
|
||||
#define PHNT_VERSION PHNT_WS03
|
||||
#elif (NTDDI_VERSION >= NTDDI_WINXP)
|
||||
#define PHNT_VERSION PHNT_WINXP
|
||||
#else
|
||||
#define PHNT_VERSION PHNT_WIN2K
|
||||
#endif
|
||||
#endif // !PHNT_VERSION
|
||||
|
||||
#include "Mint.Implementation/phnt.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
#if (PHNT_MODE != PHNT_MODE_KERNEL)
|
||||
|
||||
#include "Mint.Implementation/ntgdi.h"
|
||||
#include "Mint.Implementation/ntsmss.h"
|
||||
#include "Mint.Implementation/ntsxs.h"
|
||||
#include "Mint.Implementation/subprocesstag.h"
|
||||
#include "Mint.Implementation/usermgr.h"
|
||||
#include "Mint.Implementation/winsta.h"
|
||||
|
||||
#endif // (PHNT_MODE != PHNT_MODE_KERNEL)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // __cplusplus
|
||||
|
||||
#if (PHNT_MODE != PHNT_MODE_KERNEL)
|
||||
|
||||
#pragma comment(lib,"ntdll.lib")
|
||||
#pragma comment(lib,"samlib.lib")
|
||||
#pragma comment(lib,"winsta.lib")
|
||||
|
||||
#endif // (PHNT_MODE != PHNT_MODE_KERNEL)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifdef MINT_USE_SEPARATE_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user