4.4.3 Setting Properties
At this point, the client uses the RopSetProperties ROP ([MS-OXCROPS] section 2.2.8.6) as described in [MS-OXCPRPT] section 2.2.5 to set properties on the Attachment objects.
Property tag |
Property name |
Data |
---|---|---|
0x37050003 |
PidTagAttachMethod (section 2.2.2.9) |
0x00000001 |
0x370B0003 |
PidTagRenderingPosition (section 2.2.2.16) |
0xFFFFFFFF |
0x7FFD0003 |
PidTagAttachmentFlags (section 2.2.2.23) |
0x00000000 |
0x3001001F |
PidTagDisplayName (section 2.2.2.4) |
"image001.PNG" |
0x3712001F |
PidTagAttachContentId (section 2.2.2.29) |
"image001.PNG@01C86E1C.F1954390" |
0x370E001F |
PidTagAttachMimeTag (section 2.2.2.29) |
"image/PNG" |
0x7FFA0003 |
PidTagAttachmentLinkId (section 2.2.2.22) |
0x00000000 |
0x37140003 |
PidTagAttachFlags (section 2.2.2.18) |
"0x00000004" |
0x7FFE000b |
PidTagAttachmentHidden (section 2.2.2.24) |
"0x01" |
0x3707001F |
PidTagAttachLongFilename (section 2.2.2.10) |
"image001.PNG" |
0x3704001F |
PidTagAttachFilename (section 2.2.2.11) |
"image001.PNG" |
0x3703001F |
PidTagAttachExtension (section 2.2.2.12) |
".PNG" |
To set the contents of the embedded image, the client uses four ROPs.
The RopOpenStream ROP ([MS-OXCROPS] section 2.2.9.1) with the PidTagAttachDataBinary property (section 2.2.2.7).
The RopSetStreamSize ROP ([MS-OXCROPS] section 2.2.9.7) with the size of image file data.
The RopWriteStream ROP request ([MS-OXCROPS] section 2.2.9.3) with the actual file contents.
The RopRelease ROP ([MS-OXCROPS] section 2.2.15.3) for the handle returned from the RopOpenStream ROP.