How to find out the various streams of a file?

Hi!
I wanted to know whether i can get information about various streams of a file.
For example:
Suppose an unknown file “FILE.TXT” has streams S1,S2,etc, apart from the unnamed stream. How can i enumerate the names of all these streams?

Thanks!
Ayush Gupta

In user mode, you can use the remarkably non-intuitive and tedious tape
backup API. See the MSDN. Some of the later platforms (Vista, Longhorn
and I think 2003) I’m told support a certain FindFirstStreamW et. c.,
which I can’t say that I have ever used.

If you want to do this in the kernel, I have no idea.

There may be me much simpler and/or better ways of doing this; this is
the one I know.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Tuesday, July 10, 2007 16:28
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How to find out the various streams of a file?

Hi!
I wanted to know whether i can get information about various streams of
a file.
For example:
Suppose an unknown file “FILE.TXT” has streams S1,S2,etc, apart from the
unnamed stream. How can i enumerate the names of all these streams?

Thanks!
Ayush Gupta


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Call FltQueryInformationFile or ZwQueryInformationFile and specify FileStreamInformation for the FileInformationClass parameter. It
will return a FILE_STREAM_INFORMATION to enumerate the streams for a file.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Tuesday, July 10, 2007 4:28 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How to find out the various streams of a file?

Hi!
I wanted to know whether i can get information about various streams of a file.
For example:
Suppose an unknown file “FILE.TXT” has streams S1,S2,etc, apart from the unnamed stream. How can i enumerate the names of all these
streams?

Thanks!
Ayush Gupta


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com