Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know whether the keyboard or mouse connected to the PC. Firstly, I try to using WMI to retrive these information. But I found that whether the keyboard or mouse connected to PC, the program I wrote shows these devices are OK,and the status of these devices in Device Manager are ok also. So, how i can get the status of these devices using C#? Thanks!
Posted

1 solution

Please check Keyboard, Mouse Status[^]
 
Share this answer
 
Comments
hjgc2001 12-Nov-13 9:31am    
Thank you for the quick reply. But as to Jochen Arndt also said, it's not correctly for PS/2. In addtion, the solution in Björn Ranft is not effeciently also, because it's just the method I hvav used. Is there more solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900