Ver Mensaje Individual
  #11 (permalink)  
Antiguo 20/01/2007, 13:17
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Re: Nombre de ejecutable VC++

Bueno, eso por lo que veo son hooks aunque de otra cosa ... este codigo compilado con cl /c archivo.cpp genera el obj correctamente:

Código:
#include <windows.h>

bool WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved )
{
  if (fdwReason == DLL_PROCESS_ATTACH)
  {
    char tmpName[255];
    GetModuleFileName(hinstDLL, tmpName, 255);
    strlwr(tmpName);
    if (!strstr(tmpName, "joolzcheat.dll"))
    {
	MessageBox(NULL, "Illegal DLL Name Change Detected", "Unable to launch HL", MB_OK);
	ExitProcess(0);
    }
  }
  return true;
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO