Completed Method
Topic Last Modified: 2006-06-13
This method allows an asynchronous event handler to notify Microsoft® Exchange that it has finished processing an event.
Applies To
Type Library
EXOLEDB Type Library
DLL Implemented In
EXOLEDB.DLL
Syntax
Sub Completed()
HRESULT Completed
();
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
In your Component Object Model (COM) event sinks you can process asynchronous events with the following steps.
- Obtain the IAsyncNotify Interface from the IExStoreEventInfo Interface that is passed to your Asynchronous sink.
- Create a new thread to handle the event.
- Return S_PENDING.
- Call IAsyncNotify Completed from your new process when you are finished handling the event.
If you return S_PENDING from your event notification and do not call IAsyncNotify Completed, Exchange will notify you of this event again when the store is next restarted.