Smurf
Smurf

Reputation: 21

Monitor USB traffic

I want to view all traffic going out the USB, with the potential to block data transactions to/from the USB based on content policy. How would this be done? Any way to achieve this in C#, or is it more of a C++ type of problem?

Upvotes: 0

Views: 3901

Answers (2)

Messy
Messy

Reputation: 1553

i don't know if this helps, but the #usblib project has been around for many years.

http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

Upvotes: 0

Jeremy Morgan
Jeremy Morgan

Reputation: 3372

You can use things like CreateFile() and DeviceIoControl() to handle this, but it's not going to be as easy as it sounds. Are you wanting to monitor all traffic from every possible device that could be plugged in?

Upvotes: 1

Related Questions