?
Solved

HD in read-only mode

Posted on 1998-09-01
1
Medium Priority
?
140 Views
Last Modified: 2012-05-04
How can i set the HD in read-only mode, or sent some kind of notification to one app. in order to make that he think that the HD is full or protect?
0
Comment
Question by:dia050398
1 Comment
 
LVL 4

Accepted Solution

by:
BoRiS earned 140 total points
ID: 1338444
dia

you may be able to get it right by using the DeviceIOControl API call...there is a param
called FSCTL_LOCK_VOLUME, it may be the only way to set a hard drive to read only or locked...

check the win32 helpfile for more options on the API

Later
BoRiS
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question