Returns the current state of the APU physical heap.
HRESULT ApuHeapGetState(
ApuHeapState *apuHeapState,
UINT32 flags
)
apuHeapState
Type: ApuHeapState *
[out] An ApuHeapState structure containing the state of the heap.
flags
Type: UINT32
[in, optional] Flag to indicate which heap to query: APU_ALLOC_CACHED (the default) for the cached heap, or APU_ALLOC_NONCACHED for the non-cached heap.
Type: HRESULT
This method can return one of the values shown in the following table (in addition to other error codes).
| Return code | Description |
|---|---|
| S_OK | Success. |
| E_INVALIDARG | Invalid arguments. |
| APU_E_HEAP_NOT_ALLOCATED | The APU heap has not been allocated (see ApuCreateHeap). |
This is a lightweight API call that simply copies the current heap state to the user provided state structure.
Header: Declared in apu.h.
Library: Use acphal.lib.