Hello,

I don't have much experience with Windows platform development, so I
hope someone can point me in the right direction.

I need to send a vendor-specific request to a USB device. I know the
bmRequestType, bRequest, wValue, wIndex, etc, that I need to send. I
just can't piece together how to do it on Windows.

I've figured out how to enumerate USB devices, and can find the
device, and open a handle to it with CreateFile(), but I'm stumped as
to what I need to pass to DeviceIoControl(). Or even if
DeviceIoControl() is the right avenue for this.

Spent most of yesterday searching the net for information on this and
was surprised at how little I could find. Hope someone out there can
shed some light.

Thanks in advance,

Steven

Re: USB newbie: Sending a vendor-specific request to a USB device by Doron

Doron
Tue Dec 09 21:45:43 CST 2003

you need to write a driver. walter oney's book (2nd edition) is a very good
starting point.

d

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steven Frank" <stevenf@panic.com> wrote in message
news:7d9ba055.0312091100.5803c8d5@posting.google.com...
> Hello,
>
> I don't have much experience with Windows platform development, so I
> hope someone can point me in the right direction.
>
> I need to send a vendor-specific request to a USB device. I know the
> bmRequestType, bRequest, wValue, wIndex, etc, that I need to send. I
> just can't piece together how to do it on Windows.
>
> I've figured out how to enumerate USB devices, and can find the
> device, and open a handle to it with CreateFile(), but I'm stumped as
> to what I need to pass to DeviceIoControl(). Or even if
> DeviceIoControl() is the right avenue for this.
>
> Spent most of yesterday searching the net for information on this and
> was surprised at how little I could find. Hope someone out there can
> shed some light.
>
> Thanks in advance,
>
> Steven



Re: USB newbie: Sending a vendor-specific request to a USB device by Zhendong

Zhendong
Wed Dec 10 01:23:23 CST 2003

Hello,

I think MS should provide some way to pass a vendor-specific request to a
USB device
without a driver. I mean a control pipe request, not bluk pipe request.

At least, for a usb mass storage device, sometimes, user need send a
Bulkonly Class Reset(be used for USB Mass Storage Class) request to the
device.

Thanks in advance

Zhendong Wu

"Doron Holan [MS]" <doronh@online.microsoft.com> wrote in message
news:un2WQAtvDHA.2712@tk2msftngp13.phx.gbl...
> you need to write a driver. walter oney's book (2nd edition) is a very
good
> starting point.
>
> d
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Steven Frank" <stevenf@panic.com> wrote in message
> news:7d9ba055.0312091100.5803c8d5@posting.google.com...
> > Hello,
> >
> > I don't have much experience with Windows platform development, so I
> > hope someone can point me in the right direction.
> >
> > I need to send a vendor-specific request to a USB device. I know the
> > bmRequestType, bRequest, wValue, wIndex, etc, that I need to send. I
> > just can't piece together how to do it on Windows.
> >
> > I've figured out how to enumerate USB devices, and can find the
> > device, and open a handle to it with CreateFile(), but I'm stumped as
> > to what I need to pass to DeviceIoControl(). Or even if
> > DeviceIoControl() is the right avenue for this.
> >
> > Spent most of yesterday searching the net for information on this and
> > was surprised at how little I could find. Hope someone out there can
> > shed some light.
> >
> > Thanks in advance,
> >
> > Steven
>
>