ReactOS 0.4.15-dev-5893-g1bb4167
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
26extern "C" {
27#endif
28
29#ifdef _MSC_VER
30/*MF
31typedef 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 85
50#define STATUS_SIZE2 190
51#define STATUS_SIZE3 400
52
53typedef 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: */
93extern HINSTANCE hInst; /* current instance */
94extern HWND hMainWnd; /* Main Window */
95extern HWND hStatusWnd; /* Status Bar Window */
96extern HWND hTabWnd; /* Tab Control Window */
97extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */
98extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */
99extern int nOldWidth; /* Holds the previous client area width */
100extern int nOldHeight; /* Holds the previous client area height */
102
103/* Forward declarations of functions included in this code module: */
106void OnSize(WPARAM nType, int cx, int cy);
107void OnMove(WPARAM nType, int cx, int cy);
108void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
109void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
110void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight);
111void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
112void LoadSettings(void);
113void SaveSettings(void);
117void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
120VOID ShowWin32Error(DWORD dwError);
123
124#ifdef __cplusplus
125}
126#endif
static HDC hDC
Definition: 3dtext.c:33
HWND hWnd
Definition: settings.c:17
static const COLUMN_LIST Columns[]
Definition: listview.c:19
#define COLUMN_NMAX
Definition: column.h:51
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
static HDC
Definition: imagelist.c:92
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
unsigned int UINT
Definition: ndis.h:50
HANDLE hThread
Definition: wizard.c:28
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
BOOL HideWhenMinimized
Definition: taskmgr.h:68
BOOL ShowProcessesFromAllUsers
Definition: taskmgr.h:79
BOOL CPUHistory_OneGraphPerCPU
Definition: taskmgr.h:87
int nOldWidth
Definition: taskmgr.c:46
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
Definition: taskmgr.c:1181
void TaskManager_OnRestoreMainWindow(void)
Definition: taskmgr.c:931
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight)
Definition: taskmgr.c:552
int nOldHeight
Definition: taskmgr.c:47
int nMinimumWidth
Definition: taskmgr.c:43
HWND hStatusWnd
Definition: charmap.c:22
void TaskManager_OnViewUpdateSpeed(DWORD)
Definition: taskmgr.c:990
BOOL OnCreate(HWND hWnd)
Definition: msconfig.c:83
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: taskmgr.c:974
HINSTANCE hInst
Definition: dxdiag.c:13
HWND hMainWnd
Definition: magnifier.c:32
int nMinimumHeight
Definition: taskmgr.c:44
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr)
Definition: taskmgr.c:540
INT_PTR CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM)
Definition: taskmgr.c:200
void TaskManager_OnEnterMenuLoop(HWND hWnd)
Definition: taskmgr.c:945
void SaveSettings(void)
Definition: settings.c:115
struct TASKMANAGER_SETTINGS * LPTASKMANAGER_SETTINGS
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
void OnMove(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:785
void OnSize(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:798
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight)
Definition: taskmgr.c:560
VOID ShowWin32Error(DWORD dwError)
Definition: taskmgr.c:1139
LPTSTR GetLastErrorText(LPTSTR lpszBuf, DWORD dwSize)
Definition: service.c:573
void TaskManager_OnExitMenuLoop(HWND hWnd)
Definition: taskmgr.c:956
void LoadSettings(void)
Definition: settings.c:53
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
Definition: taskmgr.c:534
HWND hTabWnd
Definition: msconfig.c:22
void TaskManager_OnTabWndSelChange(void)
Definition: taskmgr.c:1008
int32_t INT_PTR
Definition: typedefs.h:64
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
DWORD COLORREF
Definition: windef.h:300
CHAR * LPTSTR
Definition: xmlstorage.h:192