Adding Summary Information to a file

  • Thread starter Thread starter Dennis C. Drumm
  • Start date Start date
D

Dennis C. Drumm

I have an application that creates it own files to store data using a
BinaryFormatter, IFormatter, and FileStream. I would like to add summary
informaiton to the file and can't seem to find the documentation on this
subject. Can someone stear me in the right direction?

Thanks,

Dennis
 
Hi Dennis,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to add summary information to
a file which contains serialized object information. If there is any
misunderstanding, please feel free to let me know.

I would like to know what kind of summary you're adding to the file. Are
you adding customized information at the last of the byte array? If so, you
can try to append to the file. Could you please provide more information,
so that we can deliver our assistance more quickly?

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Kevin

When you look at the properties of a file in window explorer, there is a
summary tab. That tab has such information as revision number, author,
subject, title, etc. The files my application develops have none of this
information defined. I would like to define these values.

Thanks,

Dennis
 
Hi Dennis,

As far as I know, there is no managed class in current .NET framework to
set the summary for a file. If you need to add this information to the
file, you have to call API.

Defining the IPropertyStorage and the IPropertySetStorage interfaces in
..NET and then calling the StgCreateStorageEx or the StgOpenStorageEx
functions (called through P/Invoke) to get the NTFS implementation of these
interfaces to access property information for files in NTFS.

Make sure this is running only on W2K or XP, as it is not supported on
other systems (98, ME, NT4.0).

Please refer to the following link for more information:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&q=c#+StgOpenSt
orageEx&btnG=Search

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Thanks Kevin,

I thought with Longhorn's use of file metadata, I should start now by adding
it to my applilcatoin's files. But maybe the best thing to do is wait to see
how this is implimented in Longhorn, since the current stuff is only support
for XP anyway.

Dennis
 
Back
Top