-
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
-
一个多线程的例子,很简单
一个多线程的实例,很简单 -a multithreaded example, a very simple
- 2022-10-14 16:20:03下载
- 积分:1
-
visual c++消息处理和多线程编程
visual c++消息处理和多线程编程-visual c++ message processing and multi-threaded programming
- 2022-07-26 08:06:31下载
- 积分: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
-
一个多线程串口程序,可以比较串口收到的数据
一个多线程串口程序,可以比较串口收到的数据-a multithreaded serial procedures can compare the data received Serial
- 2022-10-29 10:00:03下载
- 积分:1
-
use Windows 2000/XP API functions, including the preparation of a two
使用Windows 2000 / XP的API函数,编写一个包含两个线程的进程,一个线程用于模拟内存分配活动,一个线程用于跟踪第一个线程的内存行为,而且要求两个线程之间通过信号量实现同步。-use Windows 2000/XP API functions, including the preparation of a two-threaded process, a thread used to simulate memory allocation, a thread used to track a thread of memory, but also between two threads through the synchronized signal volume.
- 2022-07-27 02:37:11下载
- 积分:1
-
定时器使用的注意事项,定时器处理函数的运行时间大于定时时长会造成不响应,KillTimer()可以杀掉消息队列中的多个相同标号的消息。...
定时器使用的注意事项,定时器处理函数的运行时间大于定时时长会造成不响应,KillTimer()可以杀掉消息队列中的多个相同标号的消息。-timer matters to the attention of use, timer handling functions of the running time than regular long time will not respond KillTimer () Message Queue can kill the same number of label information.
- 2022-03-21 08:21:27下载
- 积分:1
-
search. The search software in the data is very useful software. The original C...
二份查找。本软件在数据查找中是非常实用的软件。原代码是C语言的运行环境-search. The search software in the data is very useful software. The original C language code is the runtime environment
- 2022-06-02 10:58:56下载
- 积分:1
-
本实验要求用高级语言编写和调试一个简单的银行家算法程序。加深了解有关资源申请、避免死锁等概念,并体会和了解死锁和避免死锁的具体实施方法。...
本实验要求用高级语言编写和调试一个简单的银行家算法程序。加深了解有关资源申请、避免死锁等概念,并体会和了解死锁和避免死锁的具体实施方法。-asked to use the experimental high-level language debugging and prepared a simple algorithm bankers procedures. A better understanding of the application of resources to avoid deadlock concepts, and experience and understanding of deadlock and avoid deadlock the specific implementation measures.
- 2023-06-18 13:45:04下载
- 积分:1
-
IO Completion Port to use examples of the basic IO Completion Ports API function...
IO完成端口使用事例, 对IO完成端口的基本API函数的使用范例来介绍IO完成端口的作用-IO Completion Port to use examples of the basic IO Completion Ports API function to use an example to introduce the role of IO Completion Ports
- 2023-01-23 23:35:03下载
- 积分:1