Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get physical disk of a logical drive letter
Message
De
07/03/2002 14:50:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00627438
Message ID:
00629823
Vues:
28
>>I want to know for example on which of the two (for example) hard disks resides drive letter 'E:'. I wish to determine this programmatically, from my own program.
>
>There is a correlation between the drive letter and device in the HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices registry key data. However, I haven't figured out what that correlation is, nor can I find an API call to get this information. Disk Manager seems to be able to figure this out, though, so there's got to be a way to do it.

Yep, but how to filter the junk under this registry key... (I mean there is left information about drives that I had in the past, but have now disconnected them)
Also - this key is not found in Windows NT 4.0 (both Server and Workstation) SP6a and under Windows 9x/ME
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform