Пример #1
0
 /// <summary>
 /// Resume a process including childs
 /// </summary>
 /// <param name="ParentID">Parent process id</param>
 public static void Resume(int ParentID)
 {
     if (OS.IsWindows)
     {
         var proc = new API.WindowsProcess();
         proc.ResumeParentChild(ParentID);
     }
     else
     {
         var proc = new API.LinuxProcess();
         proc.ResumeParentChild(ParentID);
     }
 }
Пример #2
0
 /// <summary>
 /// Get a Parent process id and retrive it's id of child procces
 /// </summary>
 /// <param name="ParentPID">Parent process id</param>
 /// <returns>List of parent-child process id's</returns>
 public static int[] GetChildProcess(int ParentPID)
 {
     if (OS.IsWindows)
     {
         var proc = new API.WindowsProcess();
         return(proc.ListParentChild(ParentPID));
     }
     else
     {
         var proc = new API.LinuxProcess();
         return(proc.ListParentChild(ParentPID));
     }
 }