Click to See Complete Forum and Search --> : Enumerate named pipes?
Clearcode
October 9th, 2001, 04:38 AM
Is there any way of listing the named pipes that are open on any given system?
Thanks in advance,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
Clearcode
October 16th, 2001, 03:02 AM
I've asked this on every forum and on the public.microsoft.vb newsgroups with no success - surely this must be possible?
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
Cimperiali
October 16th, 2001, 04:07 AM
I barely understand your questions, so maybe the following is an out of topic suggestion; however, it seems as if Vbnet knows something...
Have you tried here?
http://www.mvps.org/vbnet/
(and search for "pipes")
Have a nice day, you Complicated Guru
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Clearcode
October 16th, 2001, 04:47 AM
No help in this particular case, but a very useful site to add to my bookmarks...
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
Cimperiali
October 16th, 2001, 04:53 AM
;-) he already complained ;-)
Have a nice day, you Sophisticate Guru
(and do not forget to give us solution to named pipes as soon as you find it. Btw, add a small description of what named pipes are: I will learn something more!);)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Clearcode
October 16th, 2001, 05:42 AM
A named pipe is an inter-process communication method.
To connect to an existing named pipe (or create a new one) you call CreatenamedPipe
Declare Function CreateNamedPipe Lib "kernel32" Alias "CreateNamedPipeA" (byval lpName as string, & _
byval dwOpenMode as Long, byval dwPipeMode as Long, byval nMaxInstances as Long, byval nOutBufferSize as Long, & _
byval nInBufferSize as Long, byval nDefaultTimeOut as Long, lpSecurityAttributes as SECURITY_ATTRIBUTES) as Long
Typically a pipe's name would be \\.\pipe\pipename but you can connect to a named pipe on another machine if you put the name in the format \\servername\pipe\pipename
Once you have a pipe handle you can read and write to it to basically "talk" through the pipe.
This makes it very handy for inter process communication.
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.