Platform SDK: MAPI |
The IMAPIMessageSite::GetMessage method returns the current message.
See IMAPIMessageSite : IUnknown.
HRESULT GetMessage( LPMESSAGE FAR * ppmsg );
Forms call the IMAPIMessageSite::GetMessage method to obtain a message interface for the current message. The current message is the same message as was previously passed in the IPersistMessage::InitNew, IPersistMessage::Load, or IPersistMessage::SaveCompleted method.
GetMessage returns S_FALSE if no message currently exists. This state can occur after calls to the IPersistMessage::HandsOffMessage method or before the next call to IPersistMessage::Load or IPersistMessage::SaveCompleted is made.
For a list of interfaces related to form servers, see MAPI Form Interfaces.