Valhalla Legends Archive

Programming => General Programming => Topic started by: Spht on March 29, 2004, 12:50 PM

Title: Wanting to programmatically save system event logs
Post by: Spht on March 29, 2004, 12:50 PM
Windows Event Viewer seems to query mprmsg.dll and netevent.dll when saving logs.  Has anyone tried using one of these to create log files?  Does Windows Event Viewer have a commandline option to save log?

Thanks.
Title: Re:Wanting to programmatically save system event logs
Post by: Skywing on March 29, 2004, 04:24 PM
Try looking at the BackupEventLog function.
Title: Re:Wanting to programmatically save system event logs
Post by: Spht on March 29, 2004, 07:10 PM
That's what I was looking for. Thanks.
Title: Re:Wanting to programmatically save system event logs
Post by: Noodlez on March 29, 2004, 07:34 PM
Even though I'm sure you found this, other people might want it.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/event_logging_functions.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/event_logging_functions.asp)