IPersistMessage::Load

The IPersistMessage::Load method loads a form from a specified message.

Quick Info

See IPersistMessage : IUnknown20QA6Y.

 

HRESULT Load(

     LPMESSAGESITE pMessageSite,

 

    LPMESSAGE pMessage,

 

    ULONG ulMessageStatus,

 

    ULONG ulMessageFlags

 

   )

 

 

Parameters

pMessageSite

[in] Pointer to the specified message to be loaded.

pMessage

[in] Pointer to the message from which the message is loaded.

ulMessageStatus

[in] Bitmask of client-defined or provider-defined flags   copied from the message s PR_MSG_STATUSTLWKUE property   that provides information on the state of the message.

ulMessageFlags

[in] Bitmask of flags   copied from the message s PR_MESSAGE_FLAGS12X4D91 property   that provide further information on the state of the message.

 

Return Values

S_OK

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

 

Remarks

Form viewers call the IPersistMessage::Load method to load a form from a specified message. Load is used to read an existing message. Flags and status bits set in the existing message s PR_MESSAGE_FLAGS and PR_MSG_STATUS properties are preserved in the new message.

For more information on loading storage objects, see the OLE Programmer s Reference.

See Also

PR_MESSAGE_FLAGS, PR_MSG_STATUS