Partager via


IOlkAccountHelper::GetMapiSession

Opens a MAPI session and maintains a reference to the session for the account manager.

Quick Info

See IOlkAccountHelper.

HRESULT IOlkAccountHelper::GetMapiSession(  
    LPUNKNOWN *ppmsess 
);

Parameters

  • ppmsess
    [out] The current MAPI session.

Return Values

S_OK if the call succeeded; otherwise, an error code.

Remarks

Because of circular reference problems, the account manager itself cannot maintain the reference for the MAPI session.

See also

IOlkAccountHelper::HandsOffSession

IMAPISession : IUnknown