[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-cvs] ossec-hids: os_win32ui.c (HEAD) [dcid]
- To: ossec-cvs@xxxxxxxxx
- Subject: [ossec-cvs] ossec-hids: os_win32ui.c (HEAD) [dcid]
- From: OSSEC CVS <cvs-commit@xxxxxxxxx>
- Date: Thu, 19 Jul 2007 21:19:30 -0300 (ADT)
- Content-transfer-encoding: 8bit
Module name: ossec-hids
Changes by: dcid 07/07/19 21:19:28
Modified files:
os_win32ui.c
Log message:
Description: Adding better error messages, symantec ws rule, fixing a issue on the e-mail subjects (when do_not_group option is used) and changing parts of the code to gplv3 (more comming).
Reviewed by: dcid
Bug:
Index: os_win32ui.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/ui/os_win32ui.c,v
diff -u -r1.1 -r1.2
--- os_win32ui.c 11 Jul 2007 04:05:07 -0000 1.1
+++ os_win32ui.c 20 Jul 2007 00:19:27 -0000 1.2
@@ -438,7 +438,8 @@
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
-
+ int ret;
+
/* Initializing config */
init_config();
@@ -446,7 +447,25 @@
InitCommonControls();
/* Creating main dialogbox */
- return DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc);
+ DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc);
+
+
+ /* Check if service is running and try to start it */
+ if((strcmp(config_inst.key, FL_NOKEY) != 0)&&
+ (strcmp(config_inst.server, FL_NOSERVER) != 0) &&
+ !CheckServiceRunning())
+ {
+ ret = MessageBox(NULL, "OSSEC Agent not running. "
+ "Do you wish to start it?",
+ "Wish to start the agent?", MB_OKCANCEL);
+ if(ret == IDOK)
+ {
+ /* Starting the service */
+ os_start_service();
+ }
+ }
+
+ return(0);
}
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.