C#利用API发送和接收消息Demo

上传者: lybwwp | 上传时间: 2021-07-07 14:41:48 | 文件大小: 106KB | 文件类型: ZIP
C#利用windows的API发送和接收消息Demo, 实现一个两个程序之间消息的通信,一个发送,另一个程序自动接收。 本代码测试全通过 .

文件下载

资源详情

[{"title":"( 48 个子文件 106KB ) C#利用API发送和接收消息Demo","children":[{"title":"Set_Get_Messages","children":[{"title":"Set_Get_Messages.sln <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"setMessages","children":[{"title":"GetMsgForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"GetMsgForm.cs <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"Get_Messages.csproj <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"GetMsgForm.Designer.cs <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"setMessages.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Get_Messages.csproj.FileListAbsolute.txt <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"setMessages.GetMsgForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 22.35KB </span>","children":null,"spread":false},{"title":"setMessages.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"setMessages.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"setMessages.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"setMessages.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"setMessages.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Set_Get_Messages.suo <span style='color:#111;'> 34.00KB </span>","children":null,"spread":false},{"title":"Set_Get_Messages","children":[{"title":"Program.cs <span style='color:#111;'> 503B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"Set_Messages.csproj <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"XWin32API.cs <span style='color:#111;'> 19.75KB </span>","children":null,"spread":false},{"title":"APISendMsg.cs <span style='color:#111;'> 6.96KB </span>","children":null,"spread":false},{"title":"SendMsgForm.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"SendMsgForm.Designer.cs <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"Set_Get_Messages.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Set_Messages.csproj.FileListAbsolute.txt <span style='color:#111;'> 910B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Set_Get_Messages.SendMsgForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Set_Get_Messages.pdb <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.20KB </span>","children":null,"spread":false},{"title":"Set_Get_Messages.exe <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 790B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"SendMsgForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Set_Get_Messages.pdb <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false},{"title":"Set_Get_Messages.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"Set_Get_Messages.exe <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • liaibing :
    可以使用,封装的不怎么好,能完善一下就更好了。
    2014-11-24
  • shghe :
    用到时能用 ,就是太贵了
    2014-11-05
  • hediping9811 :
    东西不错运行,测试运行正常,帮我解决了不少问题
    2014-06-06
  • liangbudao :
    东西不错运行,测试运行正常,帮我解决了不少问题
    2013-11-27
  • hermit7127 :
    感谢分享,对初学者很有帮助
    2012-11-20

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明