Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternate Streams in Win2k

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
Ok, maybe the VB people can help me here...(God knows the VC++ people couldn't)

In Visual Basic, how can you compile things into an alternate stream?...

Or how can you place variables/other things into an alternate stream?

I asked this in the VC++ forum, wondering how to do it in VC++, but maybe I can do it on VB and work from there... ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
I think that you need to clarify what it is that you hope to achieve here.
 
WhiteTiger -

The standard VB file handling calls won't open the alternate streams (BTW, you *are* using NTFS, aren't you?). You'll need to insert the declare statements for the Win32 API file handling calls (CreateFile, CloseHandle, etc). Use the API Text viewer in the Visual Studio Tools folder to save yourself a lot of time.

I haven't looked at the alternate streams in a while -- I think all you did was append a colon and the stream name to the end of your path. <quickly refer to MSDN>. Yep, that's it.

Chip H.
 
Both the classic Open <filename> etc. file methods, and the FileSystemObject support alternate streams.

Mike
 
No, I mean EMBED an alternate stream within the compiled file...like declaring what part of something is supposed to go into an alternate stream...

I KNOW you can put a colon on there to run something with another program AS an alternate stream, but not embedding it within the program that I am compiling...all it does is run it with the other program as an alternate stream...

Well, I guess the VB people are still smarter than the VC++ people, at least you guys tried helping, and new what alternate streams were LOL ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top