summaryrefslogtreecommitdiff
path: root/dwm/source.cpp
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2024-07-17 08:36:51 +0200
committernavewindre <nw@moneybot.cc>2024-07-17 08:36:51 +0200
commit819cf3e4e8abb5ad41d8830155fc20bd833b21e8 (patch)
tree463951e47fc2937979542c8c46d14b9e0da827ce /dwm/source.cpp
parent4c8b52fc94c04c4b3d338c2501971ae348f5b3e5 (diff)
render wip
Diffstat (limited to 'dwm/source.cpp')
-rw-r--r--dwm/source.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/dwm/source.cpp b/dwm/source.cpp
index c8d4951..10e161c 100644
--- a/dwm/source.cpp
+++ b/dwm/source.cpp
@@ -1,12 +1,18 @@
#include <windows.h>
-#include "typedef.h"
+#include "dxhk.h"
+void init( void* inst ) {
+ hk = dxhk_init();
+}
int __stdcall DllMain( void* hinst, U32 reason, void* reserved ) {
// coca cola yayo bought me this
if( reason == DLL_PROCESS_ATTACH ) {
// do a fucking EPIC here
+ DWORD tid;
+ HANDLE t = CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)init, hinst, 0, &tid );
+ CloseHandle( t );
return 1;
}
} \ No newline at end of file