Mensaje    Asunto: Encontrar discos duros Responder citando

code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
for(int i = 0; i < 26; ++i)
{
AnsiString drive = (AnsiString((char)(i + 97)) + ":\\");
int type = GetDriveType(drive.c_str());

if(type != 0 && type != 1)
if(type == DRIVE_FIXED)
ShowMessage(drive);
}
}