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