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,