. Thanks for any advice.
#include <windows.h>
#define WeaponMgr 0xA68F80
void hacks()
{
DWORD CShell = NULL;
while(CShell==NULL)
{
CShell = (DWORD)GetModuleHandleA("CShell.dll");
Sleep(100);
}
while(1)
{
//do the main stuff here
Sleep(100);
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
if(fdwReason==DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstDLL);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hacks, NULL, NULL, NULL);
//U might wanna put a messagebox here
}
return TRUE; // succesful
}
