private void InitializeProviders()
        {
            listThreads.BeginUpdate();
            _threadP = new ThreadProvider(_pid);
            Program.SecondaryProviderThread.Add(_threadP);
            _threadP.Updated += this._threadP_Updated;
            listThreads.Provider = _threadP;

            listModules.BeginUpdate();
            _moduleP = new ModuleProvider(_pid);
            Program.SecondaryProviderThread.Add(_moduleP);
            _moduleP.Updated += this._moduleP_Updated;
            listModules.Provider = _moduleP;

            listMemory.BeginUpdate();
            _memoryP = new MemoryProvider(_pid);
            Program.SecondaryProviderThread.Add(_memoryP);
            _memoryP.IgnoreFreeRegions = true;
            _memoryP.Updated += this._memoryP_Updated;
            listMemory.Provider = _memoryP;

            listHandles.BeginUpdate();
            _handleP = new HandleProvider(_pid);
            Program.SecondaryProviderThread.Add(_handleP);
            _handleP.HideHandlesWithNoName = Settings.Instance.HideHandlesWithNoName;
            _handleP.Updated += this._handleP_Updated;
            listHandles.Provider = _handleP;

            this.InitializeShortcuts();
        }
示例#2
0
        private void InitializeProviders()
        {
            listThreads.BeginUpdate();
            _threadP = new ThreadProvider(_pid);
            Program.SecondarySharedThreadProvider.Add(_threadP);
            _threadP.Interval = Properties.Settings.Default.RefreshInterval;
            _threadP.Updated += new ThreadProvider.ProviderUpdateOnce(_threadP_Updated);
            listThreads.Provider = _threadP;

            listModules.BeginUpdate();
            _moduleP = new ModuleProvider(_pid);
            Program.SecondarySharedThreadProvider.Add(_moduleP);
            _moduleP.Interval = Properties.Settings.Default.RefreshInterval;
            _moduleP.Updated += new ModuleProvider.ProviderUpdateOnce(_moduleP_Updated);
            listModules.Provider = _moduleP;

            listMemory.BeginUpdate();
            _memoryP = new MemoryProvider(_pid);
            Program.SecondarySharedThreadProvider.Add(_memoryP);
            _memoryP.IgnoreFreeRegions = true;
            _memoryP.Interval = Properties.Settings.Default.RefreshInterval;
            _memoryP.Updated += new MemoryProvider.ProviderUpdateOnce(_memoryP_Updated);
            listMemory.Provider = _memoryP;

            listHandles.BeginUpdate();
            _handleP = new HandleProvider(_pid);
            Program.SecondarySharedThreadProvider.Add(_handleP);
            _handleP.HideHandlesWithNoName = Properties.Settings.Default.HideHandlesWithNoName;
            _handleP.Interval = Properties.Settings.Default.RefreshInterval;
            _handleP.Updated += new HandleProvider.ProviderUpdateOnce(_handleP_Updated);
            listHandles.Provider = _handleP;

            listThreads.List.SetTheme("explorer");
            listModules.List.SetTheme("explorer");
            listMemory.List.SetTheme("explorer");
            listHandles.List.SetTheme("explorer");

            this.InitializeShortcuts();
        }
 private void checkHideHandlesNoName_CheckedChanged(object sender, EventArgs e)
 {
     if (_handleP != null)
     {
         checkHideHandlesNoName.Enabled = false;
         this.Cursor = Cursors.WaitCursor;
         Program.SecondaryProviderThread.Remove(_handleP);
         _handleP.Dispose();
         listHandles.BeginUpdate();
         _handleP = new HandleProvider(_pid);
         Program.SecondaryProviderThread.Add(_handleP);
         _handleP.HideHandlesWithNoName = checkHideHandlesNoName.Checked;
         _handleP.Updated += new HandleProvider.ProviderUpdateOnce(_handleP_Updated);
         _handleP.Boost();
         listHandles.Provider = _handleP;
         _handleP.Enabled = true;
     }
 }
示例#4
0
 private void checkHideHandlesNoName_CheckedChanged(object sender, EventArgs e)
 {
     if (_handleP != null)
     {
         checkHideHandlesNoName.Enabled = false;
         this.Cursor = Cursors.WaitCursor;
         Program.SecondarySharedThreadProvider.Remove(_handleP);
         _handleP.Dispose();
         listHandles.BeginUpdate();
         _handleP = new HandleProvider(_pid);
         Program.SecondarySharedThreadProvider.Add(_handleP);
         _handleP.HideHandlesWithNoName = checkHideHandlesNoName.Checked;
         _handleP.Interval = Properties.Settings.Default.RefreshInterval;
         _handleP.Updated += new HandleProvider.ProviderUpdateOnce(_handleP_Updated);
         _handleP.RunOnceAsync();
         listHandles.Provider = _handleP;
         _handleP.Enabled = true;
     }
 }