<div class="content" name="GetUniqueConfigPath" uuid="f368fd09-096c-4f65-98ae-1918a3569560"><p>The GetUniqueConfigPath method is received by the server in
an RPC_REQUEST packet. In response, the server returns the deepest hierarchy
path (up to the specified hierarchy path) that contains a unique set of <a href="59774887-09e3-4de5-ad8e-4794f404b123" data-linktype="relative-path">IAppHostElement</a> objects.
For example:</p><p>Assume: At hierarchy path A, a set of IAppHostElement
objects exist. </p><p>Assume: At hierarchy path B (deeper than A), the identical
set of objects exists. </p><p>Given these assumptions, GetUniqueConfigPath( B ) returns
path A. In other words, the method returns the shallowest path that contains
the identical set of IAppHostElement objects as the specified path. </p><dl>
<dd>
<div><pre> HRESULT GetUniqueConfigPath(
   [in] BSTR bstrConfigPath,
   [out, retval] BSTR* pbstrUniquePath
 );
</pre></div>
</dd></dl><p><b>bstrConfigPath: </b>The hierarchy path for which
to find the shallowest equivalent path.</p><p><b>pbstrUniquePath: </b>Contains the shallowest
equivalent path.</p><p><b>Return Values: </b>The server MUST return zero if
it successfully processes the message that is received from the client. In this
case, *pbstrUniquePath is not NULL. If processing fails, the server MUST return
a nonzero <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
code as defined in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
The following table describes the error conditions that MUST be handled and the
corresponding error codes. A server MAY return additional
implementation-specific error codes.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0X00000000 NO_ERROR</td>
  <td>The operation completed successfully.</td>
 </tr><tr>
  <td>0X80070057 ERROR_INVALID_PARAMETER</td>
  <td>One or more parameters are incorrect or null.</td>
 </tr><tr>
  <td>0X80070013 ERROR_INVALID_DATA</td>
  <td>Configuration data or schema on the server are malformed or corrupted.</td>
 </tr><tr>
  <td>0X00000002 ERROR_PATH_NOT_FOUND</td>
  <td>A server resource (for example, a file on a disk) could not be found.</td>
 </tr><tr>
  <td>0X80070005 ERROR_ACCESS_DENIED</td>
  <td>Access to a server resource (for example, a file on a disk) was denied.</td>
 </tr><tr>
  <td>0X00000008 ERROR_NOT_ENOUGH_MEMORY</td>
  <td>Not enough memory is available to process this command.</td>
 </tr></tbody></table>
</dd></dl><p> </p></div>