4.5.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) |
"test.txt" |
0x7FFA0003 |
PidTagAttachmentLinkId (section 2.2.2.22) |
"0x00000000" |
0x37140003 |
PidTagAttachFlags (section 2.2.2.18) |
"0x00000000" |
0x7FFE000B |
PidTagAttachmentHidden (section 2.2.2.24) |
"0x00" |
0x3707001F |
PidTagAttachLongFilename (section 2.2.2.10) |
"test.txt" |
0x3704001F |
PidTagAttachFilename (section 2.2.2.11) |
"test.txt" |
0x3703001F |
PidTagAttachExtension (section 2.2.2.12) |
".txt" |
0x30070040 |
PidTagCreationTime (section 2.2.2.3) |
"2008/02/1222:28:34.636" |
0x30080040 |
PidTagLastModificationTime (section 2.2.2.2) |
"2008/02/1222:28:50.112" |
0x37090102 |
PidTagAttachRendering (section 2.2.2.17) |
3,512 bytes representing a Windows Metafile Format (WMF) file. For more information on WMF, see [MS-WMF]. |
To set the contents of the attachment, the client uses four ROPs:
The RopOpenStream ROP ([MS-OXCROPS] section 2.2.9.1) with PidTagAttachDataBinary (section 2.2.2.7).
The RopSetStreamSize ROP ([MS-OXCROPS] section 2.2.9.7) with the size of the 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.