P
Peter Morris [CapableObjects]
I have an app which uses a mutex to run as a single instance application.
This is because it exclusively locks a specific resource. When I now need
to do is to have a file association with my application so that when a file
of a certain type is double-clicked my application deals with it (processes
it using the locked resource).
If the app is not running then it is simple enough to check the application
parameters when the app starts, but how do I deal with the scenario where my
app is already running? Windows will launch a second instance of my app
which will then immediately terminate, how can I see a message to the
already running application passing the filename so that it can deal with
the operation?
Thanks
Pete
This is because it exclusively locks a specific resource. When I now need
to do is to have a file association with my application so that when a file
of a certain type is double-clicked my application deals with it (processes
it using the locked resource).
If the app is not running then it is simple enough to check the application
parameters when the app starts, but how do I deal with the scenario where my
app is already running? Windows will launch a second instance of my app
which will then immediately terminate, how can I see a message to the
already running application passing the filename so that it can deal with
the operation?
Thanks
Pete