IPCEventArgs

EventArgs
IPCEventArgs

summary> Event Arguments for IPC class </summary>

Summary
IPCEventArgssummary> Event Arguments for IPC class </summary>
Hwndsummary> Handle of the receiver.
Datasummary> Binary data.
Textsummary> If data is textual message, it will be saved in this property.
Portsummary> Port, by default 100.
IPCsummary> Inter-Process Communication using WM_COPYDATA.
MessageHandler<summary> Delegate for MessageHandler.
Handler<summary>Event fired when message arrives</summary>
WM_COPYDATA
IPC.COPYDATASTRUCT
dwData
cbData
lpData
CD
FindWindow
SendMessage
IPC
WinExist
Send
Send
WndProc

Hwnd

public IntPtr Hwnd

summary> Handle of the receiver.  </summary>

Data

public Byte[] Data

summary> Binary data.  </summary>

Text

public string Text

summary> If data is textual message, it will be saved in this property.  </summary>

Port

public int Port

summary> Port, by default 100.  Positive integer.  </summary>

IPC

NativeWindow
IPC

summary> Inter-Process Communication using WM_COPYDATA.  </summary>

Summary
MessageHandler<summary> Delegate for MessageHandler.
Handler<summary>Event fired when message arrives</summary>
WM_COPYDATA

MessageHandler

public delegate void MessageHandler(object sender,
IPCEventArgs ea)

<summary> Delegate for MessageHandler.  </summary>

Handler

public event MessageHandler Handler

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

WM_COPYDATA

const int WM_COPYDATA

dwData

public IntPtr dwData

cbData

public int cbData

lpData

public IntPtr 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 Hwnd,
string Text,
int Port)

Send

unsafe public bool Send(IntPtr Hwnd,
byte[] Data,
int Port)

WndProc

protected override void WndProc(ref Message m)
public IntPtr Hwnd
summary> Handle of the receiver.
public Byte[] Data
summary> Binary data.
public string Text
summary> If data is textual message, it will be saved in this property.
public int Port
summary> Port, by default 100.
public delegate void MessageHandler(object sender,
IPCEventArgs ea)
summary Delegate for MessageHandler.
public event MessageHandler Handler
summary>Event fired when message arrives</summary
const int WM_COPYDATA
public IntPtr dwData
public int cbData
public IntPtr 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 Hwnd,
string Text,
int Port)
protected override void WndProc(ref Message m)
Close