How to report event to Windows System log in python
Solution 1:
As of Windows XP SP2+ ReportEvent()
cannot be used to report security events. You must use the Windows API AuthzReportSecurityEvent()
function. PyWin32 does not have a convenience binding for this function, so you would need to write the binding yourself.