Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeLsaHandle.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
Microsoft.Win32.SafeHandles
;
5
6
internal
sealed
class
SafeLsaHandle
:
SafeHandle
7
{
8
public
sealed
override
bool
IsInvalid
=>
handle
==
IntPtr
.
Zero
;
9
10
public
SafeLsaHandle
()
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
}
Microsoft.Win32.SafeHandles.SafeLsaHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafeLsaHandle.cs:15
Microsoft.Win32.SafeHandles.SafeLsaHandle.SafeLsaHandle
SafeLsaHandle()
Definition
SafeLsaHandle.cs:10
Microsoft.Win32.SafeHandles.SafeLsaHandle.IsInvalid
override bool IsInvalid
Definition
SafeLsaHandle.cs:8
Microsoft.Win32.SafeHandles.SafeLsaHandle
Definition
SafeLsaHandle.cs:7
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:8
System.Runtime.InteropServices.SafeHandle
Definition
SafeHandle.cs:7
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System
Definition
BlockingCollection.cs:8
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
source
System.Security.Principal.Windows
Microsoft.Win32.SafeHandles
SafeLsaHandle.cs
Generated by
1.10.0