CloseIMsgSession 

The CloseIMsgSession function closes a message session.

 

Note  This function may not be supported in future versions of MAPI.

 

Quick Info

Header file:

IMESSAGE.H

Implemented by:

MAPI

Called by:

Client applications and service providers

 

VOID CloseIMsgSession(

    LPMSGSESS lpMsgSess

 

   );

 

 

Parameters

lpMsgSess

[in] Pointer to the message session object obtained using the OpenIMsgSession1XB._ED function at the start of the message session.

 

Remarks

A client application uses the CloseIMsgSession function along with the OpenIMsgSession function to wrap the creation of messages inside a message session. When a client application closes this session, it also closes all messages created within the session. Using sessions obtained with the IMessage3LEP_T6 interface is optional.

A message session keeps track of all messages opened during the session, in addition to all the tables and attachments within the messages. When a client calls CloseIMsgSession, it closes all these objects.