搜索资源列表
进程和线程
- 看一下UNIX系统中的进程和Mach的任务和线程之间的关系。在UNIX系统中,一个进程包括一个可执行的程序和一系列的资源,例如文件描述符表和地址空间。在Mach中,一个任务仅包括一系列的资源;线程处理所有的可执行代码。一个Mach的任务可以有任意数目的线程和它相关,同时每个线程必须和某个任务相关。和某一个给定的任务相关的所有线程都共享任务的资源。这样,一个线程就是一个程序计数器、一个堆栈和一系列的寄存器。所有需要使用的数据结构都属于任务。一个UNIX系统中的进程在Mach中对应于一个任务和一个单
zbxi
- 文件-进程关联演示程序 pjf(jfpan20000@sina.com) 1、首先使用ZwQuerySystemInformation查询所有进程句柄, 2、获取句柄所代表对象信息,查出目标文件。核心态程序相对简单,对于 用户态程序,使用ZwQueryInformationFile同时与GetFileInformationByHandle、 GetVolumeInformation二API搭配获得之(前者得文件除去卷的路径名,后二者 得卷名) 另外可用ZwQueryOb
FindWnd
- 找线程句柄程序,运行程序后,自动枚举系统进程,通过右击,弹出菜单,可隐藏或显示或退出进程。-find a thread handle procedures, operating procedures, the system automatically enumeration process, right-click, pop-up menu, can be hidden or revealed or withdraw from the process.
EnTeHandle_1
- EnTeHandle可以让你查看当前进程打开的句柄。句柄可以是文件、事件、互斥信号量等等。此外,你也可以查看进程当前打开的DLL,线程信息,进程内存,甚至是动态更新。也可以搜索dll和句柄-EnTeHandle can let you see the current process opened handle. Can handle documents, events, etc. mutex semaphores. In addition, you can view the current pr
xxysbyapplexx
- VC++6.0编写的Windows消息演示系统的源代码。 功能: 获取窗口handle 获取edit内容 隐藏窗口 可供学习的地方: 窗口前置 窗口置top capture window flat picture button 常用的message-VC 6.0 of the Windows news demo system's source code. Function : access window handle access
listprocess
- 此代码示范了如何利用 CreateToolhelp32Snapshot API函数枚举系统当前进程。以及如何用 HANDLE OpenProcess(...),TerminateProcess(...)来打开和关闭活动进程。
multithreading_file_search
- 本程序实现一个多线程的文件快速搜索。在通常的操作系统中,比如Windows 2000,都提供了文件搜索功能,但采用的是顺序搜索,搜索效率较低。在本程序中,使用多线程的搜索技术,可以明显提高搜索效率。 本程序主要用到以下函数: //找到指定目录下的第一个文件 HUNDLE FindFirstFile(LPCTSR lpFileName,LPWIN32_FIND_DATA lpFindFileData) //找到指定目录下的下一个文件 BOOL FindNextFile(HAND
sam_sp_42
- 进程控制的意义在于可以创建一个进程,并可以通过进程句柄结束进程。-control of the process is to create a process and the process can handle the end of the process.
TerminateProcess
- program TerminateProcess {$APPTYPE CONSOLE} uses SysUtils, Windows var ProcessHwnd, WindowHwnd: THandle ProcessID: DWORD begin //得到记事本的主窗口句柄 WindowHwnd := FindWindow( Notepad , nil) if not isWindow(WindowHwnd) then ExitProcess(0) //得到记事本的进程标识 GetWind
生产者与消费者
- 程序用C++模拟了操作系统中的三种最典型的简单的静态进程调度算法;先由用户动态输入生成模拟进程,使用了26种可供用户选择的典型语句(包括循环、选择结构),可处理整型、布尔型与字符型三种数据与表达式计算;程序编制时主要采用的编程技术是:用语句链表记录进程语句,并用PCB链表,就绪队列链表,阻塞队列链表,执行队列链表,结束队列链表等数据表示进程处理过程中的相互关系,由于静态数据结构不适合处理数据量大小不定的数据,而动态队列结构适合于处理数据量大小可变数据的处理,因此在程序中采用动态链表对这些数据进行
WinsockIOCP_demo
- 用于大量socket连接时使用IOCP捕获连接关闭事件以便释放资源的程序。可以解决winsock的AsyncSelect对句柄个数的限制问题- Uses in when the massive socket connection uses IOCP to catch the connection closure event in order to release resources procedure. May solve the winsock AsyncSelect 瀵瑰彞 handle
send_handle
- 发送消息给某个只知道进程句柄的程序的主窗口的程序- The transmission news only knows the advancement sentence handle for some the procedure main window procedure
threadpool
- 线程池的C语言实现,主要用于服务器处理多任务-Thread Pool implementation of the C language, mainly used in server handle multi-tasking
New-Folder-(6)
- 通过进程获取窗体句柄,然后通过窗体句柄在获取窗体控件句柄,从而获得控件信息。-Through the process to obtain the window handle, and then through the window handle for form controls handle to obtain control information.
IOCPServer
- IOCP处理源代码,底层采用ACE的接口进行开发,效率很好-IOCP handle source code, underlying the use of ACE s interface development, efficiency,
multiline
- 建立一个工程,主线程负责用户交互,界面上提供一个按钮,通过它用户建立一个新的线程处理复杂的计算。多个线程可以共享内存中的某些变量。线程可以中止,挂起。线程间需要同步-Set up a project, the main thread is responsible for user interaction, provide a button on the interface through which users set up a new thread to handle complex calc
DynamicDllLoading_demo
- dll 动态加载类的简单例子. 类中只有两个虚函数:Create() 和 Destroy().-class loaded dynamically in dll. Only 2 virtual functions are important in this class: Create() and Destroy(). Create() function returns TRUE if the DLL is loaded correctly and an instance handle obta
server
- 聊天和支持下载等的客户端,多线程的实现方法,可以处理文件的上载下载更新信息-Chat and support for downloading the client, multi-threaded implementations, can handle the file upload to download updates
testMultiOp
- 这是一个在MFC下的线程同步的例子,我在其中用了一个副线程(SecondApplication)来处理对话框的消息,同时处理消息,将处理的消息反馈给对话框的textbox-This is an MFC thread synchronization under the examples in which I used a vice thread (SecondApplication) to handle the dialog box message, while addressing the me
processInfo
- 1.通过应用程序路径获取其他进程ID 2.获取其他进程的对话框句柄和控件句柄 里面有实现函数,有什么需求也可以自己改改了。 如果获得了控件句柄,当然可以去获取控件内显示的内容了。-1. The path through the application process for other processes ID 2. Get the dialog box that handles other processes and controls to achieve the funct
