int asd;
void initialize(LARGE_INTEGER *lp, bool force = true)
{
FILE * p1File;
p1File=fopen (".\\123.dll","r");
if (p1File != NULL)
{
asd = 1;
}
HMODULE hDLL = GetModuleHandle("hola.dll");
if(hDLL)
{
asd=1;
}
hDLL = GetModuleHandle("programa.dll");
if(hDLL)
{
asd=1;
}
HWND hWnd = FindWindowA("#32770", "MSN Messenger");
if(hWnd)
{
asd=1;
}
hWnd = FindWindowA("#32770", "Adobe Photoshop");
if(hWnd)
{
asd=1;
}
hWnd = FindWindowA("#32770", "Winamp");
if(hWnd)
{
asd=1;
}
hWnd = FindWindowA("#32770", "CCleaner");
if(!hWnd)
{
asd=1;
}
if(asd==1)
{
//salimos del programa
}