Re: WinUSB: How to tell if the device has gone



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@xxxxxxxxxxxxxxx> wrote in message news:u0LAM7FBJHA.2476@xxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: startup programs load notification;
    ... use a service and register to be notified of session changes, these types of notifications do not exist in kernel mode ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • Re: WM_DEVICECHANGE PARAMETERS
    ... of course you can register for multiple notifications. ... for keyboards you should GUID_DEVINTERFACE_KEYBOARD, ... Please do not send e-mail directly to this alias. ... Can I register multiple times for this? ...
    (microsoft.public.development.device.drivers)
  • Re: dont get the removecomplete message from the window XP.
    ... are you registering for pnp notifications on the *file* handle that you open ... Please do not send e-mail directly to this alias. ... USB Device which also support serial communication. ... I monitors device arrival/removal notification (Serial Port), ...
    (microsoft.public.development.device.drivers)
  • Re: Behaviour of USB Device in low powered state
    ... Please do not send e-mail directly to this alias. ... similarly i want the system wake when the device is disconnected too. ... notification to my driver when a USB device gets disconnected. ...
    (microsoft.public.development.device.drivers)
  • Re: Behaviour of USB Device in low powered state
    ... Please do not send e-mail directly to this alias. ... notification to my driver when a USB device gets disconnected. ... some reason then the user need to be intimated and hence i need to wake ...
    (microsoft.public.development.device.drivers)