views:

42

answers:

1

The goal is to have an application that runs in the system tray and can either accept user input from its actual GUI (which isn't the actual issue) OR accept command line parameters (that would actually be done via a context menu in windows explorer). Now, while I'm aware that the command line parameters are not exactly possible once the application has started, I need a way to pass data to the already running application instance via some form of handler. I'm thinking maybe define and raise some sort of event?

Thanks in advance.

A: 

You could pass new command line in depending how you handle multiple instances, if when the process discovers another instance is running you could use any IPC method such as sockets or memory mapped files to pass along the info to the existing process before terminating.

Lloyd