Started here but still the question not closed - I think that I need to revise the whole architecture - so please give your opinions...
Here is the how the application should work: An scheduler executes multiple time the same application, but with different arguments. If the application is started without any parameter or argument - it shows an form which will allows to edit some config data. Despite of multiple executions there should be only one instance of application.
My approach - for single-instance I've used Mutex with ApplicationContext and NativeWindow. This is described here The thing that I can't overcome - when an new instance of application is started- if this instance is started with parameters - how to send data - the parameters - to the application's instance that is running? I've tried to send data using messages - SendMessage/PostMessage - but didn't succeed.
Maybe someone could give another approach?