-
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
-
进程间通信,一个简单的聊天室程序,基于进程间的同步机制
进程间通信,一个简单的聊天室程序,基于进程间的同步机制-inter-process communication, a simple chat room procedures, based on the process of synchronization mechanism
- 2023-03-21 15:20:03下载
- 积分:1
-
demonstration Multithreading can be flown and awaken threads, good ah !
演示多线程,可以挂起和唤醒线程,很好的啊!-demonstration Multithreading can be flown and awaken threads, good ah !
- 2022-02-03 16:48:04下载
- 积分:1
-
Toolkit for detecting Virtual machines
Toolkit for detecting Virtual machines
- 2022-03-05 10:22:22下载
- 积分:1
-
一个异步线程的例子!使用C++编写。
多线程编写初步例子!...
一个异步线程的例子!使用C++编写。
多线程编写初步例子!-Example of an asynchronous thread! The use of C++ Prepared. Examples of the preparation of a preliminary multi-threaded!
- 2022-02-04 20:02:34下载
- 积分:1
-
单线程的,socket
单线程的,socket-based通信,简单sever-client通信-Single-threaded, socket-based communications, a simple sever-client communications
- 2023-04-16 05:50:03下载
- 积分:1
-
一个简单的多
一个简单的多线程的框架,每个线程作一个计数,并且可以用菜单控制线程的执行-a simple multi-threaded framework for a per-thread count, and the menu can be used to control the implementation of threads
- 2022-02-09 12:09:57下载
- 积分:1
-
windows message processing programming code, a simple message handling mechanism...
windows消息处理编程代码,简单的实现消息处理机制-windows message processing programming code, a simple message handling mechanism realize
- 2022-05-28 14:48:27下载
- 积分:1
-
MyProcess进程管理器
MyProcess进程管理器-MyProcess thead manegement
- 2022-04-15 05:22:09下载
- 积分:1
-
关于windows的开发,用于实现时钟开发
关于windows的开发,用于实现时钟开发-windows on the development, the clock used to achieve development
- 2022-07-08 13:16:07下载
- 积分:1