-
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
-
使用PSAPI实现工艺信息显示系统
利用psapi实现的显示系统进程信息-use psapi achieve process information display system
- 2022-09-09 14:15:03下载
- 积分:1
-
在WINDOWS操作系统下,当我们无法结束或者不知道怎样结束一个程序的时候,或者是懒得去找“退出”按钮的时候,通常会按“CTRL+ALT+DEL”呼出任务管理器...
在WINDOWS操作系统下,当我们无法结束或者不知道怎样结束一个程序的时候,或者是懒得去找“退出”按钮的时候,通常会按“CTRL+ALT+DEL”呼出任务管理器,找到想结束的程序,点一下“结束任务”就了事了,呵呵,虽然有点粗鲁,但大多数情况下都很有效,不是吗?
-In the WINDOWS operating system, when we can not or do not know how the end of the end of a procedure, or are too lazy to look for " exit" button, the usually press " CTRL+ ALT+ DEL" Task Manager breath, want to find The End procedures, click " End Task" on the matter, huh, huh, though a bit rough, but very effective in most cases, is not it?
- 2022-02-06 07:41:24下载
- 积分:1
-
线程的例子:读写文件,递归过程的创建…
线程示例:读写文件、递归创建线程进程、快速排序-thread Example : reading and writing documents, recursive process of creating threads, Quick Sort
- 2022-04-18 22:51:31下载
- 积分:1
-
在VC平台下,实现系统的进程的查看,进程信息的修改
在VC平台下,实现系统的进程的查看,进程信息的修改-to check or change the information of system processes
- 2022-02-01 03:27:41下载
- 积分:1
-
NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHA...
NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHAR szModule[256], szText[512], szFormat[256] LoadString(hInst, IDS_FORMAT, szFormat, sizeof(szFormat) / sizeof(TCHAR)) GetModuleFileName(NULL, szModule, 256) _stprintf(szText, szFormat, szModule) MessageBox(NULL, szText, _T("远程线程"), MB_OK MB_ICONINFORMATION) return 0 }-NT environment to achieve the hidden process added : ThreadMain put in the code to be thrown in this supplement : DWORD ThreadMain (HINSTANCE hInst) (TCHAR szModule [256], szText [512], [256] szFormat LoadString (hInst, IDS_FORMAT, szFormat, sizeof (szFormat)/sizeof (TCHAR)) GetModuleFileName (NULL, szModule, 256) _stprintf (szText, szFormat, szModule) MessageBox (NULL, szText, found ( "Remote threads"), MB_OK MB_ICONINFORMATION) return 0 )
- 2022-02-01 13:00:17下载
- 积分:1
-
多线程相关,值得一看哦
多线程相关,值得一看哦-multithreading related eye-catcher oh
- 2022-03-01 18:04:37下载
- 积分:1
-
c++或C下如何使用多线程
c++或C下如何使用多线程-how to use multithreading
- 2022-01-31 14:00:58下载
- 积分:1
-
3种多线程同步方式(Critical Section,Mutex,Event)的小例子
3种多线程同步方式(Critical Section,Mutex,Event)的小例子-3 multithreading synchronous mode (Critical Section, Mutex,
Event) small example
- 2022-12-03 08:40:03下载
- 积分:1
-
a multithreaded programming examples threads will be able to set priorities, deb...
一个vb多线程编程实例,能够设置线程优先级,已经调试能够执行。-a multithreaded programming examples threads will be able to set priorities, debugging can be implemented.
- 2022-07-26 17:04:37下载
- 积分:1