BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
if(ul_reason_for_call = DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hModule);
CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))warrock,NULL,0,NULL);
return TRUE;
}
return TRUE;
}
and sorry for the bad spelling i was playing a game at the time.
void warrock(void)
{
//this is where your code will go.
//use memcpy
//this is for a dll
}