Accessing windows streams through C++

closed account (4Gb4jE8b)
In windows (or at least some versions of windows) there is a functionality that allows for certain types of files to have streams which can be accessed pretty much (to my knowledge) only through command prompt (notepad myexample.txt:mystream.txt) However when using fstream you can't do something like myfstream.open("myexample.txt:mystream.txt"). Though no error will be returned, upon checking the stream through cmd, no stream would have been made. Is there any way of doing this?
It is an NTFS filesystem 'feature'.

The word "streams" does not mean the same thing as it does in C and C++; it is actually a filesystem fork, originally created for Macintosh filesystem compatibility.

See the following for more:
http://www.google.com/search?btnI=1&q=how+to+use+ntfs+alternate+data+streams

Streams are evil, because there is not much in the way of methods to enumerate them, and most people don't even realize they exist -- they don't show themselves normally. Here's something with a bunch of links I googled for you.
http://www.irongeek.com/i.php?page=security/altds

Hope this helps.
Topic archived. No new replies allowed.