2
0

service-win32.h 1.0 KB

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