Solved

Under Win NT environment how to disable Alt-Tab, Ctrl-Esc and Ctrl-Alt-Del by using VB ?

Posted on 2000-03-06
1
539 Views
Last Modified: 2009-12-16
I want to disable Alt-Tab, Ctrl-Esc and Ctrl-Alt-Del while my application is running in Win NT4.0 environment. Can someone tell me how to do it by using visual basic ? Thank you.
0
Comment
Question by:johnlys
1 Comment
 
LVL 2

Accepted Solution

by:
danelroisman earned 50 total points
ID: 2588748
You can disable CTRL+ESC on a system-wide basis by replacing the NT Task Manager. This is not recommended.

You can disable ALT+TAB and ALT+ESC while a particular application is running if that application registers hotkeys for those combinations with Register HotKey().

Another mechanism to disable these key combinations, as well as the newer Windows key, is to use a low level keyboard hook (WH_KEYBOARD_LL).API -SetWindowsHookEx().
This hook is available on Windows NT 4.0 Service Pack 3 and later. The low level keyboard hook can also detect CTRL+ALT+DEL, but it cannot disable it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now