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>MEMGetAllocModeForExpHeap</TITLE>
12
13</HEAD>
14
15
16<BODY>
17
18
19<H1>MEMGetAllocModeForExpHeap</H1>
20
21
22<H2>Syntax</H2>
23<DL><DD><PRE class="construction">
24#include &lt;revolution/mem.h&gt;
25
26u16 MEMGetAllocModeForExpHeap( MEMHeapHandle heap );
27</PRE></DD></DL>
28
29<H2>Arguments</H2>
30<TABLE class="arguments" border="1">
31  <TR>
32<TH><STRONG><EM><CODE>heap</CODE></EM></STRONG></TH>
33<TD>Expanded heap handle.</TD>
34  </TR>
35</TABLE>
36
37<H2>Return Values</H2>
38<P>Returns the memory allocation mode of the current expanded heap.</P>
39
40<H2>Description</H2>
41<P>This function obtains the memory allocation mode of the expanded heap.</P>
42<P>You can specify the following values for the memory allocation mode.</P>
43<TABLE class="arguments" border="1">
44  <TR>
45<TH><CODE>MEM_EXPHEAP_ALLOC_MODE_FIRST</CODE></TH>
46<TD>Allocates a memory block from the first free region that is at least the size of the memory block to allocate.</TD>
47  </TR>
48  <TR>
49<TH><CODE>MEM_EXPHEAP_ALLOC_MODE_NEAR</CODE></TH>
50<TD>Searches for a free region nearest in size to the memory block to allocate, then allocates the memory block from this free region.</TD>
51  </TR>
52</TABLE>
53<P>Immediately after the heap is created, the <CODE>MEM_EXPHEAP_ALLOC_MODE_FIRST</CODE> state is entered.</P>
54
55<H2>See Also</H2>
56<P class="reference">
57<A href="MEMSetAllocModeForExpHeap.html">MEMSetAllocModeForExpHeap</A>
58</P>
59
60<H2>Revision History</H2>
61<P>
622006/03/01 Initial version.<BR>
63</P>
64
65<hr><p>CONFIDENTIAL</p></body>
66</HTML>
67