Changeset dc65e35 in nscp for modules/SysTray
- Timestamp:
- 03/05/07 18:38:48 (6 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 972b98d
- Parents:
- 2c34b97
- Location:
- modules/SysTray
- Files:
-
- 6 edited
-
SysTray.cpp (modified) (3 diffs)
-
SysTray.h (modified) (1 diff)
-
TrayIcon.cpp (modified) (1 diff)
-
TrayIcon.h (modified) (1 diff)
-
stdafx.cpp (modified) (1 diff)
-
stdafx.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/SysTray/SysTray.cpp
r0687108 rdc65e35 1 // SysTray.cpp : Defines the entry point for the DLL application. 2 // 3 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 4 21 #include "stdafx.h" 5 22 #include "SysTray.h" … … 41 58 42 59 int SysTray::commandLineExec(const char* command,const unsigned int argLen,char** args) { 43 if ( stricmp(command, "install") == 0) {60 if (_stricmp(command, "install") == 0) { 44 61 try { 45 62 serviceControll::ModifyServiceType(SZSERVICENAME, SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS); … … 49 66 return -1; 50 67 } 51 } else if ( stricmp(command, "uninstall") == 0) {68 } else if (_stricmp(command, "uninstall") == 0) { 52 69 try { 53 70 serviceControll::ModifyServiceType(SZSERVICENAME, SERVICE_WIN32_OWN_PROCESS); -
modules/SysTray/SysTray.h
r6817602 rdc65e35 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 1 21 #pragma once 2 22 -
modules/SysTray/TrayIcon.cpp
r75d5e70 rdc65e35 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 1 21 #include "stdafx.h" 2 22 #include ".\trayicon.h" -
modules/SysTray/TrayIcon.h
r75d5e70 rdc65e35 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 1 21 #pragma once 2 22 -
modules/SysTray/stdafx.cpp
ra0528c4 rdc65e35 1 // stdafx.cpp : source file that includes just the standard includes 2 // SysTray.pch will be the pre-compiled header 3 // stdafx.obj will contain the pre-compiled type information 4 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 5 21 #include "stdafx.h" 6 7 // TODO: reference any additional headers you need in STDAFX.H8 // and not in this file -
modules/SysTray/stdafx.h
r402f042 rdc65e35 1 // stdafx.h : include file for standard system include files, 2 // or project specific include files that are used frequently, but 3 // are changed infrequently 4 // 5 6 // WIN32;_DEBUG;_WINDOWS;_USRDLL;SYSTRAY_EXPORTS; 7 // WIN32;_DEBUG;_CONSOLE 8 1 /************************************************************************** 2 * Copyright (C) 2004-2007 by Michael Medin <michael@medin.name> * 3 * * 4 * This code is part of NSClient++ - http://trac.nakednuns.org/nscp * 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * This program is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program; if not, write to the * 18 * Free Software Foundation, Inc., * 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 ***************************************************************************/ 9 21 #pragma once 10 22 … … 14 26 #include <tchar.h> 15 27 #include <string> 16 //#include <iostream>17 18 28 #include <NSCHelper.h> 19 20 29 #include <assert.h>
Note: See TracChangeset
for help on using the changeset viewer.








