1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef QGA_SERVICE_WIN32_H
15#define QGA_SERVICE_WIN32_H
16
17#include <windows.h>
18
19#define QGA_SERVICE_DISPLAY_NAME "QEMU Guest Agent"
20#define QGA_SERVICE_NAME "qemu-ga"
21#define QGA_SERVICE_DESCRIPTION "Enables integration with QEMU machine emulator and virtualizer."
22
23static const GUID GUID_VIOSERIAL_PORT = { 0x6fde7521, 0x1b65, 0x48ae,
24{ 0xb6, 0x28, 0x80, 0xbe, 0x62, 0x1, 0x60, 0x26 } };
25
26typedef struct GAService {
27 SERVICE_STATUS status;
28 SERVICE_STATUS_HANDLE status_handle;
29 HDEVNOTIFY device_notification_handle;
30} GAService;
31
32int ga_install_service(const char *path, const char *logfile,
33 const char *state_dir);
34int ga_uninstall_service(void);
35
36#endif
37