Tech Support > Microsoft Windows > Development Resources > Named pipes question
Named pipes question
Posted by Vladimir Beker on July 29th, 2003


I write service that uses named pipes (NT/Win200) to communicate with
clients.
The client gets handle from CreateFile function.
Now, the question is: if other process gets this handle by issuing
DuplicateHandle, what's going on?

Does it mean that both of them are connected to the same instance of named
pipe. If so, is there any way for the server to distinguish who exactly had
write the data? If server writes data to the named pipe, which client will
get them?

Or DuplicateHandle just finishes with opening one more instance of the named
pipe?

Regards
Vladimir




Similar Posts