Platform SDK: Exchange Server |
Replaces or enhances the behavior of Microsoft Exchange when a new message arrives.
See IExchExtSessionEvents : IUnknown.
HRESULT OnDelivery( LPEXCHEXTCALLBACK lpeecb );
The IExchExtSessionEvents::OnDelivery method is used to replace or enhance the behavior of Microsoft Exchange when a new message arrives. If an error occurs, OnDelivery should display an error message and return an error value. Microsoft Exchange will not notify the user about the new message, nor will it display an error message or continue to call extension objects in response to the new message.
When a new message arrives, the extension object obtains its message identifier by calling the IExchExtCallback::GetObject method.