資源簡介
c#進程之間通信,c#exe 之間發消息,c#exe 相互通信 vs2005 編寫的 接收 發送都有
原理:根據窗口名稱找到 窗口的句柄,然后給窗口 SendMessage
代碼片段和文件信息
using?System;
using?System.Drawing;
using?System.Collections;
using?System.ComponentModel;
using?System.Windows.Forms;
using?System.Data;
using?System.Runtime.InteropServices;
namespace?WindowsFormGetMsg
{
????public??partial?class?Form1?:?System.Windows.Forms.Form
????{
????????private?System.Windows.Forms.TextBox?textBox1;
????????private?System.ComponentModel.Container?components?=?null;
????????const?int?WM_COPYDATA?=?0x004A;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????protected?override?void?Dispose(bool?disposing)
????????{
????????????if?(disposing)
????????????{
????????????????if?(components?!=?null)
????????????????{
????????????????????components.Dispose();
????????????????}
????????????}
????????????base.Dispo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5632??2005-12-08?14:51??Projects\recive\recive\bin\Debug\recive.vshost.exe
?????文件??????20480??2012-05-12?23:22??Projects\recive\recive\bin\Release\recive.exe
?????文件??????17920??2012-05-12?23:22??Projects\recive\recive\bin\Release\recive.pdb
?????文件???????2570??2012-05-12?23:22??Projects\recive\recive\Form1.cs
?????文件??????????5??2012-05-12?23:11??Projects\recive\recive\Form1.Designer.cs
?????文件???????5814??2012-05-12?23:11??Projects\recive\recive\Form1.resx
?????文件????????496??2012-05-12?23:22??Projects\recive\recive\obj\recive.csproj.FileListAbsolute.txt
?????文件????????842??2012-05-12?23:22??Projects\recive\recive\obj\Release\recive.csproj.GenerateResource.Cache
?????文件??????20480??2012-05-12?23:22??Projects\recive\recive\obj\Release\recive.exe
?????文件??????17920??2012-05-12?23:22??Projects\recive\recive\obj\Release\recive.pdb
?????文件????????180??2012-05-12?23:22??Projects\recive\recive\obj\Release\recive.Properties.Resources.resources
?????文件????????180??2012-05-12?23:22??Projects\recive\recive\obj\Release\WindowsFormGetMsg.Form1.resources
?????文件???????1184??2012-05-12?23:02??Projects\recive\recive\Properties\AssemblyInfo.cs
?????文件???????2868??2012-05-12?23:02??Projects\recive\recive\Properties\Resources.Designer.cs
?????文件???????5612??2012-05-12?23:02??Projects\recive\recive\Properties\Resources.resx
?????文件???????1091??2012-05-12?23:02??Projects\recive\recive\Properties\Settings.Designer.cs
?????文件????????249??2012-05-12?23:02??Projects\recive\recive\Properties\Settings.settings
?????文件???????3181??2012-05-12?23:07??Projects\recive\recive\recive.csproj
?????文件????????907??2012-05-12?23:07??Projects\recive\recive.sln
????..A..H.?????12800??2012-05-12?23:31??Projects\recive\recive.suo
?????文件??????20480??2012-05-12?23:14??Projects\send\send\bin\Debug\send.exe
?????文件??????22016??2012-05-12?23:14??Projects\send\send\bin\Debug\send.pdb
?????文件???????5632??2005-12-08?14:51??Projects\send\send\bin\Debug\send.vshost.exe
?????文件??????20480??2012-05-12?23:27??Projects\send\send\bin\Release\send.exe
?????文件??????17920??2012-05-12?23:27??Projects\send\send\bin\Release\send.pdb
?????文件???????3668??2012-05-12?23:25??Projects\send\send\Form1.cs
?????文件??????????3??2012-05-12?23:07??Projects\send\send\Form1.Designer.cs
?????文件???????5814??2012-05-12?23:04??Projects\send\send\Form1.resx
?????文件????????842??2012-05-12?23:08??Projects\send\send\obj\Debug\send.csproj.GenerateResource.Cache
?????文件??????20480??2012-05-12?23:14??Projects\send\send\obj\Debug\send.exe
............此處省略43個文件信息
評論
共有 條評論