<div class="content" name="ImportXMLFiles" uuid="70173dcf-6eff-4e66-9947-6a479942ed78"><p>The <b>ImportXMLFiles</b> method loads a specified <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_c18a91a3-689f-4e5e-9a91-c7b8f5402c5e" data-linktype="relative-path">WSRM configuration</a>.</p><dl>
<dd>
<div><pre> [id(3), helpstring(&#34;method ImportXMLFiles&#34;)] HRESULT ImportXMLFiles(
   [in] BSTR bstrPMCXml,
   [in] BSTR bstrPolicyXml,
   [in] BSTR bstrCalendarXml,
   [in] BSTR bstrConditionalXml
 );
</pre></div>
</dd></dl><p><b>bstrPMCXml: </b>A string that specifies the <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_65daee12-445f-41c0-8456-f728063bef24" data-linktype="relative-path">PMCs</a> to be loaded by the
server, in the form of a <a href="361984a5-60a9-4e17-99ce-95c4a1e898c3" data-linktype="relative-path">ProcessMatchingCriteriaCollection
element (section 2.2.5.25)</a>. For an example, see <a href="702d097a-9c16-4a63-8254-89e349a182d4" data-linktype="relative-path">ProcessMatchingCriteriaCollection</a>
example (section 4.2.21). This parameter is ignored if it is NULL.</p><p><b>bstrPolicyXml: </b>A string that specifies <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_2ced4dc1-842a-4bf8-bdac-0e8d505d5ce6" data-linktype="relative-path">resource policies</a> to be
loaded by the server, in the form of a <a href="1c010046-ccb3-41cb-8490-b181b715b16b" data-linktype="relative-path">PolicyCollection
element (section 2.2.5.22)</a>. This parameter is ignored if it is
NULL.</p><p><b>bstrCalendarXml: </b>A string that specifies <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_7204b2ed-dcef-4434-be15-6451f92d03fb" data-linktype="relative-path">calendars</a> to be loaded by
the server, in the form of a <a href="04f7e237-6892-4d93-8867-de7b62aef6e0" data-linktype="relative-path">CalendarsCollection
element (section 2.2.5.11)</a>. For an example, see <a href="d0f9f144-01b1-4f21-b179-f51df713b0ca" data-linktype="relative-path">CalendarsCollection</a>
example (section 4.2.8). This parameter is ignored if it is NULL.</p><p><b>bstrConditionalXml: </b>A string that specifies
conditions to be loaded by the server, in the form of a <a href="f00d308a-d050-4368-a663-b740f11087e5" data-linktype="relative-path">ConditionalPolicy
element (section 2.2.5.12)</a>. For an example, see section <a href="11562c25-a21c-400a-84b5-2ca8e97bac47" data-linktype="relative-path">4.2.9</a>. This parameter is
ignored if it is NULL.</p><p><b>Return Values: </b>This method returns 0x00000000
for success or a negative <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a>
value (in the following table or in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/705fb797-2175-4a90-b5a3-3918024b10b8" data-linktype="relative-path">2.1.1</a>)
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 S_OK</td>
  <td>Operation successful.</td>
 </tr><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>One or more arguments are invalid.</td>
 </tr><tr>
  <td>0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER</td>
  <td>The XML data that is maintained by the management service is invalid or cannot be processed.&lt;27&gt;</td>
 </tr></tbody></table>
</dd></dl><p>The ImportXMLFiles method can be used to manage system
resources by importing a valid <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_6442eac9-3264-4d95-a435-fdc08e71603f" data-linktype="relative-path">RAP</a>.</p><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>