-
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
-
This example describes the synchronization between multiple threads and run to a...
本例介绍了多线程之间的同步和运行,实现两个小球交替运动-This example describes the synchronization between multiple threads and run to achieve two ball alternating movement
- 2023-06-22 14:05:05下载
- 积分:1
-
多线程序访问数据库
多线程序访问数据库-multi-lane access to the database procedures
- 2022-12-12 15:05:04下载
- 积分:1
-
process of the operating system scheduler
操作系统进程调度程序-process of the operating system scheduler
- 2023-05-18 19:35:04下载
- 积分:1
-
一个多线程发送并口控制信号的程序,控制信号的频率达到微秒级...
一个多线程发送并口控制信号的程序,控制信号的频率达到微秒级-a multithreaded parallel port control signals sent to the procedures, the frequency control signal to achieve microsecond
- 2023-03-11 18:30:03下载
- 积分:1
-
一个多线程串口程序,可以比较串口收到的数据
一个多线程串口程序,可以比较串口收到的数据-a multithreaded serial procedures can compare the data received Serial
- 2022-10-29 10:00:03下载
- 积分:1
-
VC with the realization of a process of management procedures, covering the basi...
一个用VC实现的进程管理程序,涵盖了进程管理的基本功能。-VC with the realization of a process of management procedures, covering the basic functions of process management.
- 2022-06-13 05:48:55下载
- 积分:1
-
一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...
一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间的通信不但是难以避免的,而且在多线程编程中也是复杂和频繁的,下面将进行说明。-Generally speaking, the application of a secondary thread is always the main thread to perform a specific task, so that main thread and secondary threads must have a channel for the transmission of information, which is the main thread and the secondary thread to communicate between. This inter-thread communication is not only inevitable, but also in multi-threaded programming is complex and frequent, the following description will be carried out.
- 2022-03-06 14:41:20下载
- 积分:1
-
serial communication interface protocol data generated statements EXCEL
能通串口接口协议的数据生成EXCEL报表-serial communication interface protocol data generated statements EXCEL
- 2023-07-27 22:25:03下载
- 积分:1
-
关于出票系统的线程代码,很经典实用,希望大家多多互相学习...
关于出票系统的线程代码,很经典实用,希望大家多多互相学习-The counting system on the thread code, it is classic and practical, a lot of hope that we learn from each other
- 2023-06-23 17:10:03下载
- 积分:1