mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:12:55 +00:00
Updated license header to reflect relicense by Brian Palmer.
Converted Comments from C++ style to C. (WINE is going to adopt our taskmgr soon) svn path=/trunk/; revision=6812
This commit is contained in:
parent
1fb5fb5f1e
commit
b63bf89d46
19 changed files with 306 additions and 367 deletions
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ABOUT_H
|
#ifndef __ABOUT_H
|
||||||
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
void OnAbout(void);
|
void OnAbout(void);
|
||||||
|
|
||||||
#endif // __ABOUT_H
|
#endif /* __ABOUT_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __AFFINITY_H
|
#ifndef __AFFINITY_H
|
||||||
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
void ProcessPage_OnSetAffinity(void);
|
void ProcessPage_OnSetAffinity(void);
|
||||||
|
|
||||||
#endif // __AFFINITY_H
|
#endif /* __AFFINITY_H */
|
||||||
|
|
|
@ -5,30 +5,30 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __APPLICATIONPAGE_H
|
#ifndef __APPLICATIONPAGE_H
|
||||||
#define __APPLICATIONPAGE_H
|
#define __APPLICATIONPAGE_H
|
||||||
|
|
||||||
extern HWND hApplicationPage; // Application List Property Page
|
extern HWND hApplicationPage; /* Application List Property Page */
|
||||||
|
|
||||||
extern HWND hApplicationPageListCtrl; // Application ListCtrl Window
|
extern HWND hApplicationPageListCtrl; /* Application ListCtrl Window */
|
||||||
extern HWND hApplicationPageEndTaskButton; // Application End Task button
|
extern HWND hApplicationPageEndTaskButton; /* Application End Task button */
|
||||||
extern HWND hApplicationPageSwitchToButton; // Application Switch To button
|
extern HWND hApplicationPageSwitchToButton; /* Application Switch To button */
|
||||||
extern HWND hApplicationPageNewTaskButton; // Application New Task button
|
extern HWND hApplicationPageNewTaskButton; /* Application New Task button */
|
||||||
|
|
||||||
LRESULT CALLBACK ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
LRESULT CALLBACK ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
void RefreshApplicationPage(void);
|
void RefreshApplicationPage(void);
|
||||||
|
@ -47,4 +47,4 @@ void ApplicationPage_OnSwitchTo(void);
|
||||||
void ApplicationPage_OnEndTask(void);
|
void ApplicationPage_OnEndTask(void);
|
||||||
void ApplicationPage_OnGotoProcess(void);
|
void ApplicationPage_OnGotoProcess(void);
|
||||||
|
|
||||||
#endif // __APPLICATIONPAGE_H
|
#endif /* __APPLICATIONPAGE_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __COLUMN_H
|
#ifndef __COLUMN_H
|
||||||
|
@ -56,4 +56,4 @@ void AddColumns(void);
|
||||||
void SaveColumnSettings(void);
|
void SaveColumnSettings(void);
|
||||||
void UpdateColumnDataHints(void);
|
void UpdateColumnDataHints(void);
|
||||||
|
|
||||||
#endif // __COLUMN_H
|
#endif /* __COLUMN_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DEBUG_H
|
#ifndef __DEBUG_H
|
||||||
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
void ProcessPage_OnDebug(void);
|
void ProcessPage_OnDebug(void);
|
||||||
|
|
||||||
#endif // __DEBUG_H
|
#endif /* __DEBUG_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ENDPROC_H
|
#ifndef __ENDPROC_H
|
||||||
|
@ -26,4 +26,4 @@
|
||||||
void ProcessPage_OnEndProcess(void);
|
void ProcessPage_OnEndProcess(void);
|
||||||
void ProcessPage_OnEndProcessTree(void);
|
void ProcessPage_OnEndProcessTree(void);
|
||||||
|
|
||||||
#endif // __ENDPROC_H
|
#endif /* __ENDPROC_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __FONT_H
|
#ifndef __FONT_H
|
||||||
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
void Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
|
void Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
|
||||||
|
|
||||||
#endif // __FONT_H
|
#endif /* __FONT_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __GRAPH_H
|
#ifndef __GRAPH_H
|
||||||
|
@ -41,4 +41,4 @@ LRESULT CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __GRAPH_H
|
#endif /* __GRAPH_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __GRAPH_CTRL_H__
|
#ifndef __GRAPH_CTRL_H__
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
class TGraphCtrl
|
class TGraphCtrl
|
||||||
{
|
{
|
||||||
// Attributes
|
/* Attributes */
|
||||||
public:
|
public:
|
||||||
double AppendPoint(double dNewPoint0, double dNewPoint1 = 0.0,
|
double AppendPoint(double dNewPoint0, double dNewPoint1 = 0.0,
|
||||||
double dNewPoint2 = 0.0, double dNewPoint3 = 0.0);
|
double dNewPoint2 = 0.0, double dNewPoint3 = 0.0);
|
||||||
|
@ -46,7 +46,7 @@ public:
|
||||||
void DrawPoint();
|
void DrawPoint();
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
// Operations
|
/* Operations */
|
||||||
public:
|
public:
|
||||||
BOOL Create(DWORD dwStyle, const RECT& rect, HWND hParentWnd, UINT nID=NULL);
|
BOOL Create(DWORD dwStyle, const RECT& rect, HWND hParentWnd, UINT nID=NULL);
|
||||||
BOOL Create(HWND hWnd, HWND hParentWnd, UINT nID=NULL);
|
BOOL Create(HWND hWnd, HWND hParentWnd, UINT nID=NULL);
|
||||||
|
@ -59,22 +59,22 @@ public:
|
||||||
static int CtrlCount;
|
static int CtrlCount;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Implementation
|
/* Implementation */
|
||||||
public:
|
public:
|
||||||
int m_nShiftPixels; // amount to shift with each new point
|
int m_nShiftPixels; /* amount to shift with each new point */
|
||||||
int m_nYDecimals;
|
int m_nYDecimals;
|
||||||
|
|
||||||
char m_strXUnitsString[50];
|
char m_strXUnitsString[50];
|
||||||
char m_strYUnitsString[50];
|
char m_strYUnitsString[50];
|
||||||
|
|
||||||
COLORREF m_crBackColor; // background color
|
COLORREF m_crBackColor; /* background color */
|
||||||
COLORREF m_crGridColor; // grid color
|
COLORREF m_crGridColor; /* grid color */
|
||||||
COLORREF m_crPlotColor[MAX_PLOTS]; // data color
|
COLORREF m_crPlotColor[MAX_PLOTS]; /* data color */
|
||||||
|
|
||||||
double m_dCurrentPosition[MAX_PLOTS]; // current position
|
double m_dCurrentPosition[MAX_PLOTS]; /* current position */
|
||||||
double m_dPreviousPosition[MAX_PLOTS]; // previous position
|
double m_dPreviousPosition[MAX_PLOTS]; /* previous position */
|
||||||
|
|
||||||
// Construction
|
/* Construction */
|
||||||
public:
|
public:
|
||||||
TGraphCtrl();
|
TGraphCtrl();
|
||||||
virtual ~TGraphCtrl();
|
virtual ~TGraphCtrl();
|
||||||
|
@ -87,8 +87,8 @@ protected:
|
||||||
int m_nPlotHeight;
|
int m_nPlotHeight;
|
||||||
int m_nPlotWidth;
|
int m_nPlotWidth;
|
||||||
|
|
||||||
double m_dLowerLimit; // lower bounds
|
double m_dLowerLimit; /* lower bounds */
|
||||||
double m_dUpperLimit; // upper bounds
|
double m_dUpperLimit; /* upper bounds */
|
||||||
double m_dRange;
|
double m_dRange;
|
||||||
double m_dVerticalFactor;
|
double m_dVerticalFactor;
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,14 @@ PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET_TYPE = program
|
TARGET_TYPE = program
|
||||||
|
|
||||||
TARGET_APPTYPE = console
|
TARGET_APPTYPE = windows
|
||||||
|
|
||||||
TARGET_NAME = taskmgr
|
TARGET_NAME = taskmgr
|
||||||
|
|
||||||
#TARGET_CFLAGS = -DDBG -D_WIN32_IE=0x0400
|
TARGET_CFLAGS = -DDBG -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 \
|
||||||
#TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
-fexceptions -Wall -D__USE_W32API
|
||||||
|
|
||||||
|
TARGET_RCFLAGS =
|
||||||
|
|
||||||
WINE_MODE = yes
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
@ -25,7 +27,7 @@ TARGET_SDKLIBS = \
|
||||||
kernel32.a \
|
kernel32.a \
|
||||||
user32.a \
|
user32.a \
|
||||||
gdi32.a \
|
gdi32.a \
|
||||||
$(COMCTL32_TARGET).a
|
comctl32.a
|
||||||
|
|
||||||
TARGET_GCCLIBS = stdc++
|
TARGET_GCCLIBS = stdc++
|
||||||
|
|
||||||
|
|
|
@ -5,24 +5,24 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//
|
/*
|
||||||
// Menu item handlers for the options menu.
|
* Menu item handlers for the options menu.
|
||||||
//
|
*/
|
||||||
|
|
||||||
#ifndef __OPTNMENU_H
|
#ifndef __OPTNMENU_H
|
||||||
#define __OPTNMENU_H
|
#define __OPTNMENU_H
|
||||||
|
@ -32,4 +32,4 @@ void TaskManager_OnOptionsMinimizeOnUse(void);
|
||||||
void TaskManager_OnOptionsHideWhenMinimized(void);
|
void TaskManager_OnOptionsHideWhenMinimized(void);
|
||||||
void TaskManager_OnOptionsShow16BitTasks(void);
|
void TaskManager_OnOptionsShow16BitTasks(void);
|
||||||
|
|
||||||
#endif // __OPTNMENU_H
|
#endif /* __OPTNMENU_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PERFDATA_H
|
#ifndef __PERFDATA_H
|
||||||
|
@ -37,7 +37,7 @@ typedef struct _TIME {
|
||||||
|
|
||||||
typedef ULARGE_INTEGER TIME, *PTIME;
|
typedef ULARGE_INTEGER TIME, *PTIME;
|
||||||
|
|
||||||
//typedef WCHAR UNICODE_STRING;
|
/* typedef WCHAR UNICODE_STRING; */
|
||||||
typedef struct _UNICODE_STRING {
|
typedef struct _UNICODE_STRING {
|
||||||
USHORT Length;
|
USHORT Length;
|
||||||
USHORT MaximumLength;
|
USHORT MaximumLength;
|
||||||
|
@ -107,7 +107,7 @@ typedef enum _KWAIT_REASON
|
||||||
MaximumWaitReason,
|
MaximumWaitReason,
|
||||||
} KWAIT_REASON;
|
} KWAIT_REASON;
|
||||||
|
|
||||||
// SystemProcessThreadInfo (5)
|
/* SystemProcessThreadInfo (5) */
|
||||||
typedef struct _SYSTEM_THREAD_INFORMATION
|
typedef struct _SYSTEM_THREAD_INFORMATION
|
||||||
{
|
{
|
||||||
TIME KernelTime;
|
TIME KernelTime;
|
||||||
|
@ -172,7 +172,7 @@ typedef struct
|
||||||
WORD wUnknown3;
|
WORD wUnknown3;
|
||||||
} SYSTEM_BASIC_INFORMATION;
|
} SYSTEM_BASIC_INFORMATION;
|
||||||
|
|
||||||
// SystemPerformanceInfo (2)
|
/* SystemPerformanceInfo (2) */
|
||||||
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
|
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
|
||||||
{
|
{
|
||||||
LARGE_INTEGER /*TotalProcessorTime*/liIdleTime;
|
LARGE_INTEGER /*TotalProcessorTime*/liIdleTime;
|
||||||
|
@ -261,7 +261,7 @@ typedef struct
|
||||||
DWORD dwReserved;
|
DWORD dwReserved;
|
||||||
} SYSTEM_TIME_INFORMATION;
|
} SYSTEM_TIME_INFORMATION;
|
||||||
|
|
||||||
// SystemCacheInformation (21)
|
/* SystemCacheInformation (21) */
|
||||||
typedef struct _SYSTEM_CACHE_INFORMATION
|
typedef struct _SYSTEM_CACHE_INFORMATION
|
||||||
{
|
{
|
||||||
ULONG CurrentSize;
|
ULONG CurrentSize;
|
||||||
|
@ -273,7 +273,7 @@ typedef struct _SYSTEM_CACHE_INFORMATION
|
||||||
|
|
||||||
} SYSTEM_CACHE_INFORMATION;
|
} SYSTEM_CACHE_INFORMATION;
|
||||||
|
|
||||||
// SystemPageFileInformation (18)
|
/* SystemPageFileInformation (18) */
|
||||||
typedef
|
typedef
|
||||||
struct _SYSTEM_PAGEFILE_INFORMATION
|
struct _SYSTEM_PAGEFILE_INFORMATION
|
||||||
{
|
{
|
||||||
|
@ -285,8 +285,8 @@ struct _SYSTEM_PAGEFILE_INFORMATION
|
||||||
|
|
||||||
} SYSTEM_PAGEFILE_INFORMATION, *PSYSTEM_PAGEFILE_INFORMATION;
|
} SYSTEM_PAGEFILE_INFORMATION, *PSYSTEM_PAGEFILE_INFORMATION;
|
||||||
|
|
||||||
// SystemHandleInformation (16)
|
/* SystemHandleInformation (16) */
|
||||||
// (see ontypes.h)
|
/* (see ontypes.h) */
|
||||||
typedef
|
typedef
|
||||||
struct _SYSTEM_HANDLE_ENTRY
|
struct _SYSTEM_HANDLE_ENTRY
|
||||||
{
|
{
|
||||||
|
@ -307,7 +307,7 @@ struct _SYSTEM_HANDLE_INFORMATION
|
||||||
|
|
||||||
} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
|
} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
|
||||||
|
|
||||||
// SystemProcessorPerformanceInformation (8)
|
/* SystemProcessorPerformanceInformation (8) */
|
||||||
typedef
|
typedef
|
||||||
struct _SYSTEM_PROCESSORTIME_INFO
|
struct _SYSTEM_PROCESSORTIME_INFO
|
||||||
{
|
{
|
||||||
|
@ -338,35 +338,8 @@ struct _SYSTEM_PROCESSORTIME_INFO
|
||||||
#define GR_GDIOBJECTS 0 /* Count of GDI objects */
|
#define GR_GDIOBJECTS 0 /* Count of GDI objects */
|
||||||
#define GR_USEROBJECTS 1 /* Count of USER objects */
|
#define GR_USEROBJECTS 1 /* Count of USER objects */
|
||||||
|
|
||||||
// ntdll!NtQuerySystemInformation (NT specific!)
|
|
||||||
//
|
|
||||||
// The function copies the system information of the
|
|
||||||
// specified type into a buffer
|
|
||||||
//
|
|
||||||
// NTSYSAPI
|
|
||||||
// NTSTATUS
|
|
||||||
// NTAPI
|
|
||||||
// NtQuerySystemInformation(
|
|
||||||
// IN UINT SystemInformationClass, // information type
|
|
||||||
// OUT PVOID SystemInformation, // pointer to buffer
|
|
||||||
// IN ULONG SystemInformationLength, // buffer size in bytes
|
|
||||||
// OUT PULONG ReturnLength OPTIONAL // pointer to a 32-bit
|
|
||||||
// // variable that receives
|
|
||||||
// // the number of bytes
|
|
||||||
// // written to the buffer
|
|
||||||
// );
|
|
||||||
typedef LONG (WINAPI *PROCNTQSI)(UINT,PVOID,ULONG,PULONG);
|
typedef LONG (WINAPI *PROCNTQSI)(UINT,PVOID,ULONG,PULONG);
|
||||||
|
|
||||||
//DWORD GetGuiResources (
|
|
||||||
// HANDLE hProcess, // handle to process
|
|
||||||
// DWORD uiFlags // GUI object type
|
|
||||||
//);
|
|
||||||
typedef DWORD (WINAPI *PROCGGR)(HANDLE,DWORD);
|
typedef DWORD (WINAPI *PROCGGR)(HANDLE,DWORD);
|
||||||
|
|
||||||
//BOOL GetProcessIoCounters(
|
|
||||||
// HANDLE hProcess, // handle to process
|
|
||||||
// PIO_COUNTERS lpIoCounters // I/O accouting information
|
|
||||||
//);
|
|
||||||
typedef BOOL (WINAPI *PROCGPIC)(HANDLE,PIO_COUNTERS);
|
typedef BOOL (WINAPI *PROCGPIC)(HANDLE,PIO_COUNTERS);
|
||||||
|
|
||||||
BOOL PerfDataInitialize(void);
|
BOOL PerfDataInitialize(void);
|
||||||
|
@ -419,4 +392,4 @@ ULONG PerfDataGetTotalThreadCount(void);
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __PERFDATA_H
|
#endif /* __PERFDATA_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PERFORMANCEPAGE_H
|
#ifndef __PERFORMANCEPAGE_H
|
||||||
|
@ -27,19 +27,15 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern HWND hPerformancePage; /* Performance Property Page */
|
||||||
extern HWND hPerformancePage; // Performance Property Page
|
|
||||||
|
|
||||||
LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
void RefreshPerformancePage(void);
|
void RefreshPerformancePage(void);
|
||||||
|
void PerformancePage_OnViewShowKernelTimes(void);
|
||||||
void PerformancePage_OnViewShowKernelTimes(void);
|
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
|
||||||
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
|
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
|
||||||
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __PERFORMANCEPAGE_H
|
#endif /* __PERFORMANCEPAGE_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PRIORITY_H
|
#ifndef __PRIORITY_H
|
||||||
|
@ -30,4 +30,4 @@ void ProcessPage_OnSetPriorityNormal(void);
|
||||||
void ProcessPage_OnSetPriorityBelowNormal(void);
|
void ProcessPage_OnSetPriorityBelowNormal(void);
|
||||||
void ProcessPage_OnSetPriorityLow(void);
|
void ProcessPage_OnSetPriorityLow(void);
|
||||||
|
|
||||||
#endif // __PRIORITY_H
|
#endif /* __PRIORITY_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PROCLIST_H
|
#ifndef __PROCLIST_H
|
||||||
|
@ -27,4 +27,4 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
|
||||||
|
|
||||||
extern LONG OldProcessListWndProc;
|
extern LONG OldProcessListWndProc;
|
||||||
|
|
||||||
#endif // __PROCLIST_H
|
#endif /* __PROCLIST_H */
|
||||||
|
|
|
@ -5,31 +5,31 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PROCESSPAGE_H
|
#ifndef __PROCESSPAGE_H
|
||||||
#define __PROCESSPAGE_H
|
#define __PROCESSPAGE_H
|
||||||
|
|
||||||
extern HWND hProcessPage; // Process List Property Page
|
extern HWND hProcessPage; /* Process List Property Page */
|
||||||
extern HWND hProcessPageListCtrl; // Process ListCtrl Window
|
extern HWND hProcessPageListCtrl; /* Process ListCtrl Window */
|
||||||
extern HWND hProcessPageHeaderCtrl; // Process Header Control
|
extern HWND hProcessPageHeaderCtrl; /* Process Header Control */
|
||||||
extern HWND hProcessPageEndProcessButton; // Process End Process button
|
extern HWND hProcessPageEndProcessButton; /* Process End Process button */
|
||||||
extern HWND hProcessPageShowAllProcessesButton; // Process Show All Processes checkbox
|
extern HWND hProcessPageShowAllProcessesButton; /* Process Show All Processes checkbox */
|
||||||
|
|
||||||
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
void RefreshProcessPage(void);
|
void RefreshProcessPage(void);
|
||||||
|
|
||||||
#endif // __PROCESSPAGE_H
|
#endif /* __PROCESSPAGE_H */
|
||||||
|
|
|
@ -5,28 +5,29 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// run.h - definitions necessary to use Microsoft's "Run" dialog
|
/* run.h - definitions necessary to use Microsoft's "Run" dialog
|
||||||
// Undocumented Windows call
|
* Undocumented Windows call
|
||||||
// use the type below to declare a function pointer
|
* use the type below to declare a function pointer
|
||||||
|
*
|
||||||
// Information taken from http://www.geocities.com/SiliconValley/4942/
|
* Information taken from http:/*www.geocities.com/SiliconValley/4942/
|
||||||
// Copyright © 1998-1999 James Holderness. All Rights Reserved.
|
* Copyright © 1998-1999 James Holderness. All Rights Reserved.
|
||||||
// jholderness@geocities.com
|
* jholderness@geocities.com
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __RUN_H
|
#ifndef __RUN_H
|
||||||
#define __RUN_H
|
#define __RUN_H
|
||||||
|
@ -41,14 +42,14 @@ typedef void (WINAPI *RUNFILEDLG)(
|
||||||
LPCSTR lpstrDescription,
|
LPCSTR lpstrDescription,
|
||||||
UINT uFlags);
|
UINT uFlags);
|
||||||
|
|
||||||
//
|
/*
|
||||||
// Flags for RunFileDlg
|
* Flags for RunFileDlg
|
||||||
//
|
*/
|
||||||
|
|
||||||
#define RFF_NOBROWSE 0x01 // Removes the browse button.
|
#define RFF_NOBROWSE 0x01 /* Removes the browse button. */
|
||||||
#define RFF_NODEFAULT 0x02 // No default item selected.
|
#define RFF_NODEFAULT 0x02 /* No default item selected. */
|
||||||
#define RFF_CALCDIRECTORY 0x04 // Calculates the working directory from the file name.
|
#define RFF_CALCDIRECTORY 0x04 /* Calculates the working directory from the file name. */
|
||||||
#define RFF_NOLABEL 0x08 // Removes the edit box label.
|
#define RFF_NOLABEL 0x08 /* Removes the edit box label. */
|
||||||
#define RFF_NOSEPARATEMEM 0x20 // Removes the Separate Memory Space check box (Windows NT only).
|
#define RFF_NOSEPARATEMEM 0x20 /* Removes the Separate Memory Space check box (Windows NT only). */
|
||||||
|
|
||||||
#endif // __RUN_H
|
#endif /* __RUN_H */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TASKMGR_H__
|
#ifndef __TASKMGR_H__
|
||||||
|
@ -27,9 +27,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
/*MF
|
/*MF
|
||||||
typedef struct _IO_COUNTERS {
|
typedef struct _IO_COUNTERS {
|
||||||
ULONGLONG ReadOperationCount;
|
ULONGLONG ReadOperationCount;
|
||||||
|
@ -40,29 +38,7 @@ typedef struct _IO_COUNTERS {
|
||||||
ULONGLONG OtherTransferCount;
|
ULONGLONG OtherTransferCount;
|
||||||
} IO_COUNTERS, *PIO_COUNTERS;
|
} IO_COUNTERS, *PIO_COUNTERS;
|
||||||
*/
|
*/
|
||||||
|
#endif /* _MSC_VER */
|
||||||
#else
|
|
||||||
|
|
||||||
#if __MINGW32_MAJOR_VERSION == 1
|
|
||||||
#define HDITEM HD_ITEM
|
|
||||||
#define LPNMLISTVIEW LPNM_LISTVIEW
|
|
||||||
#define HDN_ENDDRAG TBN_ENDDRAG
|
|
||||||
#define LVSICF_NOSCROLL LVS_NOSCROLL
|
|
||||||
#define HDM_GETORDERARRAY (HDM_FIRST+19) // TODO: FIX ME
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#define LVM_REDRAWITEMS (LVM_FIRST + 21)
|
|
||||||
#define ListView_RedrawItems(hwndLV, iFirst, iLast) \
|
|
||||||
(BOOL)SNDMSG((hwndLV), LVM_REDRAWITEMS, (WPARAM)(int)iFirst, (LPARAM)(int)iLast)
|
|
||||||
|
|
||||||
//#if (_WIN32_IE >= 0x0300)
|
|
||||||
//#define LVM_GETHEADER (LVM_FIRST + 31)
|
|
||||||
#define ListView_GetHeader(hwnd)\
|
|
||||||
(HWND)SNDMSG((hwnd), LVM_GETHEADER, 0, 0L)
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
|
@ -74,32 +50,33 @@ typedef struct _IO_COUNTERS {
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
// Window size & position settings
|
/* Window size & position settings */
|
||||||
BOOL Maximized;
|
BOOL Maximized;
|
||||||
int Left;
|
int Left;
|
||||||
int Top;
|
int Top;
|
||||||
int Right;
|
int Right;
|
||||||
int Bottom;
|
int Bottom;
|
||||||
|
|
||||||
// Tab settings
|
/* Tab settings */
|
||||||
int ActiveTabPage;
|
int ActiveTabPage;
|
||||||
|
|
||||||
// Options menu settings
|
/* Options menu settings */
|
||||||
BOOL AlwaysOnTop;
|
BOOL AlwaysOnTop;
|
||||||
BOOL MinimizeOnUse;
|
BOOL MinimizeOnUse;
|
||||||
BOOL HideWhenMinimized;
|
BOOL HideWhenMinimized;
|
||||||
BOOL Show16BitTasks;
|
BOOL Show16BitTasks;
|
||||||
|
|
||||||
// Update speed settings
|
/* Update speed settings */
|
||||||
int UpdateSpeed; // How many half-seconds in between updates (i.e. 0 - Paused, 1 - High, 2 - Normal, 4 - Low)
|
/* How many half-seconds in between updates (i.e. 0 - Paused, 1 - High, 2 - Normal, 4 - Low) */
|
||||||
|
int UpdateSpeed;
|
||||||
|
|
||||||
// Applications page settings
|
/* Applications page settings */
|
||||||
BOOL View_LargeIcons;
|
BOOL View_LargeIcons;
|
||||||
BOOL View_SmallIcons;
|
BOOL View_SmallIcons;
|
||||||
BOOL View_Details;
|
BOOL View_Details;
|
||||||
|
|
||||||
// Processes page settings
|
/* Processes page settings */
|
||||||
BOOL ShowProcessesFromAllUsers; // Server-only?
|
BOOL ShowProcessesFromAllUsers; /* Server-only? */
|
||||||
BOOL Column_ImageName;
|
BOOL Column_ImageName;
|
||||||
BOOL Column_PID;
|
BOOL Column_PID;
|
||||||
BOOL Column_CPUUsage;
|
BOOL Column_CPUUsage;
|
||||||
|
@ -111,8 +88,8 @@ typedef struct
|
||||||
BOOL Column_USERObjects;
|
BOOL Column_USERObjects;
|
||||||
BOOL Column_IOReads;
|
BOOL Column_IOReads;
|
||||||
BOOL Column_IOReadBytes;
|
BOOL Column_IOReadBytes;
|
||||||
BOOL Column_SessionID; // Server-only?
|
BOOL Column_SessionID; /* Server-only? */
|
||||||
BOOL Column_UserName; // Server-only?
|
BOOL Column_UserName; /* Server-only? */
|
||||||
BOOL Column_PageFaultsDelta;
|
BOOL Column_PageFaultsDelta;
|
||||||
BOOL Column_VirtualMemorySize;
|
BOOL Column_VirtualMemorySize;
|
||||||
BOOL Column_PagedPool;
|
BOOL Column_PagedPool;
|
||||||
|
@ -125,62 +102,52 @@ typedef struct
|
||||||
BOOL Column_IOWriteBytes;
|
BOOL Column_IOWriteBytes;
|
||||||
BOOL Column_IOOther;
|
BOOL Column_IOOther;
|
||||||
BOOL Column_IOOtherBytes;
|
BOOL Column_IOOtherBytes;
|
||||||
int ColumnOrderArray[25];
|
int ColumnOrderArray[25];
|
||||||
int ColumnSizeArray[25];
|
int ColumnSizeArray[25];
|
||||||
int SortColumn;
|
int SortColumn;
|
||||||
BOOL SortAscending;
|
BOOL SortAscending;
|
||||||
|
|
||||||
// Performance page settings
|
/* Performance page settings */
|
||||||
BOOL CPUHistory_OneGraphPerCPU;
|
BOOL CPUHistory_OneGraphPerCPU;
|
||||||
BOOL ShowKernelTimes;
|
BOOL ShowKernelTimes;
|
||||||
|
|
||||||
} TASKMANAGER_SETTINGS, *LPTASKMANAGER_SETTINGS;
|
} TASKMANAGER_SETTINGS, *LPTASKMANAGER_SETTINGS;
|
||||||
|
|
||||||
// Global Variables:
|
/* Global Variables: */
|
||||||
extern HINSTANCE hInst; // current instance
|
extern HINSTANCE hInst; /* current instance */
|
||||||
extern HWND hMainWnd; // Main Window
|
extern HWND hMainWnd; /* Main Window */
|
||||||
extern HWND hStatusWnd; // Status Bar Window
|
extern HWND hStatusWnd; /* Status Bar Window */
|
||||||
extern HWND hTabWnd; // Tab Control Window
|
extern HWND hTabWnd; /* Tab Control Window */
|
||||||
|
extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */
|
||||||
extern int nMinimumWidth; // Minimum width of the dialog (OnSize()'s cx)
|
extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */
|
||||||
extern int nMinimumHeight; // Minimum height of the dialog (OnSize()'s cy)
|
extern int nOldWidth; /* Holds the previous client area width */
|
||||||
extern int nOldWidth; // Holds the previous client area width
|
extern int nOldHeight; /* Holds the previous client area height */
|
||||||
extern int nOldHeight; // Holds the previous client area height
|
|
||||||
|
|
||||||
extern TASKMANAGER_SETTINGS TaskManagerSettings;
|
extern TASKMANAGER_SETTINGS TaskManagerSettings;
|
||||||
|
|
||||||
// Foward declarations of functions included in this code module:
|
/* Foward declarations of functions included in this code module: */
|
||||||
LRESULT CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM);
|
LRESULT CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
|
|
||||||
BOOL OnCreate(HWND hWnd);
|
BOOL OnCreate(HWND hWnd);
|
||||||
void OnSize(UINT nType, int cx, int cy);
|
void OnSize(UINT nType, int cx, int cy);
|
||||||
void OnMove(UINT nType, int cx, int cy);
|
void OnMove(UINT nType, int cx, int cy);
|
||||||
|
|
||||||
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
|
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
|
||||||
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
|
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
|
||||||
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
||||||
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
||||||
|
|
||||||
void LoadSettings(void);
|
void LoadSettings(void);
|
||||||
void SaveSettings(void);
|
void SaveSettings(void);
|
||||||
|
|
||||||
void TaskManager_OnEnterMenuLoop(HWND hWnd);
|
void TaskManager_OnEnterMenuLoop(HWND hWnd);
|
||||||
void TaskManager_OnExitMenuLoop(HWND hWnd);
|
void TaskManager_OnExitMenuLoop(HWND hWnd);
|
||||||
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
|
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
|
||||||
|
|
||||||
void TaskManager_OnViewUpdateSpeedHigh(void);
|
void TaskManager_OnViewUpdateSpeedHigh(void);
|
||||||
void TaskManager_OnViewUpdateSpeedNormal(void);
|
void TaskManager_OnViewUpdateSpeedNormal(void);
|
||||||
void TaskManager_OnViewUpdateSpeedLow(void);
|
void TaskManager_OnViewUpdateSpeedLow(void);
|
||||||
void TaskManager_OnViewUpdateSpeedPaused(void);
|
void TaskManager_OnViewUpdateSpeedPaused(void);
|
||||||
void TaskManager_OnViewRefresh(void);
|
void TaskManager_OnViewRefresh(void);
|
||||||
|
|
||||||
void TaskManager_OnTabWndSelChange(void);
|
void TaskManager_OnTabWndSelChange(void);
|
||||||
|
|
||||||
LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
|
LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __TASKMGR_H__
|
#endif /* __TASKMGR_H__ */
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU General Public License as published by
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* License as published by the Free Software Foundation; either
|
||||||
* (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* along with this program; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TRAYICON_H
|
#ifndef __TRAYICON_H
|
||||||
|
@ -28,4 +28,4 @@ BOOL TrayIcon_ShellAddTrayIcon(void);
|
||||||
BOOL TrayIcon_ShellRemoveTrayIcon(void);
|
BOOL TrayIcon_ShellRemoveTrayIcon(void);
|
||||||
BOOL TrayIcon_ShellUpdateTrayIcon(void);
|
BOOL TrayIcon_ShellUpdateTrayIcon(void);
|
||||||
|
|
||||||
#endif // __TRAYICON_H
|
#endif /* __TRAYICON_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue