qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEvent
OpenEvent and CreateEvent WinAPI return NULL when failed to open/createevents handles, instead of INVALID_HANDLE_VALUE (although their returntypes are HANDLE).This replaces INVALID_HANDLE_VALUE related to event handles with NULL....
qemu-ga: vss-win32: Install VSS provider COM+ application service
Currently, qemu-ga for Windows fails to execute guset-fsfreeze-freeze whenno user is logging in to Windows, with an error message: {"error":{"class":"GenericError", "desc":"failed to add C:\\ to snapshotset: (error: 8004230f)"}}...
qga: Fix compilation for old versions of MinGW
While MinGW-w64 can compile the qga code, MinGW from Debian lenny(gcc-mingw32 4.4.2-3) shows these errors:
In file included from qga/vss-win32.c:17:qga/vss-win32/requester.h:31: error: expected »=«, »,«, »;«, »asm« or »__attribute__« before »requester_init«...
qemu-ga: Add Windows VSS provider and requester as DLL
Adds VSS provider and requester as a qga-vss.dll, which is loaded byWindows VSS service as well as by qemu-ga.
"provider.cpp" implements a basic stub of a software VSS provider.Currently, this module only relays a frozen event from VSS service to the...