Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafePipeHandle.cs
Go to the documentation of this file.
1using System;
2
4
6{
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}
void SetHandle(IntPtr descriptor, bool ownsHandle=true)
SafePipeHandle(IntPtr preexistingHandle, bool ownsHandle)