Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeLsaHandle.cs
Go to the documentation of this file.
1using System;
3
5
6internal sealed class SafeLsaHandle : SafeHandle
7{
8 public sealed override bool IsInvalid => handle == IntPtr.Zero;
9
11 : base(IntPtr.Zero, ownsHandle: true)
12 {
13 }
14
15 protected sealed override bool ReleaseHandle()
16 {
17 int num = global::Interop.SspiCli.LsaDeregisterLogonProcess(handle);
18 return num == 0;
19 }
20}
static readonly IntPtr Zero
Definition IntPtr.cs:18