How to find named pipes

D

DBC User

Hi all,

I would like to know is there a way to find out if any named pipes are
running in a box. How can I go about doing that? Or is there a way to
find out if a particular named pipe already running?

Thanks
 
B

Ben Voigt [C++ MVP]

DBC User said:
Hi all,

I would like to know is there a way to find out if any named pipes are
running in a box. How can I go about doing that? Or is there a way to
find out if a particular named pipe already running?

CreateFile with the device path to the pipe and OPEN_EXISTING should tell
you whether it exists or not (you'll either succeed, in which case it
existed, or fail with access denied, in which case it existed, or fail with
file not found, if it didn't exist).
 
W

Willy Denoyette [MVP]

DBC User said:
Hi all,

I would like to know is there a way to find out if any named pipes are
running in a box. How can I go about doing that? Or is there a way to
find out if a particular named pipe already running?

Thanks



Use the "processexplorer" from
http://www.microsoft.com/technet/sysinternals/utilities/processexplorer.mspx.
Select a process in the list and View Handles (Cntrl + H) and search for a
File handle with the device name of the named pipe you are looking for
(\Device\Named Pipe\....).

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top