Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetShellError()

int System.Diagnostics.Process.GetShellError ( IntPtr error)
inlineprivate

Definition at line 2156 of file Process.cs.

2157 {
2158 long num = (long)error;
2159 long num2 = num - 2;
2160 if ((ulong)num2 <= 6uL)
2161 {
2162 switch (num2)
2163 {
2164 case 0L:
2165 return 2;
2166 case 1L:
2167 return 3;
2168 case 3L:
2169 return 5;
2170 case 6L:
2171 return 8;
2172 case 2L:
2173 case 4L:
2174 case 5L:
2175 goto IL_0083;
2176 }
2177 }
2178 long num3 = num - 26;
2179 if ((ulong)num3 <= 6uL)
2180 {
2181 switch (num3)
2182 {
2183 case 2L:
2184 case 3L:
2185 case 4L:
2186 return 1156;
2187 case 0L:
2188 return 32;
2189 case 5L:
2190 return 1155;
2191 case 6L:
2192 return 1157;
2193 }
2194 }
2195 goto IL_0083;
2196 IL_0083:
2197 return (int)(long)error;
2198 }

References System.Runtime.Serialization.Dictionary, and System.L.

Referenced by System.Diagnostics.Process.StartWithShellExecuteEx().