摘要
软件开发中经常可能遇到后台系统需要通过回前台UI进程通知用户一些消息,这样两个进程之间就不可避免地产生通信的需求。本文基于Windows消息机制实现一种高效的进程间通信机制,详细描述了基于WM_COPYDATA改进机制的实现方式,并给出了可实现的C#语言代码。
In the Software development, there's a pretty high probability to notify users of some messages by returning to the foreground UI process from the backend system. So the communications between two processes are rather necessary. This paper, based on the Windows message mechanism, realizes an efficient interprocess communication mechanism and describes the implementation of the mechanism in detail. Plus,it gives the C # language code that can be realized..
引文
[1] 新编WINDOWS API参考大全编写组.新编WINDOWS API参考大全[M].北京:电子工业出版社,2000.
[2] 陈雄,周文胜,陈鹤鸣.Windows下的进程间通信[J].南京邮电大学学报(自然科学版),2000,20 (2):51-54.
[3] Jeffrey Richter,王建华等译.Windows核心编程[M].北京:机械工业出版社,2000.
[4] 傅平,郑秉文.基于 File Mapping的进程间通信中共享内存技术的实现方法[J].微计算机应用,2007:767-770.
[5] 高波.浅谈Windows进程间通讯方法[J].水利水文自动化杂志,2002:30-32.