<div class="content" name="GetSharePathsForLocalPath" uuid="5e780ba2-6deb-43ef-9bf8-8a88bb6b89b9"><p>The GetSharePathsForLocalPath method returns all the network
share paths that point to the specified local path.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_PATHMAPPER | 0x01)] HRESULT GetSharePathsForLocalPath(
   [in] BSTR localPath,
   [out, retval] SAFEARRAY (VARIANT)* sharePaths
 );
</pre></div>
</dd></dl><p><b>localPath: </b>Contains the local path for which
to return network shares for. </p><p><b>sharePaths: </b>Pointer to a <a href="../ms-oaut/2e87a537-9305-41c6-a88b-b79809b3703a" data-linktype="relative-path">SAFEARRAY</a>
that upon completion contains all the network share paths that point to the
specified path.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80045306 FSRM_E_INVALID_PATH</td>
  <td>The local path to return network shares does not exist or exceeds the maximum length of 260 characters.</td>
 </tr><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>This code is returned for the following reasons:  The localPath parameter is empty or NULL.  The sharePaths parameter is NULL.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>localPath</i> directory is not NULL or empty.</p>
</li><li><p><span><span> 
</span></span>Verify that <i>sharePaths</i> is not NULL.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>The server MUST populate <i>sharePaths</i> with all the
network share paths that have the <i>localPath</i> as a parent directory.</p></div>