<div class="content"><p>This method is called by a COMA client to synchronize with
the server after performing a write operation.</p><dl>
<dd>
<div><pre> HRESULT WaitForEndWrites();
</pre></div>
</dd></dl><p>This method has no parameters.</p><p><b>Return Values: </b>This method MUST return S_OK
(0x00000000) on success, and a failure result, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>,
on failure. All failure results MUST be treated identically.</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>The call was successful.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving a call to this method, the server MUST
attempt to wait until it can guarantee that the state of the <a href="3f01a312-3391-4109-a96e-95358babf191#gt_0944227d-0566-49e1-989f-2fff6e02542d" data-linktype="relative-path">catalog</a> for subsequent
reads from and writes to the catalog will reflect all previous writes, and fail
if it cannot.</p><p>If the server makes this guarantee on return from <a href="3fe6b10a-65d3-4bcd-8897-f84512d52f3b" data-linktype="relative-path">ICatalogTableWrite::WriteTable (section 3.1.4.9.1)</a>,
the server SHOULD immediately return S_OK (0x00000000).</p></div>