Ejemplo n.º 1
0
        public bool EndListen(AsyncIoContext asyncContext)
        {
            asyncContext.Wait();
            asyncContext.NotifyEnd();

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

            asyncContext.StatusBlock.Status.ThrowIf();

            return(false);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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
         );
 }
Ejemplo n.º 4
0
 public int EndTransceive(AsyncIoContext asyncContext)
 {
     return(this.EndCommonIo(asyncContext));
 }
Ejemplo n.º 5
0
 public void BeginTransceive(AsyncIoContext asyncContext, MemoryRegion inBuffer, MemoryRegion outBuffer)
 {
     this.BeginFsControl(asyncContext, FsCtlTransceive, inBuffer, outBuffer);
 }
Ejemplo n.º 6
0
 public void BeginListen(AsyncIoContext asyncContext)
 {
     this.BeginFsControl(asyncContext, FsCtlListen, null, null);
 }
Ejemplo n.º 7
0
 public int EndTransceive(AsyncIoContext asyncContext)
 {
     return this.EndCommonIo(asyncContext);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 9
0
 public void BeginTransceive(AsyncIoContext asyncContext, MemoryRegion inBuffer, MemoryRegion outBuffer)
 {
     this.BeginFsControl(asyncContext, FsCtlTransceive, inBuffer, outBuffer);
 }
Ejemplo n.º 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
         );
 }
Ejemplo n.º 11
0
 public void BeginListen(AsyncIoContext asyncContext)
 {
     this.BeginFsControl(asyncContext, FsCtlListen, null, null);
 }