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