Disabling keys ????

Hello, I am currently designing a game where you can only exit the program once you have completed a section. There still is a way to get out though,

CTRL - ALT - DLT

Is there some code that will allow me to disable these keys Or atleast diable Task Manager

Thanks in Advance, Uzzy




Answer this question

Disabling keys ????

  • Vishwas Lele

    That's one keystoke combination I recommend you NOT deal with (and disabling it is NOT friendly - disabling any keys is generally a bad idea). However, you may want to disable the windows key if your application/game runs full screen and is using directX for the game. If it is running in a window, there shouldn't be a reason to disable anything.

    Your best bet is to browse the internet - it isn't native to VB (as it's unneccessary to do what you're asking), and will require some Win32 APIs. It may require also changing some system DLLs to 'trap' CTL+ALT+DEL - in which case it'll be considered a virus.



  • RyanT5000

    LOL. No, its a game for a friend. He wants to see what i can do with VB. I do not intend it to be a virus at all, its a friendly game. Please could someone post the code to disable certain keys please. Thanks, Uzzy

  • _SteveH_

    I agree with SJ. It was easier to in earlier versions of windows... but that's one key combination that is well protected from hooking and any method that is truly effective wouldd be most involved.



  • LiuK

    hi,

    what is the name of this game "No way out"!!!!!!!!!!!

    this is behavior of virus not game

    best regards



  • Disabling keys ????