1 instantiation of SafePipeHandle
System.Core (1)
System\IO\Pipes\Pipe.cs (1)
292
SafePipeHandle safePipeHandle = new
SafePipeHandle
((IntPtr)result, true);
48 references to SafePipeHandle
System.Core (48)
Microsoft\Win32\UnsafeNativeMethods.cs (23)
309
SafePipeHandle
hSourceHandle, IntPtr hTargetProcessHandle, out
SafePipeHandle
lpTargetHandle,
314
internal static extern int GetFileType(
SafePipeHandle
handle);
319
internal static extern bool CreatePipe(out
SafePipeHandle
hReadPipe,
320
out
SafePipeHandle
hWritePipe, SECURITY_ATTRIBUTES lpPipeAttributes, int nSize);
325
internal static extern
SafePipeHandle
CreateNamedPipeClient(String lpFileName,
333
unsafe internal static extern bool ConnectNamedPipe(
SafePipeHandle
handle, NativeOverlapped* overlapped);
338
internal static extern bool ConnectNamedPipe(
SafePipeHandle
handle, IntPtr overlapped);
348
internal static extern bool GetNamedPipeHandleState(
SafePipeHandle
hNamedPipe, out int lpState,
355
internal static extern bool GetNamedPipeHandleState(
SafePipeHandle
hNamedPipe, IntPtr lpState,
362
internal static extern bool GetNamedPipeHandleState(
SafePipeHandle
hNamedPipe, IntPtr lpState,
369
internal static extern bool GetNamedPipeInfo(
SafePipeHandle
hNamedPipe,
379
internal static extern bool GetNamedPipeInfo(
SafePipeHandle
hNamedPipe,
389
internal static extern bool GetNamedPipeInfo(
SafePipeHandle
hNamedPipe,
400
SafePipeHandle
hNamedPipe,
409
internal static extern bool DisconnectNamedPipe(
SafePipeHandle
hNamedPipe);
414
internal static extern bool FlushFileBuffers(
SafePipeHandle
hNamedPipe);
426
internal static extern bool ImpersonateNamedPipeClient(
SafePipeHandle
hNamedPipe);
430
internal static extern
SafePipeHandle
CreateNamedPipe(string pipeName,
445
unsafe internal static extern int ReadFile(
SafePipeHandle
handle, byte* bytes, int numBytesToRead,
450
unsafe internal static extern int ReadFile(
SafePipeHandle
handle, byte* bytes, int numBytesToRead,
463
internal static unsafe extern int WriteFile(
SafePipeHandle
handle, byte* bytes, int numBytesToWrite,
468
internal static unsafe extern int WriteFile(
SafePipeHandle
handle, byte* bytes, int numBytesToWrite,
System\IO\Pipes\Pipe.cs (17)
43
private
SafePipeHandle
m_clientHandle;
112
public AnonymousPipeServerStream(PipeDirection direction,
SafePipeHandle
serverSafePipeHandle,
SafePipeHandle
clientSafePipeHandle)
154
public
SafePipeHandle
ClientSafePipeHandle {
200
SafePipeHandle
serverHandle;
201
SafePipeHandle
newServerHandle;
292
SafePipeHandle
safePipeHandle = new SafePipeHandle((IntPtr)result, true);
302
public AnonymousPipeClientStream(PipeDirection direction,
SafePipeHandle
safePipeHandle)
320
private void Init(PipeDirection direction,
SafePipeHandle
safePipeHandle) {
532
public NamedPipeServerStream(PipeDirection direction, bool isAsync, bool isConnected,
SafePipeHandle
safePipeHandle)
581
SafePipeHandle
handle = UnsafeNativeMethods.CreateNamedPipe(fullPipeName, openMode, pipeModes,
848
internal
SafePipeHandle
m_handle;
854
internal ExecuteHelper(PipeStreamImpersonationWorker userCode,
SafePipeHandle
handle) {
1128
SafePipeHandle
safePipeHandle)
1206
SafePipeHandle
handle = UnsafeNativeMethods.CreateNamedPipeClient(m_normalizedPipePath,
1331
SafePipeHandle
handle = UnsafeNativeMethods.CreateNamedPipeClient(m_normalizedPipePath,
1420
internal
SafePipeHandle
_handle;
System\IO\Pipes\PipeSecurity.cs (1)
237
internal PipeSecurity(
SafePipeHandle
safeHandle, AccessControlSections includeSections)
System\IO\Pipes\PipeStream.cs (7)
75
private
SafePipeHandle
m_handle;
148
protected void InitializeHandle(
SafePipeHandle
handle, bool isExposed, bool isAsync) {
619
private unsafe int ReadFileNative(
SafePipeHandle
handle, byte[] buffer, int offset, int count,
669
private unsafe int WriteFileNative(
SafePipeHandle
handle, byte[] buffer, int offset, int count,
988
public
SafePipeHandle
SafePipeHandle {
1004
internal
SafePipeHandle
InternalHandle {
1282
internal
SafePipeHandle
_handle; // For cancellation support.