www.pudn.com > Process_Mo18292312142004.rar > ProcInfo.h
/*******************************************************
This file is part of Process Monitor.
Copyright (c) 2004 by Michel van Kerkhof, ( michel000@planet.nl http://home.wxs.nl/~wijk0550/ )
For more information consult the Readme file.
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU
General Public License as published by the Free
Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU
General Public License along with this program;
if not, write to:
the Free Software Foundation, Inc.,
59 Temple Place,
Suite 330, Boston,
MA 02111-1307 USA
*******************************************************
If you like my work and you have a job for me please contact me at: michel000@planet.nl
*******************************************************/
#ifndef PROCINFO_H
#define PROCINFO_H
class CProcInfo
{
private:
HWND m_hTree;
int m_iIconDefProg,
m_iIconProg,
m_iIconInfo,
m_iIconThread,
m_iIconVersion,
m_iIconPort,
m_iIconReg,
m_iIconService,
m_iIconPri,
m_iIconFile,
m_iIconCommand,
m_iSaveItem,
m_ItemToSelect;
HTREEITEM m_hItemToSelect;
CWindow *m_CWnd;
int GetThreads();
int GetThreadTimesFromID(DWORD dwThreadID,ULONGLONG *ThreadTimes);
const char *GetState(int iState);
char *ToStringIp(char *szBuffer,DWORD dwIP);
int NetStatGetList(DWORD dwPID);
void OpenRegEdit(char *szKey);
void GetServicesForProc(DWORD dwPID);
void KillThread(HWND hWnd,char *szThread);
void KillTcpConnection(HWND hWnd,char *szTcpConnection);
void SetPriority(char *szThread,DWORD dwPri);
public:
HIMAGELIST m_hImg;
int m_iIconWnd,
m_iIconMainWnd;
HTREEITEM m_hRoot,m_hTempItem,m_hMain;
PROCESSLIST m_Proc;
CProcInfo(CWindow *CWnd);
~CProcInfo(){
};
HWND SubTree(HWND hWnd,HINSTANCE hInst);
void SetInfo(int iItem);
HTREEITEM AddItem(char *Buf,HTREEITEM hRoot,int iIcon,LPARAM lParam);
void Commands(HWND hWnd,WPARAM wParam,LPARAM lParam);
void Notify(HWND hWnd,WPARAM wParam,LPARAM lParam);
};
#endif