WS_HEAP_PROPERTY_ID enumeration (webservices.h)

Each heap property is identified by an ID and has an associated value.

Syntax

typedef enum {
  WS_HEAP_PROPERTY_MAX_SIZE = 0,
  WS_HEAP_PROPERTY_TRIM_SIZE = 1,
  WS_HEAP_PROPERTY_REQUESTED_SIZE = 2,
  WS_HEAP_PROPERTY_ACTUAL_SIZE = 3
} WS_HEAP_PROPERTY_ID;

Constants

 
WS_HEAP_PROPERTY_MAX_SIZE
Value: 0
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
Value: 1
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
Value: 2
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
Value: 3
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

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header webservices.h