// Token: 0x0600000C RID: 12 RVA: 0x000020B8 File Offset: 0x000002B8 public bool CheckProcess() { if (this.processName == null) { Console.WriteLine("Programmer, define process name first!"); return(false); } this.mainProcess = Process.GetProcessesByName(this.processName); if (this.mainProcess.Length == 0) { this.ErrorProcessNotFound(this.processName); return(false); } this.processHandle = VAMemory.OpenProcess(2035711U, false, this.mainProcess[0].Id); if (this.processHandle == IntPtr.Zero) { this.ErrorProcessNotFound(this.processName); return(false); } return(true); }
public bool CheckProcess() { if (this.processName != null) { this.mainProcess = Process.GetProcessesByName(this.processName); if (this.mainProcess.Length == 0) { this.ErrorProcessNotFound(this.processName); return(false); } this.processHandle = VAMemory.OpenProcess(2035711U, false, this.mainProcess[0].Id); if (!(this.processHandle == IntPtr.Zero)) { return(true); } this.ErrorProcessNotFound(this.processName); return(false); } // int num = (int)MessageBox.Show("Programmer, define process name first!"); return(false); }