在执行任何应用程序之前询问密码. [英] ask a password before execution of any application.

查看:108
本文介绍了在执行任何应用程序之前询问密码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想创建一个用于在Windows平台上执行之前保护任何应用程序的密码的工具.

当应用程序要执行时,在此之前我想显示一个用于输入密码的对话框.如果密码正确,则应用程序将开始执行;如果密码错误,则应用程序将无法启动.

紧急,请帮我解决这个问题.

请给我任何示例源代码或建议.

前进感谢大家.

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.

推荐答案

>>> EDIT,由于您虽然要求使用.NET应用程序,但该解决方案已经过时了. > 亲切的问候
>>EDIT, the solution is obsolete as I though you are asking for .NET app, sorry.
Kind regards


->右键单击您的编辑控件,然后将属性"Password"设置为true
->您可以使用数据库或.txt文件来验证密码
也就是说,编辑控件中的用户输入与.txt或databse中给出的密码/密码匹配
->如果您不希望用户关闭窗口(使用ctrl + alt + delete/alt + F4/esc),请在应用程序之间交换(使用alt + tab),然后使用"systemparameterinfo" API:-)
--> 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 :-)


这篇关于在执行任何应用程序之前询问密码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆