<div class="content" name="GetVersion" uuid="bccca89e-6b44-4c1c-a842-f670c983a031"><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>0x00000001</td>
  <td>The server does not support the IEventSubscription3 and IEventClass3 interfaces, nor does it support the PartitionID and ApplicationID properties on the subscription (section 3.1.1.2) and event class (section 3.1.1.1) objects.</td>
 </tr><tr>
  <td>0x00000002</td>
  <td>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.</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>