WS_HEAP_PROPERTY_ID enumeration
Each heap property is identified by an ID and has an associated value.
Syntax
enum WS_HEAP_PROPERTY_ID { WS_HEAP_PROPERTY_MAX_SIZE = 0,
WS_HEAP_PROPERTY_TRIM_SIZE,
WS_HEAP_PROPERTY_REQUESTED_SIZE,
WS_HEAP_PROPERTY_ACTUAL_SIZE
};
Constants
- WS_HEAP_PROPERTY_MAX_SIZE
-
Used with WsGetHeapProperty. Returns the total number of bytes that can be allocated from the heap. The total number of bytes is defined as sum of the sizes passed in all the calls to WsAlloc since the heap was created / reset.
- WS_HEAP_PROPERTY_TRIM_SIZE
-
Used with WsGetHeapProperty. Returns the maximum number of bytes of memory that the heap will retain after a call to WsResetHeap call. This should be treated an approximate value due to heap overhead. If the trim size is larger than the max size, then the size of the heap will not be trimmed.
- WS_HEAP_PROPERTY_REQUESTED_SIZE
-
Used with WsGetHeapProperty. Returns the current total number of bytes requested from the heap since the heap was created/reset.
- WS_HEAP_PROPERTY_ACTUAL_SIZE
-
Used with WsGetHeapProperty. Returns the current total number of bytes that the WS_HEAP has allocated from the operating system for purposes of providing allocations.
Requirements
|
Minimum supported client | Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|