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
WindowsIdentity.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200032B RID: 811
10 [ComVisible(true)]
13 {
14 // Token: 0x06001B59 RID: 7001 RVA: 0x0003AB60 File Offset: 0x00038D60
15 public WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType, bool isAuthenticated)
16 {
17 this._type = type;
19 this.SetToken(userToken);
20 }
21
22 // Token: 0x06001B5A RID: 7002 RVA: 0x0003AB84 File Offset: 0x00038D84
27
28 // Token: 0x06001B5B RID: 7003 RVA: 0x0003AB98 File Offset: 0x00038D98
31 {
32 long num = 0L;
33 this.SetToken(num);
34 }
35
36 // Token: 0x06001B5C RID: 7004 RVA: 0x0003ABB8 File Offset: 0x00038DB8
37 [ComVisible(false)]
38 public void Dispose()
39 {
40 }
41
42 // Token: 0x06001B5D RID: 7005 RVA: 0x0003ABC8 File Offset: 0x00038DC8
44 {
45 /*
46An exception occurred when decompiling this method (06001B5D)
47
48ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Principal.WindowsIdentity System.Security.Principal.WindowsIdentity::GetCurrent()
49
50 ---> System.Exception: Basic block has to end with unconditional control flow.
51{
52 IL_0000:
53 brtrue(IL_0000, ldc.i4:bool(1))
54}
55
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
60 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
61 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
62 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
63 --- End of inner exception stack trace ---
64 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
65 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
66*/;
67 }
68
69 // Token: 0x06001B5E RID: 7006 RVA: 0x0003ABD8 File Offset: 0x00038DD8
71 {
72 /*
73An exception occurred when decompiling this method (06001B5E)
74
75ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Principal.WindowsImpersonationContext System.Security.Principal.WindowsIdentity::Impersonate()
76
77 ---> System.Exception: Basic block has to end with unconditional control flow.
78{
79 Block_0:
80 stloc:native int(var_0_06, ldfld:native int(WindowsIdentity::_token, ldloc:WindowsIdentity(this)))
81}
82
83 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
84 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
85 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
86 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
87 --- End of inner exception stack trace ---
88 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
89 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
90*/;
91 }
92
93 // Token: 0x17000314 RID: 788
94 // (get) Token: 0x06001B5F RID: 7007 RVA: 0x0000207A File Offset: 0x0000027A
95 public sealed override string AuthenticationType
96 {
97 get
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101 }
102
103 // Token: 0x17000315 RID: 789
104 // (get) Token: 0x06001B60 RID: 7008 RVA: 0x0003ABEC File Offset: 0x00038DEC
105 public override string Name
106 {
107 get
108 {
109 /*
110An exception occurred when decompiling this method (06001B60)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Security.Principal.WindowsIdentity::get_Name()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:native int(var_0_0E, ldfld:native int(WindowsIdentity::_token, ldloc:WindowsIdentity(this)))
118 stfld:string(WindowsIdentity::_name, ldloc:WindowsIdentity(this), ldloc:native int[exp:string](var_0_0E))
119}
120
121 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
122 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
124 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
125 --- End of inner exception stack trace ---
126 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
127 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
128*/;
129 }
130 }
131
132 // Token: 0x06001B61 RID: 7009 RVA: 0x0003AC10 File Offset: 0x00038E10
134 {
135 for (;;)
136 {
137 if (!true)
138 {
139 }
140 string text;
141 if (text != null)
142 {
143 break;
144 }
145 if ("Token-Name mismatch." != null)
146 {
147 goto Block_1;
148 }
149 }
150 return;
151 Block_1:
152 if ("m_type" == null)
153 {
154 }
155 }
156
157 // Token: 0x06001B62 RID: 7010 RVA: 0x0003AC38 File Offset: 0x00038E38
159 {
160 IntPtr token = this._token;
161 string name = this._name;
162 info.AddValue("m_name", name);
163 string type = this._type;
164 info.AddValue("m_type", type);
166 bool authenticated = this._authenticated;
167 info.AddValue("m_isAuthenticated", authenticated);
168 }
169
170 // Token: 0x06001B63 RID: 7011 RVA: 0x0003AC90 File Offset: 0x00038E90
172 {
173 return base.Clone();
174 }
175
176 // Token: 0x06001B64 RID: 7012 RVA: 0x0003ACA4 File Offset: 0x00038EA4
178 {
179 return this._token;
180 }
181
182 // Token: 0x06001B65 RID: 7013 RVA: 0x0003ACB8 File Offset: 0x00038EB8
183 private void SetToken(IntPtr token)
184 {
186 string type = this._type;
187 this._token = token;
188 if (type == null)
189 {
190 this._type = "POSIX";
191 }
193 }
194
195 // Token: 0x06001B66 RID: 7014 RVA: 0x0000207A File Offset: 0x0000027A
196 internal static IntPtr GetCurrentToken()
197 {
198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
199 }
200
201 // Token: 0x06001B67 RID: 7015 RVA: 0x0000207A File Offset: 0x0000027A
202 private static string GetTokenName(IntPtr token)
203 {
204 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
205 }
206
207 // Token: 0x06001B68 RID: 7016 RVA: 0x0003AD24 File Offset: 0x00038F24
208 // Note: this type is marked as 'beforefieldinit'.
210 {
211 }
212
213 // Token: 0x04000DEE RID: 3566
214 private IntPtr _token;
215
216 // Token: 0x04000DEF RID: 3567
217 private string _type;
218
219 // Token: 0x04000DF0 RID: 3568
221
222 // Token: 0x04000DF1 RID: 3569
223 private bool _authenticated;
224
225 // Token: 0x04000DF2 RID: 3570
226 private string _name;
227
228 // Token: 0x04000DF3 RID: 3571
230
231 // Token: 0x04000DF4 RID: 3572
232 private static IntPtr invalidWindows;
233 }
234}
class f__AnonymousType0<< Count > j__TPar
static bool IsUnix
void AddValue(string name, object value, Type type)
virtual WindowsImpersonationContext Impersonate()
WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType, bool isAuthenticated)
WindowsIdentity(ClaimsIdentity claimsIdentity, IntPtr userToken)
static string GetTokenName(IntPtr token)
WindowsIdentity(SerializationInfo info, StreamingContext context)
void GetObjectData(SerializationInfo info, StreamingContext context)