资源简介
可获得系统的进程名,启动路径,cpu使用率,内存占用,线程数,用户名等信息,写的比较粗糙,有兴趣的可以自己改造一下
代码片段和文件信息
// MyTaskManager.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “MyTaskManager.h“
#include “MyTaskManagerDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyTaskManagerApp
BEGIN_MESSAGE_MAP(CMyTaskManagerApp CWinApp)
//{{AFX_MSG_MAP(CMyTaskManagerApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyTaskManagerApp construction
CMyTaskManagerApp::CMyTaskManagerApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyTaskManagerApp object
CMyTaskManagerApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMyTaskManagerApp initialization
BOOL CMyTaskManagerApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CMyTaskManagerDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 35796 2009-10-23 10:26 MyTaskManager\MyTaskManager.aps
文件 1303 2009-10-23 10:27 MyTaskManager\MyTaskManager.clw
文件 2161 2009-08-11 20:33 MyTaskManager\MyTaskManager.cpp
文件 4282 2009-09-11 18:17 MyTaskManager\MyTaskManager.dsp
文件 549 2009-08-11 20:33 MyTaskManager\MyTaskManager.dsw
文件 1401 2009-08-11 20:33 MyTaskManager\MyTaskManager.h
文件 74752 2009-10-23 10:27 MyTaskManager\MyTaskManager.ncb
文件 55808 2009-10-23 10:27 MyTaskManager\MyTaskManager.opt
文件 2008 2009-10-23 10:27 MyTaskManager\MyTaskManager.plg
文件 5571 2009-10-23 10:26 MyTaskManager\MyTaskManager.rc
文件 20537 2009-10-23 10:27 MyTaskManager\MyTaskManagerDlg.cpp
文件 1592 2009-10-23 10:27 MyTaskManager\MyTaskManagerDlg.h
文件 3705 2009-08-11 20:33 MyTaskManager\ReadMe.txt
文件 1078 2009-08-11 20:33 MyTaskManager\res\MyTaskManager.ico
文件 405 2009-08-11 20:33 MyTaskManager\res\MyTaskManager.rc2
文件 875 2009-10-23 10:25 MyTaskManager\resource.h
文件 11816 2009-08-14 10:26 MyTaskManager\ScanAndKillProcess.cpp
文件 215 2009-08-11 20:33 MyTaskManager\StdAfx.cpp
文件 1054 2009-08-11 20:33 MyTaskManager\StdAfx.h
目录 0 2009-08-11 20:33 MyTaskManager\res
目录 0 2009-10-23 10:27 MyTaskManager
----------- --------- ---------- ----- ----
224908 21
评论
共有 条评论