hi
How do I prevent my usb driver from showing up in the Safely Remove Hardware Tray Item?
Is this an inf change?
thanks in advance
hi
How do I prevent my usb driver from showing up in the Safely Remove Hardware Tray Item?
Is this an inf change?
thanks in advance
In case one of you is tempted to tell me to check previous postings (since this has been covered before), the reason I want to block it from showing up in the Safely Remove Hardware tray is that this bus driver exposes virtual serial over usb functionality and needs to be uninstalled after the com port driver.
I just want to block my driver from showing up in that list, but I want my driver functionality to remain the same.
I still want to support surprise remove – since resetting the usb device looks like a surprise remove.
How do I prevent my usb driver from showing up in the Safely Remove Hardware Tray Item?
Is this an inf change
No, this is a flag in DEVICE_CAPABILITIES, which is used in
MN_QUERY_CAPABILITIES path. Pass the IRP down, then catch it via the completion
handling, and patch the SurpriseRemovalOk flag to be set.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “S. Drasnin”
To: “Windows System Software Devs Interest List”
Sent: Monday, February 20, 2006 11:16 PM
Subject: [ntdev] Safely Remove Hardware Tray Item and USB drivers
hi
How do I prevent my usb driver from showing up in the Safely Remove Hardware
Tray Item?
Is this an inf change?
thanks in advance
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
In IRP_MN_QUERY_CAPABILITIES, set SurpriseRemovalOK = 1.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of S. Drasnin
Sent: Monday, February 20, 2006 3:16 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Safely Remove Hardware Tray Item and USB drivers
hi
How do I prevent my usb driver from showing up in the Safely Remove Hardware
Tray Item?
Is this an inf change?
thanks in advance
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Set SurpriseRemovalOK in the DEVICE_CAPABILITIES field for IRP_MN_QUERY_CAPABILITIES when the irp is going up the stack.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of S. Drasnin
Sent: Monday, February 20, 2006 12:16 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Safely Remove Hardware Tray Item and USB drivers
hi
?
How do I prevent my usb driver from showing up in the Safely Remove Hardware Tray Item?
Is this an inf change?
?
?
thanks in advance
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks to everybody that replied.
In my bus driver (similar to toaster sample - it gets loaded when the usb device is plugged in) I added a handler for IRP_MN_QUERY_CAPABILITIES in the Bus_FDO_Pnp handler (handler for the bus itself) and catch the IRP coming back up to set the flag, as you suggested, and it works.
thanks!
----- Original Message -----
From: Doron Holanmailto:xxxxx
To: Windows System Software Devs Interest Listmailto:xxxxx
Sent: Monday, February 20, 2006 12:35 PM
Subject: RE: [ntdev] Safely Remove Hardware Tray Item and USB drivers
Set SurpriseRemovalOK in the DEVICE_CAPABILITIES field for IRP_MN_QUERY_CAPABILITIES when the irp is going up the stack.
d
________________________________________
From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.com] On Behalf Of S. Drasnin
Sent: Monday, February 20, 2006 12:16 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Safely Remove Hardware Tray Item and USB drivers
hi
How do I prevent my usb driver from showing up in the Safely Remove Hardware Tray Item?
Is this an inf change?
thanks in advance
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256http:
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.commailto:xxxxx
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256http:
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.commailto:xxxxx</mailto:xxxxx></http:></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>