Imported Upstream version 2.5.1
[ossec-hids.git] / src / win32 / os_win.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All rights reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12 #ifndef _OS_WIN__H
13 #define _OS_WIN__H
14
15
16 /** int InstallService(char *path)
17  * Install the OSSEC HIDS agent service.
18  */
19 int InstallService(char *path);
20
21
22 /** int UninstallService()
23  * Uninstall the OSSEC HIDS agent service.
24  */
25 int UninstallService(); 
26
27
28 /** int QueryService(): 
29  * Checks if service is running. 
30  * Return 1 on success (running) or 0 if not.
31  */
32 int CheckServiceRunning();
33
34
35 /* os_start_service: Starts ossec service */
36 int os_start_service();
37
38
39 /* os_stop_service: Stops ossec service */
40 int os_stop_service();
41
42
43 /** int os_WinMain(int argc, char **argv)
44  * Starts the process from the services.
45  */
46 int os_WinMain(int argc, char **argv);
47
48
49 /** int local_start();
50  * Locally starts the process (after the services initialization).
51  */
52 int local_start();
53
54 #endif
55 /* EOF */