xref: /qemu/qga/service-win32.h (revision bc62fa039c402740dbae3233618c982f5943f6b1)
1*bc62fa03SMichael Roth /*
2*bc62fa03SMichael Roth  * QEMU Guest Agent helpers for win32 service management
3*bc62fa03SMichael Roth  *
4*bc62fa03SMichael Roth  * Copyright IBM Corp. 2012
5*bc62fa03SMichael Roth  *
6*bc62fa03SMichael Roth  * Authors:
7*bc62fa03SMichael Roth  *  Gal Hammer        <ghammer@redhat.com>
8*bc62fa03SMichael Roth  *  Michael Roth      <mdroth@linux.vnet.ibm.com>
9*bc62fa03SMichael Roth  *
10*bc62fa03SMichael Roth  * This work is licensed under the terms of the GNU GPL, version 2 or later.
11*bc62fa03SMichael Roth  * See the COPYING file in the top-level directory.
12*bc62fa03SMichael Roth  */
13*bc62fa03SMichael Roth #ifndef QGA_SERVICE_H
14*bc62fa03SMichael Roth #define QGA_SERVICE_H
15*bc62fa03SMichael Roth 
16*bc62fa03SMichael Roth #include <windows.h>
17*bc62fa03SMichael Roth 
18*bc62fa03SMichael Roth #define QGA_SERVICE_DISPLAY_NAME "QEMU Guest Agent"
19*bc62fa03SMichael Roth #define QGA_SERVICE_NAME         "qemu-ga"
20*bc62fa03SMichael Roth #define QGA_SERVICE_DESCRIPTION  "Enables integration with QEMU machine emulator and virtualizer."
21*bc62fa03SMichael Roth 
22*bc62fa03SMichael Roth typedef struct GAService {
23*bc62fa03SMichael Roth     SERVICE_STATUS status;
24*bc62fa03SMichael Roth     SERVICE_STATUS_HANDLE status_handle;
25*bc62fa03SMichael Roth } GAService;
26*bc62fa03SMichael Roth 
27*bc62fa03SMichael Roth int ga_install_service(const char *path, const char *logfile);
28*bc62fa03SMichael Roth int ga_uninstall_service(void);
29*bc62fa03SMichael Roth 
30*bc62fa03SMichael Roth #endif
31