pandorafms/pandora_agents/win32/pandora.h

64 lines
2.1 KiB
C++

/* 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.
*/
#ifndef __PANDORA__
#define __PANDORA__
#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;
const char * const name = "PandoraAgent";
const char * const display_name = "Pandora agent";
const char * const description = "The Pandora Agent service";
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);
class Pandora_Exception { };
}
#endif /* __PANDORA_H__ */