Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get physical disk of a logical drive letter
Message
From
04/03/2002 09:47:26
 
 
To
03/03/2002 18:18:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00627438
Message ID:
00627780
Views:
34
>>>>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.
>>
>>DeviceIoControl()...not one I'm planning to implement in VFP without having a loaded handgun stuck in my ear...
>
>
>Sorry to jump in but now I can't work, I'm laughing so hard...

I know one way to make you stop - try implementing DeviceIoControl() IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS using nothing but VFP and API calls...give me your weight +/- 5kg, I'll give odds on the dosage of Thorazine you'll need after a few minutes! No STRUCT or ClsHeap allowed...
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform