126.96.36.199 Sending a RopCreateAttachment ROP Request
After creating a new attachment with a call to the RopCreateAttachmentROP ([MS-OXCROPS] section 188.8.131.52), the client sends a RopSaveChangesAttachmentROP request ([MS-OXCROPS] section 184.108.40.206) to commit the new Attachment object and uses the newly created Attachment object in subsequent ROPs. The client eventually sends a RopRelease ROP request ([MS-OXCROPS] section 220.127.116.11) on the Attachment object and, after doing so, MUST NOT use the Attachment object for any subsequent ROPs.
To create an Embedded Message object, the client uses the RopSetProperties ROP ([MS-OXCROPS] section 18.104.22.168) to set the afEmbeddedMessage flag on the PidTagAttachMethod property (section 22.214.171.124). Finally the client sends a RopOpenEmbeddedMessage ROP ([MS-OXCROPS] section 126.96.36.199) on the attachment to get a Message objecthandle.
The client sends a RopSaveChangesMessage ROP request ([MS-OXCROPS] section 188.8.131.52) to commit the Attachment object change to the Message object.