2006-06-20 19:05:19 +02:00
|
|
|
/* Common functions to any pandora program.
|
|
|
|
Copyright (C) 2006 Artica ST.
|
|
|
|
Written by Esteban Sanchez.
|
|
|
|
|
|
|
|
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, 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.
|
|
|
|
|
|
|
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2006-07-05 17:02:28 +02:00
|
|
|
#ifndef __PANDORA__
|
|
|
|
#define __PANDORA__
|
2006-06-20 19:05:19 +02:00
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <string>
|
|
|
|
#include <windows.h>
|
|
|
|
#include "windows_service.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#define PANDORA_DEBUG 1
|
|
|
|
|
|
|
|
namespace Pandora {
|
|
|
|
|
|
|
|
class Key_Value {
|
|
|
|
protected:
|
|
|
|
string key;
|
|
|
|
string value;
|
|
|
|
public:
|
|
|
|
void parseLine (string str);
|
|
|
|
string getKey ();
|
|
|
|
string getValue ();
|
|
|
|
};
|
|
|
|
|
|
|
|
static const HKEY hkey = HKEY_LOCAL_MACHINE;
|
2006-07-05 16:02:05 +02:00
|
|
|
const char * const name = "PandoraAgent";
|
|
|
|
const char * const display_name = "Pandora agent";
|
2006-07-05 12:29:36 +02:00
|
|
|
const char * const description = "The Pandora Agent service";
|
2006-06-20 19:05:19 +02:00
|
|
|
|
2006-07-05 16:02:05 +02:00
|
|
|
void setPandoraInstallDir (string dir);
|
|
|
|
string getPandoraInstallDir ();
|
|
|
|
void setPandoraInstallPath (string path);
|
|
|
|
string getPandoraInstallPath ();
|
|
|
|
void setPandoraDebug (bool dbg);
|
|
|
|
string getPandoraAgentVersion ();
|
|
|
|
|
|
|
|
void pandoraDebug (char *format, ...);
|
|
|
|
void pandoraLog (char *format, ...);
|
|
|
|
void pandoraFree (void * e);
|
2006-06-20 19:05:19 +02:00
|
|
|
|
|
|
|
class Pandora_Exception { };
|
|
|
|
}
|
|
|
|
|
2006-07-04 16:07:08 +02:00
|
|
|
#endif /* __PANDORA_H__ */
|