Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentaskmgr.h
Go to the documentation of this file.
00001 /* 00002 * ReactOS Task Manager 00003 * 00004 * taskmgr.h 00005 * 00006 * Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 #pragma once 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 #ifdef _MSC_VER 00030 /*MF 00031 typedef struct _IO_COUNTERS { 00032 ULONGLONG ReadOperationCount; 00033 ULONGLONG WriteOperationCount; 00034 ULONGLONG OtherOperationCount; 00035 ULONGLONG ReadTransferCount; 00036 ULONGLONG WriteTransferCount; 00037 ULONGLONG OtherTransferCount; 00038 } IO_COUNTERS, *PIO_COUNTERS; 00039 */ 00040 #endif /* _MSC_VER */ 00041 00042 #include "resource.h" 00043 00044 #define RUN_APPS_PAGE 00045 #define RUN_PROC_PAGE 00046 #define RUN_PERF_PAGE 00047 00048 #define STATUS_WINDOW 2001 00049 #define STATUS_SIZE1 80 00050 #define STATUS_SIZE2 210 00051 #define STATUS_SIZE3 400 00052 00053 typedef struct 00054 { 00055 /* Window size & position settings */ 00056 BOOL Maximized; 00057 int Left; 00058 int Top; 00059 int Right; 00060 int Bottom; 00061 00062 /* Tab settings */ 00063 int ActiveTabPage; 00064 00065 /* Options menu settings */ 00066 BOOL AlwaysOnTop; 00067 BOOL MinimizeOnUse; 00068 BOOL HideWhenMinimized; 00069 BOOL Show16BitTasks; 00070 00071 /* Update speed settings */ 00072 /* How many half-seconds in between updates (i.e. 0 - Paused, 1 - High, 2 - Normal, 4 - Low) */ 00073 DWORD UpdateSpeed; 00074 00075 /* Applications page settings */ 00076 DWORD ViewMode; 00077 00078 /* Processes page settings */ 00079 BOOL ShowProcessesFromAllUsers; /* Server-only? */ 00080 BOOL Columns[COLUMN_NMAX]; 00081 int ColumnOrderArray[COLUMN_NMAX]; 00082 int ColumnSizeArray[COLUMN_NMAX]; 00083 int SortColumn; 00084 BOOL SortAscending; 00085 00086 /* Performance page settings */ 00087 BOOL CPUHistory_OneGraphPerCPU; 00088 BOOL ShowKernelTimes; 00089 00090 } TASKMANAGER_SETTINGS, *LPTASKMANAGER_SETTINGS; 00091 00092 /* Global Variables: */ 00093 extern HINSTANCE hInst; /* current instance */ 00094 extern HWND hMainWnd; /* Main Window */ 00095 extern HWND hStatusWnd; /* Status Bar Window */ 00096 extern HWND hTabWnd; /* Tab Control Window */ 00097 extern int nMinimumWidth; /* Minimum width of the dialog (OnSize()'s cx) */ 00098 extern int nMinimumHeight; /* Minimum height of the dialog (OnSize()'s cy) */ 00099 extern int nOldWidth; /* Holds the previous client area width */ 00100 extern int nOldHeight; /* Holds the previous client area height */ 00101 extern TASKMANAGER_SETTINGS TaskManagerSettings; 00102 00103 /* Foward declarations of functions included in this code module: */ 00104 INT_PTR CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM); 00105 BOOL OnCreate(HWND hWnd); 00106 void OnSize(WPARAM nType, int cx, int cy); 00107 void OnMove(WPARAM nType, int cx, int cy); 00108 void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr); 00109 void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr); 00110 void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight); 00111 void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight); 00112 void LoadSettings(void); 00113 void SaveSettings(void); 00114 void TaskManager_OnRestoreMainWindow(void); 00115 void TaskManager_OnEnterMenuLoop(HWND hWnd); 00116 void TaskManager_OnExitMenuLoop(HWND hWnd); 00117 void TaskManager_OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu); 00118 void TaskManager_OnViewUpdateSpeed(DWORD); 00119 void TaskManager_OnTabWndSelChange(void); 00120 LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize ); 00121 DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread); 00122 00123 #ifdef __cplusplus 00124 } 00125 #endif Generated on Fri May 25 2012 04:15:53 for ReactOS by
1.7.6.1
|