<div class="content" name="Context_ORPC_Extension" uuid="df24170b-8b79-48aa-85d9-962fb967e3f9"><p>CLSID_CONTEXT_EXTENSION is the identifying <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_f49694cc-c350-462d-ab8e-816f0103c6c1" data-linktype="relative-path">GUID</a> for this <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_aae39d05-becf-4cb4-bdfc-b05bc8ccabde" data-linktype="relative-path">ORPC extension</a>, which is
marshaled into the data field of an <a href="ef4cb798-89e7-40a7-961d-92fafa85f829" data-linktype="relative-path">ORPC_EXTENT</a> using the
structure format that follows.</p><p>A context ORPC extension is used when a client or server
passes data associated with a <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_dc143034-cb8f-4d90-87ef-0fa96333807f" data-linktype="relative-path">context
property</a> along with and in response to an <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_d4ad46fe-cbab-43f2-a125-b2f125824f33" data-linktype="relative-path">ORPC</a> call.</p><p>All fields MUST be marshaled with the same endianness as the
encompassing <a href="ba4c4d80-ef81-49b4-848f-9714d72b5c01#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> PDU.</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">Version</td>
 </tr>
 <tr>
  <td colspan="32">cPolicies</td>
 </tr>
 <tr>
  <td colspan="32">cbBuffer</td>
 </tr>
 <tr>
  <td colspan="32">cbSize</td>
 </tr>
 <tr>
  <td colspan="32">hr</td>
 </tr>
 <tr>
  <td colspan="32">hrServer</td>
 </tr>
 <tr>
  <td colspan="32">reserved</td>
 </tr>
 <tr>
  <td colspan="32">EntryHeader (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">PolicyData (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
</tbody></table><p><b>Signature (4 bytes): </b> This MUST be set to
0x414E554B.</p><p><b>Version (4 bytes): </b> This MUST be set to
0x00010000.</p><p><b>cPolicies (4 bytes): </b>The unsigned number of
elements in the <b>EntryHeader</b> array. This MUST also be equal to the number
of elements in the <b>PolicyData</b> array.</p><p><b>cbBuffer (4 bytes): </b> An
implementation-specific value that MUST be ignored on receipt.<a id="Appendix_A_Target_20"></a><a aria-label="Product behavior note 20" href="acc42954-4073-4f05-b850-efd562022077#Appendix_A_20" data-linktype="relative-path">&lt;20&gt;</a></p><p><b>cbSize (4 bytes): </b>The unsigned size (in bytes)
from the beginning of this structure to the end of the last <b>EntryHeader</b>.</p><p><b>hr (4 bytes): </b> An <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
that MUST be set to zero and MUST be ignored on receipt.</p><p><b>hrServer (4 bytes): </b> An HRESULT that MUST be
set to zero when sent from client to server and MUST be ignored on receipt.
When sent from server to client, this field MAY contain an
implementation-specific error value.<a id="Appendix_A_Target_21"></a><a aria-label="Product behavior note 21" href="acc42954-4073-4f05-b850-efd562022077#Appendix_A_21" data-linktype="relative-path">&lt;21&gt;</a></p><p><b>reserved (4 bytes): </b> This MUST be set to zero
and MUST be ignored on receipt.</p><p><b>EntryHeader (variable): </b> An array of <a href="629d4c21-91df-48dd-92ca-b150832da051" data-linktype="relative-path">EntryHeader</a> structures.
The number of elements in the array MUST be specified in cPolicies.</p><p><b>PolicyData (variable): </b> An array of byte
arrays. The number of elements in the outer array MUST be specified in
cPolicies. The number of elements in the byte array MUST be specified in the <b>cbEHBuffer</b>
field (see section 2.2.21.5) in the corresponding element in the EntryHeader
array. </p><p>Both the EntryHeader and PolicyData arrays MUST have sizes
that are integral multiples of eight, and all padding bytes MUST be initialized
to zero and MUST be ignored on receipt.</p></div>