47 references to NativePipe
System.Runtime.Remoting (47)
channels\ipc\ipcport.cs (44)
91handle = NativePipe.CreateNamedPipe(pipeName, 92NativePipe.PIPE_ACCESS_DUPLEX | NativePipe.FILE_FLAG_OVERLAPPED 93| (exclusive ? NativePipe.FILE_FLAG_FIRST_PIPE_INSTANCE : 0x0), // Or exclusive flag 94NativePipe.PIPE_TYPE_BYTE | NativePipe.PIPE_READMODE_BYTE | NativePipe.PIPE_WAIT, 95NativePipe.PIPE_UNLIMITED_INSTANCES, 98NativePipe.NMPWAIT_WAIT_FOREVER, 102if (handle.Handle.ToInt32() == NativePipe.INVALID_HANDLE_VALUE){ 113bool status = NativePipe.ConnectNamedPipe(_handle, null); 115return status ? true : (Marshal.GetLastWin32Error() == NativePipe.ERROR_PIPE_CONNECTED); 121uint impersonation = NativePipe.SECURITY_SQOS_PRESENT; 128impersonation = NativePipe.SECURITY_SQOS_PRESENT; 131impersonation = NativePipe.SECURITY_SQOS_PRESENT | NativePipe.SECURITY_IDENTIFICATION; 134impersonation = NativePipe.SECURITY_SQOS_PRESENT | NativePipe.SECURITY_IMPERSONATION; 137impersonation = NativePipe.SECURITY_SQOS_PRESENT | NativePipe.SECURITY_DELEGATION; 145PipeHandle handle = NativePipe.CreateFile(pipeName, 146NativePipe.GENERIC_READ | NativePipe.GENERIC_WRITE , 147NativePipe.FILE_SHARE_READ | 148NativePipe.FILE_SHARE_WRITE, 150NativePipe.OPEN_EXISTING, 151NativePipe.FILE_ATTRIBUTE_NORMAL | 152NativePipe.FILE_FLAG_OVERLAPPED | 156if(handle.Handle.ToInt32() != NativePipe.INVALID_HANDLE_VALUE) 160if(error != NativePipe.ERROR_PIPE_BUSY) 165if(!NativePipe.WaitNamedPipe(pipeName, timeout)) 176int result = NativePipe.FormatMessage(NativePipe.FORMAT_MESSAGE_IGNORE_INSERTS | 177NativePipe.FORMAT_MESSAGE_FROM_SYSTEM | NativePipe.FORMAT_MESSAGE_ARGUMENT_ARRAY, 178NativePipe.NULL, errorCode, 0, sb, sb.Capacity, NativePipe.NULL); 193bool status = NativePipe.ImpersonateNamedPipeClient(_handle); 208status = NativePipe.ReadFile(_handle, p + offset, length, ref numBytesRead, IntPtr.Zero); 233status = NativePipe.ReadFile(_handle, p + offset, size, IntPtr.Zero, intOverlapped); 239if (error == NativePipe.ERROR_BROKEN_PIPE) { 245else if (error != NativePipe.ERROR_IO_PENDING) 267if (errorCode == NativePipe.ERROR_BROKEN_PIPE) 302status = NativePipe.WriteFile(_handle, p + offset, size, ref numBytesWritten, IntPtr.Zero);
channels\ipc\ipcserverchannel.cs (2)
413NativePipe.RevertToSelf(); 448NativePipe.RevertToSelf();
channels\ipc\win32namedpipes.cs (1)
26return NativePipe.CloseHandle(handle) != 0;