public bool EndListen(AsyncIoContext asyncContext) { asyncContext.Wait(); asyncContext.NotifyEnd(); if (asyncContext.Status == NtStatus.PipeConnected) { return(true); } asyncContext.StatusBlock.Status.ThrowIf(); return(false); }
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); }
public int EndTransceive(AsyncIoContext asyncContext) { return this.EndCommonIo(asyncContext); }
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; }