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
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22u32 WPADGetWorkMemorySize( void );</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<p>None.</p>
29
30<h2>Return Values</h2>
31
32<p>Returns the size of the work memory obtained when the library was initialized.</p>
33
34<H2>Description</H2>
35<p>
36Gets the size of the work memory obtained when the library was initialized. The total memory size is allocated through the allocator registered through <a href="./WPADRegisterAllocator.html"><code>WPADRegisterAllocator</code></a>. 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>
37</p>
38
39<h2>See Also</h2>
40<P>
41<A href="./toc.html" target="contents">WPAD Functions</A><br> <a href="./WPADRegisterAllocator.html"><code>WPADRegisterAllocator</code></a>
42</P>
43
44<H2>Revision History</H2>
45<P>
462006/09/18 Added notes regarding allocation from the heap.<br>2006/09/12 Added description of the total memory size.<br>2006/08/15 Initial version.<br>
47</P>
48
49<hr>
50<P>CONFIDENTIAL</p>
51</BODY>
52</HTML>