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 name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>WPADGetWorkMemorySize</title> 10</head> 11 12<body> 13 14<h1>WPADGetWorkMemorySize</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/wpad.h> 19 20u32 WPADGetWorkMemorySize( void ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<p>None.</p> 25 26<h2>Return Values</h2> 27<p>Returns the size of the work memory obtained when the library was initialized.</p> 28 29<H2>Description</H2> 30<p> 31Gets the size of the work memory obtained when the library was initialized. The total memory size is allocated through the allocator registered with the <a href="./WPADRegisterAllocator.html"><code>WPADRegisterAllocator</code></a> function. Make sure the registered allocator gets the memory of a size that is larger than that returned by this function.<font color="red"><b>When allocating memory from the heap, remember that the heap header size is not included.</b></font> 32</p> 33 34<h2>See Also</h2> 35<P class="reference"> 36<a href="./WPADRegisterAllocator.html">WPADRegisterAllocator</a> 37</P> 38 39<H2>Revision History</H2> 40<P> 412006/09/18 Added notes regarding allocation from the heap.<br>2006/09/12 Added an explanation of the total memory size.<br>2006/08/15 Initial version.<br> 42</P> 43 44<hr><p>CONFIDENTIAL</p></body> 45</html>