Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to create an application which display all hard drives. After selecting a hard drive user should be able to lock it by giving a password, without correct password no contents of that drive should be displayed anywhere in the pc
Posted

You cannot do this at the application level. You'd have to do this at the hard disk driver level. Based on your tag of .NET 4.0, I assume you are hoping to do this in a desktop app written in C#. The answer is in the negative, that's not possible.

[Edit]
-----------

Thanks for your quick response Nishant. I found one desktop application (http://www.fileheap.com/dbquery/1/hard+disk+password+protection+source+code)Its pretty interesting and i want to develop my application same as like the above. But not getting any solution yet...


All of them use low level driver mode stuff to do that. As you can see, one of those tools you listed hides the partitions (won't work on Vista/Windows 7 it seems).

The short answer is that writing such tools involve a lot of work, and low-level system awareness. It's not the sort of thing that can be answered through a Quick-Answers forum.
 
Share this answer
 
v3
Alternative approach
----------------------

Set user-permissions on different folders and restrict access to specific users. This can be managed from a desktop app provided it has enough permissions to add/manipulate users and file permissions. That'd be a simpler approach to trying to do this at the kernel level.
 
Share this answer
 
Thanks for your quick response Nishant. I found one desktop application (http://www.fileheap.com/dbquery/1/hard+disk+password+protection+source+code)Its pretty interesting and i want to develop my application same as like the above. But not getting any solution yet...
 
Share this answer
 
Comments
Nish Nishant 3-Nov-10 12:46pm    
All of them use low level driver mode stuff to do that. As you can see, one of those tools you listed hides the partitions (won't work on Vista/Windows 7 it seems).

The short answer is that writing such tools involve a lot of work, and low-level system awareness. It's not the sort of thing that can be answered through a Quick-Answers forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900