• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 进程  C#  c  通信  消息  

资源简介

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个文件信息

评论

共有 条评论