Marc
Sat Feb 28 09:32:22 CST 2004
"Zhen" <zhenx@initio.com> wrote in message
news:e9U%b.3862$%k.886@newssvr27.news.prodigy.com...
> I'm trying to write a application that is able to send vendor unique
reqeust
> to our USB device. I tried USBView in DDK, but it doesn't work on my XP
box.
> It always fails in IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX.
>
> Is there any documentation related with USB userland app? The DDK
> documentation is all about writing a driver, which I'm trying to avoid
here.
See CreateFile(), DeviceIoControl(), CloseHandle (also see ReadFile() and
WriteFile() ).
Three excellent books on USB are:
* "USB Complete" Jan Axelson, Lakeview Research,
http://www.lvr.com
* "USB Design by Example", John Hyde, Intel Press
* "Universal Serial Bus System Architecture", Don Anderson, MindShare
The first two are excellent general USB references with lots of good
implementation examples. Be sure and check out Jan's web site, there's lots
of good info there. The third is an excellent detailed reference on how USB
works but is very thin on implementation examples.
*THE* book on writing WDM drivers is, "Programming the Windows Driver
Model", Second Edition, Oney, Microsoft Press.
Marc Reinig
System Solutions