文件名称:VirtualMemory
介绍说明--下载内容来自于网络,使用问题请自行百度
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 (virtual memory retention success, sites : [% 8.8x ]! [Longint (VmAddress)])) / / to the second page virtual memory CommitAddress : = Pointer (Longint (VmAddress) PageSize) CommitAddress : = VirtualAlloc (CommitAddress, PageSize, MEM_COMMIT, PAGE_READWRITE) if not Assigne
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VirtualMemory
VirtualMemory/VirtualMemory.dof
VirtualMemory/VirtualMemory.cfg
VirtualMemory/VirtualMemory.dpr
VirtualMemory/VirtualMemory.exe
www.dssz.com.txt
VirtualMemory/VirtualMemory.dof
VirtualMemory/VirtualMemory.cfg
VirtualMemory/VirtualMemory.dpr
VirtualMemory/VirtualMemory.exe
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.