Hi all,
I want to disable a port of USB according to USB device ID and No. of port.
I find follow controlcode in usbioctrl.h

#define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
USB_IOCTL_INDEX+13, \
METHOD_BUFFERED, \
FILE_ANY_ACCESS)

#define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
USB_IOCTL_INDEX+14, \
METHOD_BUFFERED, \
FILE_ANY_ACCESS)

soï¼?I think it should can do, but I don't know how to do.

Re: How can I use DeviceIOContorol() to disable port of USB? by Doron

Doron
Thu Aug 04 01:56:01 CDT 2005

these are not suported by the usb core (even though they are defined).

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"alucard" <alucard@discussions.microsoft.com> wrote in message
news:96B93EC8-2F62-440A-8DB8-456D30B53552@microsoft.com...
> Hi all,
> I want to disable a port of USB according to USB device ID and No. of
> port.
> I find follow controlcode in usbioctrl.h
>
> #define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> USB_IOCTL_INDEX+13, \
> METHOD_BUFFERED, \
> FILE_ANY_ACCESS)
>
> #define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> USB_IOCTL_INDEX+14, \
> METHOD_BUFFERED, \
> FILE_ANY_ACCESS)
>
> so,I think it should can do, but I don't know how to do.
>



Re: How can I use DeviceIOContorol() to disable port of USB? by alucard

alucard
Thu Aug 04 02:37:04 CDT 2005

oh! It's too bad!
Could you please tell me that is there have anyother way to disable a port
of USB (not all ports)?

"Doron Holan [MS]" wrote:

> these are not suported by the usb core (even though they are defined).
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "alucard" <alucard@discussions.microsoft.com> wrote in message
> news:96B93EC8-2F62-440A-8DB8-456D30B53552@microsoft.com...
> > Hi all,
> > I want to disable a port of USB according to USB device ID and No. of
> > port.
> > I find follow controlcode in usbioctrl.h
> >
> > #define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> > USB_IOCTL_INDEX+13, \
> > METHOD_BUFFERED, \
> > FILE_ANY_ACCESS)
> >
> > #define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> > USB_IOCTL_INDEX+14, \
> > METHOD_BUFFERED, \
> > FILE_ANY_ACCESS)
> >
> > so,I think it should can do, but I don't know how to do.
> >
>
>
>

Re: How can I use DeviceIOContorol() to disable port of USB? by Doron

Doron
Thu Aug 04 09:48:16 CDT 2005

there is no supported OS mechanism for that.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"alucard" <alucard@discussions.microsoft.com> wrote in message
news:54C5F1C9-1F16-4EA7-8BE4-55EFF067FF74@microsoft.com...
> oh! It's too bad!
> Could you please tell me that is there have anyother way to disable a port
> of USB (not all ports)?
>
> "Doron Holan [MS]" wrote:
>
>> these are not suported by the usb core (even though they are defined).
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "alucard" <alucard@discussions.microsoft.com> wrote in message
>> news:96B93EC8-2F62-440A-8DB8-456D30B53552@microsoft.com...
>> > Hi all,
>> > I want to disable a port of USB according to USB device ID and No. of
>> > port.
>> > I find follow controlcode in usbioctrl.h
>> >
>> > #define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
>> > USB_IOCTL_INDEX+13, \
>> > METHOD_BUFFERED, \
>> > FILE_ANY_ACCESS)
>> >
>> > #define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
>> > USB_IOCTL_INDEX+14, \
>> > METHOD_BUFFERED, \
>> > FILE_ANY_ACCESS)
>> >
>> > so,I think it should can do, but I don't know how to do.
>> >
>>
>>
>>



Re: How can I use DeviceIOContorol() to disable port of USB? by alucard

alucard
Thu Aug 04 22:17:01 CDT 2005

Oh! I see...
Thank you for your reply! I appreciated!

"Doron Holan [MS]" wrote:

> there is no supported OS mechanism for that.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "alucard" <alucard@discussions.microsoft.com> wrote in message
> news:54C5F1C9-1F16-4EA7-8BE4-55EFF067FF74@microsoft.com...
> > oh! It's too bad!
> > Could you please tell me that is there have anyother way to disable a port
> > of USB (not all ports)?
> >
> > "Doron Holan [MS]" wrote:
> >
> >> these are not suported by the usb core (even though they are defined).
> >>
> >> d
> >>
> >> --
> >> Please do not send e-mail directly to this alias. this alias is for
> >> newsgroup purposes only.
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> "alucard" <alucard@discussions.microsoft.com> wrote in message
> >> news:96B93EC8-2F62-440A-8DB8-456D30B53552@microsoft.com...
> >> > Hi all,
> >> > I want to disable a port of USB according to USB device ID and No. of
> >> > port.
> >> > I find follow controlcode in usbioctrl.h
> >> >
> >> > #define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> >> > USB_IOCTL_INDEX+13, \
> >> > METHOD_BUFFERED, \
> >> > FILE_ANY_ACCESS)
> >> >
> >> > #define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> >> > USB_IOCTL_INDEX+14, \
> >> > METHOD_BUFFERED, \
> >> > FILE_ANY_ACCESS)
> >> >
> >> > so,I think it should can do, but I don't know how to do.
> >> >
> >>
> >>
> >>
>
>
>

Re: How can I use DeviceIOContorol() to disable port of USB? by marty

marty
Mon Apr 16 12:12:04 CDT 2007

Looking for a status update - is this still the case?

I need to do the same thing. (Manually cycle enable/disable of
a specific USB port)

Can you direct me to related documentation in hopes of finding an alternative?

"alucard" wrote:

> Oh! I see...
> Thank you for your reply! I appreciated!
>
> "Doron Holan [MS]" wrote:
>
> > there is no supported OS mechanism for that.
> >
> > d
> >
> > --
> > Please do not send e-mail directly to this alias. this alias is for
> > newsgroup purposes only.
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> >
> > "alucard" <alucard@discussions.microsoft.com> wrote in message
> > news:54C5F1C9-1F16-4EA7-8BE4-55EFF067FF74@microsoft.com...
> > > oh! It's too bad!
> > > Could you please tell me that is there have anyother way to disable a port
> > > of USB (not all ports)?
> > >
> > > "Doron Holan [MS]" wrote:
> > >
> > >> these are not suported by the usb core (even though they are defined).
> > >>
> > >> d
> > >>
> > >> --
> > >> Please do not send e-mail directly to this alias. this alias is for
> > >> newsgroup purposes only.
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >>
> > >>
> > >> "alucard" <alucard@discussions.microsoft.com> wrote in message
> > >> news:96B93EC8-2F62-440A-8DB8-456D30B53552@microsoft.com...
> > >> > Hi all,
> > >> > I want to disable a port of USB according to USB device ID and No. of
> > >> > port.
> > >> > I find follow controlcode in usbioctrl.h
> > >> >
> > >> > #define IOCTL_USB_HCD_DISABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> > >> > USB_IOCTL_INDEX+13, \
> > >> > METHOD_BUFFERED, \
> > >> > FILE_ANY_ACCESS)
> > >> >
> > >> > #define IOCTL_USB_HCD_ENABLE_PORT CTL_CODE(FILE_DEVICE_USB, \
> > >> > USB_IOCTL_INDEX+14, \
> > >> > METHOD_BUFFERED, \
> > >> > FILE_ANY_ACCESS)
> > >> >
> > >> > so,I think it should can do, but I don't know how to do.
> > >> >
> > >>
> > >>
> > >>
> >
> >
> >