IPersistMessage::InitNew

The IPersistMessage::InitNew method provides a form with a base message on which to build a new message.

Quick Info

See IPersistMessage : IUnknown20QA6Y.

 

HRESULT InitNew(

    LPMAPIMESSAGESITE pMessageSite,

 

    LPMESSAGE pMessage

 

   )

 

 

Parameters

pMessageSite

[in] Pointer to the message site the form uses to compose a new message.

pMessage

[in] Pointer to the message the form uses to compose a new message.

 

Return Values

S_OK

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

 

Remarks

Form viewers call the IPersistMessage::InitNew method to set up a form with a message site and a message so as to compose a new message within the form. When a message is loaded into a form with InitNew, you can assume that the following required properties, and no others, have been set by form server implementations:

PR_DELETE_AFTER_SUBMIT17LK2UM

PR_IMPORTANCE1F6XLH5

PR_ORIGINATOR_DELIVERY_REPORT_REQUESTEDPQJ84X

PR_PRIORITY1IE9A34

PR_READ_RECEIPT_REQUESTEDGYIX43

PR_SENSITIVITY18_E1UH

PR_SENTMAIL_ENTRYIDFQQ5OU

 

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