Hi,
I have an installation program in which I would like to make sure my application is not currently running. If it is, I would like to close it (not kill it, since the app has to save some data on exit). The additional problem is that the window of my application is hidden (the tray icon is shown instead), so Process.MainWindowHandle is always 0.
What can I do to signal my application to close? Can I send a message directly to the Application (not the window)?
Your help will be greatly appreciated. Gregor