Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get physical disk of a logical drive letter
Message
From
07/03/2002 15:17:55
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00627438
Message ID:
00629841
Views:
135
>>>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...

Yep, you are right that it'll be more easy to make this under C++ or VB or Delphi or what other language has pointers, strong typing and structures...
Also as I have noticed that in some cases there is some need of events processing. So this were the "good" news...

The bad news are:

IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/hardware/devio_9gqb.asp

< snip >
Requirements
Windows NT/2000/XP: Included in Windows XP and Windows .NET Server.
Windows 95/98/Me: Unsupported.

Unsupported under Win98/ME :-(

Yes, I know that they do not have disk manager (so the logic of assigning drive letters there is different)... but I need a solution that works for them either... OK I will continue with the search...

Kind regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform