Click or drag to resize
Xcalibur Systems LLC Logo

MemoryAllocationTypes Enumeration

The type of memory allocation.

MemoryAllocationTypes enumeration


Namespace: Xcalibur.NativeMethods.V2.Memory
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[FlagsAttribute]
public enum MemoryAllocationTypes
Members
Member nameValueDescription
Commit4,096 Allocates memory charges (from the overall size of memory and the paging files on disk) for the specified reserved memory pages. The function also guarantees that when the caller later initially accesses the memory, the contents will be zero. Actual physical pages are not allocated unless/until the virtual addresses are actually accessed.
Reserve8,192 Reserves a range of the process's virtual address space without allocating any actual physical storage in memory or in the paging file on disk.
Decommit16,384 Decommit
Release32,768 Release
Reset524,288 Indicates that data in the memory range specified by lpAddress and dwSize is no longer of interest. The pages should not be read from or written to the paging file. However, the memory block will be used again later, so it should not be decommitted. This value cannot be used with any other value.
TopDown1,048,576 Allocates memory at the highest possible address. This can be slower than regular allocations, especially when there are many allocations.
WriteWatch2,097,152 Causes the system to track pages that are written to in the allocated region. If you specify this value, you must also specify .
Physical4,194,304 Reserves an address range that can be used to map Address Windowing Extensions (AWE) pages. This value must be used with and no other values.
ResetUndo16,777,216 should only be called on an address range to which was successfully applied earlier. It indicates that the data in the specified memory range specified by lpAddress and dwSize is of interest to the caller and attempts to reverse the effects of . If the function succeeds, that means all data in the specified address range is intact. If the function fails, at least some of the data in the address range has been replaced with zeroes.
LargePages536,870,912 Allocates memory using large page support.
See Also