Changeset dc65e35 in nscp for modules/SysTray


Ignore:
Timestamp:
03/05/07 18:38:48 (6 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
972b98d
Parents:
2c34b97
Message:

2006-03-05 MickeM

  • Fixed -v FILEAGE check_nt (NSClient) check.
  • Added licence agreement header to all files
Location:
modules/SysTray
Files:
6 edited

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***************************************************************************/ 
    421#include "stdafx.h" 
    522#include "SysTray.h" 
     
    4158 
    4259int SysTray::commandLineExec(const char* command,const unsigned int argLen,char** args) { 
    43   if (stricmp(command, "install") == 0) { 
     60  if (_stricmp(command, "install") == 0) { 
    4461    try { 
    4562      serviceControll::ModifyServiceType(SZSERVICENAME, SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS); 
     
    4966      return -1; 
    5067    } 
    51   } else if (stricmp(command, "uninstall") == 0) { 
     68  } else if (_stricmp(command, "uninstall") == 0) { 
    5269    try { 
    5370      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***************************************************************************/ 
    121#pragma once 
    222 
  • 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***************************************************************************/ 
    121#include "stdafx.h" 
    222#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***************************************************************************/ 
    121#pragma once 
    222 
  • 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***************************************************************************/ 
    521#include "stdafx.h" 
    6  
    7 // TODO: reference any additional headers you need in STDAFX.H 
    8 // 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***************************************************************************/ 
    921#pragma once 
    1022 
     
    1426#include <tchar.h> 
    1527#include <string> 
    16 //#include <iostream> 
    17  
    1828#include <NSCHelper.h> 
    19  
    2029#include <assert.h> 
Note: See TracChangeset for help on using the changeset viewer.