Platform SDK: Exchange Server |
Replaces or enhances the behavior of Microsoft Exchange when a message has been submitted.
See IExchExtMessageEvents : IUnknown.
HRESULT OnSubmit( LPEXCHEXTCALLBACK lpeecb );
Microsoft Exchange calls the IExchExtMessageEvents::OnSubmit method when it is about to submit an open message. At this point, the information will have been written to the message.
If an error occurs, OnSubmit should display an error message and return an error. Microsoft Exchange will not submit the message, nor will it display an error message, but will stop the user action that caused the submit.
This method should call the IExchExtCallback::GetObject method to determine the message identifier of the item being submitted and its container. The container is usually a folder, but it can also be a message or an information store.
IExchExtCallback::GetObject, IExchExtMessageEvents : IUnknown