Archived

This topic is now archived and is closed to further replies.

Tanuj

Implementing password protected folders

Recommended Posts

The idea is that whenever the user clicks on some protected folder, he/she is asked for the password and denied access without it. Although this is build into the Win NT branch i''m interested in doing this on Win95/98/ME. I''ve read about the system hooks available but they only allow hooking of keyboard/mouse actions or del/copy/move activity.To implement protected folders i believe i will have to find out whenever the Api functions that read directory contents are called. Is there any way of doing this?There are products in the market that implement this functionality, so does anyone have any idea how?

Share this post


Link to post
Share on other sites
A big problem is that Win9x isn''t in any way secure - you could ask for a password to get into the folder, but that wouldn''t stop anyone from restarting the machine in DOS mode and accessing the files that way!.

A better solution under Windows9x would be to implement a virtual file system. Think of a .ZIP file - it is really one file on the disk, can be password protected and actually contains multiple files.

You could implement a system where double clicking on a .ZIP file (or your own equivilent) asked for a password and then made the files appear when the password was correctly entered.

Regardless of the method you use, look at the documentation for the Shell - this is how programs are able to extend Internet Explorer and Windows File Explorer.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites