Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > USB device driver and Application using the driver

Reply
Thread Tools Display Modes

USB device driver and Application using the driver

 
 
Padmakumar
Guest
Posts: n/a

 
      08-23-2003
We are trying to develop a USB device driver(which
support bulk data transfer) and Embedded VC++
application that uses the driver. We are
using the WINCE operating system and Pocket PC SDK 2002.
The device is COMPAQ iPAQ. We are also using the Ratoc
Systems USB Host Card adapter.

A similar third party driver is available in WIN2K. In
WIN2K it is possible from the application to wait on the
GUID (which is mentioned in the .inf file) of the usb
device to know the device status. Also application can
enumerate the device to get the name of the device. The
application is able to open the device using CreateFile
function because the driver supports the
stream interface.

While designing the driver and application we couldn't
find any APIs in WINCE which support the device
enumeration from the application. It is mentioned that if
the driver is using the function ActivateDevice /
DeactivateDevice the system will notify all the
applications with a event
NOTIFICATION_EVENT_DEVICE_CHANGE and a message
WM_DEVICECHANGE will be brodcasted. I couldn't find
anything more than this in the MSDN (Oct 2001).

How could I wait on the event
(NOTIFICATION_EVENT_DEVICE_CHANGE ) or on
the message (WM_DEVICECHANGE ) in the application? Is it
possible to enumerate the device and find the device
name ? If possible how can I do that? If not
possible is there any other method to find whether
connected/disconnected device is the one which i'm
waiting for?

If you can answer these questions it will be very helpful
for us to proceed with our development. It would be nice
if you can give us some example code examples too.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
After you install a device or update a driver for a device, help!! Papz Windows Vista General Discussion 5 03-11-2007 02:32 PM
Re: Driver update application Slobodan Brcin Windows Vista Drivers 2 08-22-2003 12:20 PM
How to install mirror driver from application? Josef Vesely Windows Vista Drivers 0 08-18-2003 01:11 PM
Class Filter Driver & Device Filter Driver Megasus Windows Vista Drivers 1 07-11-2003 02:49 PM
Re: Driver is not seen in ***DEVICE MANAGER*** but the device works Maxim S. Shatskih Windows Vista Drivers 1 07-10-2003 03:48 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59