To create a new named stream in an NTFS file, simply append the
stream name to the end of the filename during your CreateFile call, like
this:
CreateFile(“C:\test.txt:fred”, GENERIC_WRITE, 0, 0L, OPEN_EXISTING, 0, 0L);
Enumeration is tricky, IIRC. I no longer have access to the IFS
kit, but I think I remember that the enumeration of streams required a
specific file information type for NtQueryInformationFile call (someone help
me here…)
You may wish to look at the Win32 backup api (BackupRead, etc) as
well.
There are also extended attributes that can be accessed through the
native api (forgot there names, take a look at the exports in ntdll.dll.
Look for *EaFile*).
Then again, EXPLORER could be using some sort of higher level
contruct, such as COM structured storage to embed these values.
-----Original Message-----
From: Razvan Costea-B. [mailto:xxxxx@laitek.com]
Sent: Tuesday, November 26, 2002 9:13 AM
To: File Systems Developers
Subject: [ntfsd] Re: Attribute List in MFT? How to add…
Thank you Sorin!
The question though still stands… How do you write additional attributes
in the MFT and who can read them??? Since the MFT attribute header
structure contains pointers to the attribute name, for instance, in my mind
this means that there should be some application out there that really
reads that information; but how is that done?
Or am I missing something here - or walking on a totally wrong path?
–Razvan
At 15:55 26-11-02, you wrote:
The thing is that explorer actually reads “uncommon” file attributes (like
audio sample rate, caller ID, etc) from the file. I used
www.sysinternals.com FILEMON utility to monitor audio and video files, and
that’s what seems to happend. Actually, these are not attributes, they are
file properties (explorer doesn’t seem to make the difference).
You are currently subscribed to ntfsd as: xxxxx@Veritas.com
To unsubscribe send a blank email to %%email.unsub%%