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