Summary properties of a file

  • Thread starter Michael A. Covington
  • 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?
 
M

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top