public bool EndListen(AsyncIoContext asyncContext)
        {
            asyncContext.Wait();
            asyncContext.NotifyEnd();

            if (asyncContext.Status == NtStatus.PipeConnected)
            {
                return(true);
            }

            asyncContext.StatusBlock.Status.ThrowIf();

            return(false);
        }
Пример #2
0
        public bool EndListen(AsyncIoContext asyncContext)
        {
            asyncContext.Wait();
            asyncContext.NotifyEnd();

            if (asyncContext.Status == NtStatus.PipeConnected)
            {
                return(true);
            }

            if (asyncContext.StatusBlock.Status >= NtStatus.Error)
            {
                Win32.Throw(asyncContext.StatusBlock.Status);
            }

            return(false);
        }
 public void BeginTransceive(
     AsyncIoContext asyncContext,
     byte[] inBuffer,
     int inBufferOffset,
     int inBufferLength,
     byte[] outBuffer,
     int outBufferOffset,
     int outBufferLength
     )
 {
     this.BeginFsControl(
         asyncContext,
         FsCtlTransceive,
         inBuffer,
         inBufferOffset,
         inBufferLength,
         outBuffer,
         outBufferOffset,
         outBufferLength
         );
 }
 public int EndTransceive(AsyncIoContext asyncContext)
 {
     return(this.EndCommonIo(asyncContext));
 }
 public void BeginTransceive(AsyncIoContext asyncContext, MemoryRegion inBuffer, MemoryRegion outBuffer)
 {
     this.BeginFsControl(asyncContext, FsCtlTransceive, inBuffer, outBuffer);
 }
 public void BeginListen(AsyncIoContext asyncContext)
 {
     this.BeginFsControl(asyncContext, FsCtlListen, null, null);
 }
Пример #7
0
 public int EndTransceive(AsyncIoContext asyncContext)
 {
     return this.EndCommonIo(asyncContext);
 }
Пример #8
0
        public bool EndListen(AsyncIoContext asyncContext)
        {
            asyncContext.Wait();
            asyncContext.NotifyEnd();

            if (asyncContext.Status == NtStatus.PipeConnected)
                return true;

            if (asyncContext.StatusBlock.Status >= NtStatus.Error)
                Win32.ThrowLastError(asyncContext.StatusBlock.Status);

            return false;
        }
Пример #9
0
 public void BeginTransceive(AsyncIoContext asyncContext, MemoryRegion inBuffer, MemoryRegion outBuffer)
 {
     this.BeginFsControl(asyncContext, FsCtlTransceive, inBuffer, outBuffer);
 }
Пример #10
0
 public void BeginTransceive(
     AsyncIoContext asyncContext,
     byte[] inBuffer,
     int inBufferOffset,
     int inBufferLength,
     byte[] outBuffer,
     int outBufferOffset,
     int outBufferLength
     )
 {
     this.BeginFsControl(
         asyncContext,
         FsCtlTransceive,
         inBuffer,
         inBufferOffset,
         inBufferLength,
         outBuffer,
         outBufferOffset,
         outBufferLength
         );
 }
Пример #11
0
 public void BeginListen(AsyncIoContext asyncContext)
 {
     this.BeginFsControl(asyncContext, FsCtlListen, null, null);
 }