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.
>> >
>>
>>
>>