Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending vendor-defined requests

1 view
Skip to first unread message

Danny

unread,
Apr 6, 2005, 4:09:27 PM4/6/05
to
This group seems eerily empty but on the off chance that someone may
actually be reading by mistake, here goes...

I want to send vendor-defined requests to a USB device (a Nikon
scanner). I've got the codes, descriptor structures, etc.

Two caveats: I'm doing this on a W98 machine and using VB6. BTW, don't
tell me to go to a VB group, because I just came from there... ;o)

The story so far: I've identified the driver for the scanner as
"\\.\usbscan0" which I'm hardcoding in CreateFile as port name to get
the device handle. I feed this handle to DeviceIoControl to actually
make the calls. That's pretending to work because I'm able to make
IOCTL_GET_CHANNEL_ALIGN_RQST, IOCTL_GET_VERSION and
IOCTL_GET_DEVICE_DESCRIPTOR calls which all work as advertised.

However, many other similarly non-destructive calls don't work, but
instead of wasting time on that I'd like some hints on
IOCTL_SEND_USB_REQUEST.

This call fails (bRet is False) and the last DLL error is reported as
"50, ERROR_NOT_SUPPORTED, The network request is not supported.". I
find this very odd not only because of the wording ("network"?) but,
if true, that such a basic call would not be supported!?

Anyway, any hints would be most welcome. Thanks!

BTW, this is a private project and I've been pulling my hair for
months trying to talk to USB which seems such an elementary thing to
do. I want use as low a level as possible so I don't have to worry
about the massive abstraction ("obstruction") stack of layers sitting
on top.

Danny

(You guessed it! Remove NOSPAMFOR before emailing.)

0 new messages