summaryrefslogtreecommitdiff
path: root/dwm/source.cpp
diff options
context:
space:
mode:
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