When locating and restoring a window minimized to system tray, I am having problems when this window is in "always-on-top" status prior to minimizing.
Using the FindWindow("ThunderRT6Main", MyTitle) and GetWindow(MyHndl, GW_HWNDPREV) functions, I am able to successfully locate and restore the desired application from minimized to visible status. However, when the target window is in always-on-top mode prior to minimizing, the Get Window function returns a different handle and the process does not work.
What am I doing wrong?
I thought that I had a working method, but the example you gave (mutex) didn't work. I pasted it into my app exactly as you instructed.
It seems to detect the application itself even when another instance is not running, and prevents itself from loading. Can you please assist?