need to disable individual usb ports on hub.

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!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Public Dissent 2004 wrote:

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.

What is the point of this? I’m constantly surprised at the number of
people on this list who are looking for ways to PREVENT the normal
operation of their computers. Misguided IT departments, I suspect.

Do you have one specific CONNECTOR you want to enable? Or do you just
want to accept one DEVICE, regardless of which USB connector it is in?
The difference is important, although I think the whole concept is kind
of silly.

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.

It isn’t that easy. You usually don’t have dedicated USB 1 slots and
dedicated USB 2 slots. It’s a virtual thing. As I understand it, a
given connector will be handled by the USB 1 controller if you plug in a
USB 1 device, and by the USB 2 controller if you plug in a USB 2
device. Same physical hardware, different view to the O/S.

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.

Then what’s the point? USB hubs cost about $10.

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.

Those 6 ports probably map to individual connectors on the laptop, plus
connectors passing through to the port extender.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Sorry but I am not at liberty to explain who, what, when, or how.

All I can say is this is no different than setting a bios password and turning off com ports.
You may think it is silly, you are intitled to your opinion.
But I dont think what I am asking for is silly.

I dont have to worry about different hardware platforms. So the way the USB ports act now on the platfrorm I am developing for will remain constant. USB1 has 3 hub devices controlling the physical ports. USB2 has 1 hub that drives usb2.0 for all three physical ports. I did not design that…thats how it is how MS has it working.

I can disble all USB1 and I want to disable individual USB2 ports of the single usb2 hub device.

I DONT have to worry about external hubs.

USB IOCTL gives a hint that a single port can be disabled…but there is no documentation for it.

Does anyone have an idea how this IOCTL works and what structures it takes? Can they share this info.

Could I just remove the USB class installers to prevent installation of any USB devices instead?

-PD2k4

“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Public Dissent 2004 wrote:
>
>>
>> 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.
>
>
> What is the point of this? I’m constantly surprised at the number of
> people on this list who are looking for ways to PREVENT the normal
> operation of their computers. Misguided IT departments, I suspect.
>
> Do you have one specific CONNECTOR you want to enable? Or do you just
> want to accept one DEVICE, regardless of which USB connector it is in?
> The difference is important, although I think the whole concept is kind
> of silly.
>
>> 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.
>
>
> It isn’t that easy. You usually don’t have dedicated USB 1 slots and
> dedicated USB 2 slots. It’s a virtual thing. As I understand it, a
> given connector will be handled by the USB 1 controller if you plug in a
> USB 1 device, and by the USB 2 controller if you plug in a USB 2
> device. Same physical hardware, different view to the O/S.
>
>> 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.
>
>
> Then what’s the point? USB hubs cost about $10.
>
>> 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.
>
>
> Those 6 ports probably map to individual connectors on the laptop, plus
> connectors passing through to the port extender.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

you should open an indicident report with Microsoft PSS. If the business need is valid (and you seem to have a company behind you pushing this feature), PSS can tell you what to do (and, no, I don’t know what to do).

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Public Dissent 2004
Sent: Monday, April 25, 2005 7:29 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] need to disable individual usb ports on hub.

Sorry but I am not at liberty to explain who, what, when, or how.
?
All I can say is this is no different than setting a bios password and turning off com ports.
You may think it is silly, you are intitled to your opinion.
But I dont think what I am asking for is silly.
?
I dont have to worry about different hardware platforms.? So the way the USB ports act now on the platfrorm?I am developing for will remain constant.? USB1 has 3 hub devices controlling the physical ports.? USB2 has 1 hub that drives usb2.0??for all three physical ports.? I did not design that…thats how it is how MS has it working.
?
I can disble all? USB1 and?I want to disable individual USB2 ports of the single usb2 hub device.
?
I DONT have to worry about external hubs.
?
USB IOCTL gives a hint that a single port can be disabled…but there is no documentation for it.?
?
Does anyone have an idea how this IOCTL works and what structures it takes?? Can they share this info.
?
Could I just remove the USB class installers to prevent installation of any USB devices instead?
?
-PD2k4
?
“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Public Dissent 2004 wrote:
>
>>?
>> 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.
>
>
> What is the point of this?? I’m constantly surprised at the number of
> people on this list who are looking for ways to PREVENT the normal
> operation of their computers.? Misguided IT departments, I suspect.
>
> Do you have one specific CONNECTOR you want to enable?? Or do you just
> want to accept one DEVICE, regardless of which USB connector it is in??
> The difference is important, although I think the whole concept is kind
> of silly.
>
>> 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.
>
>
> It isn’t that easy.? You usually don’t have dedicated USB 1 slots and
> dedicated USB 2 slots.? It’s a virtual thing.? As I understand it, a
> given connector will be handled by the USB 1 controller if you plug in a
> USB 1 device, and by the USB 2 controller if you plug in a USB 2
> device.? Same physical hardware, different view to the O/S.
>
>> 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.
>
>
> Then what’s the point?? USB hubs cost about $10.
>
>> 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.
>
>
> Those 6 ports probably map to individual connectors on the laptop, plus
> connectors passing through to the port extender.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com