大网数据广告活动
性能与资源

Virtual Memory Functions

· 52CE 我爱测

The virtual memory functions enable a process to manipulate or determine the status of pages in its virtual address space.

The virtual memory functions enable a process to manipulate or determine the status of pages in its virtual address space. They can perform the following operations:

  • Reserve a range of a process's virtual address space. Reserving address space does not allocate any physical storage, but it prevents other allocation operations from using the specified range. It does not affect the virtual address spaces of other processes. Reserving pages prevents needless consumption of physical storage, while enabling a process to reserve a range of its address space into which a dynamic data structure can grow. The process can allocate physical storage for this space, as needed.
  • Commit a range of reserved pages in a process's virtual address space so that physical storage (either in RAM or on disk) is accessible only to the allocating process.
  • Specify read/write, read-only, or no access for a range of committed pages. This differs from the standard allocation functions that always allocate pages with read/write access.
  • Free a range of reserved pages, making the range of virtual addresses available for subsequent allocation operations by the calling process.
  • Decommit a range of committed pages, releasing their physical storage and making it available for subsequent allocation by any process.
  • Lock one or more pages of committed memory into physical memory (RAM) so that the system cannot swap the pages out to the paging file.
  • Obtain information about a range of pages in the virtual address space of the calling process or a specified process.
  • Change the access protection for a specified range of committed pages in the virtual address space of the calling process or a specified process.

For more information, see the following topics.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。