예제 #1
0
 private void OpenStreams()
 {
     this.Stream1Info             = new NNSMCS.NNSMcsStreamInfo();
     this.Stream1Info.structBytes = 8U;
     this.handle1    = NNSMCS.NNSMcsPFOpenStreamEx((ushort)19781, 0U, ref this.Stream1Info);
     this.McsStream1 = new NamedPipeClientStream(PipeDirection.InOut, false, true, new SafePipeHandle(this.handle1, true));
     this.McsStream1.Write(new byte[2], 0, 2);
     this.McsStream1.Read(new byte[4], 0, 4);
 }
예제 #2
0
 private static extern IntPtr NNSMcsPFOpenStreamEx(
     ushort channel,
     uint flags,
     ref NNSMCS.NNSMcsStreamInfo pStreamInfo);