I have two applications called SENDER and RECEIVER.
RECEIVER will be launched by SENDER with the System.Diagnostics.Process.Start
method
RECEIVER will be launched in hidden mode so it does not have a MainWindowHandle
.
Then we could use Win32.WM_COPYDATA
in order send message to RECEIVER, but it needs MainWindowHandle
so we can't.
What I need is ability to send and receive messages periodically by any method.
I checked the following link for a manual about MainWindowHandle
, but it didn't help:
Send message to a Windows process (not its main window)
One solution might be an object from System.Diagnostics.Process
which might help us to send messages to a process.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…