novi upstream verzije 2.8.3
[ossec-hids.git] / src / win32 / ui / os_win32ui.h
index 5bd608f..3952824 100644 (file)
@@ -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 <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 */
@@ -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();