IMAPIMessageSite::GetSession
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Returns the MAPI session in which the current message was created or opened.
HRESULT GetSession(
LPMAPISESSION FAR * ppSession
);
Parameters
- ppSession
[out] A pointer to a pointer to the returned session object.
Return Value
S_OK
The call succeeded and has returned the expected value or values.S_FALSE
No session exists for the current message.
Remarks
For a list of interfaces that are related to form servers, see MAPI Form Interfaces.
MFCMAPI Reference
For MFCMAPI sample code, see the following table.
File |
Function |
Comment |
---|---|---|
MyMAPIFormViewer.cpp |
CMyMAPIFormViewer::GetSession |
MFCMAPI uses the IMAPIMessageSite::GetSession method to return the currently cached session pointer, if it is available. |