Mega Search
23.2 Million


Sign Up

Make a donation  
Set Details (summary) file info  
News Group: embarcadero.public.delphi.nativeapi

Hello,
I have a question: is it possible to access and change (adding keys) file metadata information presented in Details tab. It's my file written using TFileStream. I have to write one additional string and do not want to change binary record structure to be compatible with previous versions. Is it possible for Windows 7 and higher? 

Thanks in advance, Fred

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 8-Dec-2014, at 1:37 PM EST
From: Fred Fonar
 
Re: Set Details (summary) file info  
News Group: embarcadero.public.delphi.nativeapi
Fred wrote:

> I have a question: is it possible to access and change (adding keys)
> file metadata information presented in Details tab. It's my file
> written using TFileStream. I have to write one additional string and
> do not want to change binary record structure to be compatible with
> previous versions. Is it possible for Windows 7 and higher?

You have to access the file's Property Set that contains the Summary fields:

IPropertySetStorage-Compound File Implementation
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379845.aspx

IPropertySetStorage interface
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379840.aspx

IPropertyStorage interface
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379968.aspx

The Summary Information Property Set
http://msdn.microsoft.com/en-us/library/windows/desktop/aa380376.aspx

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 8-Dec-2014, at 4:02 PM EST
From: Remy Lebeau (TeamB)