Re: problem with pipes IPC
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 25 Feb 2009 22:50:16 -0500
Named pipes are not part of the \Global namespace. They are in the
\\.\pipe\ namespace, and the rules about \Global do not apply.
Using procexp, you can see that the named pipe is found in
\device\namedpipe\pipenamehere
and that is a global space to the machine.
Note that pipe names cannot start with \Global; they must be \\.\pipe\pipenamehere
joe
On Wed, 25 Feb 2009 14:19:55 -0800, "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote:
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in messageJoseph M. Newcomer [MVP]
news:qmebq4l7uiusgn33oiccbip6v33893o42g@xxxxxxxxxx
Unfortunately, pipes don't work that way. Named pipes are by definition
always global and
visible to everyone who has access to the machine (whether or not remote
users can connect
is based on the security set, but that's a different issue). So you can't
create a "local
pipe" because the name is inherently global.
Mutexes exist in the local session namespace, and that is a completely
different
mechanism, not shared with named pipes.
With other objects like file mapping and mutex, if the name starts with
"Global\" it is visible across terminal sessions (as used with Fast User
Switch). Are you saying pipes, even those whose names don't start with
"Global\", are visible across terminal sessions already? I don't know named
pipes very well but would be surprised that they had a different behavior
than other objects such as file mapping and mutex.
Thanks,
David
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: problem with pipes IPC
- From: David Ching
- Re: problem with pipes IPC
- References:
- problem with pipes IPC
- From: Janma
- Re: problem with pipes IPC
- From: Joseph M . Newcomer
- Re: problem with pipes IPC
- From: David Ching
- problem with pipes IPC
- Prev by Date: Re: Custom Control
- Next by Date: Re: Embed EXE as a Resource in MFC
- Previous by thread: Re: problem with pipes IPC
- Next by thread: Re: problem with pipes IPC
- Index(es):
Relevant Pages
|