Solved

HD in read-only mode

Posted on 1998-09-01
1
127 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 70 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now