Summary properties of a file

  • Thread starter Thread starter Michael A. Covington
  • Start date Start date
M

Michael A. Covington

When you right-click on a file in Windows and choose Summary, Advanced, you
get a set of properties which (in the case of a digital camera photo) tell
you quite a bit about the picture.

In some cases these are EXIF properties of the image file. I know how to
read those (by loading the file as an image and looking at its property
set).

But in other cases it appears that Windows obtains them through drivers or
something.

Is there a general way for a C# program to obtain the same set of
information about a file that would be seen by the user right-clicking and
choosing Summary, Advanced?
 
Is there a general way for a C# program to obtain the same set of
information about a file that would be seen by the user right-clicking and
choosing Summary, Advanced?

The Structured storage COM APIs are used to read this information. For
files that (unlike Office files for example) don't carry the metadata
themselves, it's stored in an NTFS alternate data stream called
something like "\x5SummaryInformation" IIRC.


Mattias
 
Back
Top