1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
static char * Lecteur[]={"c:\\","d:\\","e:\\","f:\\",
"g:\\","h:\\","i:\\","j:\\","k:\\","l:\\","m:\\","n:\\","o:\\","p:\\",
"q:\\","r:\\","s:\\","t:\\","u:\\","v:\\","w:\\","x:\\","y:\\","z:\\"};
bool bExist ;
for(int x =0; x < 24; x++ )
{
if(GetDriveType(Lecteur[x]) == DRIVE_REMOVABLE)
{
if(CheckDongle(Lecteur[x], 1285501970))
{
ShowMessage("Démarrage en cours...") ;
delete[] Lecteur ;
return ;
}
else
bExist = true ;
}
else
bExist = false ;
}
if(bExist)
ShowMessage("Le code du Dongle est incorrect") ;
else
ShowMessage("Le Dongle n'est pas connecté") ;
Application -> Terminate() ; |
Partager