消息发送方
一、引入系统方法SendMessage
private const int WM_COPYDATA = 0x004A;//这个不要随意更改,否则可能造成读取数据报错 [DllImport("User32.dll", EntryPoint = "SendMessage")] private static extern int SendMessage(IntPtr hWnd, int msg, int wParam, ref COPYDATASTRUCT lParam);
二、声明数据传输结构体
阅读全文>>