Dear Developers,
When I use IOCTL_INTERNAL_USB_CYCLE_PORT, the Desktop displays a “Unsafe Removal” Dialog box.
If I set, SurpriseRemovalOK in DEVICE_CAPABILITIES to TRUE, this dialog box is not displayed. But the TrayIcon to “Stop” the device is not displayed.
I want the Tray Icon to be displayed for the user to be able to stop the device and remove it properly. But at the same time I want to use IOCTL_INTERNAL_USB_CYCLE_PORT without the “Unsafe Removal” warning.
Is there any way out?
Thanks and regards,
Venkateswaran Kasirajan,
I don’t think so. The IOCTL_INTERNAL_USB_CYCLE_PORT basically simulates a
surprise-removal of the device and the tray icon is for hot plug-in devices
that shouldn’t be surprise removed. So you know the relation.
-Eliyas
-----Original Message-----
From: Venkateswaran Kasirajan [mailto:xxxxx@shuttletech.co.in]
Sent: Monday, July 24, 2000 6:59 AM
To: NT Developers Interest List
Subject: [ntdev] USB Cycle Port
Dear Developers,
When I use IOCTL_INTERNAL_USB_CYCLE_PORT, the Desktop displays a “Unsafe
Removal” Dialog box.
If I set, SurpriseRemovalOK in DEVICE_CAPABILITIES to TRUE, this dialog box
is not displayed. But the TrayIcon to “Stop” the device is not displayed.
I want the Tray Icon to be displayed for the user to be able to stop the
device and remove it properly. But at the same time I want to use
IOCTL_INTERNAL_USB_CYCLE_PORT without the “Unsafe Removal” warning.
Is there any way out?
Thanks and regards,
Venkateswaran Kasirajan,