Platform SDK: MAPI

IMAPIMessageSite::GetSession

The IMAPIMessageSite::GetSession method returns the MAPI session in which the current message was created or opened.

Quick Info

See IMAPIMessageSite : IUnknown.

HRESULT GetSession(
  LPMAPISESSION FAR * ppSession  
);
 

Parameters

ppSession
[out] Pointer to a pointer to the returned session object.

Return Values

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 related to form servers, see MAPI Form Interfaces.