mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +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>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __ABOUT_H
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
void OnAbout(void);
|
||||
|
||||
#endif // __ABOUT_H
|
||||
#endif /* __ABOUT_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __AFFINITY_H
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
void ProcessPage_OnSetAffinity(void);
|
||||
|
||||
#endif // __AFFINITY_H
|
||||
#endif /* __AFFINITY_H */
|
||||
|
|
|
@ -5,30 +5,30 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __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 hApplicationPageEndTaskButton; // Application End Task button
|
||||
extern HWND hApplicationPageSwitchToButton; // Application Switch To button
|
||||
extern HWND hApplicationPageNewTaskButton; // Application New Task button
|
||||
extern HWND hApplicationPageListCtrl; /* Application ListCtrl Window */
|
||||
extern HWND hApplicationPageEndTaskButton; /* Application End Task button */
|
||||
extern HWND hApplicationPageSwitchToButton; /* Application Switch To button */
|
||||
extern HWND hApplicationPageNewTaskButton; /* Application New Task button */
|
||||
|
||||
LRESULT CALLBACK ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
void RefreshApplicationPage(void);
|
||||
|
@ -47,4 +47,4 @@ void ApplicationPage_OnSwitchTo(void);
|
|||
void ApplicationPage_OnEndTask(void);
|
||||
void ApplicationPage_OnGotoProcess(void);
|
||||
|
||||
#endif // __APPLICATIONPAGE_H
|
||||
#endif /* __APPLICATIONPAGE_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __COLUMN_H
|
||||
|
@ -56,4 +56,4 @@ void AddColumns(void);
|
|||
void SaveColumnSettings(void);
|
||||
void UpdateColumnDataHints(void);
|
||||
|
||||
#endif // __COLUMN_H
|
||||
#endif /* __COLUMN_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __DEBUG_H
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
void ProcessPage_OnDebug(void);
|
||||
|
||||
#endif // __DEBUG_H
|
||||
#endif /* __DEBUG_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __ENDPROC_H
|
||||
|
@ -26,4 +26,4 @@
|
|||
void ProcessPage_OnEndProcess(void);
|
||||
void ProcessPage_OnEndProcessTree(void);
|
||||
|
||||
#endif // __ENDPROC_H
|
||||
#endif /* __ENDPROC_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __FONT_H
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
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>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __GRAPH_H
|
||||
|
@ -41,4 +41,4 @@ LRESULT CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
|
|||
};
|
||||
#endif
|
||||
|
||||
#endif // __GRAPH_H
|
||||
#endif /* __GRAPH_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __GRAPH_CTRL_H__
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
class TGraphCtrl
|
||||
{
|
||||
// Attributes
|
||||
/* Attributes */
|
||||
public:
|
||||
double AppendPoint(double dNewPoint0, double dNewPoint1 = 0.0,
|
||||
double dNewPoint2 = 0.0, double dNewPoint3 = 0.0);
|
||||
|
@ -46,7 +46,7 @@ public:
|
|||
void DrawPoint();
|
||||
void Reset();
|
||||
|
||||
// Operations
|
||||
/* Operations */
|
||||
public:
|
||||
BOOL Create(DWORD dwStyle, const RECT& rect, HWND hParentWnd, UINT nID=NULL);
|
||||
BOOL Create(HWND hWnd, HWND hParentWnd, UINT nID=NULL);
|
||||
|
@ -59,22 +59,22 @@ public:
|
|||
static int CtrlCount;
|
||||
#endif
|
||||
|
||||
// Implementation
|
||||
/* Implementation */
|
||||
public:
|
||||
int m_nShiftPixels; // amount to shift with each new point
|
||||
int m_nShiftPixels; /* amount to shift with each new point */
|
||||
int m_nYDecimals;
|
||||
|
||||
char m_strXUnitsString[50];
|
||||
char m_strYUnitsString[50];
|
||||
|
||||
COLORREF m_crBackColor; // background color
|
||||
COLORREF m_crGridColor; // grid color
|
||||
COLORREF m_crPlotColor[MAX_PLOTS]; // data color
|
||||
COLORREF m_crBackColor; /* background color */
|
||||
COLORREF m_crGridColor; /* grid color */
|
||||
COLORREF m_crPlotColor[MAX_PLOTS]; /* data color */
|
||||
|
||||
double m_dCurrentPosition[MAX_PLOTS]; // current position
|
||||
double m_dPreviousPosition[MAX_PLOTS]; // previous position
|
||||
double m_dCurrentPosition[MAX_PLOTS]; /* current position */
|
||||
double m_dPreviousPosition[MAX_PLOTS]; /* previous position */
|
||||
|
||||
// Construction
|
||||
/* Construction */
|
||||
public:
|
||||
TGraphCtrl();
|
||||
virtual ~TGraphCtrl();
|
||||
|
@ -87,8 +87,8 @@ protected:
|
|||
int m_nPlotHeight;
|
||||
int m_nPlotWidth;
|
||||
|
||||
double m_dLowerLimit; // lower bounds
|
||||
double m_dUpperLimit; // upper bounds
|
||||
double m_dLowerLimit; /* lower bounds */
|
||||
double m_dUpperLimit; /* upper bounds */
|
||||
double m_dRange;
|
||||
double m_dVerticalFactor;
|
||||
|
||||
|
|
|
@ -8,12 +8,14 @@ PATH_TO_TOP = ../../reactos
|
|||
|
||||
TARGET_TYPE = program
|
||||
|
||||
TARGET_APPTYPE = console
|
||||
TARGET_APPTYPE = windows
|
||||
|
||||
TARGET_NAME = taskmgr
|
||||
|
||||
#TARGET_CFLAGS = -DDBG -D_WIN32_IE=0x0400
|
||||
#TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
||||
TARGET_CFLAGS = -DDBG -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 \
|
||||
-fexceptions -Wall -D__USE_W32API
|
||||
|
||||
TARGET_RCFLAGS =
|
||||
|
||||
WINE_MODE = yes
|
||||
|
||||
|
@ -25,7 +27,7 @@ TARGET_SDKLIBS = \
|
|||
kernel32.a \
|
||||
user32.a \
|
||||
gdi32.a \
|
||||
$(COMCTL32_TARGET).a
|
||||
comctl32.a
|
||||
|
||||
TARGET_GCCLIBS = stdc++
|
||||
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* 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
|
||||
#define __OPTNMENU_H
|
||||
|
@ -32,4 +32,4 @@ void TaskManager_OnOptionsMinimizeOnUse(void);
|
|||
void TaskManager_OnOptionsHideWhenMinimized(void);
|
||||
void TaskManager_OnOptionsShow16BitTasks(void);
|
||||
|
||||
#endif // __OPTNMENU_H
|
||||
#endif /* __OPTNMENU_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __PERFDATA_H
|
||||
|
@ -37,7 +37,7 @@ typedef struct _TIME {
|
|||
|
||||
typedef ULARGE_INTEGER TIME, *PTIME;
|
||||
|
||||
//typedef WCHAR UNICODE_STRING;
|
||||
/* typedef WCHAR UNICODE_STRING; */
|
||||
typedef struct _UNICODE_STRING {
|
||||
USHORT Length;
|
||||
USHORT MaximumLength;
|
||||
|
@ -107,7 +107,7 @@ typedef enum _KWAIT_REASON
|
|||
MaximumWaitReason,
|
||||
} KWAIT_REASON;
|
||||
|
||||
// SystemProcessThreadInfo (5)
|
||||
/* SystemProcessThreadInfo (5) */
|
||||
typedef struct _SYSTEM_THREAD_INFORMATION
|
||||
{
|
||||
TIME KernelTime;
|
||||
|
@ -172,7 +172,7 @@ typedef struct
|
|||
WORD wUnknown3;
|
||||
} SYSTEM_BASIC_INFORMATION;
|
||||
|
||||
// SystemPerformanceInfo (2)
|
||||
/* SystemPerformanceInfo (2) */
|
||||
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER /*TotalProcessorTime*/liIdleTime;
|
||||
|
@ -261,7 +261,7 @@ typedef struct
|
|||
DWORD dwReserved;
|
||||
} SYSTEM_TIME_INFORMATION;
|
||||
|
||||
// SystemCacheInformation (21)
|
||||
/* SystemCacheInformation (21) */
|
||||
typedef struct _SYSTEM_CACHE_INFORMATION
|
||||
{
|
||||
ULONG CurrentSize;
|
||||
|
@ -273,7 +273,7 @@ typedef struct _SYSTEM_CACHE_INFORMATION
|
|||
|
||||
} SYSTEM_CACHE_INFORMATION;
|
||||
|
||||
// SystemPageFileInformation (18)
|
||||
/* SystemPageFileInformation (18) */
|
||||
typedef
|
||||
struct _SYSTEM_PAGEFILE_INFORMATION
|
||||
{
|
||||
|
@ -285,8 +285,8 @@ struct _SYSTEM_PAGEFILE_INFORMATION
|
|||
|
||||
} SYSTEM_PAGEFILE_INFORMATION, *PSYSTEM_PAGEFILE_INFORMATION;
|
||||
|
||||
// SystemHandleInformation (16)
|
||||
// (see ontypes.h)
|
||||
/* SystemHandleInformation (16) */
|
||||
/* (see ontypes.h) */
|
||||
typedef
|
||||
struct _SYSTEM_HANDLE_ENTRY
|
||||
{
|
||||
|
@ -307,7 +307,7 @@ struct _SYSTEM_HANDLE_INFORMATION
|
|||
|
||||
} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
|
||||
|
||||
// SystemProcessorPerformanceInformation (8)
|
||||
/* SystemProcessorPerformanceInformation (8) */
|
||||
typedef
|
||||
struct _SYSTEM_PROCESSORTIME_INFO
|
||||
{
|
||||
|
@ -338,35 +338,8 @@ struct _SYSTEM_PROCESSORTIME_INFO
|
|||
#define GR_GDIOBJECTS 0 /* Count of GDI 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);
|
||||
|
||||
//DWORD GetGuiResources (
|
||||
// HANDLE hProcess, // handle to process
|
||||
// DWORD uiFlags // GUI object type
|
||||
//);
|
||||
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);
|
||||
|
||||
BOOL PerfDataInitialize(void);
|
||||
|
@ -419,4 +392,4 @@ ULONG PerfDataGetTotalThreadCount(void);
|
|||
};
|
||||
#endif
|
||||
|
||||
#endif // __PERFDATA_H
|
||||
#endif /* __PERFDATA_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __PERFORMANCEPAGE_H
|
||||
|
@ -27,19 +27,15 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
extern HWND hPerformancePage; // Performance Property Page
|
||||
|
||||
extern HWND hPerformancePage; /* Performance Property Page */
|
||||
LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
void RefreshPerformancePage(void);
|
||||
|
||||
void PerformancePage_OnViewShowKernelTimes(void);
|
||||
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
|
||||
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // __PERFORMANCEPAGE_H
|
||||
#endif /* __PERFORMANCEPAGE_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __PRIORITY_H
|
||||
|
@ -30,4 +30,4 @@ void ProcessPage_OnSetPriorityNormal(void);
|
|||
void ProcessPage_OnSetPriorityBelowNormal(void);
|
||||
void ProcessPage_OnSetPriorityLow(void);
|
||||
|
||||
#endif // __PRIORITY_H
|
||||
#endif /* __PRIORITY_H */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __PROCLIST_H
|
||||
|
@ -27,4 +27,4 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
|
|||
|
||||
extern LONG OldProcessListWndProc;
|
||||
|
||||
#endif // __PROCLIST_H
|
||||
#endif /* __PROCLIST_H */
|
||||
|
|
|
@ -5,31 +5,31 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __PROCESSPAGE_H
|
||||
#define __PROCESSPAGE_H
|
||||
|
||||
extern HWND hProcessPage; // Process List Property Page
|
||||
extern HWND hProcessPageListCtrl; // Process ListCtrl Window
|
||||
extern HWND hProcessPageHeaderCtrl; // Process Header Control
|
||||
extern HWND hProcessPageEndProcessButton; // Process End Process button
|
||||
extern HWND hProcessPageShowAllProcessesButton; // Process Show All Processes checkbox
|
||||
extern HWND hProcessPage; /* Process List Property Page */
|
||||
extern HWND hProcessPageListCtrl; /* Process ListCtrl Window */
|
||||
extern HWND hProcessPageHeaderCtrl; /* Process Header Control */
|
||||
extern HWND hProcessPageEndProcessButton; /* Process End Process button */
|
||||
extern HWND hProcessPageShowAllProcessesButton; /* Process Show All Processes checkbox */
|
||||
|
||||
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
void RefreshProcessPage(void);
|
||||
|
||||
#endif // __PROCESSPAGE_H
|
||||
#endif /* __PROCESSPAGE_H */
|
||||
|
|
|
@ -5,28 +5,29 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
// run.h - definitions necessary to use Microsoft's "Run" dialog
|
||||
// Undocumented Windows call
|
||||
// use the type below to declare a function pointer
|
||||
|
||||
// Information taken from http://www.geocities.com/SiliconValley/4942/
|
||||
// Copyright © 1998-1999 James Holderness. All Rights Reserved.
|
||||
// jholderness@geocities.com
|
||||
/* run.h - definitions necessary to use Microsoft's "Run" dialog
|
||||
* Undocumented Windows call
|
||||
* use the type below to declare a function pointer
|
||||
*
|
||||
* Information taken from http:/*www.geocities.com/SiliconValley/4942/
|
||||
* Copyright © 1998-1999 James Holderness. All Rights Reserved.
|
||||
* jholderness@geocities.com
|
||||
*/
|
||||
|
||||
#ifndef __RUN_H
|
||||
#define __RUN_H
|
||||
|
@ -41,14 +42,14 @@ typedef void (WINAPI *RUNFILEDLG)(
|
|||
LPCSTR lpstrDescription,
|
||||
UINT uFlags);
|
||||
|
||||
//
|
||||
// Flags for RunFileDlg
|
||||
//
|
||||
/*
|
||||
* Flags for RunFileDlg
|
||||
*/
|
||||
|
||||
#define RFF_NOBROWSE 0x01 // Removes the browse button.
|
||||
#define RFF_NODEFAULT 0x02 // No default item selected.
|
||||
#define RFF_CALCDIRECTORY 0x04 // Calculates the working directory from the file name.
|
||||
#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_NOBROWSE 0x01 /* Removes the browse button. */
|
||||
#define RFF_NODEFAULT 0x02 /* No default item selected. */
|
||||
#define RFF_CALCDIRECTORY 0x04 /* Calculates the working directory from the file name. */
|
||||
#define RFF_NOLABEL 0x08 /* Removes the edit box label. */
|
||||
#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>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __TASKMGR_H__
|
||||
|
@ -27,9 +27,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
/*MF
|
||||
typedef struct _IO_COUNTERS {
|
||||
ULONGLONG ReadOperationCount;
|
||||
|
@ -40,29 +38,7 @@ typedef struct _IO_COUNTERS {
|
|||
ULONGLONG OtherTransferCount;
|
||||
} IO_COUNTERS, *PIO_COUNTERS;
|
||||
*/
|
||||
|
||||
#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
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
|
@ -74,32 +50,33 @@ typedef struct _IO_COUNTERS {
|
|||
|
||||
typedef struct
|
||||
{
|
||||
// Window size & position settings
|
||||
/* Window size & position settings */
|
||||
BOOL Maximized;
|
||||
int Left;
|
||||
int Top;
|
||||
int Right;
|
||||
int Bottom;
|
||||
|
||||
// Tab settings
|
||||
/* Tab settings */
|
||||
int ActiveTabPage;
|
||||
|
||||
// Options menu settings
|
||||
/* Options menu settings */
|
||||
BOOL AlwaysOnTop;
|
||||
BOOL MinimizeOnUse;
|
||||
BOOL HideWhenMinimized;
|
||||
BOOL Show16BitTasks;
|
||||
|
||||
// Update speed settings
|
||||
int UpdateSpeed; // How many half-seconds in between updates (i.e. 0 - Paused, 1 - High, 2 - Normal, 4 - Low)
|
||||
/* Update speed settings */
|
||||
/* 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_SmallIcons;
|
||||
BOOL View_Details;
|
||||
|
||||
// Processes page settings
|
||||
BOOL ShowProcessesFromAllUsers; // Server-only?
|
||||
/* Processes page settings */
|
||||
BOOL ShowProcessesFromAllUsers; /* Server-only? */
|
||||
BOOL Column_ImageName;
|
||||
BOOL Column_PID;
|
||||
BOOL Column_CPUUsage;
|
||||
|
@ -111,8 +88,8 @@ typedef struct
|
|||
BOOL Column_USERObjects;
|
||||
BOOL Column_IOReads;
|
||||
BOOL Column_IOReadBytes;
|
||||
BOOL Column_SessionID; // Server-only?
|
||||
BOOL Column_UserName; // Server-only?
|
||||
BOOL Column_SessionID; /* Server-only? */
|
||||
BOOL Column_UserName; /* Server-only? */
|
||||
BOOL Column_PageFaultsDelta;
|
||||
BOOL Column_VirtualMemorySize;
|
||||
BOOL Column_PagedPool;
|
||||
|
@ -130,57 +107,47 @@ typedef struct
|
|||
int SortColumn;
|
||||
BOOL SortAscending;
|
||||
|
||||
// Performance page settings
|
||||
/* Performance page settings */
|
||||
BOOL CPUHistory_OneGraphPerCPU;
|
||||
BOOL ShowKernelTimes;
|
||||
|
||||
} TASKMANAGER_SETTINGS, *LPTASKMANAGER_SETTINGS;
|
||||
|
||||
// Global Variables:
|
||||
extern HINSTANCE hInst; // current instance
|
||||
extern HWND hMainWnd; // Main Window
|
||||
extern HWND hStatusWnd; // Status Bar Window
|
||||
extern HWND hTabWnd; // Tab Control Window
|
||||
|
||||
extern int nMinimumWidth; // Minimum width of the dialog (OnSize()'s cx)
|
||||
extern int nMinimumHeight; // Minimum height of the dialog (OnSize()'s cy)
|
||||
extern int nOldWidth; // Holds the previous client area width
|
||||
extern int nOldHeight; // Holds the previous client area height
|
||||
|
||||
/* Global Variables: */
|
||||
extern HINSTANCE hInst; /* current instance */
|
||||
extern HWND hMainWnd; /* Main Window */
|
||||
extern HWND hStatusWnd; /* Status Bar Window */
|
||||
extern HWND hTabWnd; /* Tab Control Window */
|
||||
extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */
|
||||
extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */
|
||||
extern int nOldWidth; /* Holds the previous client area width */
|
||||
extern int nOldHeight; /* Holds the previous client area height */
|
||||
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);
|
||||
|
||||
BOOL OnCreate(HWND hWnd);
|
||||
void OnSize(UINT nType, int cx, int cy);
|
||||
void OnMove(UINT nType, int cx, int cy);
|
||||
|
||||
void FillSolidRect(HDC hDC, LPCRECT lpRect, 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 Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
||||
|
||||
void LoadSettings(void);
|
||||
void SaveSettings(void);
|
||||
|
||||
void TaskManager_OnEnterMenuLoop(HWND hWnd);
|
||||
void TaskManager_OnExitMenuLoop(HWND hWnd);
|
||||
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
|
||||
|
||||
void TaskManager_OnViewUpdateSpeedHigh(void);
|
||||
void TaskManager_OnViewUpdateSpeedNormal(void);
|
||||
void TaskManager_OnViewUpdateSpeedLow(void);
|
||||
void TaskManager_OnViewUpdateSpeedPaused(void);
|
||||
void TaskManager_OnViewRefresh(void);
|
||||
|
||||
void TaskManager_OnTabWndSelChange(void);
|
||||
|
||||
LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // __TASKMGR_H__
|
||||
#endif /* __TASKMGR_H__ */
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
*
|
||||
* Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
||||
*
|
||||
* 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 library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __TRAYICON_H
|
||||
|
@ -28,4 +28,4 @@ BOOL TrayIcon_ShellAddTrayIcon(void);
|
|||
BOOL TrayIcon_ShellRemoveTrayIcon(void);
|
||||
BOOL TrayIcon_ShellUpdateTrayIcon(void);
|
||||
|
||||
#endif // __TRAYICON_H
|
||||
#endif /* __TRAYICON_H */
|
||||
|
|
Loading…
Reference in a new issue