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
536 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

772 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

17 Experts available now in Live!

Get 1:1 Help Now