Dll
hey guys iv made a DLL but whenever i inject it crossfire crashes 
thanks for helping

Code:
#include<windows.h>
#include<iostream>
using namespace std;
DWORD WINAPI dwMyThread(LPVOID)
{
Sleep(1000);
// hack code here
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "CrossFire Hack Coded by .", "Injected", 0);
CreateThread(NULL,NULL,dwMyThread,NULL,NULL,NULL);
}
return true;
}




