SurfaceHeap::Alloc (Windows CE 5.0)

Send Feedback

Given a number of bytes to allocate, this method reserves a block of memory from the specified heap. A new SurfaceHeap object is created to encapsulate this block of memory. When the resulting heap is destroyed, it is marked for reuse.

SurfaceHeap* Alloc(DWORDsize);

Parameters

  • size
    The size, in bytes, for the new subheap allocated from the current heap.

Return Values

This method returns a new SurfaceHeap object that contains memory allocated by the specified parent heap. If allocation fails, this method returns NULL.

Requirements

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.

See Also

SurfaceHeap Class | SurfaceHeap Class Definition

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.