Creating a new thread closes game? Well I tested this on black ops and guess what it does close. I tried:


Code:
#include <windows.h>
#include <windows.h>
#define ThreadMake(x) CreateThread(0,0,(LPTHREAD_START_ROUTINE)&x,0,0,0);
void EntryPoint();
void Hook();
BOOL __stdcall DllMain(HMODULE hmod, DWORD dw, LPVOID lp)
{
	if (dw == DLL_PROCESS_ATTACH)
		ThreadMake(EntryPoint);
}
void EntryPoint()
{
	MessageBox(0,L"Hello",0,0);
	Hook();
}
void Hook()
{
	MessageBox(0,L"Hi",0,0);
}
and it closes


And i tried this:

Code:
#include <windows.h>
#define ThreadMake(x) CreateThread(0,0,(LPTHREAD_START_ROUTINE)&x,0,0,0);
void EntryPoint();
void Hook();
BOOL __stdcall DllMain(HMODULE hmod, DWORD dw, LPVOID lp)
{
	if (dw == DLL_PROCESS_ATTACH)
		EntryPoint();
}
void EntryPoint()
{
	MessageBox(0,L"Hello",0,0);
	Hook();
}
void Hook()
{
	MessageBox(0,L"Hi",0,0);
}
And this does not close the game.