MM_IPC.IPC

summary> Implementation of process communication via WM_COPYDATA </summary>

Summary
MM_IPC.IPCsummary> Implementation of process communication via WM_COPYDATA </summary>
MessageActionsummary> Delegate for IPC.OnMessage event.
OnMessage<summary>Event fired when message arrives</summary>
id
WM_COPYDATA
strData
MM_IPC.IPC.COPYDATASTRUCT
dwData
cbData
lpData
CD
FindWindow
SendMessage
IPC
WinExist
Send
WndProc

MessageAction

public delegate void MessageAction(string message,
int port)

summary> Delegate for IPC.OnMessage event.  </summary> <param name=”message”>Message that was received</param> <param name=”port”>Port that received the message</param>

OnMessage

public event MessageAction OnMessage

<summary>Event fired when message arrives</summary>

id

IntPtr id

WM_COPYDATA

const int WM_COPYDATA

strData

string strData

dwData

public int dwData

cbData

public int cbData

lpData

public int lpData

CD

COPYDATASTRUCT CD

FindWindow

private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName)

SendMessage

private static extern int SendMessage(IntPtr hWnd,
int wMsg,
IntPtr wParam,
ref COPYDATASTRUCT lParam)

IPC

public IPC(Form host)

WinExist

public static IntPtr WinExist(string WinTitle)

Send

public bool Send(IntPtr hHost,
string msg,
int port)

WndProc

protected override void WndProc(ref Message m)
public delegate void MessageAction(string message,
int port)
summary> Delegate for IPC.OnMessage event.
public event MessageAction OnMessage
summary>Event fired when message arrives</summary
IntPtr id
const int WM_COPYDATA
string strData
public int dwData
public int cbData
public int lpData
COPYDATASTRUCT CD
private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName)
private static extern int SendMessage(IntPtr hWnd,
int wMsg,
IntPtr wParam,
ref COPYDATASTRUCT lParam)
public IPC(Form host)
public static IntPtr WinExist(string WinTitle)
public bool Send(IntPtr hHost,
string msg,
int port)
protected override void WndProc(ref Message m)
Close