HD in read-only mode

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?
Who is Participating?
BoRiSConnect With a Mentor Commented:

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.