TonysOpenSource

Code Snippets and Essays from the spare time

  

Access Denied

AccessDenied is a simple program written to prevent unauthorized access to Windows 9x Computers. It's task is to startup once installed and then ask for a password that is stored in the registry. On startup up the code presents a system modal dialog box that fills the screen and prevents the user from running any of the applications that are on the computer.

WARNING

Once installed it is the task of AccessDenied to prevent access to the computer. While this may not be impossible for someone who knows what they are doing it should be beyond the abilities of the average user. The author does not accept any responsibility for any data lost or any costs occurred or any problems caused through the use or misuse of this software.

When AccessDenied starts up it presents the user with an edit box for the user to enter the password, a check password button and a button to configure the software. The first time the application is run the configure option will be enabled. This will allow the person setting up the program access to the Configuration dialog

When the configuration dialog appears the user can enter the password of there choice and then enter it again in the confirm password box. Finally the user should click on the browse button and locate the AccessDenied executable. Then the Setup AccessDenied button should be pressed which will store all the information in the registry. It will also write a file called Access1.txt to the windows directory which the program checks for on startup. If the text file exists the configure button will be disabled when the application is started. If the Access1.txt file is deleted for any reason the configure button will be enabled when the application starts.

Once AccessDenied has been setup the password will need to be typed in at the main screen in order to be able to access the computer. If the password is wrong the program will set the computer back to the windows login screen. If the password is correct access will be granted to the computer and the AccessDenied program will shut down.

Download the source code

Download the executable