4

I have an environment where two (2) keyboards and two (2) mice are connected to a PC that may be running XP or Win7. The purpose is to allow co-user interactions for training on a desktop. At times I need a way to disable the 2nd kb/mouse for all user interactions. I'm guessing this could be done either at the device HID level or at the USB level but need some C#/VB code that I could integrate into a system tray application.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Robert Fleming
  • 145
  • 4
  • 15
  • 1
    I have edited your title. Please see, "[Should questions include “tags” in their titles?](http://meta.stackexchange.com/questions/19190/)", where the consensus is "no, they should not". – John Saunders Feb 27 '13 at 21:29

1 Answers1

0

I don't see anything in window hooks that would tell you the source of the input and block it at that level.

You could go down the route of actually disabling the hardware completely through windows: Programmatically enabling/disabling hardware device

Community
  • 1
  • 1
Gary Johnson
  • 885
  • 7
  • 11