<div class="content" name="SetExclusionList" uuid="1809479f-953d-4996-a1e0-d4441b1560a7"><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>0x00000000 S_OK</td>
  <td>Operation successful.</td>
 </tr><tr>
  <td>0xC1FF006B WRM_ERR_TOO_LONG_PROCESS_NAME</td>
  <td>The exclusion list could not be returned because the number of characters in a process name has exceeded an implementation-defined limit.&lt;81&gt;.</td>
 </tr><tr>
  <td>0xC1FF006C WRM_ERR_EXCLUSION_LIST_LIMIT_EXCEEDED</td>
  <td>The exclusion list could not be returned because the number of processes that can be excluded has exceeded an implementation-defined limit.&lt;82&gt;</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>