I'm not sure if you already have a working solution, but if not, I found an app called USB Disk Ejector. I'm not sure of the quality of the source code for it, but it was written in Delphi, so should be fairly easy to integrate this code into the Menu.
I read that the application currently only works in XP and Vista, but with the team of developers we now have for the menu, it shouldn't be too difficult to adapt to work with other Windows versions as well.
The source code is not available from the application's page, but is available at the bottom of their full list of software.
Here is a direct link to the source code as well.
i am working on a paf app that can work from the menu, but integrating will prob be better
Please search before posting. ~Thanks
ejectscript on this forum... its do that...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
I know the ejectscript does that, but that's just a script, not Delphi source code that can be integrated directly into the menu.
The developer formerly known as ZGitRDun8705
That makes 3. I posted this, someone else did recently, now you did. However, I didn't know it was open source.
Awe, now you make a launcher for it?
Hmm isn't there a way to call the 'eject' functionality directly.
Something like this, some noobish exe is called by pushing the eject button of the USB drive. Then that noobish exe which is in memory checks for the menu running. When it doesnt detect the menu running anymore it calls the windows "it is save to remove your usb device" and ends itself.
But this noobish exe won't know wether or not there were other portable apps started. Well a launcher could write to a shared ini and write again that it has been stopped to have some list of portable apps running. And the eject could make a warning "cant be ejected because there are still apps running' message. It's not cool to just close any apps open because that might result in loss of not saved data. (I think windows throws that message regardless)
Hmm. it's an anoying dilemma which almost makes the eject button practically useless
Whats next, you click eject, and your USB stick drops on the floor as it is been ejected from the PC?
is what ejectscript does...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
It isn't open source under an OSI license. And some of the code within it comes from an unknown source... so copyright/license is unknown.
Sometimes, the impossible can become possible, if you're awesome!