Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get physical disk of a logical drive letter
Message
De
17/03/2002 23:10:18
 
 
À
02/03/2002 13:01:06
Information générale
Forum:
Windows
Catégorie:
API
Divers
Thread ID:
00627427
Message ID:
00633973
Vues:
20
>I want to know is there a way to determine programmatically the physical location of a given logical letter. For example I have two hard drives, each of them with more than one partition.
>
>In windows NT/2K/XP (NTFS) with Disk Manager I can assign drive letters to each partition, in Windows 9x/ME (FAT, FAT32) the letters that are assigned to partitions are given by the OS.
>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.
>

Yes, the DeviceIoControl() API will do it - you need to use some of the discontinued functionality to work under systems prior to Win2K. Good luck implementing it.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform