Second instance of app referencing first instance of app?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I've got an application that uses a Mutex to prevent multiple instances of
the application from launching. This works great for me.

However, what I would like to do is when a second attempt to launch the
application is detected, it activates the first instance then closes the
second instance. At app startup, how can I grab a reference to another
instance of my app so that I can signal to it to activate itself?

Cheers, Jon


.



Relevant Pages

  • ANN: Free unit that allows only one instance of the application
    ... If second instance is launched with 'STOP' command line argument, ... then the first instance is terminated but not activated. ... change project body as follows: ... // prevents launching of the second instance of the application from any ...
    (borland.public.delphi.thirdpartytools.general)
  • ANN: Free unit to allow only one instance of the application
    ... If second instance is launched with 'STOP' command line argument, ... then the first instance is terminated but not activated. ... change project body as follows: ... // prevents launching of the second instance of the application from any ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Free unit that allows only one instance of the application
    ... > Prevents launching of the second instance of the application ... > If second instance is launched with 'STOP' command line argument, ... > then the first instance is terminated but not activated. ... > b) change project body as follows: ...
    (borland.public.delphi.thirdpartytools.general)