Link to home
Start Free TrialLog in
Avatar of Ranidae
RanidaeFlag for Canada

asked on

Disable Ctrl-Break from logon VBScript

Well, I've got this really nifty VBScrip that runs on all domain users.  It enforces Single Logon rules set up by our enterprise, but canny users have discovered that using Control - Break will get them out of the script and bypass the process that prevents them from having multiple logons.

How do I prevent users from using ctrl-break to stop the script from running?  This is a native Windows 2000 Active Directory environment.  All workstations are 2k.

Thanks in advance.
Avatar of dlwyatt82
dlwyatt82
Flag of Canada image

There are many ways to do this. One that I am familiar with is to use AutoIt (available from http://www.hiddensoft.com ) and use the BlockInput function. I'm sure there is probably an API call you can make from within your VB script to accomplish the same result, but I don't personally know which functions to call.

Avatar of Ranidae

ASKER

Yeah, I'm really hoping someone can tell me what API to call as I really don't want to get into third party solutions.
Actually, if you check out the hiddensoft webpage, the C++ source code to AutoIt is available. You could just look at his implementation of the BlockInput function to find out which API calls you should be researching.
ASKER CERTIFIED SOLUTION
Avatar of dlwyatt82
dlwyatt82
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial