-
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
-
进度条控件的多线程实现程序
进度条控件的多线程实现程序-progress of the control procedures, multithreading
- 2022-07-11 10:11:40下载
- 积分:1
-
define the dll exported functions, Inspection System for the state, if memory or...
define the dll exported functions,用于检查系统状态,若有cpu或者memory使用正常,则返回错误-define the dll exported functions, Inspection System for the state, if memory or cpu normal use, the returned error
- 2022-04-24 13:19:38下载
- 积分:1
-
This procedure is based on the multi
本程序是基于多线程技术来绘制历史曲线,实现了历史曲线的实时动态显示-This procedure is based on the multi-threading technology to map the historical curve, realize the historical curve of real-time dynamic display
- 2023-05-18 06:45:03下载
- 积分:1
-
在Visual C++6.0下利用共享内存、消息实现内部进程通信
在Visual C++6.0下利用共享内存、消息实现内部进程通信-In the Visual C++ 6.0 use shared memory, message realize internal process communication
- 2022-04-18 13:52:09下载
- 积分:1
-
实现一个多线程管理类,能够设定线程个数,自动分配任务,判定进程是否结束...
实现一个多线程管理类,能够设定线程个数,自动分配任务,判定进程是否结束-The realization of a multi-threaded management can set the number of threads, automatic distribution of tasks, to determine whether or not the end of the process
- 2022-01-30 21:54:23下载
- 积分:1
-
用户自己实现的一种加锁同步算法
用户自己实现的一种加锁同步算法- User realize one kind locks the synchronized algorithm
- 2023-07-13 22:15:02下载
- 积分:1
-
C++多线程编程入门经典
提高的好助手俺师傅了你的分数将能量的释放...
C++多线程编程入门经典
提高的好助手俺师傅了你的分数将能量的释放-C++ MulriThreads Classic for Newer
- 2022-06-21 08:01:20下载
- 积分:1
-
一个可以方便地在Delphi下进行多线程编程的控件。很好用的。...
一个可以方便地在Delphi下进行多线程编程的控件。很好用的。-a convenient in Delphi under multithreaded programming controls. Very good use.
- 2022-03-18 11:06:30下载
- 积分:1
-
JAVA多线程编程
JAVA多线程编程-multi thread program by java
- 2022-03-29 11:02:30下载
- 积分:1