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>MEMGetAllocDirForMBlockExpHeap</TITLE> 13 14</HEAD> 15 16 17<BODY> 18 19 20<!-- �^�C�g���� --> 21<H1>MEMGetAllocDirForMBlockExpHeap</H1> 22 23 24<H2>C Specification</H2> 25<PRE class="construction">#include <revolution/mem.h> 26 27u16 MEMGetAllocDirForMBlockExpHeap( const void* memBlock );</PRE> 28 29 30<H2>Arguments</H2> 31<TABLE border="1"> 32<TR> 33 <TD><STRONG><EM><CODE>memBlock</CODE></EM></STRONG></TD> 34 <TD>Pointer to the memory block that gets the allocation direction. Information about allocation direction is explained below.</TD> 35</TR> 36 </TABLE> 37 38 39<H2>Return Values</H2> 40<P>Returns the designated memory block allocation direction.</P> 41 42<H2>Description</H2> 43<P>This function obtains the allocation direction of the allocated memory block from the expanded heap.</P> 44<P>The allocation direction can be one of the following values:</P> 45<TABLE border="1"> 46 47 <TR> 48<TD><CODE>MEM_EXPHEAP_ALLOC_DIR_FRONT</CODE></TD> 49<TD>Allocates from the bottom of the free region in the expanded heap when the memory block is allocated.</TD> 50 </TR> 51 <TR> 52<TD><CODE>MEM_EXPHEAP_ALLOC_DIR_REAR</CODE></TD> 53<TD>Allocates from the top of the free region in the expanded heap when the memory block is allocated.</TD> 54 </TR> 55 56</TABLE> 57<H2>See Also</H2> 58<P class="reference"><A href="MEMGetSizeForMBlockExpHeap.html"><CODE>MEMGetSizeForMBlockExpHeap</CODE></A>, <A href="MEMGetGroupIDForMBlockExpHeap.html"><CODE>MEMGetGroupIDForMBlockExpHeap</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