Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi All,

i want to create a tool for password protecting any application before execution in windows platform.

when an application is going to execute, before that i want to display a dialog box for entering password. if the password is correct then application will start execution, if password is wrong then application will not start.

its urgent please help me out to solve this.

please give me any sample source code or suggestion.

Advance Thanks to all of you.
Posted
Updated 30-May-11 20:54pm
v2

>>EDIT, the solution is obsolete as I though you are asking for .NET app, sorry.
Kind regards
 
Share this answer
 
v2
--> right click on your edit control and set property 'Password" as true
--> you can use database or .txt file to validate the password
ie user entry in the edit controlis matching with the password/passwords given in .txt or databse
--> if you dont want user to close window ( using ctrl+alt+delete/ alt+F4 /esc ) , swap between applications ( using alt+tab ) then use "systemparameterinfo" API :-)
 
Share this answer
 
Comments
Jayant Narayan Dash 3-Jun-11 2:42am    
i dont want this for my application. i m looking for all other applications running on windows

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