Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

admin exit only, cancel cntrl-alt-delete?

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
I have a program that I want to run on the local computers. I want the administrator to be the only one with the password capable of exiting the program. Right now though, it can be closed via ctrl-alt-delete.

Is there a way to have that wait to see if the user enters the correct password, and if they don't then cancel the exiting of the program? I already have it setup for password verification through normal exit, and I also entered the same code in the form_unload procedure so it would be executed when the program was being exited through ctrl-alt-del. I just need to know how to keep windows from exiting the program until it can be properly verified.

Anyone know? -Ovatvvon :-Q
 
What operating system?

Problem is that Windows needs to be able to shut down applications. 95 & 98 don't have the proper security to do what you want.
 
While I'd like it to be able to control all this through the program in each opporating system, it is more important and will mainly be used in the NT environments. Windows 2000 specifically, but also xp.

So it is possible to keep the program from being closed without admin authorization on NT machines?

Could you tell me how to do it, or where I can find out how to do it? -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top