<div class="content"><p>The EnumerateApplicationsInPool method returns the metabase
paths for the applications associated with the application pool.</p><dl>
<dd>
<div><pre> HRESULT EnumerateApplicationsInPool(
   [in, unique, string] LPCWSTR szPool,
   [out] BSTR* bstrBuffer
 );
</pre></div>
</dd></dl><p><b>szPool: </b>A pointer to a Unicode string that
contains the name of the application pool to enumerate.</p><p><b>bstrBuffer: </b>A pointer to a <a href="../ms-oaut/1c9d2cfc-cf7d-4f4b-95bf-584be5defd81" data-linktype="relative-path">BSTR</a>
that receives the application <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_086b13f2-2715-4000-a16c-6acc3d59cc19" data-linktype="relative-path">metabase</a>
paths. The BSTR contains a sequence of contiguous null-terminated strings. The
buffer is terminated by another null character. The server allocates storage,
and the client is responsible for freeing the storage with SysFreeString; see <a href="../ms-oaut/bbb05720-f724-45c7-8d17-f83c3d1a3961" data-linktype="relative-path">[MS-OAUT]</a>.</p><p><b>Return Values: </b> A signed 32-bit value that
indicates return status. If the method returns a negative value, it failed. If
the 12-bit facility code (bits 16–27) is set to 0x007, the value contains a Win32
error code in the lower 16 bits. Zero or positive values indicate success, with
the lower 16 bits in positive nonzero values containing warnings or flags
defined in the method implementation. For more information about Win32 error
codes and <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
values, see <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_e127848e-c66d-427d-b3aa-9f904fa4ada7" data-linktype="relative-path">opnum</a>
field value for this method is 7. </p><p>When processing this call, the server MUST do the following:</p><ul><li><p><span><span> 
</span></span>Determine the metabase paths of all applications associated with
the application pool specified by the <i>szPool</i> parameter. The paths are
returned as contiguous, null-terminated strings in the <i>bstrBuffer</i>
parameter.</p>
</li></ul></div>