IPersistMessage::Save

The IPersistMessage::Save method saves a revised form back to the message from which it was loaded or created.

Quick Info

See IPersistMessage : IUnknown20QA6Y.

 

HRESULT Save(

    LPMESSAGE pMessage,

 

    ULONG fSameAsLoad

 

   )

 

 

Parameters

pMessage

[in] Pointer to a message.

fSameAsLoad

[in] Variable that is TRUE if the message the pMessage parameter points to is the message from which the form was loaded or created, and FALSE otherwise.

 

Return Values

S_OK

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

 

Remarks

Form viewers call the IPersistMessage::Save method to save a revised form back to the message from which it was loaded or created. The form must not commit changes to this message; changes are committed by the form server implementation that calls Save.

For more information on saving storage objects, see the documentation on the IPersistStorage methods in the OLE Programmer s Reference.