Is this a fault of Microsoft???

I am having problems with receiving removal notifications when my USB
device is unplugged while the PC is in standby mode. When the PC resumes
I receive the power on notification, pass my device notificaion down
the stack and power on my device. Unfortunately, it appears to then
take on the order of 30 seconds before I get a surprise removal
notification. Sometimes I do not get a removal notification at all.

I have tried detecting the status of my port using
IOCTL_INTERNAL_USB_GET_PORT_STATUS and then triggering
PnP enumeration with IoInvalidateDeviceState or
IoInvalidateDeviceRelations, but when I do this I get a
STOP: 0x000000CA with the message:
“Plug and Play detected an error most likely caused by a faulty
driver.”
Does anyone have any thoughts on how to handle this situation?

Thanks,
Dav

David wrote:

I am having problems with receiving removal notifications when my USB
device is unplugged while the PC is in standby mode. When the PC resumes
I receive the power on notification, pass my device notificaion down
the stack and power on my device. Unfortunately, it appears to then
take on the order of 30 seconds before I get a surprise removal
notification. Sometimes I do not get a removal notification at all.

Unfortunately, this is just the way the OS works. You’ll need to revise
your driver so it can tolerate having the hardware be gone even though
you’re trying to power it back on.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com

Not sure – did you look at
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B810090#2.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David
Sent: Thursday, July 03, 2003 3:16 AM
To: NT Developers Interest List
Subject: [ntdev] Is this a fault of Microsoft???

I am having problems with receiving removal notifications when my USB
device is unplugged while the PC is in standby mode. When the PC
resumes
I receive the power on notification, pass my device notificaion down
the stack and power on my device. Unfortunately, it appears to then
take on the order of 30 seconds before I get a surprise removal
notification. Sometimes I do not get a removal notification at all.

I have tried detecting the status of my port using
IOCTL_INTERNAL_USB_GET_PORT_STATUS and then triggering
PnP enumeration with IoInvalidateDeviceState or
IoInvalidateDeviceRelations, but when I do this I get a
STOP: 0x000000CA with the message:
“Plug and Play detected an error most likely caused by a faulty
driver.”
Does anyone have any thoughts on how to handle this situation?

Thanks,
Dav


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com