<div class="content"><p>The SetExclusionList method updates the contents of the <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_cca0ab9e-fde0-4f0f-b135-db8451c0594e" data-linktype="relative-path">exclusion list</a> which is of
type USER_EXCLUSION_LIST.</p><dl>
<dd>
<div><pre> [id(6), helpstring(&#34;method SetExclusionList&#34;)] HRESULT SetExclusionList(
   [in] BSTR bstrExclusionList
 );
</pre></div>
</dd></dl><p><b>bstrExclusionList: </b>A string that specifies a
list of processes, in the form of an <a href="e4a798f1-7eef-4342-a3ee-fe6be6c0e8ab" data-linktype="relative-path">ExclusionList</a> element
(section 2.2.5.16). For an example, see (section <a href="7f4ee0ea-be67-4cca-a44c-ad6bfc7da803" data-linktype="relative-path">4.2.13</a>).</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>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>Operation successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF006B</p>
  <p>WRM_ERR_TOO_LONG_PROCESS_NAME</p>
  </td>
  <td>
  <p>The exclusion list could not be returned because the
  number of characters in a process name has exceeded an implementation-defined
  limit.<a id="Appendix_A_Target_81"></a><a aria-label="Product behavior note 81" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_81" data-linktype="relative-path">&lt;81&gt;</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF006C</p>
  <p>WRM_ERR_EXCLUSION_LIST_LIMIT_EXCEEDED</p>
  </td>
  <td>
  <p>The exclusion list could not be returned because the
  number of processes that can be excluded has exceeded an
  implementation-defined limit.<a id="Appendix_A_Target_82"></a><a aria-label="Product behavior note 82" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_82" data-linktype="relative-path">&lt;82&gt;</a></p>
  </td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="38d3fffd-48ad-4e02-a7ce-b13da6304c80" data-linktype="relative-path">IWRMConfig</a> interface
methods are specified in section 3.2.4.5.</p></div>