L
Lou
How do i connect to a named pipe as a client?
-Lou
-Lou
Nicholas Paldino said:Lou,
You can call the CreateFile API through the P/Invoke layer. Once you
have the handle to the pipe, you can pass it to the constructor of the
FileStream class to read from/write to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Lou said:How do i connect to a named pipe as a client?
-Lou
Lou said:What is the P/Invoke layer?
using ?????
message news:%[email protected]...Lou,
You can call the CreateFile API through the P/Invoke layer. Once you
have the handle to the pipe, you can pass it to the constructor of the
FileStream class to read from/write to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Lou said:How do i connect to a named pipe as a client?
-Lou
Nicholas Paldino said:Lou,
You can call the CreateFile API through the P/Invoke layer. Once you
have the handle to the pipe, you can pass it to the constructor of the
FileStream class to read from/write to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Lou said:How do i connect to a named pipe as a client?
-Lou
Lou said:CreateFile returns a int
The FileSystemObjectcs contructor won't take an int???
I can get a handle using CreateFile but the fileSystemObject chokes on it???
message news:%[email protected]...Lou,
You can call the CreateFile API through the P/Invoke layer. Once you
have the handle to the pipe, you can pass it to the constructor of the
FileStream class to read from/write to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Lou said:How do i connect to a named pipe as a client?
-Lou