954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

code for detecting usb devices

I am developing a Windows Form Application using Visual
Studio.NET using the C# language. The application will
run on a "standard" PC that is running Windows XP. The PC
has a USB hub with two device connectors.

I need to be able to detect when a keyboard and/or mouse
is connected/disconnected to/from the USB ports.

How can I do this? Are there system events for this?

the code can be in C or vb.net too

anu_dinoo
Newbie Poster
4 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

I don't know if you've posted in other forums, but Java cannot give you the things you are looking for... that's the job of the operating system itself, and that generally means you need to write it in C (which you can then link in to Java via JNI, if you really must do so).

lybarger999
Newbie Poster
3 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You