I/O Srteam redirection

I want to redirect the input and output streams of a console program. I want this stream to be displayed in an editbox. just like QuickWin Applications.
i need ur help in doing this.

Thanx in Adv.
sajid


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Take a look at the STARTUPINFO structure. In this structure you can specify
the handles to stdin/out/err. Do it when you call CreateProcess for cmd.exe
. You may want to open a pipe and pass its handle to this API. In your GUI,
read from the other end of the pipe. You may need to use DuplicateHandle
API.

I doubt whether this is the right place to ask this question. Try some
windows developers list.

hth,
Arun.

-----Original Message-----
From: Sajid Siraj [mailto:xxxxx@yahoo.com]
Sent: Tuesday, January 30, 2001 11:37 AM
To: NT Developers Interest List
Subject: [ntdev] I/O Srteam redirection

I want to redirect the input and output streams of a console program. I want
this stream to be displayed in an editbox. just like QuickWin Applications.
i need ur help in doing this.

Thanx in Adv.
sajid

You are currently subscribed to ntdev as: xxxxx@nestec.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com