<div class="content" name="OBJREF" uuid="fe6c5e46-adf8-4e34-a8de-3f756c875f31"><p><a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_d2b5b331-4e5f-417f-92c5-38eef54176c2" data-linktype="relative-path">OBJREF</a>
is the marshaled format for a DCOM Remote Protocol <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_3ca938ae-c14f-4f59-8a7d-daca9f76db4e" data-linktype="relative-path">object reference</a>. There are
four different formats for an OBJREF, which are specified by different
definitions of the <b>u_objref</b> field. This section defines the initial
header information. The following sections define substructures found in the <b>u_objref</b>
field.</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">signature</td>
 </tr>
 <tr>
  <td colspan="32">flags</td>
 </tr>
 <tr>
  <td colspan="32">iid (16 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">u_objref (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
</tbody></table><p><b>signature (4 bytes): </b>This MUST be set to the
value 0x574f454d.</p><p><b>flags (4 bytes): </b>This MUST be set to ONE of
the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>OBJREF_STANDARD 0x00000001</td>
  <td>u_objref MUST contain an OBJREF_STANDARD.</td>
 </tr><tr>
  <td>OBJREF_HANDLER 0x00000002</td>
  <td>u_objref MUST contain an OBJREF_HANDLER.</td>
 </tr><tr>
  <td>OBJREF_CUSTOM 0x00000004</td>
  <td>u_objref MUST contain an OBJREF_CUSTOM.</td>
 </tr><tr>
  <td>OBJREF_EXTENDED 0x00000008</td>
  <td>u_objref MUST contain an OBJREF_EXTENDED.</td>
 </tr></tbody></table>
</dd></dl><p><b>iid (16 bytes): </b> The <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_76ad3105-3f05-479d-a40c-c9c8fa2ebd83" data-linktype="relative-path">IID</a> for which this OBJREF
was marshaled; this MUST NOT be set to GUID_NULL.</p><dl>
<dd>
<p>The iid MUST be specified either by the uuid <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_73177eec-4092-420f-92c5-60b2478df824" data-linktype="relative-path">IDL</a> attribute (as specified
in <a href="https://go.microsoft.com/fwlink/?LinkId=89824" data-linktype="external">[C706]</a> section
4.2.4.1) of the interface type method parameter, or it MUST be specified using
the <a href="e2acd5d8-3d4d-48a8-acd6-fc278642272a" data-linktype="relative-path">iid_is IDL Attribute</a>.</p>
</dd></dl><p><b>u_objref (variable): </b> A structure specified by
the value of the preceding <b>flags</b>.</p></div>