Click here to Skip to main content
15,897,273 members
Articles / Desktop Programming / MFC

Task Manager Extension 2.0

Rate me:
Please Sign up or sign in to vote.
4.92/5 (149 votes)
22 Jan 2007CDDL11 min read 598.7K   18.7K   263  
Task Manager Extension. This is a Windows Task Manager (NT/2000/XP/2003) plug-in. It adds lots of useful features to the standard Task Manager. It can show process modules, memory map, used handles, open files, file properties and a lot of other info!
#if !defined(AFX_PROCESSINFODLG_H__729E084F_52EA_4580_BE34_39A14720801A__INCLUDED_)
#define AFX_PROCESSINFODLG_H__729E084F_52EA_4580_BE34_39A14720801A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ProcessInfoDlg.h : header file
//

#include "resource.h"
#include "TaskManagerExDllExport.h"

/////////////////////////////////////////////////////////////////////////////

class CInformationDlgThread : public CWinThread
{
protected:
	DECLARE_DYNCREATE( CInformationDlgThread )

public:
	virtual BOOL InitInstance();

public:
	BOOL Initialize( DWORD pID, WPARAM command );
	static TASKMANAGEREXDLL_DEBUG_API CInformationDlgThread* Start( DWORD pID, WPARAM command );

public:
	DWORD    m_processID;
	WPARAM   m_command;
};

/////////////////////////////////////////////////////////////////////////////
// CInformationDlg dialog

class CInformationDlg : public CDialog
{
// Construction
public:
	CInformationDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CInformationDlg)
	enum { IDD = IDD_INFORMATION };
	CButton	m_wndExit;
	CEdit	m_wndInfo;
	//}}AFX_DATA

	CFont	m_Font;

	BOOL GetProcessInformation( CString& info );
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInformationDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual int DoModal();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CToolTipCtrlMine	m_tooltip;
	CSize			m_OldClientSize;

	// Generated message map functions
	//{{AFX_MSG(CInformationDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnExit();
	afx_msg void OnRefresh();
	afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	//}}AFX_MSG
	afx_msg void OnGetMinMaxInfo( MINMAXINFO* pMinMaxInfo );
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PROCESSINFODLG_H__729E084F_52EA_4580_BE34_39A14720801A__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
Software Developer (Senior)
Belarus Belarus
He is a young and forward-looking software developer. He also has lots of interesting hobbies like snowboarding, bicycle riding, carting racing and of course talking about himself in a third person. Smile | :)

github.com/kolomenkin

Curriculum Vitae

Comments and Discussions