WinUSB: How to tell if the device has gone

Posted: 08-22-2008, 02:55 PM
At present, I send a control port message and do not get a reply and the
error code is something about a device is not functoning. Is there anyway
to find out that this has happened without doing the control transfer? I'd
like to know so that (a) I can tell the user that the device has gone away,
and (b) perhaps relate its going away to something else happening in the
system at the same time.

From USBTrace I know that nothing goes down the stack to the USB bus.

TIA,
Bill


Reply With Quote

Responses to "WinUSB: How to tell if the device has gone"

Doron Holan [MSFT]
Guest
Posts: n/a
 
Re: WinUSB: How to tell if the device has gone
Posted: 08-22-2008, 05:43 PM
register for pnp handle notifications on the HANDLE that you opened with
RegisterDeviceNotification. you will be told when the usb device has been
unplugged

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.


"Bill Davy" <Bill@SynectixLtd.com> wrote in message
news:u0LAM7FBJHA.2476@TK2MSFTNGP06.phx.gbl...
> At present, I send a control port message and do not get a reply and the
> error code is something about a device is not functoning. Is there anyway
> to find out that this has happened without doing the control transfer?
> I'd like to know so that (a) I can tell the user that the device has gone
> away, and (b) perhaps relate its going away to something else happening in
> the system at the same time.
>
> From USBTrace I know that nothing goes down the stack to the USB bus.
>
> TIA,
> Bill
>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Winusb - multi device multi application xxx Windows XP Device Drivers 1 01-26-2008 08:59 PM
WinUSB help needed - setup packet with non-zero length. FlownTheCoop Windows XP Device Drivers 0 09-18-2007 10:04 AM
WinUSB in the WDK ... Mark Cerreta Windows XP Device Drivers 1 09-07-2007 02:38 AM
winusb driver damir Windows XP Device Drivers 4 08-26-2006 11:51 PM
1394 device not identified after updates- "61338 Device Class- Unknown Device" error. NP Windows XP Basics 4 01-04-2004 05:29 PM