-
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
-
philosopher Wanton good meal, we must carefully study a Oh!
哲学家吃饭的好东东,一定要好好研究研究哦!-philosopher Wanton good meal, we must carefully study a Oh!
- 2022-11-23 06:45:03下载
- 积分:1
-
实现心血管功能无创监测及参数分析,包括了界面、通讯、数据管理、打印等功能!...
实现心血管功能无创监测及参数分析,包括了界面、通讯、数据管理、打印等功能!-To achieve non-invasive monitoring of cardiovascular function and parameter analysis, including the interface, communications, data management, printing and other functions!
- 2022-07-20 08:34:39下载
- 积分:1
-
关于多线程的一个程序,主要是说明同步技术在多线程中的应用。...
关于多线程的一个程序,主要是说明同步技术在多线程中的应用。-On a multi-threaded program, mainly that synchronous technology in multi-threaded applications.
- 2022-01-25 15:26:52下载
- 积分:1
-
先来先服务(FCFS)算法、短作业优先(SJF)算法、高响应比(HRN)算法和高优先权优先算法是作业调度中经常采用的,通过上述算法的模拟加深对作业控制快JCB的...
先来先服务(FCFS)算法、短作业优先(SJF)算法、高响应比(HRN)算法和高优先权优先算法是作业调度中经常采用的,通过上述算法的模拟加深对作业控制快JCB的理解和作业调度过程的实现技巧-job jobjob jobjob jobjob jobjob jobjob jobjob jobjob jobjob job
- 2022-08-14 08:21:04下载
- 积分:1
-
incident kernel object, the key code of (critical) explanations, and the multi
事件内核对象、关键代码段(临界区)的讲解,以及在多线程同步中的应用。在Windows下编写基于消息的网络应用程序,掌握阻塞与非阻塞网络程序的编写,理解在Windows平台下,采用异步选择机制可以提高网络应用程序的性能。-incident kernel object, the key code of (critical) explanations, and the multi-thread synchronization application. In the preparation of Windows-based news network applications, master obstruction and nonobstructive network program, understanding of the Windows platform, using asynchronous selection mechanism can improve network application performance.
- 2022-11-24 04:00:03下载
- 积分:1
-
win32线程池代码, 可用于win98/nt/200
win32线程池代码, 可用于win98/nt/200 -win32 code can be used win98/nt/200
- 2023-04-23 12:15:02下载
- 积分:1
-
使用psapi和toolhelp两种方式实现的显示进程列表程序
使用psapi和toolhelp两种方式实现的显示进程列表程序- Uses psapi and the toolhelp two ways realizations demonstration
advancement tabulates the procedure
- 2023-07-22 05:25:03下载
- 积分:1
-
操作系统原理实例代码,涉及进程、线程、信号量等操作系统的原理和思想的实现。...
操作系统原理实例代码,涉及进程、线程、信号量等操作系统的原理和思想的实现。-operating system code examples principle involved process, threads, signals and so on the operating system principles and ideas of achievement.
- 2022-04-27 08:13:42下载
- 积分:1
-
How to enumerate all processes of windows os.
How to enumerate all processes of windows os.-How to enumerate all processes of windows o s.
- 2023-07-03 23:50:02下载
- 积分:1