<div class="content"><p> </p><p>The GetVersion method retrieves the version of the <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a></span>
implementation of the protocol.</p><dl>
<dd>
<div><pre> [id(7), helpstring(&#34;method GetVersion&#34;)] HRESULT GetVersion(
   [out] int* pnVersion
 );
</pre></div>
</dd></dl><p><b>pnVersion: </b>If the function returns a success <span><a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a></span>,
it MUST contain one of the following:</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000001</p>
  </td>
  <td>
  <p>The server does not support the <span><a href="cc19d39a-b232-4df9-9b8b-ac8459988a04" data-linktype="relative-path">IEventSubscription3</a></span>
  and <span><a href="75a639ed-d605-4331-b5d3-bf7efb8f4edf" data-linktype="relative-path">IEventClass3</a></span>
  interfaces, nor does it support the PartitionID and ApplicationID properties
  on the <span><a href="0d617a76-fc58-455c-9e30-1a8436c5f73a" data-linktype="relative-path">subscription</a></span>
  (section 3.1.1.2) and <span><a href="66217d57-8c60-4423-9b24-52923f4c2afa" data-linktype="relative-path">event class</a></span>
  (section 3.1.1.1) <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">objects</a></span>.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x00000002</p>
  </td>
  <td>
  <p>The server supports the IEventSubscription3 and
  IEventClass3 interfaces. It also supports the PartitionID and ApplicationID
  properties on the subscription (section 3.1.1.2) and event class (section
  3.1.1.1) objects.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>Return Values: </b>An HRESULT specifying success
or failure. All success codes MUST be treated the same, and all failure codes
MUST be treated the same.</p><p>When this method is invoked, the server MUST attempt to
return the pnVersion value corresponding to the interfaces it supports, and
fail the call, returning a failure HRESULT back to the client if it cannot.</p></div>