Example #1
0
        public RemoteProcess(int ProcessId)
        {
            var Process = MagicHelpers.FindProcessById(ProcessId);

            if (Process == null)
            {
                throw new MagicException($"Process with id {ProcessId} not found");
            }

            this.Process = Process;
        }
Example #2
0
 public static RemoteProcess GetById(int ProcessId)
 {
     return(MagicHelpers.FindProcessById(ProcessId));
 }