summaryrefslogtreecommitdiffhomepage
path: root/dev/DDK
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 10:04:39 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 10:04:39 +0200
commit01658f0f5ba1fb3e84d61629f15b8c5221bf66dc (patch)
treee3a3320fd6f29d063675feb8cf4ba6645e18d65a /dev/DDK
parentf1ac02764430421a0245261811c819fee0673ef4 (diff)
+ Fixes and refactors regarding Kernel DLL and other DLLs.
+ Next commit will fix TryLogIn method. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/DDK')
-rw-r--r--dev/DDK/KernelVersion.c10
-rw-r--r--dev/DDK/build.json33
2 files changed, 30 insertions, 13 deletions
diff --git a/dev/DDK/KernelVersion.c b/dev/DDK/KernelVersion.c
index 84abc4f7..4b69aa34 100644
--- a/dev/DDK/KernelVersion.c
+++ b/dev/DDK/KernelVersion.c
@@ -10,12 +10,16 @@
#ifndef cDDKVersionHighest
#define cDDKVersionHighest 1
-#endif // cDDKVersionHighest
+#endif // !cDDKVersionHighest
#ifndef cDDKVersionLowest
#define cDDKVersionLowest 1
-#endif // cDDKVersionLowest
+#endif // !cDDKVersionLowest
+
+#ifndef cDDKVersion
+#define cDDKVersion 1
+#endif // !cDDKVersion
int32_t c_api_version_highest = cDDKVersionHighest;
int32_t c_api_version_least = cDDKVersionLowest;
-int32_t c_api_version = cDDKVersionHighest | cDDKVersionLowest; \ No newline at end of file
+int32_t c_api_version = cDDKVersion;
diff --git a/dev/DDK/build.json b/dev/DDK/build.json
index 328165ba..a9a3b895 100644
--- a/dev/DDK/build.json
+++ b/dev/DDK/build.json
@@ -1,10 +1,23 @@
-{
- "compiler_path": "x86_64-w64-mingw32-gcc",
- "compiler_std": "c++20",
- "headers_path": ["../", "./"],
- "sources_path": ["*.c", "*.cxx", "*.S"],
- "output_name": "ddk.dll",
- "compiler_flags": ["-ffreestanding", "-shared", "-std=c17", "-std=c++20", "-fno-rtti", "-fno-exceptions", " -Wl,--subsystem=17"],
- "cpp_macros": ["__NEWOSKRNL__", "__DDK_AMD64__", "cDDKVersionHighest=1", "cDDKVersionLowest=1"]
- }
- \ No newline at end of file
+{
+ "compiler_path": "x86_64-w64-mingw32-gcc",
+ "compiler_std": "c++20",
+ "headers_path": ["../", "./"],
+ "sources_path": ["*.c", "*.cxx", "*.S"],
+ "output_name": "ddk.dll",
+ "compiler_flags": [
+ "-ffreestanding",
+ "-shared",
+ "-std=c17",
+ "-std=c++20",
+ "-fno-rtti",
+ "-fno-exceptions",
+ " -Wl,--subsystem=17"
+ ],
+ "cpp_macros": [
+ "__NEWOSKRNL__",
+ "__DDK_AMD64__",
+ "cDDKVersionHighest=0x0100",
+ "cDDKVersionLowest=0x0100",
+ "cDDKVersion=0x0100"
+ ]
+}