www.pudn.com > Process_Mo18292312142004.rar > main.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 MAIN_H 
#define MAIN_H 
 
//#define SHOW_GRIDLINES 
#define PRIORITY_FOR_THIS_PROCESS ABOVE_NORMAL_PRIORITY_CLASS 
 
/* 
	ifdef CHECK_LAG  
	Process Monitor automatically try s to lower the priority of a process  
	that is using all of the available cpu. 
	By default i disabled this option because i think its not working as it should 
	#endif 
*/ 
 
//#define CHECK_LAG 
#ifdef CHECK_LAG 
#define LAG_CHECK_TIME				5000 
#define LAG_CHECK_MAX_DELTA_TIME	1000 
#endif 
 
#define DEFAULT_WINSIZE_X			750 
#define DEFAULT_WINSIZE_Y			550 
 
#define NO_INFO			0 
#define EXTRA_INFO		1 
#define MODULE_INFO		2 
#define HANDLE_INFO		3 
 
#define MES_LOG_TO_FILE 1 
#define MES_NORMAL      2 
#define MES_FIND_DLL	3 
 
//message for trayicon 
#define WM_SHELLICON_NOTIFY		WM_USER+10 
																									 
void ShowError(HWND hWnd,const char * format, ...); 
int inttochar(char *buf,unsigned int num,int len); 
char *largeinttochar(char *buf,LARGE_INTEGER *num,int len); 
void LoadApis(); 
char *GetFileName(char *szFile); 
bool GetFileInfo(char *szFileName,char *pVersionInfo,int iLenghtString,int iNumofStrings); 
bool HandleToName(HANDLE hProc,char *Buf); 
int GetPriority(DWORD dwPID,long BasePriority); 
void OpenFileProperties(HWND hWnd,char *szFileName); 
void SetPrivileges(); 
bool GetItemState(HMENU hMenu,int iItem); 
void SetItemState(HMENU hMenu,int iItem,bool bChecked); 
ULONGLONG myNtGetTickCount(); 
void DisplayError(DWORD dwError); 
BOOL CALLBACK AboutWndDlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); 
#endif