
Originally Posted by
cata123
So in other words the dll-s that need process to load don`t work (like some antihacks) and glow.dll works without call for proc adress ?
Code:
void InitDLL();
BOOL __stdcall DllMain( HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved )
{
switch(fdwReason)
{
// do smth when dll is loaded
case DLL_PROCESS_ATTACH:
InitDLL(); // we get here, when dll is loaded
break;
}
return TRUE;
}
when dll is loaded InitDLL function will be called
this way i compile all my dlls, so you only require to hook dll
other dlls don't use this method, they require additional function call, so if you will only hook dll(add LoadLibrary code) -> no initialization will be done, nothing will happen