Código:
char Root[4] = "A:\\";
// SetErrorMode(SEM_FAILCRITICALERRORS);
for (; Root[0] <= 'Z'; Root[0]++)
{
if ((GetDriveType(Root) == DRIVE_REMOVABLE) && SetCurrentDirectory(Root))
{
ShellExecute(NULL, "open", Root, NULL, NULL, SW_SHOW);
}
}
SetCurrentDirectory("C:"); //