wdm USB ioctl

hello,

I am trying to figure something out.

The end goal is to disable all usb ports on my dell laptop and allow EXACTLY one usb 2.0 port enabled.

I figured that I can disable hubs in the device manager. There are 4 hubs…3 control what appears to be the 3 USB connectors with usb 1.0. One hub controls all the all the ports for usb 2.0.

so I disabled all but the usb 2.0 hub. So that got rid of any USB 1.0 connections.

(note: I have to do this without touching the bios…it all has to be done via windows)

The problem is that I can still connect multiple USB 2.0 devices but I only want to allow ONE USB 2.0 device to connect. I can ignore the case where someone connects an external USB hub to the single port.

I compiled the “usbview” tool in the ddk to take a look at some usb info.
the usb 2.0 hub controls 6 ports. I want to disable all but one.

I saw that there is a disable port ioctl for the USB driver (found in the ddk header for usb) but there is no documentation on what structure to pass to the IOCTL.

anyone got any suggestions?


Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!