<div class="content" name="AbortShadowCopySet" uuid="0c8bb399-6dec-4d28-90f6-a49dd05c8adc"><p>The <b>AbortShadowCopySet</b> method is invoked by the
client to delete a given <a href="0856b278-46f4-4f3e-bc06-bc382b26428b#gt_34537940-5a56-4122-b6ff-b9a4d065d066" data-linktype="relative-path">shadow
copy</a> set on the server.</p><dl>
<dd>
<div><pre> DWORD AbortShadowCopySet(
         [in] handle_t hBinding,
         [in] GUID ShadowCopySetId);
  
</pre></div>
</dd></dl><p><b>hBinding:</b>  An RPC binding handle (as defined
in <a href="https://go.microsoft.com/fwlink/?LinkId=89824" data-linktype="external">[C706]</a>).</p><p><b>ShadowCopySetId:</b> The GUID of the shadow copy
set.</p><p><b>Return Values:</b> The method returns one of the
values as specified in section <a href="b45c794e-9362-42b7-80c6-7dae3382acf0" data-linktype="relative-path">2.2.4</a>. The most common
error codes are listed in the following table.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80070005 E_ACCESSDENIED</td>
  <td>The caller does not have the permissions to perform the operation.</td>
 </tr><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>One or more arguments are invalid.</td>
 </tr><tr>
  <td>0x80042301 FSRVP_E_BAD_STATE</td>
  <td>The method call is invalid because of the server&#39;s state.</td>
 </tr><tr>
  <td>0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH</td>
  <td>The provided ShadowCopySetId does not exist.</td>
 </tr></tbody></table>
</dd></dl><p>The server MUST fail the call with E_INVALIDARG if <b>ShadowCopySetId</b>
is set to NULL.</p><p>The server MUST look up the <b>ShadowCopySet</b> from <b>GlobalShadowCopysetTable</b>
using the index <i>ShadowCopySetId.</i> If no shadow copy set is found, the
server MUST fail the call with FSRVP_E_SHADOWCOPYSET_ID_MISMATCH.</p><p>The server MUST attempt to abort the shadow copy set. If the
process returns an error, the server MUST fail the call with the same error
code.</p><p>The server MUST delete <b>ShadowCopySet</b> from <b>GlobalShadowCopySetTable</b>
and free the <b>ShadowCopySet</b> object. The server MUST set <b>ContextSet</b>
to FALSE, set <b>ShadowCopyClientAddress</b> to NULL, and return ZERO to the
caller.</p></div>