-
program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessH...
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) //得到记事本的进程标识 GetWindowThreadProcessId(WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess(0) //根据进程标识打开进程句柄 ProcessHwnd := OpenProcess(PROCESS_ALL_ACCESS, false, ProcessID) if ProcessHwnd = 0 then ExitProcess(0) //中止指定句柄的进程 Windows.TerminateProcess(ProcessHwnd, 0) end.-program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessHwnd, WindowHwnd : THandle ProcessID : DWORD begin// notebook to be the main window handle WindowHwnd : = FindWindow (Notepad, nil) if not isWindow (WindowHwnd) then ExitProcess (0)// notebook to be in the process logo GetWindowThreadProcessId (WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess (0)// identification process under the process opened handle ProcessHwnd : = OpenProcess (PROCESS_ALL_ACCESS, fals
- 2022-02-10 00:03:03下载
- 积分:1
-
windows任务管理器vc源码,用 PSAPI 写的,只是又添加了一些小功能,包括CPU占用率显示,托盘显示等...
windows任务管理器vc源码,用 PSAPI 写的,只是又添加了一些小功能,包括CPU占用率显示,托盘显示等-windows task manager vc source code, using PSAPI written, but also added some small features, including CPU usage display, pallet display, etc.
- 2023-05-21 10:45:05下载
- 积分:1
-
很多情况下我们需要多个线程互相协助,来完成同一个任务。但是线程很难从外部进行控制。利用线程同步技术可以使线程彼此交互,从而避免了外部控制对与时间和资源的浪费。
很多情况下我们需要多个线程互相协助,来完成同一个任务。但是线程很难从外部进行控制。利用线程同步技术可以使线程彼此交互,从而避免了外部控制对与时间和资源的浪费。-Many cases we need to assist each other to multiple threads in order to accomplish the same mission. But the thread is difficult to control from outside. The use of thread synchronization technology enables interaction between threads, thus avoiding external control with time and a waste of resources.
- 2023-09-06 07:35:03下载
- 积分:1
-
多线程编程,异步操作实例,如Mutex等
多线程编程,异步操作实例,如Mutex等-Multi-threaded programming, examples of asynchronous operation, such as Mutex, etc.
- 2023-07-26 10:30:04下载
- 积分:1
-
用VC写的启动并可控制其他EXE程序的应用程序
用VC写的启动并可控制其他EXE程序的应用程序-VC can start writing the other EXE process control applications
- 2022-08-19 14:15:18下载
- 积分:1
-
For multi
进行多线程编程的好例子,这是多线程的简单例子。-For multi-threaded programming a good example of this is a simple example of multi-threading.
- 2022-03-19 09:39:42下载
- 积分:1
-
C语言模拟进程调度程序,注释很全,向大家推荐,都来下载阿...
C语言模拟进程调度程序,注释很全,向大家推荐,都来下载阿-C language modeling process scheduler, notes very long, we recommend to you, to download A!
- 2022-03-03 22:49:07下载
- 积分:1
-
threading of a good example, we may s
这是一个简单的多线程的好例子,大家不妨参考一下
- 2022-07-24 20:28:52下载
- 积分:1
-
编写多线程应用程序的最重要问题就是线程之间的资源同步访问。因为多个线程共享资源时如果发生访问冲突通常会产生不正确的结果。本程序主要实现线程间的同步技术...
编写多线程应用程序的最重要问题就是线程之间的资源同步访问。因为多个线程共享资源时如果发生访问冲突通常会产生不正确的结果。本程序主要实现线程间的同步技术-The preparation of multi-threaded applications the most important problem is the thread synchronization between the resources to visit. Because the shared resource when multiple threads access violation if there is usually generate incorrect results. This procedure main inter-thread synchronization technology
- 2022-04-14 20:18:45下载
- 积分:1
-
使用 ISAPI Filter 实现的限制 IIS 多线程访问程序。
主要应用在下载系统,或者使用 IIS 做的流媒体点播系统中,稍加修改可以使其具有认证功...
使用 ISAPI Filter 实现的限制 IIS 多线程访问程序。
主要应用在下载系统,或者使用 IIS 做的流媒体点播系统中,稍加修改可以使其具有认证功能。在程序中已经对 用户认证 事件做了直接返回的处理。
使用本 Filter 可以很容易的获得服务器的连接数,从而可以实现多个服务器的负载平衡(可以把请求分发到连接较少的一个服务器上)。
可以对访问的有效控制,可以自定义无限制用户IP,限制用户的IP。
从而可以实现对某个IP的限制数不限制,或者对某个IP的封杀-Restrictions on the use of ISAPI Filter to achieve IIS multi-threaded access to the program. Main application in the download system, or use IIS to do the streaming media on-demand system, slightly modified to give it authentication. In the user authentication process has already done a direct return to processing. Use the Filter can be easily access the server connections, allowing multiple servers to achieve load balancing (which can be distributed to the request to connect to a fewer server). Access can be effectively controlled, you can customize unlimited users IP, restrictions on the user" s IP. Which can be achieved on a certain IP restriction does not limit the number of, or an IP-block
- 2022-03-18 08:07:23下载
- 积分:1