IMAPIMessageSite::CopyMessage

The IMAPIMessageSite::CopyMessage method copies the current message to a folder.

Quick Info

See IMAPIMessageSite : IUnknown1XJJ0FL.

 

HRESULT CopyMessage(

    LPMAPIFOLDER pFolderDestination

 

   )

 

 

Parameters

pFolderDestination

[in] Pointer to the folder where the message is copied.

 

Return Values

S_OK

The call succeeded and has returned the expected value or values.

MAPI_E_NO_SUPPORT

The operation is not supported by this message site.

 

Remarks

Form objects call the IMAPIMessageSite::CopyMessage method to copy the current message to a new folder. CopyMessage does not change the message currently being displayed to the user, and no interface for the newly created message is returned to the form.

Notes to Implementers

A typical implementation of CopyMessage:

  1.  Creates the new message the current message is copied to.

  2.  Calls the IPersistMessage::SaveHHDHE. method with a pointer to the new message in the pMessage parameter and FALSE in the fSameAsLoad parameter.

  3.  Calls the IPersistMessage::SaveCompletedFB3MHB method passing NULL for its pMessage parameter.

1.   Calls the IMAPIProp::SaveChanges21IFXQ method on the new message.

 

For more information about implementing the interfaces related to form servers, see MAPI Form Interfaces Used by Client Applications1AR39HN.

See Also

IMAPIProp::SaveChanges, IPersistMessage::Save, IPersistMessage::SaveCompleted