Пример #1
0
 private List <Module> TryToGetModules()
 {
     try
     {
         int processId = TaskListManager.GetSelected().ProcessId;
         return(ModuleListLoader.GetModuleList(processId));
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
         StopBackgroundTask();
     }
     return(new List <Module>());
 }
Пример #2
0
        private static List <ThreadInfo> TryToGetThreads()
        {
            Task selected = TaskListManager.GetSelected();
            int  id       = selected.ProcessId;

            try
            {
                return(ThreadListLoader.GetThreadsInfos(id));
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
            return(new List <ThreadInfo>());
        }