Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locked removable
Message
From
24/10/2003 02:47:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
23/10/2003 13:01:26
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00840941
Message ID:
00841960
Views:
31
Herman,

tanks for the tip.

I've choossen to use Gregorys solution (See message#841508), it works perfeclty.

Agnes
>>Anatoliy,
>>
>>thanks, I will have a look at this.
>>
>>Agnes
>>
>>Update:
>>
>>I have checked the link, the (DELPHI) solution is most like the FCREATE() thing. The problem with FCREATE() is, that it will come up with an Message box in a Cancel/retry/ignore style where ignore makes no sense to my programm.
>>
>>Agnes
>>>No help from API functions GetDriveType, GetVolumeInformation etc.
>>>
>>>It seems to me the only way is to write something on this drive, or change its label with SetVolumeLabel API function.
>>>
>>>Check this link, same subject:
>>>http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20654554.html
>>>
>>>Error code 19 = ERROR_WRITE_PROTECT
>
>Agnes,
>
>You need to create the file (CreateFile) with Direct Drive Access then check if it is lock using DeviceIoControl
>
>Here is the link. The example is in C++
>http://support.microsoft.com/default.aspx?scid=kb;en-us;168180
>
>HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform