blob: 10e161cff152b16dfeb94d210495901f00ab5aa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <windows.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;
}
}
|