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>MEMInitAllocatorForOSHeap</TITLE> 12 13</HEAD> 14 15 16<BODY> 17 18 19<H1>MEMInitAllocatorForOSHeap</H1> 20 21<H2>Syntax</H2> 22<DL><DD><PRE class="construction"> 23#include <revolution/mem.h> 24 25void MEMInitAllocatorForOSHeap( 26 MEMAllocator* pAllocator, 27 OSHeapHandle heap ); 28</PRE></DD></DL> 29 30<H2>Arguments</H2> 31<TABLE class="arguments" border="1"> 32 <TR> 33<TH><STRONG><EM><CODE>pAllocator</CODE></EM></STRONG></TH> 34<TD>Address of the <CODE>MemAllocator</CODE> structure</TD> 35 </TR> 36 <TR> 37<TH><STRONG><EM><CODE>heap</CODE></EM></STRONG></TH> 38<TD>Heap handle passed to the function.</TD> 39 </TR> 40</TABLE> 41 42<H2>Return Values</H2> 43<P>None.</P> 44 45<H2>Description</H2> 46<P>This function initializes the allocator to allocate and deallocate memory from the heap that is created using the SDK <CODE>OSCreateHeap</CODE> function.</P> 47 48<H2>See Also</H2> 49<P class="reference"> 50<A href="MEMInitAllocatorForFrmHeap.html">MEMInitAllocatorForFrmHeap</A>, 51<A href="MEMInitAllocatorForUnitHeap.html">MEMInitAllocatorForUnitHeap</A>, 52<A href="MEMInitAllocatorForExpHeap.html">MEMInitAllocatorForExpHeap</A> 53</P> 54 55<H2>Revision History</H2> 56<P> 572006/03/01 Initial version.<BR> 58</P> 59 60<hr><p>CONFIDENTIAL</p></body> 61</HTML> 62