Пример #1
0
        public override void Run()
        {
            try
            {
                Process proc = Process.GetProcessById(PID);
                foreach (ProcessThread thread in proc.Threads)
                {
                    ProcessThreadInfo info = new ProcessThreadInfo();
                    info.PID = PID;

                    try{info.ID = thread.Id;}catch{}
                    try {info.WaitReason = thread.WaitReason.ToString(); }catch { }
                    try {info.Pritioity = (thread.PriorityBoostEnabled ? (byte)1 : (byte)0); }catch { }
                    try {info.PrivilegedProcessorTime = thread.PrivilegedProcessorTime.ToString(); }catch { }
                    try { info.StartTime = thread.StartTime.ToString();}catch { }
                    try { info.Threadstate = thread.ThreadState.ToString(); }catch { }

                    Client.SendPacket(new S_GetProcessThreads(Client, info));
                }
            }catch{}
        }
Пример #2
0
 public S_GetProcessThreads(ClientConnect client, ProcessThreadInfo info)
     : base(client)
 {
     inf = info;
 }