<div class="content" name="ModifyThreshold" uuid="3ec014bb-53d2-4b98-b94d-8a99af5b7224"><p>The ModifyThreshold method modifies the disk usage
percentage of an existing <b>threshold</b> in the quota object&#39;s list of <b>thresholds</b>.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_QUOTA_BASE | 0x03)] HRESULT ModifyThreshold(
   [in] FSRM_QUOTA_THRESHOLD threshold,
   [in] FSRM_QUOTA_THRESHOLD newThreshold
 );
</pre></div>
</dd></dl><p><b>threshold: </b>Contains the value of the <b>threshold</b>
to modify.</p><p><b>newThreshold: </b>Contains the new value of the <b>threshold</b>.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80045301 FSRM_E_NOT_FOUND</td>
  <td>No threshold was found on the quota object equal to the value specified in the threshold parameter.</td>
 </tr><tr>
  <td>0x80045303 FSRM_E_ALREADY_EXISTS</td>
  <td>A threshold equal to the newThreshold parameter already exists for the quota object.</td>
 </tr><tr>
  <td>0x8004530D FSRM_E_OUT_OF_RANGE</td>
  <td>The content of the threshold parameter is less than 1 or greater than 250.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>threshold</i> is greater than 0 and less than 251.</p>
</li><li><p><span><span> 
</span></span>Verify that <i>newThreshold</i> is greater than 0 and less than
251.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>The server MUST modify the quota object&#39;s entry for <i>threshold</i>
to use <i>newThreshold</i> or return a nonzero error code. If the <b>threshold</b>
does not exist for the quota object, the server MUST return FSRM_E_NOT_FOUND.</p></div>