<div class="content" name="GetCurrentMemory" uuid="f6a307ff-1a05-4eb8-a8dc-977d156f8015"><p>The GetCurrentMemory method determines the total amount of
physical memory in the system.</p><dl>
<dd>
<div><pre> [id(10), helpstring(&#34;method GetCurrentMemory&#34;)] HRESULT GetCurrentMemory(
   [out] DWORD64* pdwCurrMemory
 );
</pre></div>
</dd></dl><p><b>pdwCurrMemory: </b>A pointer to a 64-bit unsigned
integer that returns the current system memory size, in bytes.</p><p><b>Return Values: </b>This method returns 0x00000001
for success or 0x00000000 if an error occurs.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000</td>
  <td>An error occurred.</td>
 </tr><tr>
  <td>0x00000001 S_OK</td>
  <td>Operation successful.</td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="7c62a2fd-63f4-435f-8fc8-c94e4509f6fd" data-linktype="relative-path">IResourceManager</a> interface
methods are specified in section 3.2.4.1.</p></div>