The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: AeroASM on June 18, 2005, 01:52:28 PM

Title: Pipes and Forks?
Post by: AeroASM on June 18, 2005, 01:52:28 PM
I know how to use a Pipe: you get two handles, and when you write to one end you can read from the other.

Is there any way to create a Fork? Where there are three handles, and you can write to two of them and read from one, or write to one and read from the other two?
Title: Re: Pipes and Forks?
Post by: The Dude of Dudes on June 19, 2005, 06:32:22 AM
Set bInheritHandle to TRUE for CreatePipe and call DuplicateHandle on one of the created handles to create your 'fork'.
Title: Re: Pipes and Forks?
Post by: liquidsilver on June 22, 2005, 07:13:02 AM
Why would you want a 'fork'? How would it help?