-/* @(#) $Id$ */
+/* @(#) $Id: ./src/win32/ui/os_win32ui.h, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
* 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
*/
#include <unistd.h>
#include <windows.h>
#include <winresrc.h>
-
+#include <commctrl.h>
/* Default values */
#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 */
/* 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();