[SOLVED] Windows Event Log Management
-
Hi. I'm trying make Event log sender with Qt for Windows systems. But i cant find any document on internet. With VC++ and .Net more examples on the web. But i dont want to use VC++. Any idea about this?
Best regards.
Hakan.
-
What is an event log sender?
-
For example, reads windows security logs and send these over UDP 514 port, to another syslog server on LAN. Or read windows system logs and showing them to user like "Windows Event Viewer" http://windows.microsoft.com/en-US/windows-vista/Open-Event-Viewer on the public computer.
First step i just want to see windows event logs on any form. And then i will send it over UDP port. I just need to know, how can i get an event log in to my form.
Regards.
Hakan. -
There's no Qt API for that.
You will have to access the event log with Windows API calls.
You can mix Windows API code and Qt code without problems. -
Thanks for idea jobor. I will try to make it like you said. (:
-
OpenEventLog and ReadEventLog is what i meant. I wrote very simple code for testing and it's worked. Thanks a lot (:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363672(v=vs.85).aspx