3.1.4.6 Writing Folder Flags

To write folder flags on a folder, as specified in section 2.2.7, the client MUST obtain a handle to the folder using the RopOpenFolder ROP ([MS-OXCROPS] section 2.2.4.1), as specified in [MS-OXCFOLD] section 3.1.4.1. The client MUST then format the binary data as specified in section 2.2.7. The client MUST then write the data for the folder flags by sending the RopSetProperties ROP ([MS-OXCROPS] section 2.2.8.6) with the PidTagExtendedFolderFlags property ([MS-OXOSRCH] section 2.2.2.1.2) and the value in the PropertyValues field of the RopSetProperties ROP request buffer ([MS-OXCROPS] section 2.2.8.6.1). In each case where the client needs to write a new value of one of the subproperties to the folder, it MUST preserve the values of any other unmodified subproperties on the folder, as specified in section 2.2.7.