I have a handle to a pipe, but the FileSystem object won't take an int in
the constructor? How do I write to the pipe using the FileSystemObjec t?
here is my code but the FileStream Line fails?????
I do get a legimate pipe handle.
int pipeHandle;
pipeHandle = CreateFile(conn ectionString,
GENERIC_READ | GENERIC_WRITE, 0, 0,
OPEN_EXISTING, 0, 0);
//FileStream myStream=new
FileStream(pipe Handle,FileAcce ss.ReadWrite,tr ue,4095,false);
FileStream sw=new FileStream(pipe Handle,FileAcce ss.ReadWrite);
sw.Write(cmd);
the constructor? How do I write to the pipe using the FileSystemObjec t?
here is my code but the FileStream Line fails?????
I do get a legimate pipe handle.
int pipeHandle;
pipeHandle = CreateFile(conn ectionString,
GENERIC_READ | GENERIC_WRITE, 0, 0,
OPEN_EXISTING, 0, 0);
//FileStream myStream=new
FileStream(pipe Handle,FileAcce ss.ReadWrite,tr ue,4095,false);
FileStream sw=new FileStream(pipe Handle,FileAcce ss.ReadWrite);
sw.Write(cmd);
Comment