<div class="content"><p>The R_GetServerGuid method returns a <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_f49694cc-c350-462d-ab8e-816f0103c6c1" data-linktype="relative-path">GUID</a> for this <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_ae2a9876-7fed-4f0d-a390-bf78f76c0736" data-linktype="relative-path">DCOM</a> <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">object</a>.</p><dl>
<dd>
<div><pre> HRESULT R_GetServerGuid(
   [out] GUID* pServerGuid
 );
</pre></div>
</dd></dl><p><b>pServerGuid: </b>A <a href="../ms-dtyp/4926e530-816e-41c2-b251-ec5c7aca018a" data-linktype="relative-path">GUID</a>
uniquely identifying this DCOM object.</p><p><b>Return Values: </b>A signed 32-bit value that
indicates return status. If the method returns a negative value, it failed. If
the 12-bit facility code (bits 16–27) is set to 0x007, the value contains a
Win32 error code in the lower 16 bits. Zero or positive values indicate
success, with the lower 16 bits in positive nonzero values containing warnings
or flags defined in the method implementation. For more information about Win32
error codes and <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
values, see <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_e127848e-c66d-427d-b3aa-9f904fa4ada7" data-linktype="relative-path">opnum</a>
field value for this method is 33.</p><p>When processing this call, the server MUST do the following:</p><ul><li><p><span><span> 
</span></span>If this is the first time the method has been called on this DCOM
object, generate a GUID and return it to the client in the <i>pServerGuid</i>
parameter. Subsequent calls to the same DCOM object MUST return the same GUID.</p>
</li></ul></div>