1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3 4<HEAD> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 8 9<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 10 11 <TITLE>MEMCreateExpHeap</TITLE> 12 13</HEAD> 14 15 16<BODY> 17 18 19<H1>MEMCreateExpHeap</H1> 20 21 22<H2>Syntax</H2> 23<DL><DD><PRE class="definition"> 24#include <revolution/mem.h> 25 26MEMHeapHandle MEMCreateExpHeap( 27 void* startAddress, 28 u32 size ); 29</PRE></DD></DL> 30 31<H2>Arguments</H2> 32<TABLE class="arguments" border="1"> 33 <TR> 34<TH><STRONG><EM><CODE>startAddress</CODE></EM></STRONG></TH> 35<TD>Start address of the memory region to allocate to the heap</TD> 36 </TR> 37 <TR> 38<TH>size</TH> 39<TD>Size in bytes of the memory region allocated to the heap</TD> 40 </TR> 41</TABLE> 42 43<H2>Return Values</H2> 44<P>Returns the heap handle when a heap was successfully created. Returns <CODE>MEM_HEAP_INVALID_HANDLE</CODE> (a null value) if a heap could not be created.</P> 45 46<H2>Description</H2> 47<P>Creates the expanded heap. The heap region is a memory region with size <SPAN class="argument">size</SPAN> and a start address specified by <SPAN class="argument">startAddress</SPAN>.</P> 48 49<H2>See Also</H2> 50<P class="reference"> 51<A href="MEMCreateExpHeapEx.html">MEMCreateExpHeapEx</A> 52</P> 53 54<H2>Revision History</H2> 55<P> 562006/03/01 Initial version.<BR> 57</P> 58 59<hr><p>CONFIDENTIAL</p></body> 60</HTML> 61