Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 107,698 VB.NET Programmers for FREE! Ask your question and get quick answers from experts. There are 1,050 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



disable ctrl-alt-del , alt+f4, and alt-tab

 
Reply to this topicStart new topic

disable ctrl-alt-del , alt+f4, and alt-tab

d_rev
post 2 Jul, 2008 - 04:23 AM
Post #1


New D.I.C Head

*
Joined: 2 Jul, 2008
Posts: 2

hi, everybody. I'm developing an internet cafe software. But, I face problem in disable ctrl-alt-del, alt+f4, and alt+tab when the user haven't login. and to enable it again when the user have already login.
I really appreciate for your help. Thanks
User is offlineProfile CardPM

Go to the top of the page


born2c0de
post 2 Jul, 2008 - 10:16 AM
Post #2


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,716



Thanked 20 times

Dream Kudos: 2800

Expert In: C, C++, VB, VB.NET, C#, Java, x86 Assembly, Win32 API, Reversing

My Contributions


Instead of disabling the keystroke which performs the unwanted action, you could write code to counter the action itself.

For Eg.
  1. Ctrl+Alt+Del :
    Disabling it is not a good idea because the Task Manager can be started in more ways than just Ctrl+Alt+Del.
    The trick is to disable Task Manager from the Registry.
    Create a DWORD Value "DisableTaskMgr" in the Key: "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" and set it to a value of 1.
    Thus any attempt to start the Task Manager will fail.

    If you wish to disable the registry, create a DWORD Value "DisableRegistryTools" and set it to 1 in the same key.

    Note:
    I have found a way to bypass this protection. You can reset this value programatically. In that case, constantly check for the value being 1 and if not, change it to 1.
  2. Alt+Tab :
    The idea is to prevent your app from losing focus.
    Simply write the code to set your app as the window in focus in the form's LostFocus Procedure.
I think you get the idea.
smile.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/30/08 01:32AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month