文件名称:sameprocess
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:46.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
如果您对IE4.0熟悉的话,你将知道在Internet Settings高级设置中有一个选项:“在新的进程中浏览(英文:Browse in a New Process)”,如果你把它前面的对钩去掉,然后运行IE,并打开任务管理器查看所有进程,你将会发现没有新的IExplorer.exe进程出现。反之,则新的IExplorer.exe进程出现。
当我们需要许多数据在程序实例之间共享的时候,这种能使多个实例运行在同一个进程空间的程序是非常有用的。它的实现很简单,众所周知,启动任何一个应用程序有两种途径,要么通过浏览器要么通过API调用诸如CreateProcess。首先侦察特定的窗口类是否存在,如果不存在,就创建一个新的窗口类,如果存在,那么使最近创建的进程发送一个消息到已存在的窗口,并使新近运行的实例窗口处于激活状态,先前的程序实例将启动一个单独的线程。
在此示例中,作者采用了一个MFC MDI程序,即使有多个程序实例在运行,任务管理器或者进程查看器(Process Viewer)将只会显示一个进程,当如果用WINDOWS自带程序SPY++查看,您将会发现该进程拥有许多线程,并且不同的MDI窗口集合分别属于不同的线程-seemed familiar with the case, You will know that the Internet Advanced Settings, there is a choice : "In the new process here (in English : Browse in a New Process)" If you put it right in front of the hook removed, and then run IE, and open the Task Manager View all process, You will find no new IExplorer.exe process. Instead, the new IExplorer.exe process. When we needed the procedure much of the data shared between the examples, This can run multiple instances of a process in the same space procedure is very useful. It is very simple to achieve, as we all know, launching an application of any two channels either through the browser or through API calls such as CreateProcess. First reconnaissance particular window class existence, if they do not exist, create a new window type
当我们需要许多数据在程序实例之间共享的时候,这种能使多个实例运行在同一个进程空间的程序是非常有用的。它的实现很简单,众所周知,启动任何一个应用程序有两种途径,要么通过浏览器要么通过API调用诸如CreateProcess。首先侦察特定的窗口类是否存在,如果不存在,就创建一个新的窗口类,如果存在,那么使最近创建的进程发送一个消息到已存在的窗口,并使新近运行的实例窗口处于激活状态,先前的程序实例将启动一个单独的线程。
在此示例中,作者采用了一个MFC MDI程序,即使有多个程序实例在运行,任务管理器或者进程查看器(Process Viewer)将只会显示一个进程,当如果用WINDOWS自带程序SPY++查看,您将会发现该进程拥有许多线程,并且不同的MDI窗口集合分别属于不同的线程-seemed familiar with the case, You will know that the Internet Advanced Settings, there is a choice : "In the new process here (in English : Browse in a New Process)" If you put it right in front of the hook removed, and then run IE, and open the Task Manager View all process, You will find no new IExplorer.exe process. Instead, the new IExplorer.exe process. When we needed the procedure much of the data shared between the examples, This can run multiple instances of a process in the same space procedure is very useful. It is very simple to achieve, as we all know, launching an application of any two channels either through the browser or through API calls such as CreateProcess. First reconnaissance particular window class existence, if they do not exist, create a new window type
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SameProc
SameProc/StdAfx.h
SameProc/StdAfx.cpp
SameProc/sh.htm
SameProc/sameprocView.h
SameProc/sameprocView.cpp
SameProc/sameprocDoc.h
SameProc/sameprocDoc.cpp
SameProc/sameproc.rc
SameProc/sameproc.dsw
SameProc/sameproc.dsp
SameProc/resource.h
SameProc/MainFrm.h
SameProc/MainFrm.cpp
SameProc/ChildFrm.h
SameProc/ChildFrm.cpp
SameProc/AppWnd.h
SameProc/AppWnd.cpp
SameProc/sameproc.ncb
SameProc/sameproc.plg
SameProc/sameproc.aps
SameProc/说明.txt
SameProc/sameproc.h
SameProc/AppThread.h
SameProc/AppThread.cpp
SameProc/res
SameProc/res/sameproc.ico
SameProc/res/sameproc.rc2
SameProc/res/sameprocDoc.ico
SameProc/res/Toolbar.bmp
SameProc/sameproc.cpp
SameProc/sameproc.opt
www.dssz.com.txt
SameProc/StdAfx.h
SameProc/StdAfx.cpp
SameProc/sh.htm
SameProc/sameprocView.h
SameProc/sameprocView.cpp
SameProc/sameprocDoc.h
SameProc/sameprocDoc.cpp
SameProc/sameproc.rc
SameProc/sameproc.dsw
SameProc/sameproc.dsp
SameProc/resource.h
SameProc/MainFrm.h
SameProc/MainFrm.cpp
SameProc/ChildFrm.h
SameProc/ChildFrm.cpp
SameProc/AppWnd.h
SameProc/AppWnd.cpp
SameProc/sameproc.ncb
SameProc/sameproc.plg
SameProc/sameproc.aps
SameProc/说明.txt
SameProc/sameproc.h
SameProc/AppThread.h
SameProc/AppThread.cpp
SameProc/res
SameProc/res/sameproc.ico
SameProc/res/sameproc.rc2
SameProc/res/sameprocDoc.ico
SameProc/res/Toolbar.bmp
SameProc/sameproc.cpp
SameProc/sameproc.opt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.