Jump to content

How to lock the keyboard in C#?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Gabriel_Munits

Gabriel_Munits

    Newbie

  • Members
  • Pip
  • 1 posts
Hello everybody,

How can I attach a function to my program that will lock the keyboard to the user that will run it??
I want that Ctrl+Alt+Delete also will not work.
I am working in visual studio 2010.
Maybe something with the registry???

Every thing will be accepted!!


Thank you!!

#2
taburetka

taburetka

    Newbie

  • Members
  • PipPip
  • 11 posts
In c# you can use low level keyboard hook (WH_KEYBOARD_LL), it should work but you'll need a DLLImport to use such WinAPI function as SetWindowsHookEx and UnhookWindowsHookEx.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users