3.1.4.10.1 GetVersion (Opnum 13)

The GetVersion method retrieves the version of the server implementation of the protocol.

 [id(7), helpstring("method GetVersion")] HRESULT GetVersion(
   [out] int* pnVersion
 );

pnVersion: If the function returns a success HRESULT, it MUST contain one of the following:

Value

Meaning

0x00000001

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.

0x00000002

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.

Return Values: An HRESULT specifying success or failure. All success codes MUST be treated the same, and all failure codes MUST be treated the same.

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.