terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SafeGssCredHandle.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
System.Text
;
4
using
Cpp2IlInjected
;
5
6
namespace
Microsoft.Win32.SafeHandles
7
{
8
// Token: 0x02000077 RID: 119
9
internal
class
SafeGssCredHandle
:
SafeHandle
10
{
11
// Token: 0x060001C4 RID: 452 RVA: 0x00006040 File Offset: 0x00004240
12
public
static
SafeGssCredHandle
Create
(
string
username,
string
password,
bool
isNtlmOnly
)
13
{
14
bool
flag =
string
.IsNullOrEmpty(username);
15
Encoding
utf
=
Encoding
.
UTF8
;
16
global::Interop.NetSecurityNative.Status status;
17
SafeGssNameHandle
safeGssNameHandle
;
18
if
(status == global::Interop.NetSecurityNative.Status.GSS_S_COMPLETE)
19
{
20
long
num = 0
L
;
21
if
(
safeGssNameHandle
!=
null
)
22
{
23
}
24
if
(num == 0
L
)
25
{
26
}
27
throw
new
OutOfMemoryException
();
28
}
29
long
num2
= 0
L
;
30
if
(
safeGssNameHandle
!=
null
)
31
{
32
}
33
if
(
num2
== 0
L
)
34
{
35
}
36
throw
new
OutOfMemoryException
();
37
}
38
39
// Token: 0x060001C5 RID: 453 RVA: 0x0000608C File Offset: 0x0000428C
40
private
SafeGssCredHandle
()
41
{
42
}
43
44
// Token: 0x17000060 RID: 96
45
// (get) Token: 0x060001C6 RID: 454 RVA: 0x0000609C File Offset: 0x0000429C
46
public
override
bool
IsInvalid
47
{
48
get
49
{
50
IntPtr
handle
= this.
handle
;
51
bool
flag;
52
return
flag;
53
}
54
}
55
56
// Token: 0x060001C7 RID: 455 RVA: 0x00002050 File Offset: 0x00000250
57
protected
override
bool
ReleaseHandle
()
58
{
59
throw
new
global::Cpp2IlInjected.AnalysisFailedException(
"CPP2IL failed to recover any usable IL for this method."
);
60
}
61
}
62
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Win32.SafeHandles.SafeGssCredHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafeGssCredHandle.cs:57
Microsoft.Win32.SafeHandles.SafeGssCredHandle.IsInvalid
override bool IsInvalid
Definition
SafeGssCredHandle.cs:47
Microsoft.Win32.SafeHandles.SafeGssCredHandle.Create
static SafeGssCredHandle Create(string username, string password, bool isNtlmOnly)
Definition
SafeGssCredHandle.cs:12
Microsoft.Win32.SafeHandles.SafeGssCredHandle.SafeGssCredHandle
SafeGssCredHandle()
Definition
SafeGssCredHandle.cs:40
Microsoft.Win32.SafeHandles.SafeGssCredHandle
Definition
SafeGssCredHandle.cs:10
Microsoft.Win32.SafeHandles.SafeGssNameHandle
Definition
SafeGssNameHandle.cs:9
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:166
System.Runtime.InteropServices.SafeHandle
Definition
SafeHandle.cs:9
System.Text.Encoding.UTF8
static Encoding UTF8
Definition
Encoding.cs:828
System.Text.Encoding
Definition
Encoding.cs:15
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Win32.SafeHandles
Definition
CriticalHandleMinusOneIsInvalid.cs:6
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Text
Definition
ASCIIEncoding.cs:7
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.IntPtr
Definition
IntPtr.cs:13
source
System
Microsoft
Win32
SafeHandles
SafeGssCredHandle.cs
Generated by
1.10.0