Completed Method
Completed Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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
[Visual Basic]Sub Completed
()
[C++]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.
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.