<div class="content"><p>The Scan method starts a quota scan on the specified path.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_QUOTA_MANAGER | 0x09)] HRESULT Scan(
   [in] BSTR strPath
 );
</pre></div>
</dd></dl><p><b>strPath: </b>Contains the path at which to start
the quota scan. The maximum length of this string MUST be 260 characters.</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>
  <p>0x80045301</p>
  <p>FSRM_E_NOT_FOUND</p>
  </td>
  <td>
  <p>A quota for the specified path could not be found.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80045306</p>
  <p>FSRM_E_INVALID_PATH</p>
  </td>
  <td>
  <p>The content of the <i>strPath</i> parameter exceeds
  the maximum length of 260 characters.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070057</p>
  <p>E_INVALIDARG</p>
  </td>
  <td>
  <p>The <i>strPath</i> parameter is NULL or empty.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The server MUST search the <b>List of Persisted Directory
Quotas</b> (section <a href="38a86a9b-0221-493b-80e4-3dab6560c53b" data-linktype="relative-path">3.2.1.2</a>)
for a <a href="4a94faeb-8aed-46fa-9d03-479f6708995a" data-linktype="relative-path">Persisted Directory
Quota</a> (section 3.2.1.2.1.1) with a <a href="592dad39-f14e-4c5b-b7bc-a1c0bc4724b3" data-linktype="relative-path">Directory Quota.Folder path</a>
equal to <i>strPath</i>. If a persisted directory quota is found, the server
MUST start a quota scan (section <a href="7d4ac72b-0bf7-4151-9d16-368ef72d8e77" data-linktype="relative-path">3.2.1.12.4</a>) on the
persisted directory quota, or return a nonzero error code.</p><p>If a persisted directory quota does not exist for the path
specified, the server MUST return FSRM_E_NOT_FOUND. If a Persisted Directory
Quota (section 3.2.1.2.1.1) exists for <i>strPath</i> and the quota
scan completes successfully, the server MUST return zero.</p></div>