18.104.22.168 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 22.214.171.124), as specified in [MS-OXCFOLD] section 126.96.36.199. 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 188.8.131.52) with the PidTagExtendedFolderFlags property ([MS-OXOSRCH] section 184.108.40.206.2) and the value in the PropertyValues field of the RopSetProperties ROP request buffer ([MS-OXCROPS] section 220.127.116.11.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.