I have an app that resides in systray. The common code I find for preventing another instance of my app works well when my app is on the taskbar but when in the systray, it forces a taskbar icon at the same time. Maximizing the taskbar icon produces an invisible window and the systray icon is still present.
I've been using Mutex Handles. Is there a better way to do this?