登录
首页 » Process-Thread » 简单线程示例。适合初学者

简单线程示例。适合初学者

于 2022-06-26 发布 文件大小:30.97 kB
0 263
下载积分: 2 下载次数: 1

代码说明:

简单线程示例。适合初学者-threads simple example. For beginners

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个线程池源码,AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED...
    一个线程池源码,AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED-a thread pool source, AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED
    2022-05-25 17:52:22下载
    积分:1
  • program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize =...
    program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize = 4096 //定义页面大小 var VmAddress, CommitAddress: Pointer //存放虚拟内存基址 Text: Pchar begin //保留二页虚拟内存 VmAddress := VirtualAlloc(nil, PageSize * 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned(VmAddress) then begin WriteLn( 保留虚拟内存失败! ) ExitProcess(0) end else WriteLn(Format( 保留虚拟内存成功, 基址为:[%8.8x]! , [Longint(VmAddress)])) //提交第二页虚拟内存 CommitAddress := Pointer(Longint(VmAddress) + PageSize) CommitAddress := VirtualAlloc(CommitAddress, PageSize, MEM_COMMIT, PAGE_READWRITE) if not Assigne-program VirtualMemory ($ APPTYPE CONSOLE) uses SysUtils, Windows const PageSize = 4096// definition pages size var VmAddress, CommitAddress : Pointer// virtual memory-based storage site Text : Pchar begin// reservations two virtual memory VmAddress : = VirtualAlloc (nil. PageSize* 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned (VmAddress) then begin WriteLn (reservations virtual memory failure!) ExitProcess (0) end else WriteLn (Format
    2022-10-06 15:35:03下载
    积分:1
  • Many people are aware of the process to port a free map of Fport FoundStone tool...
    很多人都知道端口到进程映射的一个免费工具FoundStone的Fport,可惜他不提供源码,我试着能从其二进制文件中找出一些信息,大致知道他使用了些未公开函数,诸如: ZwOpenSection,ZwQuerySystemInformation-Many people are aware of the process to port a free map of Fport FoundStone tool, but he does not provide source code, I tried from its binary documents to find some information, he is generally aware of the use of some functions not open to the public, such as : ZwOpenSection, ZwQuerySystemInformation
    2022-02-05 23:32:51下载
    积分:1
  • 如何利用风险投资获取模块的基地址。
    How to get Module s base address of windows by vc.-How to get Module"s base address of windows b y vc.
    2023-08-24 05:05:04下载
    积分:1
  • 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
  • 进程调度算法
    进程调度算法--动态优先权抢占式和时间片轮转算法的调度。-process scheduling algorithm-- Dynamic Preemptive priority and time-scheduling algorithm postings.
    2022-02-16 09:49:48下载
    积分:1
  • published in 2005, two of code, code demonstrating the use of Visual C since the...
    刊登在2005年第2期的代码,代码演示了在Visual C++中利用自定义消息实现线程间通讯。-published in 2005, two of code, code demonstrating the use of Visual C since the definition of news to achieve communication between threads.
    2022-01-30 10:08:01下载
    积分:1
  • 这是一个用SDK编写的创建多个进程和的例子。 每相隔半秒钟就可以鼠标创建进程...
    这是一个用SDK编写的创建多个进程和的例子。 每相隔半秒钟就可以鼠标创建进程-This a preparation using the SDK to create multiple processes and examples. Each can be separated by half a process to create mouse
    2022-02-13 06:24:46下载
    积分:1
  • Multi
    多线程编程指南,sun公司出品,很不错。-Multi-threaded programming guide, sun products company, is pretty good.
    2022-02-03 22:39:03下载
    积分:1
  • 用于PPC的多线程使用范例,MFC,适用于初学者
    用于PPC的多线程使用范例,MFC,适用于初学者-PPC for the use of multi-threaded model, MFC, applicable to beginners
    2022-02-03 04:50:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载