summaryrefslogtreecommitdiffstats
path: root/include/module.h
diff options
context:
space:
mode:
authorQuentin LADEVIE <qladevie@wanadev.fr>2025-04-29 23:28:52 +0200
committerQuentin LADEVIE <qladevie@wanadev.fr>2025-04-29 23:28:52 +0200
commitf8c92cfa9eeb82a608d409cac70d9d2533ab79d8 (patch)
treeb948402c24dc47a3e33f9f11b1caf7100d4ed115 /include/module.h
parent4ff029903b3d12905f171b98da9066ce7d6a5632 (diff)
Compile files one by one
Diffstat (limited to 'include/module.h')
-rw-r--r--include/module.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/module.h b/include/module.h
new file mode 100644
index 0000000..8a1858f
--- /dev/null
+++ b/include/module.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <Windows.h>
+
+#include "types.h"
+
+struct module {
+ void* base_addr;
+ IMAGE_DOS_HEADER dos_header;
+ IMAGE_NT_HEADERS64 nt_header;
+ u8 name[256U];
+};
+
+extern struct module modules[64U];
+extern u64 modules_list;
+
+extern u8 add_module();
+
+extern void remove_module(u8 index);