<div class="content" name="SetAllPathStatuses" uuid="65be25f1-dd6d-4610-a537-0f454a221f0c"><p>The SetAllPathStatuses method sets the statuses of all paths
that originate from the <a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_49b98426-c07d-42ab-8ebc-bd088b107c24" data-linktype="relative-path">HBA</a>
port to a specified status.</p><dl>
<dd>
<div><pre> HRESULT SetAllPathStatuses(
   [in] VDS_PATH_STATUS status
 );
</pre></div>
</dd></dl><p><b>status: </b>The status, as defined by <a href="6141cfb6-47b3-4a6d-a944-40f87ceb957c" data-linktype="relative-path">VDS_PATH_STATUS</a>, to assign
to the <a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_2cd71385-2d9c-4ab8-bf4a-7b258816d613" data-linktype="relative-path">paths</a>.</p><p><b>Return Values: </b>The method MUST return zero or
a non-error <a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a> (as
specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>)
to indicate success, or return an implementation-specific nonzero error code to
indicate failure.<a id="Appendix_A_Target_76"></a><a aria-label="Product behavior note 76" href="6b2552ee-ba27-409f-99a8-18841573327a#Appendix_A_76" data-linktype="relative-path">&lt;76&gt;</a> For the HRESULT values
predefined by the Virtual Disk Service Remote Protocol, see section <a href="5102cc53-3143-4268-ba4c-6ea39e999ab4" data-linktype="relative-path">2.2.3</a>.</p></div>