ReactOS 0.4.15-dev-7961-gdcf9eb0
taskmgr.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Task Manager
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: Main Header
5 * COPYRIGHT: Copyright 1999-2001 Brian Palmer <brianp@reactos.org>
6 */
7
8#pragma once
9
10#include "resource.h"
11
12#define RUN_APPS_PAGE
13#define RUN_PROC_PAGE
14#define RUN_PERF_PAGE
15
16#define STATUS_WINDOW 2001
17#define STATUS_SIZE1 85
18#define STATUS_SIZE2 157 // he-IL.rc determines minimum width: 72 == 157 - 85
19#define STATUS_SIZE3 400
20
21typedef struct
22{
23 /* Window size & position settings */
25 int Left;
26 int Top;
27 int Right;
28 int Bottom;
29
30 /* Tab settings */
32
33 /* Options menu settings */
38
39 /* 0 - Paused, 1 - High, 2 - Normal, 4 - Low */
41
42 /* Applications page settings */
44
45 /* Processes page settings */
48 int ColumnOrderArray[COLUMN_NMAX];
49 int ColumnSizeArray[COLUMN_NMAX];
52
53 /* Performance page settings */
57
58/* Global Variables: */
59extern HINSTANCE hInst; /* current instance */
60extern HWND hMainWnd; /* Main Window */
61extern HWND hStatusWnd; /* Status Bar Window */
62extern HWND hTabWnd; /* Tab Control Window */
63extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */
64extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */
65extern int nOldWidth; /* Holds the previous client area width */
66extern int nOldHeight; /* Holds the previous client area height */
68
69/* Forward declarations of functions included in this code module: */
72void OnSize(WPARAM nType, int cx, int cy);
73void OnMove(WPARAM nType, int cx, int cy);
74void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
75void LoadSettings(void);
76void SaveSettings(void);
78void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu);
static HDC hDC
Definition: 3dtext.c:33
Type
Definition: Type.h:7
HWND hWnd
Definition: settings.c:17
static const COLUMN_LIST Columns[]
Definition: listview.c:19
#define COLUMN_NMAX
Definition: column.h:37
char * Text
Definition: combotst.c:136
static const WCHAR Title[]
Definition: oid.c:1259
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
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:63
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:36
BOOL ShowProcessesFromAllUsers
Definition: taskmgr.h:46
BOOL CPUHistory_OneGraphPerCPU
Definition: taskmgr.h:54
int nOldWidth
Definition: taskmgr.c:31
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
Definition: taskmgr.c:1109
void TaskManager_OnRestoreMainWindow(void)
Definition: taskmgr.c:860
int nOldHeight
Definition: taskmgr.c:32
int nMinimumWidth
Definition: taskmgr.c:28
HWND hStatusWnd
Definition: charmap.c:22
void TaskManager_OnViewUpdateSpeed(DWORD)
Definition: taskmgr.c:910
BOOL OnCreate(HWND hWnd)
Definition: msconfig.c:83
void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: taskmgr.c:871
HINSTANCE hInst
Definition: dxdiag.c:13
HWND hMainWnd
Definition: magnifier.c:32
int nMinimumHeight
Definition: taskmgr.c:29
INT_PTR CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM)
Definition: taskmgr.c:183
void SaveSettings(void)
Definition: settings.c:115
struct TASKMANAGER_SETTINGS * LPTASKMANAGER_SETTINGS
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:37
void OnMove(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:716
void OnSize(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:729
VOID ShowWin32Error(DWORD dwError)
Definition: taskmgr.c:1067
LPTSTR GetLastErrorText(LPTSTR lpszBuf, DWORD dwSize)
Definition: service.c:573
void LoadSettings(void)
Definition: settings.c:53
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
Definition: taskmgr.c:491
HWND hTabWnd
Definition: msconfig.c:22
BOOL ConfirmMessageBox(HWND hWnd, LPCWSTR Text, LPCWSTR Title, UINT Type)
Definition: taskmgr.c:1059
void TaskManager_OnTabWndSelChange(void)
Definition: taskmgr.c:928
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
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185