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