<div class="content" name="ExportConglomeration" uuid="6fd01e9b-3cec-421a-9307-b4f5973d8b65"><p>This method is called by a client to <a href="3f01a312-3391-4109-a96e-95358babf191#gt_f0e19764-1f7d-4410-beca-8a76aa3c9c85" data-linktype="relative-path">export</a> a <a href="3f01a312-3391-4109-a96e-95358babf191#gt_ea5c531f-5dd5-43aa-9da1-2ae068c622db" data-linktype="relative-path">conglomeration</a> to an <a href="3f01a312-3391-4109-a96e-95358babf191#gt_b1856eaa-54fc-49af-a38c-55cc86e7b93e" data-linktype="relative-path">installer package file</a>.</p><dl>
<dd>
<div><pre> HRESULT ExportConglomeration(
   [in] GUID* pConglomerationIdentifier,
   [in] LPCWSTR pwszInstallerPackage,
   [in] LPCWSTR pwszReserved,
   [in] DWORD dwFlags
 );
</pre></div>
</dd></dl><p>pConglomerationIdentifier: The <a href="3f01a312-3391-4109-a96e-95358babf191#gt_0ab5119e-c719-4a5c-9198-55a0a2fb508a" data-linktype="relative-path">conglomeration identifier</a>
of a conglomeration on the server.</p><p>pwszInstallerPackage: A path in <a href="3f01a312-3391-4109-a96e-95358babf191#gt_c9507dca-291d-4fd6-9cba-a9ee7da8c908" data-linktype="relative-path">UNC</a> that is to be used as
the location for the server to create an installer package file.</p><p>pwszReserved:  MUST be an empty (zero-length) string.</p><p>dwFlags:  MUST be a combination of zero or more of
the following flags.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Flag</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>fEXPORT_OVERWRITE 0x00000001</td>
  <td>The server SHOULD mark the installer package file with a directive that existing files be overwritten on import (section 3.1.4.12.1).</td>
 </tr><tr>
  <td>fEXPORT_WITHUSERS 0x00000010</td>
  <td>The server SHOULD include user account information in the installer package file.</td>
 </tr><tr>
  <td>fEXPORT_PROXY 0x00000020</td>
  <td>The server SHOULD mark the exported conglomeration as a proxy conglomeration by setting the IsProxyApp property to TRUE (0x00000001).</td>
 </tr><tr>
  <td>fEXPORT_CATVER300 0x00000080</td>
  <td>The server SHOULD only include configuration that is defined in catalog version 3.00.</td>
 </tr></tbody></table>
</dd></dl><p><b>Return Values: </b>This method MUST return S_OK
(0x00000000) on success, and a failure result, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>,
on failure. All failure results MUST be treated identically.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 S_OK</td>
  <td>The call was successful.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving a call to this method, the server MUST verify
that <a href="3f01a312-3391-4109-a96e-95358babf191#gt_0944227d-0566-49e1-989f-2fff6e02542d" data-linktype="relative-path">catalog</a> version
negotiation has been performed by checking the negotiated catalog version (as
specified in section <a href="a667265b-22a8-43bb-b462-13528061e009" data-linktype="relative-path">3.1.1.5</a>),
and fail the call if not.</p><p>The server MUST then attempt to perform an
implementation-specific<a id="Appendix_A_Target_341"></a><a aria-label="Product behavior note 341" href="022303e7-5044-4e20-8024-30dc89bb5f69#Appendix_A_341" data-linktype="relative-path">&lt;341&gt;</a>export
procedure that creates an installer package file that the server will
recognize. This document does not specify the contents of this file, except
that it SHOULD contain enough information to make round-trip consistent <a href="3f01a312-3391-4109-a96e-95358babf191#gt_ec8a6199-20ef-4b34-ba68-bc134f6a5721" data-linktype="relative-path">import</a> (see section
3.1.4.12.1) possible.</p></div>