toptensoftware / VBoxHeadlessTray

Run a VirtualBox machine in a tray icon
180 stars 23 forks source link

Tray icon disappears if Explorer crashes #24

Closed adhawkins closed 7 years ago

adhawkins commented 7 years ago

If Explorer crashes while VBoxHeadlessTray is running, the tray icon for the application disappears. Other tray icons correctly recreate themselves after the crash.

There is some commentary here on what needs to be done to fix it:

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/f4370108-9cf9-4353-a086-a6f5112947ce/taskbarcreated-message?forum=windowsuidevelopment

Basically you need to catch a message that is sent by Explorer. You may need to adjust message filters to be able to receive this message.

I'm hoping to find a little time to look into this issue myself, will issue a pull request if and when I manage to fix it.