You can duplicate a pipe handle with DuplicateHandle, make it inheritable and share it between processes similar to many other handles
On Sunday 04 January 2004 03:33 pm, Juan Lang wrote:
--- Alexandre Julliard julliard@winehq.com wrote:
You have to do inter-process synchronization, pipe handles can be shared between processes. I don't see how you can do that without putting everything into the wine server, which is the same as putting it into the kernel except with a large performance hit (and not only for named pipes, but for all file I/O, since it will prevent many optimizations). But feel free to prove me wrong; I haven't studied the protocol in detail so maybe I'm missing something.
I don't think pipe handles can be shared in the same way as other handles. From MSDN's CreateFile reference:
"The opening process can duplicate the handle as many times as required but, once opened, the named pipe instance cannot be opened by another client. "
I haven't experimented with handle duplication enough to know what this really means, though, so I may be all wet. We'll see..
--Juan
Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree