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

◆ ProcessName

string System.Diagnostics.Process.ProcessName
get

Definition at line 658 of file Process.cs.

659 {
660 get
661 {
662 string text5;
663 if (this.process_name == null)
664 {
665 int num = 1024;
666 int num2 = 1;
668 string text = Process.ProcessName_internal(processHandle);
670 if (text == null)
671 {
672 long num3 = 0L;
673 long num4 = 0L;
674 if ((num3 != 0L || num3 != 0L) && this.haveProcessHandle)
675 {
677 }
678 if (num4 == 0L)
679 {
680 }
681 throw new OutOfMemoryException();
682 }
683 bool flag = text.EndsWith(".exe");
684 bool flag2 = this.process_name.EndsWith(".bat");
685 string text2 = this.process_name;
686 long num5 = 0L;
687 bool flag3 = text2.EndsWith(".com");
688 string text3 = this.process_name;
689 int stringLength = text3._stringLength;
690 long num6 = 0L;
691 string text4 = text3.Substring((int)num6, (int)num5);
692 long num7 = 0L;
694 if (processHandle != null)
695 {
696 if (this.haveProcessHandle)
697 {
699 }
700 processHandle.Close();
701 }
702 if (num7 != 0L)
703 {
704 throw new OutOfMemoryException();
705 }
706 text5 = this.process_name;
707 }
708 return text5;
709 }
710 }
class f__AnonymousType0<< Count > j__TPar
Microsoft.Win32.SafeHandles.SafeProcessHandle m_processHandle
Definition Process.cs:826
Microsoft.Win32.SafeHandles.SafeProcessHandle GetProcessHandle(int access, bool throwIfExited)
Definition Process.cs:458

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