using System; using System.Diagnostics; using System.Diagnostics.Eventing; class MySample { public static void Main() { EventLog myNewLog = new EventLog("System", ".", "Service Control Manager"); myNewLog.WriteEntry("Test",EventLogEntryType.Information, 7036); } }
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\System\EventLog\EventMessageFile
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)