共用方式為


3.1.4.1 IEventSystem

The IEventSystem interface provides methods to create, query, delete, and update event classes and subscriptions. The interface inherits opnums 0 through 6 from IDispatch as specified in [MS-OAUT] section 3.1.4. The version for this interface is 0.0.

To receive incoming remote calls for this interface, the server MUST implement a DCOM object class with the CLSID CLSID_EventSystem (see section 1.9) using the UUID {4E14FB9F-2E22-11D1-9964-00C04FBBB345} for this interface.

The interface includes the following methods beyond those in IDispatch.

Methods in RPC Opnum Order

Method

Description

Query

Queries for a collection of event classes or subscriptions based on a query string.

Opnum: 7

Store

Stores an event class or subscription.

Opnum: 8

Remove

Removes a collection of event classes or subscriptions based on a query.

Opnum: 9

get_EventObjectChangeEventClassID

Returns the CLSID for the event class that notifies when a subscription or an event class has changed.

Opnum: 10

QueryS

Queries for a single event class or subscription based on a query string.

Opnum: 11

RemoveS

Removes a single event class or subscription based on a query.

Opnum: 12