X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fwin32%2Fui%2Fos_win32ui.h;h=3952824368ac72dbe06caea4d5a740de80fdfb29;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=5bd608f616329cb973db7f66f7d2ca02e4a75527;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/win32/ui/os_win32ui.h b/src/win32/ui/os_win32ui.h index 5bd608f..3952824 100644 --- a/src/win32/ui/os_win32ui.h +++ b/src/win32/ui/os_win32ui.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/win32/ui/os_win32ui.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -8,7 +9,7 @@ * License (version 2) as published by the FSF - Free Software * Foundation. * - * License details at the LICENSE file included with OSSEC or + * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ @@ -21,7 +22,7 @@ #include #include #include - +#include /* Default values */ @@ -31,25 +32,24 @@ #define VERSION_FILE "VERSION.txt" #define OSSECLOGS "ossec.log" #define HELPTXT "help.txt" -#define AUTH_FILE "client.keys" #define SENDER_FILE "rids\\sender_counter" #define DEFDIR "C:\\Program Files\\ossec-agent" /* Status messages */ -#define ST_RUNNING "Running..." +#define ST_RUNNING "Running" #define ST_RUNNING_RESTART "Running (pending restart)" -#define ST_STOPPED "Stopped." -#define ST_UNKNOWN "Unknown." +#define ST_STOPPED "Stopped" +#define ST_UNKNOWN "Unknown" #define ST_NOTSET "0" #define ST_MISSING_IMPORT "Require import of authentication key.\r\n" \ - " - Not Running..." + " - Not Running" #define ST_MISSING_SERVER "Require OSSEC Server IP address.\r\n" \ - " - Not Running..." + " - Not Running" #define ST_MISSING_ALL "Require import of authentication key.\r\n" \ " Missing OSSEC Server IP address.\r\n" \ - " - Not Running..." - + " - Not Running" + /* Pre-def fields */ @@ -149,9 +149,15 @@ int config_read(HWND hwnd); /* Initializes the config */ void init_config(); +/* Run command using cmd.exe */ +int run_cmd(char *cmd, HWND hwnd); + /* Set OSSEC Server IP */ int set_ossec_server(char *ip, HWND hwnd); +/* Set OSSEC Auth Key */ +int set_ossec_key(char *key, HWND hwnd); + /* Get OSSEC Server IP */ int get_ossec_server();