Data source: http://rosettacode.org/wiki/Write_to_Windows_event_log