From b63bf89d46692cff93463173a7728734f1738b26 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Sat, 29 Nov 2003 02:31:24 +0000 Subject: [PATCH] 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 --- rosapps/taskmgr/about.h | 24 ++++---- rosapps/taskmgr/affinity.h | 24 ++++---- rosapps/taskmgr/applpage.h | 34 +++++------ rosapps/taskmgr/column.h | 24 ++++---- rosapps/taskmgr/debug.h | 24 ++++---- rosapps/taskmgr/endproc.h | 24 ++++---- rosapps/taskmgr/font.h | 24 ++++---- rosapps/taskmgr/graph.h | 24 ++++---- rosapps/taskmgr/graphctl.h | 46 +++++++------- rosapps/taskmgr/makefile | 10 ++-- rosapps/taskmgr/optnmenu.h | 30 +++++----- rosapps/taskmgr/perfdata.h | 67 +++++++-------------- rosapps/taskmgr/perfpage.h | 38 ++++++------ rosapps/taskmgr/priority.h | 24 ++++---- rosapps/taskmgr/proclist.h | 24 ++++---- rosapps/taskmgr/procpage.h | 34 +++++------ rosapps/taskmgr/run.h | 55 ++++++++--------- rosapps/taskmgr/taskmgr.h | 119 ++++++++++++++----------------------- rosapps/taskmgr/trayicon.h | 24 ++++---- 19 files changed, 306 insertions(+), 367 deletions(-) diff --git a/rosapps/taskmgr/about.h b/rosapps/taskmgr/about.h index 3bb7ef54fdb..1d937f4fafc 100644 --- a/rosapps/taskmgr/about.h +++ b/rosapps/taskmgr/about.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/affinity.h b/rosapps/taskmgr/affinity.h index a77eb560576..7952b543330 100644 --- a/rosapps/taskmgr/affinity.h +++ b/rosapps/taskmgr/affinity.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/applpage.h b/rosapps/taskmgr/applpage.h index ef06ff625c4..f332c130a8f 100644 --- a/rosapps/taskmgr/applpage.h +++ b/rosapps/taskmgr/applpage.h @@ -5,30 +5,30 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/column.h b/rosapps/taskmgr/column.h index 139fe44b2a5..5e653439a88 100644 --- a/rosapps/taskmgr/column.h +++ b/rosapps/taskmgr/column.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/debug.h b/rosapps/taskmgr/debug.h index 086410d12b9..295e90e00c8 100644 --- a/rosapps/taskmgr/debug.h +++ b/rosapps/taskmgr/debug.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/endproc.h b/rosapps/taskmgr/endproc.h index a1f0df6b9bf..c392b275a79 100644 --- a/rosapps/taskmgr/endproc.h +++ b/rosapps/taskmgr/endproc.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/font.h b/rosapps/taskmgr/font.h index 6a4dca09ffb..53cd41e19fa 100644 --- a/rosapps/taskmgr/font.h +++ b/rosapps/taskmgr/font.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/graph.h b/rosapps/taskmgr/graph.h index 683c61efce2..633fd494e7d 100644 --- a/rosapps/taskmgr/graph.h +++ b/rosapps/taskmgr/graph.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/graphctl.h b/rosapps/taskmgr/graphctl.h index 10cdc5963da..d68bb2c1286 100644 --- a/rosapps/taskmgr/graphctl.h +++ b/rosapps/taskmgr/graphctl.h @@ -5,19 +5,19 @@ * * Copyright (C) 2002 Robert Dickenson * - * 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, - * 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. + * 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 + * 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; diff --git a/rosapps/taskmgr/makefile b/rosapps/taskmgr/makefile index c546021a690..b461aadc7ec 100644 --- a/rosapps/taskmgr/makefile +++ b/rosapps/taskmgr/makefile @@ -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++ diff --git a/rosapps/taskmgr/optnmenu.h b/rosapps/taskmgr/optnmenu.h index 4e13764446f..5403f7e5de3 100644 --- a/rosapps/taskmgr/optnmenu.h +++ b/rosapps/taskmgr/optnmenu.h @@ -5,24 +5,24 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/perfdata.h b/rosapps/taskmgr/perfdata.h index 4d9ffd0754a..44766e7558e 100644 --- a/rosapps/taskmgr/perfdata.h +++ b/rosapps/taskmgr/perfdata.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/perfpage.h b/rosapps/taskmgr/perfpage.h index e6f1a7eb951..0a9b0b7e97e 100644 --- a/rosapps/taskmgr/perfpage.h +++ b/rosapps/taskmgr/perfpage.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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); - +void RefreshPerformancePage(void); +void PerformancePage_OnViewShowKernelTimes(void); +void PerformancePage_OnViewCPUHistoryOneGraphAll(void); +void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void); #ifdef __cplusplus }; #endif -#endif // __PERFORMANCEPAGE_H +#endif /* __PERFORMANCEPAGE_H */ diff --git a/rosapps/taskmgr/priority.h b/rosapps/taskmgr/priority.h index 0d91c080f0c..6a1b8d597ac 100644 --- a/rosapps/taskmgr/priority.h +++ b/rosapps/taskmgr/priority.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/proclist.h b/rosapps/taskmgr/proclist.h index d7a8b6b2fe5..577de1f67f8 100644 --- a/rosapps/taskmgr/proclist.h +++ b/rosapps/taskmgr/proclist.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/procpage.h b/rosapps/taskmgr/procpage.h index 393d4da3bd8..379c02c13ca 100644 --- a/rosapps/taskmgr/procpage.h +++ b/rosapps/taskmgr/procpage.h @@ -5,31 +5,31 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/run.h b/rosapps/taskmgr/run.h index 335ba228cbb..21dfbd88d3d 100644 --- a/rosapps/taskmgr/run.h +++ b/rosapps/taskmgr/run.h @@ -5,28 +5,29 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */ diff --git a/rosapps/taskmgr/taskmgr.h b/rosapps/taskmgr/taskmgr.h index 6b0717af14e..d366e1e373d 100644 --- a/rosapps/taskmgr/taskmgr.h +++ b/rosapps/taskmgr/taskmgr.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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; + int Left; + int Top; + int Right; + int Bottom; - // Tab settings - int ActiveTabPage; + /* 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; @@ -125,62 +102,52 @@ typedef struct BOOL Column_IOWriteBytes; BOOL Column_IOOther; BOOL Column_IOOtherBytes; - int ColumnOrderArray[25]; - int ColumnSizeArray[25]; - int SortColumn; + int ColumnOrderArray[25]; + int ColumnSizeArray[25]; + 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__ */ diff --git a/rosapps/taskmgr/trayicon.h b/rosapps/taskmgr/trayicon.h index 5c56c6dcbcc..f79065601d1 100644 --- a/rosapps/taskmgr/trayicon.h +++ b/rosapps/taskmgr/trayicon.h @@ -5,19 +5,19 @@ * * Copyright (C) 1999 - 2001 Brian Palmer * - * 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, - * 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. + * 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 + * 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 */