In MS Windows it is possible to set custom file properties of a file (try the following: Right click on the file, open "Properties", select tab "Custom", insert name and value of the property). I'm searching for a possibilty to do this in (Visual) C++ code!


For that reason I tried to use the IStorage, IPropertyStorage, IPropertySetStorage with "Open(FMTID_UserDefinedProperties" similar as descibed in MS knowledge base (see How To Read Compound Document Properties Directly with VC++). This works fine for reading(!) the custom properities, but I didn't succeed in writing(!) new custom values to the file. For other properties (e.g. writing summary informations) everything works fine. Is someone here who can help me?