I hide my application to the system tray, then try to prevent another instance of the application to be run but are unable to bring the first instance to the front again.
Here is my code to hide the application to the system tray:
to prevent I use:
Mutex := CreateMutex(nil, False, AppTitle);
if (GetLastError = ERROR_ALREADY_EXISTS) or
(Mutex = 0) then
But how do I bring my previous instance of my application to the front?
Thanx in advance!