Does anyone know how I can stop a USB flash disk (aka "Pendrive", "USB disk") on Win2k from within my application?
When such a device is plugged in, I get an extra drive letter and an icon appears in the system tray to "Unplug or Eject Hardware". Clicking it activates a popup menu with the option "Stop USB Mass Storage Device - Drive(X: )". If I unplug it without doing that, Windows gives me an "unsafe removal of device" warning.
I've got two problems here:
First of all, my application runs full screen, and the taskbar is hidden, so users can't access that icon.
Second, my application runs on a touch screen, so even if the taskbar would be visible, it would still be quite difficult to operate, because the system tray is too small.
So I basically want to make my own "Stop USB Device" option in my application, but I have no idea how to do this. Is there a win32 API function to do that?
Does anyone know how I can stop a USB flash disk (aka "Pendrive", "USB disk") on Win2k from within my application?
When such a device is plugged in, I get an extra drive letter and an icon appears in the system tray to "Unplug or Eject Hardware". Clicking it activates a popup menu with the option "Stop USB Mass Storage Device - Drive(X: )". If I unplug it without doing that, Windows gives me an "unsafe removal of device" warning.
I've got two problems here:
First of all, my application runs full screen, and the taskbar is hidden, so users can't access that icon.
Second, my application runs on a touch screen, so even if the taskbar would be visible, it would still be quite difficult to operate, because the system tray is too small.
So I basically want to make my own "Stop USB Device" option in my application, but I have no idea how to do this. Is there a win32 API function to do that?
Hi Gurus ,
sorry for using very old thread. I have exactly same probelm described above, Any help?
If you feel this post is useful, Rate this Post by clicking right top corner(Rate this Post) Santhosh
Bookmarks