Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafePipeHandle.cs
Go to the documentation of this file.
1
using
System
;
2
3
namespace
Microsoft.Win32.SafeHandles
;
4
5
public
sealed
class
SafePipeHandle
:
SafeHandleZeroOrMinusOneIsInvalid
6
{
7
public
SafePipeHandle
()
8
: this(new
IntPtr
(0), ownsHandle: true)
9
{
10
}
11
12
public
SafePipeHandle
(
IntPtr
preexistingHandle,
bool
ownsHandle)
13
: base(ownsHandle)
14
{
15
SetHandle
(preexistingHandle, ownsHandle);
16
}
17
18
protected
override
bool
ReleaseHandle
()
19
{
20
return
global::Interop.Kernel32.CloseHandle(
handle
);
21
}
22
23
internal
void
SetHandle
(
IntPtr
descriptor,
bool
ownsHandle =
true
)
24
{
25
base.SetHandle(descriptor);
26
}
27
}
Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Definition
SafeHandleZeroOrMinusOneIsInvalid.cs:7
Microsoft.Win32.SafeHandles.SafePipeHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafePipeHandle.cs:18
Microsoft.Win32.SafeHandles.SafePipeHandle.SetHandle
void SetHandle(IntPtr descriptor, bool ownsHandle=true)
Definition
SafePipeHandle.cs:23
Microsoft.Win32.SafeHandles.SafePipeHandle.SafePipeHandle
SafePipeHandle(IntPtr preexistingHandle, bool ownsHandle)
Definition
SafePipeHandle.cs:12
Microsoft.Win32.SafeHandles.SafePipeHandle.SafePipeHandle
SafePipeHandle()
Definition
SafePipeHandle.cs:7
Microsoft.Win32.SafeHandles.SafePipeHandle
Definition
SafePipeHandle.cs:6
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:8
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
System
Definition
BlockingCollection.cs:8
System.IntPtr
Definition
IntPtr.cs:14
source
System.IO.Pipes
Microsoft.Win32.SafeHandles
SafePipeHandle.cs
Generated by
1.10.0