<div class="content" name="SaveData" uuid="11d7ab23-ecd4-4764-8aa8-765564e8501d"><p>The SaveData method explicitly flushes the <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_086b13f2-2715-4000-a16c-6acc3d59cc19" data-linktype="relative-path">metabase</a> data resident in
memory to configuration storage.</p><dl>
<dd>
<div><pre> HRESULT SaveData();
</pre></div>
</dd></dl><p>This method has no parameters.</p><p><b>Return Values: </b>A signed 32-bit value that
indicates return status. If the method returns a negative value, it failed. If
the 12-bit facility code (bits 16–27) is set to 0x007, the value contains a
Win32 error code in the lower 16 bits. Zero or positive values indicate
success, with the lower 16 bits in positive nonzero values containing warnings
or flags defined in the method implementation. For more information about Win32
error codes and <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
values, see <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.</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>The call was successful.</td>
 </tr><tr>
  <td>0x80070094 ERROR_PATH_BUSY</td>
  <td>The path specified cannot be used at this time.</td>
 </tr></tbody></table>
</dd></dl><p>The <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_e127848e-c66d-427d-b3aa-9f904fa4ada7" data-linktype="relative-path">opnum</a>
field value for this method is 20. </p><p>When processing this call, the server MUST do the following:</p><ul><li><p><span><span> 
</span></span>If a handle is open with write permissions, the server SHOULD
return ERROR_PATH_BUSY.<a id="Appendix_A_Target_19"></a><a aria-label="Product behavior note 19" href="88fd1df0-e63e-41ca-9bf3-bedcab57cd86#Appendix_A_19" data-linktype="relative-path">&lt;19&gt;</a></p>
</li></ul><p>Save all data in the metabase that has changed since the
last time the metabase was saved.</p></div>