[php]//Globals
DWORD Address1 = NULL;
//etc.
DWORD WINAPI dwGetAdresses(LPVOID)
{
while ( !IsGameReadyForHook() )
Sleep(1)
//Exapmle will not work
Address1 = FindPattern((DWORD)GetModuleHandle("CShell.dll"),0 xFFFFFFFF,(PBYTE) "\x10\x11\x12\x13\x00\x15","xxxx?x");
try{
HookD3D();
return 0;}
catch(...){ExitProcess(1);}
}
//blablabla
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwGetAdresses, NULL, NULL, NULL);
}
return TRUE;
}[/php]
thats my way only one time defined and start for searching if the .dll is founded
yeah its simple xD but working^^