Skip to content
Snippets Groups Projects
user avatar
Andrey Drobyshev authored
This commit allows QGA to write to Windows event log using Win32 API's
ReportEvent() [1], much like syslog() under *nix guests.

In order to generate log message definitions we use a very basic message
text file [2], so that every QGA's message gets ID 1.  The tools
"windmc" and "windres" respectively are used to generate ".rc" file and
COFF object file, and then the COFF file is linked into qemu-ga.exe.

[1] https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-reporteventa
[2] https://learn.microsoft.com/en-us/windows/win32/eventlog/message-text-files



Originally-by: default avatarYuri Pudgorodskiy <yur@virtuozzo.com>
Signed-off-by: default avatarAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: default avatarKonstantin Kostiuk <kkostiuk@redhat.com>
Tested-by: default avatarKonstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: default avatarKonstantin Kostiuk <kkostiuk@redhat.com>
f9f0e617
History