<div class="content"><p> </p><p>The IVdsPack::RemoveMissingDisk method removes the specified
missing <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_c4133b2a-a990-4042-ba44-7fda3090f118" data-linktype="relative-path">disk</a></span> from a <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_a6543827-8d70-4e5a-a982-2fdc2e7f8bca" data-linktype="relative-path">disk pack</a></span>.
This method only applies to dynamic disks. At least one dynamic disk needs to
be present to enumerate missing disks.</p><dl>
<dd>
<div><pre> HRESULT RemoveMissingDisk(
   [in] VDS_OBJECT_ID DiskId
 );
</pre></div>
</dd></dl><p><b>DiskId: </b>The <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_27e6393b-d035-40c5-8503-d7affe7bd27b" data-linktype="relative-path">VDS object</a></span> ID of the
disk object to remove.</p><p><b>Return Values: </b>The method MUST return zero or
a non-error <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a></span> (as
specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>)
to indicate success, or return an implementation-specific nonzero error code to
indicate failure. For the HRESULT values predefined by the Virtual Disk Service
Remote Protocol, see section <span><a href="5102cc53-3143-4268-ba4c-6ea39e999ab4" data-linktype="relative-path">2.2.3</a></span>.</p><p>When the server receives this message, it MUST validate the
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <b>DiskId</b> belongs to a disk object in the list of
storage management objects that correspond to a disk that is missing. The
missing disk has its <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_890bb28d-df68-420f-a8bc-83899d34ad5c" data-linktype="relative-path">pack</a></span> pointer set to
this pack object.</p>
</li><li><p><span><span> 
</span></span>If this method is called against a disk which contains data <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_9a876829-33a1-4f0b-8b81-8552b7e5561c" data-linktype="relative-path">volume</a></span>
extents, then this method MUST return VDS_E_DISK_NOT_EMPTY.</p>
</li></ul><p>For each callback object that is registered in the list of
callback objects, call the callback object&#39;s <span><a href="04a70bf6-208d-463a-b0a4-cc96e198ded1" data-linktype="relative-path">IVdsAdviseSink::OnNotify (section 3.3.4.3.1)</a></span>
method by using a <span><a href="4f29057f-ab32-4a3d-9fcb-00ba3457cb42" data-linktype="relative-path">VDS_NOTIFICATION (section 2.2.1.3.9)</a></span>
structure that has the following attributes:</p><ul><li><p><span><span> 
</span></span><b>objectType</b> member is the value VDS_NTT_PACK.</p>
</li><li><p><span><span> 
</span></span><b>Pack</b> member is a <span><a href="d502258f-be31-4298-882b-581f4804a344" data-linktype="relative-path">VDS_PACK_NOTIFICATION (section 2.2.1.3.2)</a></span>
structure that has the following attributes:</p>
<ul><li><p><span><span>  </span></span><b>ulEvent</b>
is the value VDS_NF_PACK_MODIFY.</p>
</li><li><p><span><span>  </span></span><b>packId</b>
is the <span><a href="9186f1ce-04de-4df2-a8cf-3925a02fcd47" data-linktype="relative-path">VDS_OBJECT_ID (section 2.2.1.1.3)</a></span>
value of this pack object.</p>
</li></ul></li></ul><p>The server MUST remove the disk having a VDS_OBJECT_ID that
is specified by <b>DiskId</b> to this pack, remove the corresponding disk
object from the list of storage management objects, and return an HRESULT
indicating failure or success.<a id="Appendix_A_Target_85"></a><a aria-label="Product behavior note 85" href="6b2552ee-ba27-409f-99a8-18841573327a#Appendix_A_85" data-linktype="relative-path">&lt;85&gt;</a></p></div>