<div class="content"><p> </p><p>The QueryAccessPaths method returns a list of access <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_2cd71385-2d9c-4ab8-bf4a-7b258816d613" data-linktype="relative-path">paths</a></span>
and a <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_1b153cd0-e3f3-4383-bc66-d5ad482c9766" data-linktype="relative-path">drive letter</a></span> as a
single case-insensitive Unicode character, if one exists, for the current <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_9a876829-33a1-4f0b-8b81-8552b7e5561c" data-linktype="relative-path">volume</a></span>.</p><dl>
<dd>
<div><pre> HRESULT QueryAccessPaths(
   [out, string, size_is(,*plNumberOfAccessPaths)] 
     LPWSTR** pwszPathArray,
   [out] long* plNumberOfAccessPaths
 );
</pre></div>
</dd></dl><p><b>pwszPathArray: </b>A pointer to an array of
strings that, if the operation is successfully completed, receives the array of
access paths. </p><p><b>plNumberOfAccessPaths: </b>A pointer to a variable
that, if the operation is successfully completed, receives the total number of
elements returned in <b>pwszPathArray</b>.</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
following parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <b>pwszPathArray</b> is not NULL.</p>
</li><li><p><span><span> 
</span></span>Verify that <b>plNumberOfAccessPaths</b> is not NULL.</p>
</li></ul><p>If parameter validation fails, the server MUST fail the
operation immediately, returning a vendor-specific error as its response to the
client.</p><p>The server MUST point <b>pwszPathArray</b> to an array of
strings that contains the access paths to the volume, point <b>plNumberOfAccessPaths</b>
to the size of the array, and return an HRESULT indicating failure or success.</p></div>