Platform SDK: Exchange 2000 Server

IExStoreEventInfo::GetEventSession

[This is preliminary documentation and subject to change.]

Returns the requested interface on the OLE DB Session object under which the event is executing.

[Visual Basic,VBScript]
not applicable
[C++]
HRESULT GetEventSession (
   REFIID riid, 
   IUnknown** ppSession
   );
[IDL]
HRESULT GetEventSession (
   [in] REFIID riid, 
   [out] IUnknown** ppSession
   );
riid
The interface identifier (IID) of the requested interface.
ppSession
On successful return, the passed address contains an IUnknown object reference to the OLE DB Session object under which the event is executing.

Return Value

This method returns S_OK if the call succeeds.

Remarks

This method returns the requested interface on the OLE DB Session object under which the event is executing. For synchronous events, the event session executes within a local transaction. For asynchronous events, the object is implicitly created using an IBindResource::Bind call. The object is created within the security context of the default user. Access is limited to the event item.