<div class="content" name="IContainerControl2" uuid="4d5f12a7-e5cd-40a3-af99-0e90f24e90ff"><p>The IContainerControl2 <a href="3f01a312-3391-4109-a96e-95358babf191#gt_95913fbd-3262-47ae-b5eb-18e6806824b9" data-linktype="relative-path">interface</a> provides methods
for controlling <a href="24094dc0-325f-4692-b0dc-f73af34021fb" data-linktype="relative-path">InstanceContainers (section 2.2.9)</a>.
This interface inherits from <a href="../ms-dcom/2b4db106-fb79-4a67-b45f-63654f19c54c" data-linktype="relative-path">IUnknown</a>,
as specified in <a href="../ms-dcom/4a893f3d-bd29-48cd-9f43-d9777a4415b0" data-linktype="relative-path">[MS-DCOM]</a>
section 3.1.1.5.8.</p><p>To receive incoming remote calls for this interface, the
server MUST implement a DCOM Object Class with the <a href="3f01a312-3391-4109-a96e-95358babf191#gt_e433c806-6cb6-46a2-bb95-523df8818c99" data-linktype="relative-path">CLSID</a> CLSID_COMAServer,
specified in section <a href="3afd05f6-01a3-4920-951f-f9c703a3b0f1" data-linktype="relative-path">1.9</a>,
using the <a href="3f01a312-3391-4109-a96e-95358babf191#gt_c4813fc3-b2e5-4aa3-bde7-421d950d68d3" data-linktype="relative-path">UUID</a>
{6C935649-30A6-4211-8687-C4C83E5FE1C7} for this interface.</p><p>This interface includes the following methods beyond those
of IUnknown.</p><p>Methods in RPC Opnum Order</p><table><thead>
  <tr>
   <th>
   <p>Method</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>ShutdownContainer</td>
  <td>Shuts down an instance container. Opnum: 3</td>
 </tr><tr>
  <td>PauseContainer</td>
  <td>Pauses an instance container. Opnum: 4</td>
 </tr><tr>
  <td>ResumeContainer</td>
  <td>Resumes a paused instance container. Opnum: 5</td>
 </tr><tr>
  <td>IsContainerPaused</td>
  <td>Determines whether an instance container is paused. Opnum: 6</td>
 </tr><tr>
  <td>GetRunningContainers</td>
  <td>Returns a list of running instance containers for a conglomeration. Opnum: 7</td>
 </tr><tr>
  <td>GetContainerIDFromProcessID</td>
  <td>Returns the instance container identifier corresponding to a process identifier. Opnum: 8</td>
 </tr><tr>
  <td>RecycleContainer</td>
  <td>Forces an instance container to be recycled. Opnum: 9</td>
 </tr><tr>
  <td>GetContainerIDFromConglomerationID</td>
  <td>Returns the instance container identifier of an instance container for a conglomeration. Opnum: 10</td>
 </tr></tbody></table><p>All methods MUST NOT throw exceptions.</p></div>