ReactOS  0.4.12-dev-102-g4b7f1e0
taskmgr.h
Go to the documentation of this file.
1 /*
2  * ReactOS Task Manager
3  *
4  * taskmgr.h
5  *
6  * Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #pragma once
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #ifdef _MSC_VER
30 /*MF
31 typedef struct _IO_COUNTERS {
32  ULONGLONG ReadOperationCount;
33  ULONGLONG WriteOperationCount;
34  ULONGLONG OtherOperationCount;
35  ULONGLONG ReadTransferCount;
36  ULONGLONG WriteTransferCount;
37  ULONGLONG OtherTransferCount;
38 } IO_COUNTERS, *PIO_COUNTERS;
39 */
40 #endif /* _MSC_VER */
41 
42 #include "resource.h"
43 
44 #define RUN_APPS_PAGE
45 #define RUN_PROC_PAGE
46 #define RUN_PERF_PAGE
47 
48 #define STATUS_WINDOW 2001
49 #define STATUS_SIZE1 80
50 #define STATUS_SIZE2 210
51 #define STATUS_SIZE3 400
52 
53 typedef struct
54 {
55  /* Window size & position settings */
57  int Left;
58  int Top;
59  int Right;
60  int Bottom;
61 
62  /* Tab settings */
64 
65  /* Options menu settings */
70 
71  /* Update speed settings */
72  /* How many half-seconds in between updates (i.e. 0 - Paused, 1 - High, 2 - Normal, 4 - Low) */
74 
75  /* Applications page settings */
77 
78  /* Processes page settings */
79  BOOL ShowProcessesFromAllUsers; /* Server-only? */
81  int ColumnOrderArray[COLUMN_NMAX];
82  int ColumnSizeArray[COLUMN_NMAX];
85 
86  /* Performance page settings */
89 
91 
92 /* Global Variables: */
93 extern HINSTANCE hInst; /* current instance */
94 extern HWND hMainWnd; /* Main Window */
95 extern HWND hStatusWnd; /* Status Bar Window */
96 extern HWND hTabWnd; /* Tab Control Window */
97 extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */
98 extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */
99 extern int nOldWidth; /* Holds the previous client area width */
100 extern int nOldHeight; /* Holds the previous client area height */
102 
103 /* Forward declarations of functions included in this code module: */
106 void OnSize(WPARAM nType, int cx, int cy);
107 void OnMove(WPARAM nType, int cx, int cy);
108 void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
109 void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
110 void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight);
111 void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
112 void LoadSettings(void);
113 void SaveSettings(void);
117 void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
120 VOID ShowWin32Error(DWORD dwError);
123 
124 #ifdef __cplusplus
125 }
126 #endif
void TaskManager_OnRestoreMainWindow(void)
Definition: taskmgr.c:928
VOID ShowWin32Error(DWORD dwError)
Definition: taskmgr.c:1136
#define HDC
Definition: msvc.h:22
#define COLUMN_NMAX
Definition: column.h:51
HWND hStatusWnd
Definition: charmap.c:23
int nMinimumWidth
Definition: taskmgr.c:43
void SaveSettings(void)
Definition: settings.c:113
LPTSTR GetLastErrorText(LPTSTR lpszBuf, DWORD dwSize)
Definition: service.c:573
#define CALLBACK
Definition: compat.h:27
HWND hWnd
Definition: settings.c:17
BOOL HideWhenMinimized
Definition: taskmgr.h:68
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight)
Definition: taskmgr.c:557
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr)
Definition: taskmgr.c:537
int32_t INT_PTR
Definition: typedefs.h:62
void OnMove(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:782
CHAR * LPTSTR
Definition: xmlstorage.h:192
void TaskManager_OnViewUpdateSpeed(DWORD)
Definition: taskmgr.c:987
UINT_PTR WPARAM
Definition: windef.h:207
void TaskManager_OnEnterMenuLoop(HWND hWnd)
Definition: taskmgr.c:942
INT INT y
Definition: msvc.h:62
LONG_PTR LPARAM
Definition: windef.h:208
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
Definition: taskmgr.c:1178
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight)
Definition: taskmgr.c:549
HWND hMainWnd
Definition: magnifier.c:33
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: taskmgr.c:971
unsigned int BOOL
Definition: ntddk_ex.h:94
int nMinimumHeight
Definition: taskmgr.c:44
unsigned int UINT
Definition: ndis.h:50
unsigned long DWORD
Definition: ntddk_ex.h:95
void LoadSettings(void)
Definition: settings.c:53
HWND hTabWnd
Definition: msconfig.c:22
HINSTANCE hInst
Definition: dxdiag.c:13
void TaskManager_OnTabWndSelChange(void)
Definition: taskmgr.c:1005
BOOL ShowProcessesFromAllUsers
Definition: taskmgr.h:79
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
Definition: taskmgr.c:531
void TaskManager_OnExitMenuLoop(HWND hWnd)
Definition: taskmgr.c:953
int nOldHeight
Definition: taskmgr.c:47
static HDC hDC
Definition: 3dtext.c:33
static const COLUMN_LIST Columns[]
Definition: listview.c:19
INT x
Definition: msvc.h:62
HANDLE hThread
Definition: wizard.c:27
_Out_opt_ int * cx
Definition: commctrl.h:570
BOOL OnCreate(HWND hWnd)
Definition: msconfig.c:82
int nOldWidth
Definition: taskmgr.c:46
void OnSize(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:795
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
DWORD COLORREF
Definition: windef.h:290
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
BOOL CPUHistory_OneGraphPerCPU
Definition: taskmgr.h:87
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54
struct TASKMANAGER_SETTINGS * LPTASKMANAGER_SETTINGS
INT_PTR CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM)
Definition: taskmgr.c:200