コード例 #1
0
 public ManagedProc(Process process, int interval)
 {
     processId   = process.Id;
     processName = process.ProcessName;
     Interval    = interval;
     Window      = new Window(process.MainWindowTitle, process.MainWindowHandle, process.Id.ToString());
 }
コード例 #2
0
        public ManagedProc(string source)
        {
            string[] tokens = source.Split('|');

            processId   = Convert.ToInt32(tokens[0]);
            processName = tokens[1];
            Interval    = Convert.ToInt32(tokens[2]);

            Window = new Window((IntPtr)Convert.ToInt32(tokens[4]), tokens[3], Convert.ToBoolean(tokens[5]), processId.ToString());
        }