Hi,
You can, for example, find the window handle of the application to receive
the "ping" through P/Invoking to FindWindow API and then P/Invoke to
PostMessage to ping the first application. This code should be placed to the
Main method, before calling Application.Run().
If the first application actually launches the second one, you could pass
the HWND of the first app's main window in the command line to avoid calling
FindWindow (or even resorting to EnumWindows).
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
kids_pro said:
Dear All,
How can I hook code to window so that each time new application is lunch it
send notify to my application first.
Regards