How to find named pipes

  • Thread starter Thread starter DBC User
  • Start date Start date
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
 
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).
 
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.
 
Back
Top