WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

WinUSB: How to tell if the device has gone

 
   Home -> Windows -> Device Driver RSS
Next:  New Computer Boots Very Slowly..  
Author Message
bill252

External


Since: Nov 18, 2004
Posts: 7



(Msg. 1) Posted: Fri Aug 22, 2008 2:55 pm
Post subject: WinUSB: How to tell if the device has gone
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

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
Back to top
Login to vote
Doron Holan [MSFT]

External


Since: Jul 02, 2007
Posts: 23



(Msg. 2) Posted: Fri Aug 22, 2008 2:56 pm
Post subject: Re: WinUSB: How to tell if the device has gone [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.DeleteThis@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
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows -> Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
  Windows XP
 Windows Vista
 Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET