views:

357

answers:

2

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?

+1  A: 

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?

Jeremy Morgan
A: 

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