X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fwin32%2Fui%2Fos_win32ui.h;h=3952824368ac72dbe06caea4d5a740de80fdfb29;hb=927951d1c1ad45ba9e7325f07d996154a91c911b;hp=d7a72089c403782c624cf4fab30b8b6201a8f26c;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/win32/ui/os_win32ui.h b/src/win32/ui/os_win32ui.h index d7a7208..3952824 100644 --- a/src/win32/ui/os_win32ui.h +++ b/src/win32/ui/os_win32ui.h @@ -1,14 +1,15 @@ -/* @(#) $Id: os_win32ui.h,v 1.8 2009/06/24 18:53:10 dcid Exp $ */ +/* @(#) $Id: ./src/win32/ui/os_win32ui.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * 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();